Double Pendulum: Chaos from Newton's Laws

simulator intermediate ~10 min
Loading simulation...
E ≈ 29.4 J — chaotic regime

With both angles at 120° and equal masses and lengths, the double pendulum has enough energy for fully chaotic motion. The tip of the second pendulum traces an unpredictable path that never repeats.

Formula

θ₁'' = [−g(2m₁+m₂)sinθ₁ − m₂g·sin(θ₁−2θ₂) − 2sin(θ₁−θ₂)·m₂·(θ₂'²L₂+θ₁'²L₁cos(θ₁−θ₂))] / [L₁(2m₁+m₂−m₂cos(2θ₁−2θ₂))]
θ₂'' = [2sin(θ₁−θ₂)·(θ₁'²L₁(m₁+m₂)+g(m₁+m₂)cosθ₁+θ₂'²L₂m₂cos(θ₁−θ₂))] / [L₂(2m₁+m₂−m₂cos(2θ₁−2θ₂))]

A Simple Machine, Impossible to Predict

The double pendulum — two rigid rods connected end-to-end, swinging under gravity — is one of the simplest mechanical systems that exhibits chaos. Unlike a single pendulum, which swings back and forth in a perfectly predictable way, the double pendulum's motion becomes wildly unpredictable when released from large angles. Two pendulums started with nearly identical conditions will quickly diverge into completely different trajectories.

Lagrangian Mechanics

The equations of motion are derived using Lagrangian mechanics — a powerful framework from classical physics. The Lagrangian L = T − V (kinetic minus potential energy) is written in terms of the two angles θ₁ and θ₂. Applying the Euler-Lagrange equations yields two coupled, nonlinear second-order differential equations. These equations have no closed-form solution — they must be solved numerically.

Reading the Simulation

The white circle is the first bob, the red circle is the second. The cyan trail shows the path traced by the second bob's tip. Watch how the trail fills a complex region of space without ever repeating exactly. The pivot point is fixed at the top center. Try changing the initial angles by just one degree and compare the resulting motion — this sensitivity is the signature of chaos.

Energy Conservation

Despite the chaotic motion, one quantity is perfectly conserved: total mechanical energy. The simulation uses a fourth-order Runge-Kutta (RK4) integrator with a small time step to maintain this conservation. The total energy readout at the bottom should remain nearly constant throughout the simulation — any drift indicates numerical error rather than physical dissipation.

FAQ

Why is the double pendulum chaotic?

The double pendulum is chaotic because the equations of motion are nonlinear and coupled. The second pendulum's motion depends on the first, creating feedback loops that amplify tiny differences in initial conditions into completely different trajectories.

What equations govern the double pendulum?

The equations of motion are derived from Lagrangian mechanics. They involve the angles θ₁ and θ₂, their angular velocities, the masses m₁ and m₂, the lengths L₁ and L₂, and gravity g. The resulting second-order ODEs are coupled and nonlinear.

Is the double pendulum always chaotic?

Not always. At very low energies (small initial angles), the motion is approximately periodic or quasi-periodic. Chaos emerges when the energy is high enough for the pendulum to swing widely. The transition from regular to chaotic motion depends on the initial conditions.

Is energy conserved in the double pendulum?

Yes. In the idealized model (no friction or air resistance), total mechanical energy — kinetic plus potential — is conserved. This is a consequence of the system being Hamiltonian. The simulation uses RK4 integration, which approximately conserves energy over the simulation time.

Sources

Embed

<iframe src="https://homo-deus.com/lab/chaos-theory/double-pendulum/embed" width="100%" height="400" frameborder="0"></iframe>
View source on GitHub