Home/Laboratories/Pendulum & SHM Lab
Interactive experiment — complete Module G · Oscillations & Waves

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.

Exact equation of motion (used by this lab)θ̈ = −(g/L) sin θ
Small-angle periodT₀ = 2π √(L/g)
Series-corrected period for amplitude θ₀T ≈ T₀ (1 + θ₀²/16 + 11θ₀⁴/3072)
Maximum speed (at the bottom)vmax = √(2 g L (1 − cos θ₀))

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

Ready

Angle vs time

Controls

Live measurements

Period T₀ (small angle)
—
Period T (amplitude-corrected)
—
Frequency f
—
Current angle θ
—
Max speed vmax
—

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.

s

Experiment completion

Run the four classic investigations — vary L, θ₀, m and g — then pass the quiz.

Where to go next