Pendulum & SHM Lab
A pendulum integrated with the full nonlinear equation (RK4), so it is honest even at large angles. Change length, release angle, mass and gravity — and discover that only two of them matter.
Learn the physics first
A pendulum is nearly the perfect harmonic oscillator: gravity pulls the bob back toward the lowest point with a force proportional to sin θ, and for small angles sin θ ≈ θ (in radians). That is exactly the condition for simple harmonic motion, which is where the famous period formula comes from.
Model assumptions. Massless rigid rod/string of length L, point-mass bob, frictionless pivot, no air resistance. The displayed motion is numerically integrated from the exact equation with RK4 at 240 steps per second — energy conservation is verified in the unit tests to better than 0.1% over 10 s. The mass slider changes only the bob’s drawn size: check the period panel and prove to yourself that mass does nothing.
Experiment
Angle vs time
Controls
Live measurements
Mass appears nowhere in the period — the slider only changes the drawn bob. Try it: slide m from 0.1 kg to 5 kg and watch T₀ not move.
Understand
Predict before you release
Recommended settings: L = 1.00 m, g = 9.81 m/s². Predict the small-angle period T₀ = 2π√(L/g), then check — and compare it with the amplitude-corrected value at your release angle.
Experiment completion
Run the four classic investigations — vary L, θ₀, m and g — then pass the quiz.
Where to go next
- Oscillations & Waves lesson
- Circular Motion Lab — the other side of SHM
- Work & Energy Lab