No. 070 · Almost identical starts

Every pixel is a double pendulum

135,424 double pendulums, one per pixel, each let go from its own two angles. The high starts fold into chaos; the calm middle stays smooth.

θ₁ across, θ₂ down, −π to π · RK4, 8 steps/frame

A double pendulum is two equal rods (1 m each, with equal weights), the second hung from the end of the first. Here every pixel of the picture is its own double pendulum: 368 × 368 = 135,424 of them, each let go from rest.

A map of starting angles

A pixel's position says how its pendulum starts. Across the picture the upper arm's angle θ₁ goes from −π to π, and down the picture the lower arm's angle θ₂ does the same (both measured from straight down). So the pendulums in the centre hang almost straight down and barely move, the middle column starts with the upper arm hanging and only the lower arm raised, and the corners start with both arms pointing straight up.

The colour shows where the upper arm points right now: its angle picks a hue from the full colour wheel. The brightness shows the lower arm: bright when it points down, dark when it points up. At the start, that makes a smooth gradient of colours.

Folding into chaos

As the pendulums swing, the picture moves, but at first neighbouring pixels stay alike: pendulums that start a little apart swing a little apart. Then the starts that are high up, with the most energy, flip their arms over the top, and neighbours stop agreeing. The smooth colours fold into finer and finer chaotic patterns. The counter shows the share of pixels whose upper arm points more than 1 radian away from a neighbour's: it passes 5% at t = 2.3 s, and by the end, at t = 6.0 s, it's 39%.

The pendulums started low, in the middle, have the least energy, so they keep swinging calmly, and a wide band through the centre of the map stays smooth to the end.

How it's computed

Each pixel follows the exact equations of motion of a double pendulum with equal arms and equal weights (g = 9.81 m/s²), integrated with the RK4 method, 8 steps per video frame. The simulation runs at 0.3× real speed, and slows down further over the last 4.5 seconds, so the end is easier to follow.

Part of Almost identical starts (13 videos): Thousands of copies a hair apart. Watch them split.

Use this picture

SVGJPG

Free to reuse, also commercially, under CC BY 4.0. Credit “What Math Means” with a link to whatmathmeans.dev/v/every-pixel-is-a-double-pendulum.