Differential Equations · Simple harmonic motion

Simple harmonic motion

Simple harmonic motion is motion under a restoring force proportional to displacement, x″ = −ω²x. Its state (x, v/ω) turns at the constant rate ω, so every swing takes the same time, however far it goes.

01

Simple harmonic motion in this visualization

Simple harmonic motion is the motion of a mass under a restoring force proportional to its displacement: mx′′=−kxm x'' = -k x, or x′′=−ω2xx'' = -\omega^2 x with ω=k/m\omega = \sqrt{k/m}. Every solution is x=Acos⁡(ωt−φ)x = A\cos(\omega t - \varphi), and its period T=2π/ωT = 2\pi/\omega does not depend on the amplitude A. It is also often written x=Asin⁡(ωt+φ)x = A\sin(\omega t + \varphi), with another phase. The page shows why, for a mass on a spring, and compares a pendulum.

The state turns: (x, v/ω) moves perpendicular to its radius at ω times its length
ddt(xv/ω)=(va/ω)=ω(v/ω−x),A=x02+(v0/ω)2,E=12k (x2+(v/ω)2)=12kA2\frac{d}{dt}\begin{pmatrix} x \\ v/\omega \end{pmatrix} = \begin{pmatrix} v \\ a/\omega \end{pmatrix} = \omega\begin{pmatrix} v/\omega \\ -x \end{pmatrix}, \qquad A = \sqrt{x_0^2 + (v_0/\omega)^2}, \qquad E = \tfrac12 k\,(x^2 + (v/\omega)^2) = \tfrac12 kA^2

The three layers share one x axis. On the phase plane the state is the point (x, v/ω). Its velocity there has two parts, v across and a/ω = −ωx up or down; together they are always perpendicular to the radius and ω times as long, so every point of the plane turns about the centre at the same rate ω, like a record. The mass on the rail is the point's shadow on the x axis, which is why x is a cosine; the distance from the centre is the amplitude, the direction is the phase, and the radius squared times ½k is the energy — the spring's share is ½kx², the motion's ½k(v/ω)². Dividing v by ω is what makes the orbit a circle: with v itself it would be an ellipse, and the point would not turn evenly. The paper tape under the plane records x against time, ticked every 0.1 s, with a mark at each zero crossing; crossings come every T/2 whatever the amplitude, and a second oscillator's marks line up with the first one's.

The pendulum obeys s′′=−gsin⁡(s/L)s'' = -g\sin(s/L) with arc length s=Lθs = L\theta: the force is not proportional to s, so the motion is not simple harmonic. Its energy curves on the plane (s, ṡ/ω₀) are ovals, not circles, and its period grows with the swing, T=T0/AGM(1,cos⁡(θmax⁡/2))T = T_0/\mathrm{AGM}(1, \cos(\theta_{\max}/2)), about T0(1+θmax⁡2/16)T_0(1 + \theta_{\max}^2/16) for a small swing θmax⁡\theta_{\max} in radians, where T0=2πL/gT_0 = 2\pi\sqrt{L/g}. Here θmax⁡\theta_{\max} is the swing set by the energy; it equals the start angle only when the bob starts at rest. The pendulum's tape is a numerical solution, checked against that exact period; the spring's is the exact solution. Past the dashed separatrix a pendulum goes over the top; this page keeps the swing within 170°.

02

Things to notice

  • A force proportional to displacement makes every swing take the same time; the pendulum is the contrast, where the small-angle approximation fails. Isochronous motions with other forces exist — Huygens's cycloidal pendulum (1673) is one, its force proportional to the arc length — so the page does not claim the converse.
  • The flow arrows are the point's velocity on the plane, drawn at one scale (written beside them): longer further out, yet turning at the same rate. With a pendulum the arrows are not perpendicular to the radius, and the rate of turning about the centre changes along the oval.
  • Changing k, m or L keeps the start point on the plane (amplitude and phase), so the initial velocity in m/s is rescaled with ω; the record before the change stays as a faint ghost for comparison.
03

Controls

  • Drag the state point anywhere inside the largest circle (the axes catch it at rest or at the centre), or drag the mass or the bob to start from rest. Play runs real time — one second is one second — and stops on a second press; the readouts refresh four times a second.
  • Presentation mode opens a full-screen view: Space plays and stops, ← → start from rest nearer or further, H hides the periods and crossing times.
04

Related