Introduction to Computational Physics – Oscillations & Harmonic Motion
Periodic Motion
Definition: A motion that repeats itself at regular time intervals.
The fixed interval after which the motion repeats is called the time period (T).
Examples mentioned
Planet orbiting the Sun (annual period).
Hands of a clock (e.g.
Hour-hand T=12 h,
Minute-hand T=1 h).
Satellite revolving round Earth.
Earth’s own rotation (sidereal day ≈24 h).
Car wheel spinning while driving.
Special subclass – Oscillatory Motion: to-and-fro motion along the same path.
All oscillatory motions are periodic, but converse is not always true.
Oscillatory Motion
Specifics: Object moves back & forth / up & down about an equilibrium point.
Examples
Swinging pendulum.
Vibrating tuning fork.
Mass–spring system (vertical or horizontal).
Playground swing.
Vibrating string on musical instruments.
Simple Harmonic Motion (SHM)
Rigorous definition
Motion in a straight line where acceleration a is always directed toward a fixed point (centre of oscillation / equilibrium) and proportional to displacement x from that point. a=−ω2x
Via Newton’s 2nd law F=ma, the restoring force is F=−mω2x=−kx(1)
where k=mω2 is the spring (force) constant.
Consequences
Restoring force vanishes at equilibrium x=0.
Centre of oscillation = equilibrium position.
Differential Equation & General Solution
Starting from F=−kx: mdt2d2x+kx=0 dt2d2x+ω2x=0(ω2=k/m)
Solution for displacement x(t)=Asin(ωt+δ)
Velocity v(t)=dtdx=Aωcos(ωt+δ)
Acceleration a(t)=dt2d2x=−Aω2sin(ωt+δ)=−ω2x(t)
Alternative Derivation via Energy (work–energy)
Starting with initial conditions x<em>0,v</em>0, integrate vdv=−ω2xdx to obtain
v2=v<em>02+ω2(x</em>02−x2)
Introduce A2=ω2v<em>02+x</em>02 giving v=ωA2−x2 and, after separation, the usual sine solution.
Parameters
Amplitude A: maximum displacement (takes values ±A).
Time period T: smallest time after which state repeats.
From requirement ω(t+T)+δ=ωt+δ+2π T=ω2π=2πkm
Frequency ν & angular frequency ω: ν=T1=2πω=2π1mk
Phase Φ=ωt+δ locates particle’s status.
Φ=0 ⇒ particle crosses mean position with positive velocity v=Aω.
Φ=2π ⇒ particle at positive extreme x=A,v=0.
Worked Example (Problem 1)
Given x=5msin(πs−1t+3π).
Amplitude A=5m.
Angular frequency ω=πs−1.
Time period T=π2π=2s.
Max speed vmax=Aω=5×πm/s.
Velocity at t=1s: v=Aωcos(π⋅1+3π)=5πcos(34π)=5π(−21)=−25πm/s (toward the centre).
Energy in SHM
Potential energy (taking U=0 at x=0): U(x)=21kx2=21mω2x2
Kinetic energy: K=21mv2=21mA2ω2cos2(ωt+δ)
Total mechanical energy (constant):
E=K+U=21mA2ω2[sin2(ωt+δ)+cos2(ωt+δ)]=21mA2ω2
Energy continuously interchanges between U & K.
Linear Harmonic Oscillator – Simple Pendulum (small-angle)
Tangential equation: mdt2d2x=−mgsinθ.
For small amplitude sinθ≈θ=ℓx giving
dt2d2x=−ℓgx.
Thus ω=g/ℓ and T=2πgℓ.
Same linear SHM form applies.
Damped Oscillations
Real systems lose energy to friction / resistance ⇒ amplitude decays.
Equation (mass m, damping coefficient μ, spring constant k): mdt2d2x+μdtdx+kx=0
Assume trial solution x=Ceαt leading to characteristic eqn α2+2δα+ω<em>02=0 with
δ=2mμ,ω</em>0=mk.
Three Regimes
Overdamped (\delta > \omega_{0})
Two negative real roots α<em>1,2=−δ±δ2−ω</em>02.
Displacement: x(t)=e−δt(C<em>1eλt+C</em>2e−λt) with λ=δ2−ω02.
No oscillation; system returns exponentially to equilibrium.
Qualitative plots (Page 17) compare displacement vs time for the three cases.
Forced (Driven) Oscillations
External periodic force f0sinωt supplies energy, compensating damping.
Equation: dt2d2x+2δdtdx+ω<em>02x=mf</em>0sinωt
Motion has two phases
Transient phase – natural frequency ω0; dies out due to damping.
Persistent (steady-state) phase – oscillates at driving frequency ω with constant amplitude.
Steady-State Solution
Assume x=asin(ωt−Φ).
Substitute to obtain algebraic relations a(ω<em>02−ω2)=f</em>0cosΦ 2δaω=f0sinΦ
Amplitude a=(ω</em>02−ω2)2+(2δω)2f<em>0
Phase lag tanΦ=ω02−ω22δω.
Special features
Resonance: amplitude maximal when ω≈ω<em>02−2δ2 (≈ ω</em>0 for weak damping).
Phase passes from 0 (low ω) through 90∘ at resonance to 180∘ (high ω).
Full solution = transient + steady; textbook wrote x(t)=Ahe−δtsin(ωˉt+φ)+asin(ωt−Φ).
Two-Body (Coupled) Harmonic Motion
System: two equal masses m connected by three springs (end springs k<em>1, middle spring k</em>2).
Equations of motion (about points A & B): mx¨<em>1+(k</em>1+k<em>2)x</em>1−k<em>2x</em>2=0(1) mx¨<em>2+(k</em>1+k<em>2)x</em>2−k<em>2x</em>1=0(2)
Assume x<em>j=A</em>jeiωt → linear homogeneous system.
Determinant condition gives two normal-mode frequencies.
Normal Modes
First (symmetric) mode – masses oscillate in phase x<em>1=x</em>2 (middle spring slack). ω<em>1=mk</em>1
Second (antisymmetric) mode – masses opposite phase x<em>1=−x</em>2 (middle spring stretched/compressed). ω<em>2=mk</em>1+2k2
Express general motion as superposition using
q<em>1=x</em>1−x<em>2(fast mode),q</em>2=x<em>1+x</em>2(slow mode)x<em>1=21(q</em>1+q<em>2),x</em>2=21(q<em>2−q</em>1)
Where q<em>1(t)=A</em>1sin(ω<em>1t+ϕ</em>1), q<em>2(t)=A</em>2sin(ω<em>2t+ϕ</em>2).