Double Pendulum
A chaotic system where tiny differences in starting conditions change the motion completely. You can also check conservation of mechanical energy. A free physics simulation in your browser (Chaos, Lagrange's equations, Energy conservation).
How it works and what to look for
L = T − V, d/dt(∂L/∂θ̇ᵢ) − ∂L/∂θᵢ = 0 (Lagrange's equations)
Just connecting two pendulums makes the motion extremely hard to predict (chaos). Change an initial angle by just 1°, reset, and compare the motion a few seconds later. At first it's nearly the same, but before long it's completely different.
With no air resistance, mechanical energy (kinetic + potential) is conserved. "Numerical error" is the drift from the calculation (4th-order Runge–Kutta) and stays very small. With small initial angles (about 10°) the motion is regular instead of chaotic.
Today's question: How can a 1° difference in starting angle change the later motion?
- Set damping to 0 and initial angles to 120° and 150°. Reset.
- Run for about 10 seconds. Record the trail and total energy.
- Change only initial angle 1 to 121°. Reset and compare at the same time.
Read the explanation and model assumptions
For large oscillations, a small difference in starting angle can grow into a large difference in trajectory. Even when the motion looks complex, total energy stays nearly constant while damping is zero and the parameters remain fixed.
Chaos does not mean random motion. Numerical errors can also grow, so check energy drift as well as the trajectories.
Everyday examples
- Weather forecasts are only reliable a few days ahead because the atmosphere also turns tiny initial differences into large ones.
- A child's body on a swing, or your forearm swinging as you walk, can be modeled as linked pendulums.
- Controlling the joints of a robot arm involves the same equations of motion as a double pendulum.
Common misconceptions
- Misconception: Chaotic motion is random and follows no law.
- In fact: It is fully determined by the equations of motion. It is hard to predict only because a tiny change in the starting conditions changes the result a lot.
- Misconception: With a fast enough computer we could predict it accurately for years.
- In fact: Any tiny error in the starting values grows exponentially, so there is a limit to how far ahead it can be predicted.