Simple harmonic motion in this visualization
Simple harmonic motion is the motion of a mass under a restoring force proportional to its displacement: , or with . Every solution is , and its period does not depend on the amplitude A. It is also often written , with another phase. The page shows why, for a mass on a spring, and compares a pendulum.
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 with arc length : 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, , about for a small swing in radians, where . Here 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°.
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.
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.
Related
- C02Sine and cosine
- G05Damping
- G06ResonancePlanned
- G07Phase portraitPlanned
Further reading: Wikipedia: Simple harmonic motion; OpenStax, University Physics Volume 1, 15.1 Simple Harmonic Motion; Wikipedia: Pendulum (mechanics).