Double Pendulum

A pendulum swinging from the end of another pendulum — one of the simplest systems that behaves chaotically, and the wild cousin of our tidy simple pendulum. Release it, then launch a "chaos twin" a hair apart and watch the two paths track together for a heartbeat before diverging completely. The twin separation readout and the log divergence graph below make the butterfly effect visible — the same sensitive dependence you can spin in the Lorenz attractor. Same laws, same start, wildly different fate, all on your device. Free on LK Forge — no sign-up.

You are in the Physics lab.

Drag the pendulum to set its start angle
Elapsed0.0 s
Upper angle—
Lower angle—
Twin separationoff
Total energy—
Motion—
Twin separation vs time on a log axis — a straight rise is exponential divergence, the butterfly-effect signature. Turn on the Chaos twin to plot it.
Fully deterministic, yet impossible to predict. The double pendulum obeys exact, unchanging physical laws — no randomness anywhere. Run the exact same start twice and you get the exact same swing. But release a second pendulum just a millionth of a radian away and the two visibly diverge within seconds. That is deterministic chaos: sensitive dependence on initial conditions, in a system you can hold in your hand.

Reading the simulation

What the two arms, the twin and the log graph are telling you.

1

The two arms and the trail

The upper rod swings from the fixed pivot; the lower rod hangs from the tip of the first and swings freely. The Upper angle and Lower angle readouts give each rod's angle from straight down, and the glowing trail follows the lower bob. Near 0° the arms hang and barely move; start them near 180° — inverted over the pivot — and the whole system flails, which the Motion badge flags as chaotic and the Total energy stat confirms.

2

Why tiny differences explode

Turn on the Chaos twin and a faint blue pendulum starts a mere perturbation away — a hundredth of a radian or less. For a second or two the twin hides behind the original, then it peels off and swings completely differently. The Twin separation stat, shown in scientific notation, is the distance between the two lower bobs; watch it climb from around 1e-3 toward the size of the pendulum itself.

3

The butterfly effect on a log axis

The graph plots that separation against time with a logarithmic vertical axis. Exponential growth becomes a straight line, so while the twins diverge the curve climbs steadily — its slope is the Lyapunov exponent, the rate chaos amplifies errors. It then flattens once the gap saturates at the pendulum's own size: the two are now on unrelated swings. Raise the Damping or drop the Gravity and the whole character changes.

How It Works

Two coupled joints, the exact equations of motion, and a tiny nudge that changes everything.

1

The equations of motion

Four numbers describe the state — the two rod angles and how fast each is turning. From the masses, rod lengths and gravity, the coupled equations give each joint's angular acceleration at every instant. There is no closed-form solution, so the motion has to be computed step by step rather than written as a formula.

2

RK4 integration

The simulator advances the state with fourth-order Runge–Kutta at a small fixed time step, taking several substeps per frame. RK4 samples the accelerations four times per step and blends them, which keeps the total energy stable and the swing faithful far longer than a naive update would — you can watch the Total energy stat hold steady when damping is off.

3

The chaos twin

The twin is a second copy of the same equations, started from angles offset by the perturbation you set. Both obey identical rules with no randomness, yet the gap between their tips grows exponentially. That runaway separation — plotted straight on the log graph — is sensitive dependence on initial conditions, the reason long-range prediction is hopeless even though nothing is random.

What is a double pendulum?
A double pendulum is one pendulum hung from the end of another: a rod swings from a fixed pivot, and a second rod swings freely from the tip of the first. With two coupled joints it has two degrees of freedom, and its motion quickly becomes intricate and unpredictable-looking even though it follows simple physical laws. There is no closed-form solution for that motion, so this simulator advances the coupled equations step by step with fourth-order Runge–Kutta.
What is deterministic chaos?
Deterministic chaos means a system obeys exact, fixed rules with no randomness, yet is so sensitive to its starting conditions that its long-term behaviour is effectively impossible to predict. The double pendulum is a textbook example: the same starting state always produces the same motion, but the tiniest change in the start leads to a completely different path. Turn on the chaos twin here and the gap between the two tips grows exponentially, which is what makes long-range prediction hopeless in practice even though nothing random is involved.
Why do two identical pendulums diverge?
Because the motion is chaotic, any difference between two pendulums grows exponentially over time. Two pendulums released from angles differing by a millionth of a radian will track each other for a moment, then separate and swing completely differently within seconds. This 'sensitive dependence on initial conditions' is the hallmark of chaos.
Is the double pendulum random?
No — the double pendulum is not random. Its motion is fully deterministic and governed by Newton's laws, and this simulator reproduces it by integrating the exact equations of motion. It only looks random because it is chaotic: predicting it far into the future would require knowing the starting angles with impossible precision.

Teaching or blogging about chaos? You can embed this simulator on your own site free — one line of code, no sign-up.

Classroom activity

A ready-to-assign lab using the simulation above. Free to use — nothing to install or sign up for, and no student data leaves the browser.

High school, College10–20 minInteractive simulation

Learning objectives

  • Observe sensitive dependence on initial conditions (chaos).
  • Contrast predictable and chaotic motion.
  • Recognize that a deterministic system can be practically unpredictable.

Variables to change

  • Initial angles
  • Arm lengths
  • Masses

Procedure

  1. Release the pendulum from a small starting angle and watch the motion.
  2. Release it again from a nearly identical angle and compare the two paths over time.
  3. Release it from a large angle and observe the motion.

Observations

Describe how quickly two nearly identical starts diverge from each other.

Questions

  1. What happened when you started from two almost-identical angles?
  2. Is the double pendulum random?
  3. How does a single pendulum differ from a double pendulum?
  4. Why can’t we predict its exact position far into the future?
  5. Name another real system that shows sensitive dependence on initial conditions.

Explanation

The double pendulum is deterministic yet chaotic: nearby starting states diverge exponentially, so its long-term motion is unpredictable even though the equations are exact. It is a classic, visual demonstration of the butterfly effect.

Answer key (for instructors)
  • 1. The motions matched briefly, then diverged completely — the hallmark of chaos.
  • 2. No. It is fully deterministic (governed by fixed equations) but extremely sensitive to initial conditions, so long-term prediction is impractical.
  • 3. A single pendulum is periodic and predictable; adding a second arm couples the motion and produces chaos.
  • 4. Tiny uncertainties in the starting state grow exponentially, so any measurement error eventually dominates.
  • 5. Weather, turbulent fluids, or a Lorenz-type system — the “butterfly effect.”

Educators: link or embed this simulation freely in your LMS or course guide.

Add This Double Pendulum to Your Website

Put the Double Pendulum on your own page — free, no sign-up, no watermark. It runs entirely in your visitors' browsers. Copy the snippet and paste it into your page's HTML.

The credit line under the widget links back to LK Forge — please keep it so others can find it too.