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.





