OPEN LAB/MOTION STUDIES
INTERACTIVE PHYSICS

THE MECHANICS OF A SWING

The Pendulum Period Laboratory

Change the conditions. Watch the motion. Test the mathematics behind every swing.

IDEAL PENDULUM
LIVE MODEL
RUNNING·DRAG THE BOB TO SET AN ANGLE
ILLUSTRATIVE SCALE
GRAVITY FIELD ↓
IDEAL CONDITIONS
Rigid rod Recent path Centre of mass Drawing is scaled for clarity, not to physical dimensions.
ANGLEILLUSTRATIVE
8.0°
From the vertical reference
ANGULAR SPEEDILLUSTRATIVE
0.00rad/s
Rate of angular change
MECHANICAL ENERGYILLUSTRATIVE
0.00J
Kinetic plus gravitational
ELAPSED TIMEILLUSTRATIVE
0.00s
Model time, not wall-clock time

MEASURE THE RHYTHM

Experiment vs theory

COLLECTING DATA

The model times two upward centre crossings, then compares that measured period with the nonlinear pendulum equation.

MEASURED PERIOD ILLUSTRATIVE · FROM MOTION—
↔
NONLINEAR THEORY TEXTBOOK · ELLIPTIC INTEGRAL2.01 s
RELATIVE DIFFERENCE · ILLUSTRATIVEWaiting for a complete cycle

MODEL VALIDATION

Three independent checks

LIVE COMPARISONS
A
Small-angle textbook periodMeasured period vs. T₀ = 2π√(L/g)
—Awaiting measurement
B
Nonlinear period integralMeasured period vs. textbook elliptic integral
—Awaiting measurement
C
Mechanical energy conservationCurrent energy vs. initial energy
0.000%Within tolerance

References are textbook equations; inputs, readings, percentage differences and tolerance thresholds are illustrative. The small-angle check is expected to fail for wide swings.

BEHIND THE MOTIONThe scienceEXPAND +

From a restoring torque to a measured period

A pendulum is a mass suspended at a distance from a pivot. Gravity supplies a restoring torque, pulling the bob towards its lowest point. The model integrates the nonlinear equation directly rather than replacing the sine of the angle with the angle itself.

GOVERNING EQUATION · TEXTBOOKθ̈ = −(g/L) sin θ

The angular acceleration depends on the sine of the instantaneous angle.

MECHANICAL ENERGY · TEXTBOOKE = ½mL²ω² + mgL(1 − cos θ)

Kinetic and gravitational potential energy exchange while their sum remains constant.

SMALL-ANGLE PERIOD · TEXTBOOKT₀ = 2π√(L/g)

This approximation follows when sin θ is close to θ, with θ measured in radians.

FINITE-AMPLITUDE PERIOD · TEXTBOOKT = 4√(L/g) K(sin(θmax/2))

K is the complete elliptic integral of the first kind. The calculation uses its arithmetic-geometric mean form.

How the experiment is computed

The state is angle and angular velocity. A fixed time step of 1/240 s is advanced with a fourth-order Runge–Kutta integrator. The measured period is obtained from two successive upward crossings of the vertical centre line, with interpolation between integration steps. The initial turning angle is derived from total energy, so an initial push is included in the theoretical reference.

What the model leaves out

The rod is rigid and massless, the bob is treated as a point mass, the pivot has no friction, and air resistance is ignored. The display is a scaled drawing, not a dimensional engineering drawing. Real pendulums lose energy and may have small pivot or support motion; this idealisation isolates the relationship between gravity, length, amplitude and period.

This is an independent educational simulation and is not affiliated with a museum, university, or scientific institution.

Made with 🤖 ChatGPT