Math

Double Pendulum

Two connected pendulums obey simple physics but produce chaotic motion. Watch the second bob trace a trail, then reset and change the starting angle.

8 minLevel 3/3The interactive stage stays ad-free.
Energy8.1Trail901θ₁-88°θ₂-75°

The lower bob leaves a fading trail. The system is deterministic, but tiny changes in the starting angles produce completely different paths. Energy should stay roughly constant; drift is numerical error from the integrator.

What you are seeing

1

Each pendulum has an angle and angular velocity. Gravity and the coupling between the rods determine the accelerations.

2

The equations are nonlinear, so the motion is not a simple sum of sine waves.

3

Nearby initial states separate exponentially, which is why long-term prediction is impossible even though the system is deterministic.

Why it matters

The double pendulum is a classic demonstration of chaos. It connects mechanics, differential equations, numerical simulation, and the limits of prediction.

Complexity & details

Each RK4 step costs O(1). Simulating T seconds with step h costs O(T/h).

Frequently asked questions

Is the motion truly random?+

No. It is deterministic. Chaos means sensitive dependence on initial conditions, not randomness.

Why use RK4?+

RK4 is a fourth-order numerical integrator with much smaller error than Euler for the same step size, which keeps the chaotic simulation stable.