← All tools · 한국어

Double pendulum

Two identical pendulums, one millionth of a degree apart. Watch how long they agree.

Two identical pendulums, released a hair apart (the difference is one millionth of a degree). For a while they move as one. Then they don't — and never will again. That's chaos: not randomness, just a system that amplifies every difference. Drag the bobs to set a new start.

Why this is chaos

The equations are exact and deterministic — there's no randomness anywhere. But the system amplifies every difference exponentially: a millionth of a degree becomes a metre within seconds. This is the same reason weather forecasts fall apart after about ten days: we can't measure the starting conditions perfectly, and small errors grow.

  • Drag the lower bob (or the upper one) to set a new starting pose; release to drop.
  • The split time is when the two tips are more than 5 cm apart. Higher starts split sooner.
  • Integration is RK4 at 2 ms steps; energy drifts less than 0.1% over ten seconds.

Three modes

  • Twins: two pendulums one millionth of a degree apart. The clock stops when their tips are more than 5 cm apart — usually somewhere around ten seconds from the default start.
  • One: a single pendulum with a long trail, for watching the shapes it draws.
  • Fan of 40: forty pendulums, each a millionth of a degree from the next, coloured like a rainbow. They move as one thick line, then fray, then explode into a fan — the clearest picture of chaos there is.

How it is computed

The equations of motion for two 1 m arms with equal 1 kg bobs are integrated with the fourth-order Runge–Kutta method in 2-millisecond steps, eight steps per frame. Over ten seconds the total energy drifts by less than a tenth of a percent, so the divergence you see comes from the physics, not from rounding errors.

Things to try

  • Drag the bobs to a low start (both arms below horizontal): the motion stays regular and the twins agree for a long time.
  • Lift the lower arm straight up: chaos arrives within a couple of seconds.
  • Watch the fan in full screen — then try to guess, before it happens, when it will split.

Questions

Is it really unpredictable? It is deterministic: the same start gives the same motion every time. It is unpredictable in practice because no start can be measured exactly.