Chaos · classical mechanics

Driven Quadruple Pendulum

Driven Quadruple Pendulum
fig. Driven Quadruple Pendulum
open full screen ↗

The notebook runs on its own once it loads, so give it about 10 seconds while Python starts up in your browser, and the simulations begin animating. Move the sliders and everything recomputes live. The code is shown alongside the output so you can read exactly how it works; the full editable source is linked below.

A driven, damped pendulum is about the simplest thing that goes chaotic, and this one has four coupled segments. I derived the equations of motion, wrote a custom RK4 integrator, and used phase portraits, Poincare sections, and Lyapunov divergence to watch the route into chaos as the drive turns up. Co-authored with Soham Bhar for a computational physics course.

← back to explorations