Skip to content
Mechanics · Physics

Double Pendulum 3D Simulation: Chaos & Phase Space

A double pendulum in 3D, solved from its Lagrangian with Runge–Kutta 4, swings by itself with trails, velocity arrows and live energy bars; drag a bob to set its start. Then the signature experiment — two pendulums started 0.1° apart move as one and then part, with the gap's exponential growth and the Lyapunov exponent — plus phase space, the Poincaré section and the two normal modes.

Interactive virtual lab · no download · works on phones and laptops

Chapter
Classical Mechanics · Nonlinear Dynamics
For
Class 11 · JEE Advanced · College
Time
~25 min

Double Pendulum & Chaos (3D) is a Pro simulation

Pro opens all 174 virtual labs — 870 simulations with guides and quizzes.

How to use it

  1. 1Pick a module (4); set your level at the top right for more controls (integrator, damping, masses).
  2. 2Drag either bob to set where it starts, or tap a preset on the stage. The run replays by itself.
  3. 3Use Predict before you look, then Derive, Questions, Practise and Compare.

What to notice

  • Deterministic is not predictable: a gap grows as .
  • Prediction time : ten times better data buys only more.
  • With no damping the total energy stays fixed; frame-by-frame Euler updates break that.
  • Small swings are two normal modes, for equal masses and rods.
  • A Poincaré section shows curves for regular motion and a scatter for chaos.

For teachers

A ready-made teaching kit comes with this lab

  • Lesson plan

    28 min, 4 steps

  • Ask the class

    4 questions with answers

  • Quick quiz

    6 questions, printable

  • Key formulas

    4 formulas

About the Double Pendulum & Chaos (3D) simulation

A double pendulum is two rigid rods hinged end to end, with a bob at each joint. Its equations of motion follow from the Lagrangian L = T − V and are exact and deterministic, yet for large swings its motion is chaotic: two starts that differ by a fraction of a degree soon move completely differently. This 3D double pendulum simulation solves those equations with fourth-order Runge–Kutta at one-millisecond steps, so the total energy is kept to a millionth and the chaos you see is real, not numerical error. Drag either bob to set the starting angles, change the masses, rod lengths, gravity and damping, and watch trails, velocity and acceleration arrows and live kinetic and potential energy.

The second module is the signature experiment: two pendulums started at 120° and 120.1°, drawn together or side by side. For a few seconds they move as one; then the gap Δθ grows exponentially until they have nothing in common. A log graph of the gap shows the straight-line growth and measures the Lyapunov exponent λ, from which the prediction horizon t* = ln(Δ/δ₀)/λ follows. The third module plots the motion in phase space and builds a Poincaré section — smooth curves for regular motion, a scatter of dots for chaos — and the fourth finds the two small-angle normal modes from det(K − ω²M) = 0. Switch the integrator to plain Euler at level 3 to see why simulations must never move objects frame by frame.

Also covers: double pendulum, double pendulum simulation, chaos theory, chaotic pendulum, butterfly effect, sensitivity to initial conditions, deterministic chaos, lyapunov exponent, poincare section, phase space, phase portrait, lagrangian mechanics, euler lagrange equations, coupled pendulum, normal modes double pendulum, runge kutta 4, rk4 simulation, symplectic integrator, energy conservation pendulum, nonlinear dynamics, classical mechanics college, physics undergraduate.

Frequently asked questions

Why is the double pendulum chaotic?

Its equations are nonlinear: the rods' angles enter through sines and cosines, and the two arms push each other through terms like sin(θ₁ − θ₂). For large swings this makes nearby motions separate exponentially, at a rate set by the Lyapunov exponent. The motion is still fully determined by its start — it is just impossible to know the start precisely enough to predict far ahead.

Is chaos the same as randomness?

No. A chaotic system is deterministic: run it twice from exactly the same start and it does exactly the same thing. What makes it unpredictable is sensitivity: any uncertainty in the start, however small, grows exponentially, so ten times more precise data only lets you predict ln 10/λ seconds further.

What is a Lyapunov exponent?

The average rate λ at which two nearby trajectories separate: δ(t) ≈ δ₀e^(λt). A positive λ means chaos; λ ≈ 0 means regular motion. The lab measures it by following a neighbouring trajectory and rescaling it back every tenth of a second (Benettin's method).

Why use Runge–Kutta instead of updating positions every frame?

Updating position and velocity by v·Δt each frame is Euler's method, whose error is proportional to the step and always pushes the same way: the pendulum gains energy and swings ever higher. RK4 has error proportional to h⁴ and, at small steps, keeps the energy constant to many digits — essential when tiny errors are exactly what chaos amplifies.