Math MagikDocket One
Math Magik

Double Pendulum Chaos

Simulate chaotic physics.

📜 The Origins

A classic example of a simple system with complex, non-linear behavior. Even a tiny change in the starting angle leads to a completely different path, this is the heart of Chaos Theory.

🚀 Master the Tool

Drag the pendulums to set their starting positions and hit 'Release'. Watch the hypnotic, unpredictable patterns emerge as the system fights against gravity.

The calculator
Chaotic Double Pendulum
A physical demonstration of chaos theory. Small changes, big consequences.
Tail Length100
Mass 1 (Blue)10kg
Mass 2 (Purple)10kg

A Single Pendulum Is Boring. Two Is Pure Chaos.

Hang a weight from a string and let it swing, and you have one of the most predictable objects in all of physics. A single pendulum keeps almost perfect time. Push it a little harder and it swings a little wider, but the motion stays smooth, regular, and repeatable. Galileo used one to time his pulse. We used them to run clocks for three hundred years. You can write down exactly where it will be ten minutes, ten hours, or ten years from now.

Now attach a second pendulum to the bottom of the first, so the lower arm hangs from the swinging tip of the upper one. Nothing exotic has been added. There is no randomness, no hidden engine, no noise. It is still just two weights, gravity, and a couple of joints. And yet the motion becomes wild, beautiful, and genuinely impossible to predict. The lower arm whips over the top, stalls, reverses, flails, and traces a path that never repeats. This simulator runs that system with no friction at all, so the dance never winds down. You get the chaos in its purest form.

Why Adding One Joint Breaks Predictability

The magic word is coupling. In a single pendulum, gravity pulls on one weight along one arm, and that is the whole story. In a double pendulum, the upper arm pulls on the lower arm, and the lower arm pulls back on the upper one. Each swing of the bottom yanks the top, which changes how the top swings, which changes how it yanks the bottom, and so on, instant by instant. The two arms are locked in a continuous tug-of-war where every move rewrites the rules for the next move.

This feedback is what physicists call nonlinearity. A linear system responds in proportion: twice the push gives twice the swing. A double pendulum does not play fair. A tiny nudge can be amplified into an enormous change, or swallowed entirely, depending on exactly where the arms happen to be at that moment. Because the influence runs both ways and compounds on itself, there is no tidy formula that tells you the position later. The future has to be computed one small step at a time.

Crucially, none of this is random. The double pendulum is fully deterministic. The present state completely determines the future. That is the unsettling part. Determined does not mean predictable.

The Butterfly Effect You Can Watch Live

Here is the heart of it: a double pendulum is exquisitely sensitive to where it starts. Two releases that differ by a hair will track each other for a moment, then peel apart and end up doing completely unrelated things.

Try this thought experiment with the simulator, then watch it happen: - Release the pendulum with the upper arm at exactly 90 degrees. Note the hypnotic path it carves out. - Now release it again from 90.01 degrees, one hundredth of a degree different, a gap thinner than a pencil line. - For the first few seconds the two runs look identical. You would swear they are the same. - Around the five-second mark they begin to disagree. By ten seconds they are in totally different places, one arm spinning clockwise while the other tumbles the opposite way.

That hundredth-of-a-degree difference did not stay small. It doubled, and doubled again, and kept doubling until it swamped the whole motion. This is the famous Butterfly Effect, and the double pendulum is the cleanest physical demonstration of it you will ever see. The lesson is humbling: to predict the pendulum's position two minutes out, you would need to know its starting angle to an impossible number of decimal places. Any real measurement, no matter how careful, eventually loses the race.

The Energy That Never Sits Still

Watch the simulator for a while and you will notice something almost choreographed. The upper elbow joint will hang nearly motionless while the lower arm whirls furiously, and then, without warning, the arm freezes and the elbow takes over, sweeping the whole assembly around. The motion sloshes back and forth between the two limbs.

What you are watching is energy changing costume. Because this simulation is frictionless, the total energy is perfectly conserved. It can never leave the system. But it constantly trades between two forms: potential energy when an arm is lifted high against gravity, and kinetic energy when an arm is moving fast. Lift an arm and you bank potential energy. Let it fall and that bank pays out as speed. The arms are also passing energy and momentum to each other through the shared joint, so a fast-spinning lower arm can dump its motion into the upper one in an instant. There is no friction to bleed any of it away, so the total stays locked, but where it lives, moment to moment, is anybody's guess. That perpetual handoff is exactly what makes the motion so mesmerizing to watch.

How the Math Works

There is no formula you can plug a time into to get the pendulum's position, and that is not a failure of cleverness, it is a fundamental property of the system. The honest answer is that the motion has to be simulated, not solved.

The physics is ordinary Newtonian mechanics, the same force-equals-mass-times-acceleration rules that govern a thrown ball. The difference is that, because the two arms pull on each other, the equations describing their accelerations are tangled together. Each arm's acceleration depends on the other arm's current angle and speed, which are themselves changing. You cannot untie that knot into a clean answer.

So instead the simulator uses numerical integration. It takes the current angles and speeds, calculates the forces and accelerations at this exact instant, and nudges everything forward by a tiny sliver of time, a fraction of a millisecond. Then it repeats, thousands of times a second, building the path one microscopic step at a time. Each frame you see is the sum of all those little steps. It is the only way to know what a double pendulum does, and it is precisely why two nearly identical starts drift apart: each step carries a microscopic rounding, and chaos magnifies those crumbs into the whole motion.

Where This Actually Matters

The double pendulum is more than a desk toy. It is the gateway example for an entire field called chaos theory, and the intuition it gives you shows up everywhere: - Weather forecasting. The atmosphere is a vastly more complicated version of the same problem. This is why forecasts are reliable for a few days and useless past two weeks: the errors double, just like the pendulum's. - Planetary orbits. Over millions of years, the solar system itself is mildly chaotic. We cannot predict the exact positions of the planets in the deep future for the same reason we cannot predict this pendulum. - Biology and medicine. A healthy heartbeat is not perfectly regular. It has a subtle, fractal-like variability. Eerily, a too-steady rhythm can be a warning sign. - Engineering and robotics. Anyone designing a walking robot or a crane with a swinging load has to wrestle with coupled, pendulum-like dynamics that can turn unstable fast.

The double pendulum teaches the single most counterintuitive idea in modern physics: a system can obey perfectly strict, knowable laws and still be impossible to predict. Determinism and predictability are not the same thing.

Set both arms horizontal for maximum chaos, hit release, and watch a simple machine refuse to ever repeat itself. You are looking at the edge of what science can foresee, rendered as a hypnotic, frictionless dance.

Pro tips
01Try starting with both arms horizontal for maximum chaos.
02Notice how the path never repeats itself.
03The 'Butterfly Effect' is naming this very phenomenon.

The Fine Print (FAQ)

Will it ever repeat?
Theoretically, yes, via the Poincaré Recurrence Theorem, but you'd likely have to wait longer than the age of the universe.
Can I build one?
Yes! Two ruler sticks and a skateboard bearing are all you need. It's a great desk toy.
Is this perpetual motion?
No. In the real world, friction (air resistance and bearing drag) will eventually stop it. Our simulation is frictionless for maximum chaos.