Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Pendulum & springs lab

Watch a pendulum swing and a spring bounce with real physics: damping, energy, exact large-swing period, pendulum length for a period and resonance.

The animation needs a browser that can draw.

How to use

  1. Pendulum: set the length, how far it starts from straight down, and some damping (air resistance) if you like. Press Play. The bars show energy moving between height and motion.
  2. Spring: set the mass, how stiff the spring is, the damping and how far it is pulled down. The line on the right traces the bounce over time.
  3. Length for a period: type how long one full swing should take and get the pendulum length, for example for a clock.
  4. Resonance: see how a damped spring system answers to shaking at different speeds, and when a soft mount starts to block vibration.

Keyboard and touch

Tab then EnterUse Play, Start again and the lab buttons
Enter in a boxApply the new number

Tips

  • Try 10° and then 90° with the same length: the big swing is slower. The usual school formula is only exact for small swings.
  • The mass of a pendulum bob does not change its period, but the mass on a spring does.
  • A pendulum of about 0.994 m on Earth beats once a second (a 2-second period): the classic "seconds pendulum".
  • Set damping so the ratio ζ is 1 to see critical damping, the fastest way back without overshooting. Car shock absorbers are set somewhat below that.
  • Slow motion makes the energy bars easy to follow.

About this lab

The motion is worked out step by step with the full equations (θ″ = −(g/L) sin θ − bθ′ for the pendulum, x″ = −(k/m)x − (c/m)x′ for the spring) using the 4th-order Runge–Kutta method with steps of 2 ms or less, so large swings behave as they really do. The exact large-swing period comes from the arithmetic–geometric mean: T = 2π√(L/g) ÷ AGM(1, cos(θ₀/2)).

The resonance curves are the standard results for a damped mass–spring system: the swing grows most near r = 1, and shaking is only reduced (transmissibility below 1) above r = √2. The pendulum is treated as a point mass on a light rod, without friction at the pivot except the damping you set. Standard gravity is the NIST value; Moon, Mars and Jupiter values are from NASA fact sheets.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product