About
Pull the bob aside and let go, time the swings with a stopwatch, and find how the period depends on length, angle and gravity.
How a simple pendulum works
A simple pendulum is a small heavy bob on a light string that swings under gravity. For small angles its period is T = 2π√(L/g): it grows with the square root of the length, falls with the square root of gravity and does not depend on the mass. For larger angles the period gets longer, and the exact value needs an elliptic integral.
In this virtual lab you do what a student does at a real bench: time several swings with a stopwatch that has a 0.01 s least count, read the length on a ruler, record the numbers, plot T against L with error bars and estimate g. Switch to the Moon or Mars and see the swing slow down.
Steps
0 of 6 done
Formulas
Model and assumptions
The bob is a point mass on a rigid, massless support of length L in a uniform field g. It obeys θ″ = −(g/L) sin θ − (b/m) θ′ − (kL/m)|θ′|θ′. The sine is never replaced by the angle itself.
- The bob is a point mass. Its size only sets the area for air drag (a lead sphere of the chosen mass); a warning appears when it is too big for that.
- The string is massless, inextensible and always taut, so the model is a rigid rod. Above 90° a real string would go slack.
- Gravity is uniform, the pivot is fixed and the motion stays in one vertical plane: no Earth rotation, no Foucault effect.
- Air drag, when on, is the quadratic drag of a smooth sphere (Cd = 0.47, air density 1.225 kg/m³). Viscous drag is linear in speed. Buoyancy and added mass are ignored.
- Without drag the energy is conserved. The integrator is symplectic (velocity Verlet, 1 ms step), so the energy does not drift: under 0.1 % over one simulated hour (tested). With drag, RK4 with a divergence guard is used.
- The period marked exact is T = 4√(L/g)·K(sin(θ₀/2)), with K the complete elliptic integral of the first kind. The simulation agrees with it within 0.1 % (tested). The small-angle formula T = 2π√(L/g) is shown only for comparison.
- Instruments: the stopwatch reads to 0.01 s, the ruler to 1 mm and the protractor to 1°. With noise on, each stopwatch reading gets a seeded random error of 0.05 s (reaction time). The same seed gives the same numbers.
Valid range of each quantity
| Quantity | Valid range | Default |
|---|---|---|
| Gravity g | 1 – 25 m/s² | 9.81 m/s² |
| String length L | 0.2 – 2 m | 1 m |
| Release angle θ₀ | 1 – 170 ° | 30 ° |
| Bob mass m | 50 – 1,000 g | 200 g |
| Viscous drag b | 0 – 0.1 N·s/m | 0 N·s/m |
References
- Abramowitz and Stegun, Handbook of Mathematical Functions, sections 17.3 and 17.6 (complete elliptic integrals, arithmetic-geometric mean).
- NASA Planetary Fact Sheets: surface gravity of the Moon 1.62 m/s² and of Mars 3.71 m/s².
- CGPM 1901: standard gravity 9.80665 m/s² (BIPM, The International System of Units, SI Brochure).
- J. R. Taylor, An Introduction to Error Analysis, chapters 2 and 8 (reading uncertainty, weighted line fit).
Quiz
FAQ
Frequently asked questions
How does the period of a pendulum depend on its length?
The period grows with the square root of the length: T = 2π√(L/g) for small angles. Quadrupling the length doubles the period, and a graph of T² against L is a straight line with slope 4π²/g.
Does the mass of the bob change the period?
Not without drag: the mass cancels out of the equation of motion. With air drag a lighter bob of the same material loses amplitude faster, because drag acts on a smaller mass.
Why does a large release angle make the period longer?
The restoring force is proportional to sin θ, which is smaller than θ. The bob is pulled back less than the small-angle formula assumes, so each swing takes longer: about 7 % longer at 60°.
How can a pendulum measure the acceleration of gravity?
Time many swings for several lengths, plot T² against L and fit a straight line. Then g = 4π² divided by the slope. Timing 10 or 20 swings instead of one cuts the relative error of the stopwatch reading.
How accurate is this simulation?
It solves the full nonlinear equation with a symplectic integrator. The period agrees with the exact elliptic-integral value within 0.1 %, and without drag the energy changes by less than 0.1 % over a simulated hour. Both limits are checked by automated tests.
Measurements
| # | L (m) | θ₀ (°) | g (m/s²) | N | t (s) | T ± ΔT (s) | |
|---|---|---|---|---|---|---|---|
| No measurements yet. Record one from the Controls tab. | |||||||