Simple harmonic motion is the most reused model in physics: any system with a linear restoring force, displaced slightly from equilibrium, oscillates this way. Pendulums, springs, LC circuits and molecules all share the same equation.
This simulator takes the two constants that define a mass–spring system — stiffness and mass — and derives the period, the peak velocity and acceleration, and the energy stored at the amplitude.
One equation, many systems
Write the restoring force as F = −kx and Newton’s second law gives ẍ + (k/m)x = 0. The solution is a sinusoid with ω = √(k/m), and that square root is the whole content of the model.
The same equation appears for a pendulum (with k/m replaced by g/L), for a floating body (buoyancy as the restoring force) and for an LC circuit (charge oscillating between capacitor and inductor). Learning one is learning all of them.
Why the period ignores amplitude
A larger amplitude means a larger distance to cover, but also a proportionally larger force and therefore a larger acceleration. The two effects cancel exactly, so the period depends only on m and k.
That cancellation holds only while the force stays linear. Push a spring past its elastic limit, or swing a pendulum past about 20°, and the period starts to depend on amplitude — the isochronism is an approximation, not a law.
Energy in the oscillation
The energy sloshes between kinetic and potential twice per cycle, at twice the oscillation frequency. That doubling matters when you are measuring vibration: an accelerometer spectrum shows the energy peak at 2f, not f.
| Quantity | Expression | At amplitude A |
|---|---|---|
| Kinetic energy | ½mv² | zero at the extremes |
| Potential energy | ½kx² | maximum at the extremes |
| Total energy | ½kA² | constant |
| Maximum velocity | Aω | at the centre |
| Maximum acceleration | Aω² | at the extremes |
Where the model fails
Real springs have mass, so part of the kinetic energy is in the spring itself — the usual correction adds one third of the spring mass to the suspended mass. Damping removes energy, so the amplitude decays and the damped frequency is slightly lower.
Large deflections take the spring outside its linear range, and coil springs can surge internally at frequencies unrelated to the fundamental. At that point a single-degree-of-freedom model is no longer adequate.
Frequently asked questions
Does a heavier mass oscillate faster or slower?
Slower — period scales with √m. Doubling the mass multiplies the period by about 1.41, because more inertia has to be accelerated by the same spring force.
Why does the static deflection predict the period?
Because at equilibrium mg = kδ, so k/m = g/δ, giving T = 2π√(δ/g). Measure the sag and you have the period without knowing either k or m.
Is a pendulum simple harmonic?
Only for small angles, where sin θ ≈ θ. Beyond roughly 20° the period lengthens noticeably, and beyond 90° the motion is not sinusoidal at all.
What does damping do to the period?
It slightly lengthens it, and it makes the amplitude decay exponentially. Lightly damped systems are almost unaffected; near critical damping the concept of a period stops being useful.