The Physics of the Universe
Home › Simulations › Double Pendulum Simulator (Chaotic Pendulum)

Double Pendulum Simulator (Chaotic Pendulum)

Run an interactive chaotic pendulum simulation: release two double pendulums differing by just 0.001° to watch exact energy conservation coexist with explosive deterministic chaos.

Presets:
Click inside the canvas to drop the pendulum from a custom upper angle, or toggle the 0.001° Gold Ghost to watch divergence unfold in real time!

Key Equations & Physics Model

Lagrangian Formulation: L(θ₁, θ₂, θ̇₁, θ̇₂) = T − V (coupled nonlinear Euler–Lagrange ODEs)
Total Mechanical Energy: E = KE + PE = const (RK4 fixed dt = 0.002 s drift < 10⁻⁴)
Lyapunov Exponential Divergence: |Δθ(t)| ≈ |Δθ₀| e^(λ t) (positive λ ⇒ chaos)

Both pendulums obey the identical zero-friction physics solver down to floating-point precision—every divergence between teal and gold paths comes solely from an initial 0.001-degree offset.

Chaotic Double Pendulum Butterfly-Effect Divergence DiagramDeterministic Chaos (Lyapunov Exponent λ > 0)● Primary Chaotic Pendulum: θ₁ = 120.000°● Butterfly Ghost Pendulum: θ₁ = 120.001° (0.001° offset)Initially identical for ~6 seconds, then exponential divergence|Δθ(t)| ≈ |Δθ₀| e^(λt) splits both trails into distinct trajectories.
Coupled double pendulums offset by just 0.001° obey identical zero-noise Euler–Lagrange physics yet trace completely diverged chaotic paths after several swings.

How the Physics Works

A single simple pendulum swings in predictable periodic arcs. Attach a second pendulum directly beneath the first, and the nonlinear coupling between θ₁ and θ₂ flips the system from order into textbook Hamiltonian chaos at high energy.

Chaos does not mean randomness. Every swing is 100% deterministic and integrated with fourth-order Runge–Kutta at a fine 0.002-second substep—keeping kinetic plus potential energy conserved to better than one part in ten thousand.

Turn on the 0.001° Butterfly Ghost (gold) alongside the primary pendulum (teal). For the first several seconds, both arms overlap completely as a single line. Then, because chaotic systems carry a positive Lyapunov exponent, that microscopic 0.001° gap doubles repeatedly until both pendulums tumble along completely unrelated loops.

Lower the initial angles below 30° using the Small-Angle Ordered Swing preset, and notice how chaos disappears completely: both arms remain synchronized indefinitely as near-linear coupled normal modes.

Chaotic Physics Systems & Lyapunov Predictability Horizons

Dynamical SystemDegrees of FreedomTypical Lyapunov TimePredictability Limit
Double Pendulum (High Energy)2 angles (4D phase)~1 – 2 seconds~8 – 15 seconds (from 0.001° offset)
Chaotic Three-Body Binary Intruder3 bodies in 2D/3D~1 orbital crossingA few close passages
Earth Tropospheric WeatherNavier–Stokes PDE~2 – 3 days~10 – 14 days
Inner Solar System Orbits8 planets~5 million years~50 – 100 million years

How does 0.001° trigger butterfly chaos?

A 41-second animation: coupled Euler-Lagrange double pendulums, energy conservation, and chaos.

Experiments to Try

Witness the 0.001° Butterfly Split

Run High-Energy Butterfly and watch the HUD Divergence readout jump from 0.0° to > 100° after ~8–12 seconds even with identical gravity.

Contrast Chaos vs. Linear Order

Switch to Small-Angle Ordered Swing (25°/20°): at low energy, trajectories stay synchronized cleanly without chaotic flips.

Monitor RK4 Energy Conservation

Track KE + PE in the telemetry bar during wild flips—RK4 drift |ΔE/E| stays microscopic even during high-speed whips.

Frequently Asked Questions

Are the two pendulums experiencing slightly different physics or noise?

No—both run the exact same zero-noise Euler-Lagrange RK4 solver. Their only difference is an initial angle offset of 0.001 degrees.

Why doesn't the pendulum slow down and stop?

This model simulates ideal frictionless pivots so total mechanical energy KE + PE remains conserved, letting you watch pure Hamiltonian chaos and verify numerical accuracy.

What determines when chaos begins?

At small angles (sin θ ≈ θ) the equations decouple into predictable normal modes. Once kinetic energy is large enough for the lower arm to flip over, sensitive stretching and folding in phase space drives chaos.

How is double-pendulum chaos related to weather forecasting?

Like the atmosphere's fluid equations, deterministic nonlinear physics has a positive Lyapunov exponent—meaning tiny unmeasurable differences today limit exact forecasts beyond ~10–14 days.

Related Topics & Tools