Double Pendulum Chaos Simulator
Watch a double pendulum turn chaotic: set masses, lengths, gravity and damping, then run a twin offset by 0.001 rad and see the two paths split apart.
Still loading. If the tool doesn’t appear, reload this page.
Planned features and workflows
- AltF Learning Simulator
Coming soon
About this tool
Double Pendulum Chaos Simulator
Real-time chaos theory visualization with interactive double pendulum physics and glowing motion trails.
A double pendulum is one pendulum hanging from the end of another, and its motion is chaotic: a tiny change in the starting angle leads to a completely different swing. This simulator solves its equations of motion live with a Runge-Kutta (RK4) solver and can run a second pendulum 0.001 rad apart so you can watch the two diverge.
How to use Double Pendulum Chaos Simulator
Set the Parameters sliders — Mass 1 and Mass 2 (0.5–5 kg), Length 1 and Length 2 (0.5–3 m), Gravity (0.5–30 m/s²), Damping and Speed — plus the Initial Angles θ₁ and θ₂ in radians.
Press Start, use Apply & Restart after moving the angle sliders or Randomize for a random pair, and toggle Compare to run a second pendulum offset by 0.001 rad.
Watch the trails draw while the Live Stats panel updates FPS, θ₁, θ₂, ω₁ and ω₂; in comparison mode separate Pendulum A and Pendulum B stats show the divergence.
Why use Double Pendulum Chaos Simulator
RK4, not Euler
Each frame advances the state with a four-stage Runge-Kutta step, so the motion stays coherent far longer than a naive forward-Euler simulation.
Divergence you can watch side by side
Comparison mode draws two pendulums whose only difference is 0.001 rad in the second angle, making the exponential separation visible rather than theoretical.
Every physical parameter is a live slider
Masses from 0.5 to 5 kg, lengths from 0.5 to 3 m, gravity from 0.5 to 30 m/s² and damping from 0 to 0.5 all take effect without restarting.
Common use cases
- A physics student has been told a double pendulum is chaotic and wants to actually watch two near-identical starts diverge instead of taking it on faith.
- A teacher needs a live demo for a lesson on nonlinear dynamics and wants to change gravity or a rod length mid-discussion and show what happens.
- Someone is building their own pendulum simulation and wants a reference to sanity-check their integrator against, using the same masses, lengths and starting angles.
Frequently asked questions
What equations does the double pendulum simulator use?
The standard equations of motion for two point masses on rigid, massless rods. The upper arm's angular acceleration is α₁ = [−g(2m₁ + m₂) sin θ₁ − m₂g sin(θ₁ − 2θ₂) − 2 sin(θ₁ − θ₂) m₂(ω₂²L₂ + ω₁²L₁ cos(θ₁ − θ₂))] ÷ [L₁(2m₁ + m₂ − m₂ cos(2θ₁ − 2θ₂))], with a matching expression for α₂, and the damping slider subtracts a term proportional to each angular velocity.
Link to answerWhy is a double pendulum chaotic?
Because its equations of motion are nonlinear and coupled, so the difference between two nearby starting states grows exponentially rather than staying small. In comparison mode a 0.001 rad offset — under a twentieth of a degree — produces completely unrelated motion within seconds.
Link to answerWhat are the default settings?
Both masses are 1 kg, both rods are 1 m, gravity is 9.81 m/s², damping is 0.01 and both arms start horizontal at 90°. Reset all returns to exactly these values.
Link to answerIs the simulation physically accurate?
It solves the standard Lagrangian equations for a double pendulum with point masses and massless rigid rods, using RK4 stepped by the real-time frame delta capped at 0.05 s (that cap is applied before the Speed slider scales it, so the integrator's actual step is min(frameDelta, 0.05 s) x Speed - up to 0.15 s at the 3x Speed maximum). It is a faithful model of that idealisation, but it ignores rod mass, air resistance and joint friction beyond the linear damping term you set.
Link to answerWhat is the damping slider doing?
It subtracts a term proportional to each angular velocity from that arm's angular acceleration, which is a simple linear drag model. Set it to 0 for an energy-conserving pendulum that swings indefinitely; the default 0.01 makes the motion settle slowly so the trails stay readable.
Link to answerWhat else should I know about this tool?
It integrates the standard double-pendulum equations of motion with a fourth-order Runge-Kutta solver and draws the resulting swing in real time with fading motion trails. You set both masses, both rod lengths, gravity, damping and the two starting angles, then watch θ₁, θ₂, ω₁ and ω₂ update live. A comparison mode runs a second pendulum whose lower angle is offset by just 0.001 radians so you can see sensitive dependence on initial conditions with your own eyes.
Link to answer