Presets
Playback
Parameters
Camera
Layers
Quality
Model check
The science
What is modelled
Two point masses hang on rigid, massless rods from a ball-joint pivot. Unlike the flat double pendulum, both rods can swing in any direction, so the motion is three-dimensional. It is a textbook chaotic system: the blue ghost twin begins only 2 millionths of a radian away from the real pendulum, and the two soon part ways.
Equations
- Rod constraints:
|x1| = r1,|x2 − x1| = r2. - Newton with rod tensions:
m1 a1 = m1 g − T1 n1 + T2 n2 − c v1,m2 a2 = m2 g − T2 n2 − c v2, with unit rod directions n1, n2. - Differentiating the constraints twice gives a 2 x 2 linear system for T1, T2:
n1·a1 = −|v1|²/r1,n2·(a2 − a1) = −|v2 − v1|²/r2. No angles are used, so nothing is singular when a rod passes through the vertical. - Energy:
E = ½ m1v1² + ½ m2v2² + g (m1y1 + m2y2); vertical angular momentumLy = Σ m (z vx − x vz). - Linear regime:
M = [[(m1+m2) l1², m2 l1 l2],[m2 l1 l2, m2 l2²]],K = diag((m1+m2) g l1, m2 g l2);ω²are the roots ofdet(K − ω² M) = 0. - Chaos: two copies separated by δ0 drift apart as
δ(t) ≈ δ0 eλ t, λ being the largest Lyapunov exponent; the page estimates it from the live twin gap.
Checks run in the page
- 25 s of the real motion is integrated again from scratch: total energy and rod lengths stay constant to better than 1e-5.
- Vertical angular momentum is conserved to the same tolerance, as expected from rotational symmetry about the vertical axis.
- For small amplitudes the measured period of the slow normal mode matches the eigenvalue formula within 0.5 %.
Honest simplifications
The bobs are point masses on massless, perfectly rigid rods with a frictionless ball joint at each end; real bobs have size, and real rods have mass and moment of inertia. Air drag is a simple linear term c v, adjustable from zero. Integration is fourth-order Runge-Kutta at 960 steps per second, with the tiny constraint drift projected away every step; a chaotic orbit still cannot be predicted beyond a few Lyapunov times in any real instrument.
What to try
- Set both start angles to about 1 degree: the motion becomes regular, and the slow and fast normal periods in the readouts match what you count by eye.
- Choose the Chaotic flip preset and watch the twin gap graph rise roughly as a straight line on its log scale until it saturates.
- Give the system some spin about the vertical axis: Ly stays fixed while the bobs swirl.
- Turn on air drag and watch the total energy decay while the twin gap stops growing.