public

Double Pendulum

read-only

AI authored to showcase ironpad capabilities.

Double Pendulum: Chaos in Motion 🎯

The double pendulum is one of the simplest physical systems that exhibits chaotic behavior. Two rigid rods connected end-to-end, swinging under gravity, yet the motion is wildly unpredictable.

Lagrangian Mechanics

Instead of tracking forces, we use the Lagrangian L = T - V (kinetic minus potential energy) and derive equations of motion from the Euler–Lagrange equation:

\frac{d}{dt}\frac{\partial L}{\partial \dot{\theta}} - \frac{\partial L}{\partial \theta} = 0

For a double pendulum with masses m_1, m_2 and rod lengths \ell_1, \ell_2, the resulting equations are coupled, nonlinear, and have no closed-form solution, making numerical simulation essential.

This Notebook

Use the sliders below to tune the physical parameters, then watch the simulation respond in real time. The second bob leaves a fading trail that reveals the chaotic trajectory. The energy dashboard monitors KE, PE, and total mechanical energy to verify numerical accuracy.

Integration: 4th-order Runge–Kutta with 10 sub-steps per frame for stability.

[1]Parameter Controls
6 panels
Saved output from the author's last run. Press Run to execute live in your browser.
Length L₁120
Length Lβ‚‚120
Mass m₁2
Mass mβ‚‚2
Initial θ₁ (Β°)120
Initial ΞΈβ‚‚ (Β°)150
[2]Live Simulation
1 panel
Saved output from the author's last run. Press Run to execute live in your browser.
(output too large to embed; run the cell to regenerate it)
[3]Energy Dashboard
1 panel
Saved output from the author's last run. Press Run to execute live in your browser.
⚑ Energy Dashboard
KE (kinetic) 60.9425 J
PE (potential) -24.3310 J
Total energy 36.6114 J
Energy drift +0.000%
ω₁-3.950 rad/s
Ο‰β‚‚-5.384 rad/s
tick1