A mass m on a spring with stiffness k, free to move along one axis, displaced from equilibrium by a small amount x(t). The spring exerts a restoring force −kx. Newton’s second law gives
mx¨=−kx.
Divide by m, define ω02≡k/m, and write the equation in canonical form:
x¨+ω02x=0.
This is the equation of simple harmonic motion — SHM. Its general solution is
x(t)=Acos(ω0t)+Bsin(ω0t)=Xcos(ω0t+φ),
with A, B, X, φ determined by initial conditions. The motion is exactly sinusoidal, with angular frequencyω0=k/m (radians per second), frequencyf0=ω0/2π (cycles per second, hertz), and periodT0=1/f0=2π/ω0.
▶Why try $x = X \cos(\omega t + \varphi)$ and where $\omega_0 = \sqrt{k/m}$ comes from
The ODE is second-order, linear, with constant coefficients. The standard trick is to guess x(t)=eλt, substitute, and solve for λ:
λ2eλt+ω02eλt=0⟹λ2=−ω02⟹λ=±iω0.
Two complex roots ±iω0. The general solution is
x(t)=C+eiω0t+C−e−iω0t.
For real x we need C−=C+∗, which gives x(t)=2Re[C+eiω0t]=Xcos(ω0t+φ) with C+=21Xeiφ. Identifying ω02=k/m from the original equation closes the derivation.
Energy
The mechanical energy is
E=21mx˙2+21kx2,
kinetic plus potential. Substituting x=Xcos(ω0t+φ), x˙=−Xω0sin(ω0t+φ):
E=21mX2ω02sin2(⋯)+21kX2cos2(⋯)=21kX2,
using mω02=k and sin2+cos2=1. The total energy is constant — as it must be for a frictionless system — and proportional to the amplitude squared. Energy sloshes between kinetic and potential at twice the oscillation frequency, but the sum stays put.
Why this matters for sound
Every acoustic mode is a simple harmonic oscillator. The wave equation in a bounded domain (a tube, a room, a cavity) separates into a sum of mode amplitudes, each obeying a¨n+ωn2an=0. The frequencies ωn are determined by the geometry and boundary conditions; the dynamics of each mode is exactly what we have here. SHM is the atomic unit of linear acoustics.
It is also a strong simplification. Real systems lose energy to friction and gain energy from forcing. We add those next.