Chaos · classical mechanics
Driven Quadruple Pendulum

The notebook · live in your browser, code and all
open full screen ↗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.