Pull the mass and let go — the spring swings it along a sinusoid. Turn the stiffness and the mass, fly to the Moon or into weightlessness, switch on the drag of the medium — and see the main thing: the period T = 2π√(m/k) depends neither on the size of the swing nor on the acceleration of gravity.
Pull the mass — the spring resists and pulls it back; compress it — the spring pushes it out. The farther you pull, the harder it pulls: F = −kx. The “minus” means that the force always points to the equilibrium position, where the mass “wants” to return.
Toward equilibrium the mass speeds up, and at equilibrium the force is zero — but the speed is greatest there, so the mass flies on by inertia. Now the spring brakes it from the other side, it stops at the extreme point (force greatest, speed zero) and goes back. Meanwhile the energy flows: Ep ⇄ Ek.
The time of one swing T = 2π√(m/k) does not depend on how far the mass was pulled: pulled farther, it speeds up more, and the time is the same. A heavy mass swings slower, a stiff spring faster. The period does not depend on g either: on the Moon and in weightlessness it is the same.
The curves are built from exact formulas. The bright part is what has already happened, the pale one is what will happen; the vertical dashed line is “now”. The colours match the scene: orange is Ep, green is Ek, red is the heat Q.
Any change of the parameters releases the mass from rest again. The motion is computed from exact formulas, so the period and the amplitude never drift, whatever the frame rate.
The time of one full swing depends only on the mass and the stiffness — not on the amplitude and not on g
ω is how many radians the phase covers per second; f is how many full swings per second
Displacement follows a cosine, velocity a sine (a quarter of a period ahead), acceleration is the displacement with the opposite sign
The force is proportional to the displacement and always points toward the equilibrium position
Gravity only shifts the equilibrium position: oscillations about it obey the same law F = −kx
The total energy of the oscillation is constant: potential turns into kinetic and back
The drag of the medium damps the oscillations: the swing decays exponentially and the energy goes into heat
A spring pendulum is a mass m on a spring of stiffness k. Pull the mass away from the equilibrium position by a distance x — and the spring pulls it back with the force F = −kx (Hooke's law). The minus sign means the force always points toward equilibrium, and its size grows with the displacement. By Newton's second law ma = −kx, that is a = −(k/m)·x: the acceleration is proportional to the displacement and opposite in sign. Such motion is called simple harmonic motion, and its solution is x(t) = A·cos(ωt), where ω = √(k/m).
Why does the swing happen about the equilibrium position and not about the free length of the spring? Because gravity mg acts on the mass too. It stretches the spring by Δl = mg/k, and the mass rests where mg = kΔl — that is the equilibrium position. Displace the mass by a further x: the net force is mg − k(Δl + x) = −kx. Gravity has “hidden” inside the equilibrium position, and the oscillation obeys the same law as without it. This is why the period does not depend on g: on the Moon the spring sags less, on Jupiter more, in weightlessness not at all — and the mass swings with the same T.
In the simulator you can see how the force and the velocity “swap places”. At the extreme points x = ±A the force F = kA is greatest and the velocity is zero — all the energy is stored in the spring, Ep = kA²/2. At the equilibrium position x = 0 the force is zero, but the velocity is greatest — |v| = Aω — and all the energy is kinetic, Ek = mv²/2. The mass flies through equilibrium by inertia, the spring starts braking it from the other side — and everything repeats. The sum Ep + Ek = kA²/2 never changes (Ep = kx²/2 is the energy of the spring and gravity together, counted from the equilibrium position).
The key fact of this page is isochronism: the period T = 2π√(m/k) does not depend on the amplitude. Pull the mass twice as far — it travels twice as far, but its speed is twice as big too, and one swing takes the same time. The “Compare” mode shows this literally: two masses with amplitudes A and A/2 reach equilibrium and the extreme points at the very same instant. A mass four times bigger makes the period twice as long, a stiffness four times bigger makes it twice as short: that is the root in the formula. The motion on this page is computed not by numerical integration but by exact formulas, so the period cannot drift at any frame rate.
If the medium resists (air, oil, honey), the oscillation dies out. The amount of damping is described by the dimensionless number ζ = b/(2√(km)). For ζ < 1 the mass swings but the swing shrinks — the energy goes into the heat Q. At ζ = 1 (critical damping) the mass returns to equilibrium fastest without overshooting it — this is how door closers and car shock absorbers work. For ζ > 1 there is no oscillation at all: the mass creeps slowly to equilibrium. The balance Ep + Ek + Q = E₀ holds at every moment.
For comparison open the “Energy conservation: mathematical pendulum” simulator: there the period T = 2π√(l/g) depends on g, and at large angles on the amplitude too. A spring pendulum is different: neither g nor the amplitude affects the period.
First come simulators and problems from this very chapter, then closely related topics of the section.
Mechanics · Motion
Mechanics · Energy
Mechanics · Energy
Mechanics · Momentum
Mechanics · Circular Motion
Electricity · Electrostatics