Mass on a Spring: SHM

Set the mass, the spring and the amplitude. The three graphs show how displacement, velocity and acceleration are linked.

Period T
Frequency f
Max speed
Max acceleration
Total energy
Now: x, v, a

Set the spring

Try this

  • Change the amplitude only. Does the period change?
  • Quadruple the mass. By what factor does the period change?
  • Pause at the centre and at the ends. Where is the speed largest? Where is the acceleration largest?
  • Compare the three graphs. Velocity is ahead of displacement by a quarter cycle, and acceleration is opposite to displacement.

The equations

a = −(k/m) x = −ω² x
x = A cos ωt    v = −Aω sin ωt
T = 2π √(m / k)    f = 1/T
E = ½ k A² = ½ m v² + ½ k x²

The spring is ideal and there is no friction, so the motion never dies away. The mass starts at +A at the moment you press Restart.