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 hT = 12\text{ h},
    • Minute-hand T=1 hT = 1\text{ h}).
    • Satellite revolving round Earth.
    • Earth’s own rotation (sidereal day 24 h\approx 24\text{ 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 aa is always directed toward a fixed point (centre of oscillation / equilibrium) and proportional to displacement xx from that point.
      a=ω2xa = -\omega^{2}x
    • Via Newton’s 2nd law F=maF = ma, the restoring force is
      F=mω2x=kx(1)F = -m\omega^{2}x = -kx \qquad (1)
      where k=mω2k = m\omega^{2} is the spring (force) constant.
  • Consequences
    • Restoring force vanishes at equilibrium x=0x = 0.
    • Centre of oscillation = equilibrium position.

Differential Equation & General Solution

  • Starting from F=kxF = -kx:
    md2xdt2+kx=0m\dfrac{d^{2}x}{dt^{2}} + kx = 0
    d2xdt2+ω2x=0(ω2=k/m)\dfrac{d^{2}x}{dt^{2}} + \omega^{2}x = 0 \qquad \big(\omega^{2}=k/m\big)
  • Solution for displacement
    x(t)=Asin(ωt+δ)x(t) = A\sin(\omega t + \delta)
  • Velocity
    v(t)=dxdt=Aωcos(ωt+δ)v(t)=\dfrac{dx}{dt}=A\omega\cos(\omega t+\delta)
  • Acceleration
    a(t)=d2xdt2=Aω2sin(ωt+δ)=ω2x(t)a(t)=\dfrac{d^{2}x}{dt^{2}}=-A\omega^{2}\sin(\omega t+\delta)=-\omega^{2}x(t)

Alternative Derivation via Energy (work–energy)

  • Starting with initial conditions x<em>0,  v</em>0x<em>{0},\;v</em>{0}, integrate vdv=ω2xdxv dv = -\omega^{2}x dx to obtain v2=v<em>02+ω2(x</em>02x2)v^{2}=v<em>{0}^{2}+\omega^{2}\bigl(x</em>{0}^{2}-x^{2}\bigr)
    • Introduce A2=v<em>02ω2+x</em>02A^{2}=\dfrac{v<em>{0}^{2}}{\omega^{2}}+x</em>{0}^{2} giving
      v=ωA2x2v=\omega\sqrt{A^{2}-x^{2}} and, after separation, the usual sine solution.

Parameters

  • Amplitude AA: maximum displacement (takes values ±A\pm A).
  • Time period TT: smallest time after which state repeats.
    • From requirement ω(t+T)+δ=ωt+δ+2π\omega (t+T)+\delta = \omega t + \delta + 2\pi
      T=2πω=2πmk\boxed{T = \dfrac{2\pi}{\omega}} = 2\pi\sqrt{\dfrac{m}{k}}
  • Frequency ν\nu & angular frequency ω\omega:
    ν=1T=ω2π=12πkm\nu = \dfrac{1}{T}=\dfrac{\omega}{2\pi}=\dfrac{1}{2\pi}\sqrt{\dfrac{k}{m}}
  • Phase Φ=ωt+δ\Phi = \omega t+\delta locates particle’s status.
    • Φ=0\Phi=0 ⇒ particle crosses mean position with positive velocity v=Aωv = A\omega.
    • Φ=π2\Phi = \dfrac{\pi}{2} ⇒ particle at positive extreme x=A,  v=0x=A,\;v=0.

Worked Example (Problem 1)

  • Given x=5msin(πs1t+π3)x = 5\,\text{m}\,\sin\Bigl(\pi\,\text{s}^{-1}\,t + \dfrac{\pi}{3}\Bigr).
    • Amplitude A=5mA = 5\,\text{m}.
    • Angular frequency ω=πs1\omega = \pi\,\text{s}^{-1}.
    • Time period T=2ππ=2sT = \dfrac{2\pi}{\pi}=2\,\text{s}.
    • Max speed vmax=Aω=5×π  m/sv_{\text{max}} = A\omega = 5\times \pi\; \text{m/s}.
    • Velocity at t=1st=1\,\text{s}:
      v=Aωcos(π1+π3)=5πcos(4π3)=5π(12)=5π2m/sv = A\omega\cos\Bigl(\pi\cdot1 + \dfrac{\pi}{3}\Bigr)=5\pi\cos\Bigl(\dfrac{4\pi}{3}\Bigr)=5\pi\left(-\dfrac{1}{2}\right)=-\dfrac{5\pi}{2}\,\text{m/s} (toward the centre).

Energy in SHM

  • Potential energy (taking U=0U=0 at x=0x=0):
    U(x)=12kx2=12mω2x2U(x)=\dfrac{1}{2}kx^{2}=\dfrac{1}{2}m\omega^{2}x^{2}
  • Kinetic energy:
    K=12mv2=12mA2ω2cos2(ωt+δ)K=\dfrac{1}{2}mv^{2}=\dfrac{1}{2}mA^{2}\omega^{2}\cos^{2}(\omega t+\delta)
  • Total mechanical energy (constant): E=K+U=12mA2ω2[sin2(ωt+δ)+cos2(ωt+δ)]=12mA2ω2E=K+U=\dfrac{1}{2}mA^{2}\omega^{2}\Bigl[\sin^{2}(\omega t+\delta)+\cos^{2}(\omega t+\delta)\Bigr]=\boxed{\dfrac{1}{2}mA^{2}\omega^{2}}
    • Energy continuously interchanges between UU & KK.

Linear Harmonic Oscillator – Simple Pendulum (small-angle)

  • Tangential equation: md2xdt2=mgsinθm\dfrac{d^{2}x}{dt^{2}} = -mg\sin\theta.
  • For small amplitude sinθθ=x\sin\theta \approx \theta = \dfrac{x}{\ell} giving d2xdt2=gx\dfrac{d^{2}x}{dt^{2}} = -\dfrac{g}{\ell}x.
    • Thus ω=g/\omega = \sqrt{g/\ell} and T=2πgT = 2\pi\sqrt{\dfrac{\ell}{g}}.
  • Same linear SHM form applies.

Damped Oscillations

  • Real systems lose energy to friction / resistance ⇒ amplitude decays.
  • Equation (mass mm, damping coefficient μ\mu, spring constant kk):
    md2xdt2+μdxdt+kx=0m\dfrac{d^{2}x}{dt^{2}} + \mu\dfrac{dx}{dt} + kx = 0
  • Assume trial solution x=Ceαtx = Ce^{\alpha t} leading to characteristic eqn
    α2+2δα+ω<em>02=0\alpha^{2} + 2\delta \alpha + \omega<em>{0}^{2}=0 with δ=μ2m,ω</em>0=km\delta = \dfrac{\mu}{2m}, \quad \omega</em>{0}=\sqrt{\dfrac{k}{m}}.

Three Regimes

  1. Overdamped (\delta > \omega_{0})
    • Two negative real roots α<em>1,2=δ±δ2ω</em>02\alpha<em>{1,2}= -\delta \pm \sqrt{\delta^{2}-\omega</em>{0}^{2}}.
    • Displacement: x(t)=eδt(C<em>1eλt+C</em>2eλt)x(t)=e^{-\delta t}\bigl(C<em>{1}e^{\lambda t}+C</em>{2}e^{-\lambda t}\bigr) with λ=δ2ω02\lambda = \sqrt{\delta^{2}-\omega_{0}^{2}}.
    • No oscillation; system returns exponentially to equilibrium.
  2. Critically damped (δ=ω0)(\delta = \omega_{0})
    • Double root α=δ\alpha = -\delta.
    • Solution: x(t)=eδt(C<em>1+C</em>2t)x(t)=e^{-\delta t}(C<em>{1}+C</em>{2}t).
    • Fastest non-oscillatory return to equilibrium.
  3. Underdamped (\delta < \omega_{0})
    • Complex roots α=δ±iωˉ\alpha = -\delta \pm i\bar\omega where ωˉ=ω02δ2\bar\omega = \sqrt{\omega_{0}^{2}-\delta^{2}}.
    • Solution (decaying sinusoid):
      x(t)=Aeδtcos(ωˉt+ϕ)x(t)=Ae^{-\delta t}\cos(\bar\omega t + \phi).
    • Amplitude drops exponentially.
  • Qualitative plots (Page 17) compare displacement vs time for the three cases.

Forced (Driven) Oscillations

  • External periodic force f0sinωtf_{0}\sin\omega t supplies energy, compensating damping.
  • Equation:
    d2xdt2+2δdxdt+ω<em>02x=f</em>0msinωt\dfrac{d^{2}x}{dt^{2}}+2\delta\dfrac{dx}{dt}+\omega<em>{0}^{2}x = \dfrac{f</em>{0}}{m}\sin\omega t
  • Motion has two phases
    1. Transient phase – natural frequency ω0\omega_{0}; dies out due to damping.
    2. Persistent (steady-state) phase – oscillates at driving frequency ω\omega with constant amplitude.

Steady-State Solution

  • Assume x=asin(ωtΦ)x = a\sin(\omega t - \Phi).
  • Substitute to obtain algebraic relations
    a(ω<em>02ω2)=f</em>0cosΦa(\omega<em>{0}^{2}-\omega^{2}) = f</em>{0}\cos\Phi
    2δaω=f0sinΦ2\delta a\omega = f_{0}\sin\Phi
  • Amplitude
    a=f<em>0(ω</em>02ω2)2+(2δω)2\boxed{a = \dfrac{f<em>{0}}{\sqrt{(\omega</em>{0}^{2}-\omega^{2})^{2} + (2\delta\omega)^{2}}}}
  • Phase lag
    tanΦ=2δωω02ω2\tan\Phi = \dfrac{2\delta\omega}{\omega_{0}^{2}-\omega^{2}}.
  • Special features
    • Resonance: amplitude maximal when ωω<em>022δ2\omega \approx \sqrt{\omega<em>{0}^{2}-2\delta^{2}} (≈ ω</em>0\omega</em>{0} for weak damping).
    • Phase passes from 00 (low ω\omega) through 9090^{\circ} at resonance to 180180^{\circ} (high ω\omega).
  • Full solution = transient + steady; textbook wrote
    x(t)=Aheδtsin(ωˉt+φ)+asin(ωtΦ)x(t)=A_{h}e^{-\delta t}\sin(\bar\omega t+\varphi)+a\sin(\omega t-\Phi).

Two-Body (Coupled) Harmonic Motion

  • System: two equal masses mm connected by three springs (end springs k<em>1k<em>{1}, middle spring k</em>2k</em>{2}).
  • Equations of motion (about points A & B):
    mx¨<em>1+(k</em>1+k<em>2)x</em>1k<em>2x</em>2=0(1)m\ddot x<em>{1} + (k</em>{1}+k<em>{2})x</em>{1} - k<em>{2}x</em>{2} = 0 \qquad (1)
    mx¨<em>2+(k</em>1+k<em>2)x</em>2k<em>2x</em>1=0(2)m\ddot x<em>{2} + (k</em>{1}+k<em>{2})x</em>{2} - k<em>{2}x</em>{1} = 0 \qquad (2)
  • Assume x<em>j=A</em>jeiωtx<em>{j}=A</em>{j}e^{i\omega t} → linear homogeneous system.
  • Determinant condition gives two normal-mode frequencies.

Normal Modes

  1. First (symmetric) mode – masses oscillate in phase x<em>1=x</em>2x<em>{1}=x</em>{2} (middle spring slack).
    ω<em>1=k</em>1m\omega<em>{1}= \sqrt{\dfrac{k</em>{1}}{m}}
  2. Second (antisymmetric) mode – masses opposite phase x<em>1=x</em>2x<em>{1}=-x</em>{2} (middle spring stretched/compressed).
    ω<em>2=k</em>1+2k2m\omega<em>{2}= \sqrt{\dfrac{k</em>{1}+2k_{2}}{m}}
  • Express general motion as superposition using q<em>1=x</em>1x<em>2(fast mode),q</em>2=x<em>1+x</em>2  (slow mode)q<em>{1}=x</em>{1}-x<em>{2} \quad (\text{fast mode}),\quad q</em>{2}=x<em>{1}+x</em>{2}\;(\text{slow mode})x<em>1=12(q</em>1+q<em>2),  x</em>2=12(q<em>2q</em>1)x<em>{1} = \tfrac{1}{2}(q</em>{1}+q<em>{2}), \; x</em>{2}=\tfrac{1}{2}(q<em>{2}-q</em>{1})
    • Where q<em>1(t)=A</em>1sin(ω<em>1t+ϕ</em>1)q<em>{1}(t)=A</em>{1}\sin(\omega<em>{1}t+\phi</em>{1}),
      q<em>2(t)=A</em>2sin(ω<em>2t+ϕ</em>2)q<em>{2}(t)=A</em>{2}\sin(\omega<em>{2}t+\phi</em>{2}).

Forced Harmonic Oscillator – Compact Summary (Page 28)

  • Generic differential form with linear viscous damping bb:
    mx¨+bx˙+kx=F0sin(ωt)m\ddot x + b\dot x + kx = F_{0}\sin(\omega t)
  • Solution structure x(t)=A<em>heγtsin(ω</em>ht+ϕ)+A<em>pcos(ωt+ϕ</em>p)x(t)=A<em>{h}e^{-\gamma t}\sin(\omega</em>{h}t+\phi) + A<em>{p}\cos(\omega t + \phi</em>{p})
    • AheγtA_{h}e^{-\gamma t}\,\dots → transient.
    • A<em>pcos(ωt+ϕ</em>p)A<em>{p}\cos(\omega t+\phi</em>{p}) → steady state.

Motion of a Linear Harmonic Oscillator – Alternate Pendulum Derivation (Page 34)

  • Start from polar form: torque equation τ=mgsinθL\tau = -mg\sin\theta \cdot L with angular acceleration α\alpha.
  • For small θ\theta:
    Lα=gθθ¨+gLθ=0L\alpha = -g\theta \quad \Rightarrow \quad \ddot\theta + \dfrac{g}{L}\theta = 0.
  • Identical to simple pendulum result above.

Consolidated Formula Sheet

  • SHM: x=Asin(ωt+δ),  v=Aωcos(ωt+δ),  a=ω2xx=A\sin(\omega t+\delta),\;v=A\omega\cos(\omega t+\delta),\;a=-\omega^{2}x.
  • ω=k/m,  T=2π/ω,  ν=1/T\omega = \sqrt{k/m}, \; T=2\pi/\omega, \; \nu=1/T.
  • Energy: E=12mA2ω2E=\tfrac{1}{2}mA^{2}\omega^{2}.
  • Damped: mx¨+2δmx˙+kx=0m\ddot x + 2\delta m \dot x + kx = 0 with δ=μ/2m\delta=\mu/2m.
  • Forced: mx¨+2δmx˙+kx=f0sinωtm\ddot x + 2\delta m \dot x + kx = f_{0}\sin\omega t.
  • Steady amplitude: a=f<em>0/(ω</em>02ω2)2+(2δω)2a = f<em>{0}/\sqrt{(\omega</em>{0}^{2}-\omega^{2})^{2}+(2\delta\omega)^{2}}.
  • Phase lag: tanΦ=2δω/(ω02ω2)\tan\Phi = 2\delta\omega/(\omega_{0}^{2}-\omega^{2}).
  • Coupled masses: ω<em>1=k</em>1/m,  ω<em>2=(k</em>1+2k2)/m\omega<em>{1}=\sqrt{k</em>{1}/m},\;\omega<em>{2}=\sqrt{(k</em>{1}+2k_{2})/m}.

Conceptual & Practical Notes

  • Oscillations and waves underpin numerous physical systems: clocks, seismology, AC circuits.
  • Damping models energy dissipation; critical damping used in door closers & automotive suspensions.
  • Forced oscillations and resonance explain bridge collapses (Tacoma Narrows) and tuning of musical instruments.
  • Coupled oscillators form basis of molecular vibrations and phonons in solids.
  • Ethical engineering: ensure structures avoid dangerous resonances; design damping appropriately.