An interactive chaotic pendulum simulation showcasing the double pendulum system and chaotic dynamics.
The double pendulum, or chaotic pendulum, is a system that comprises of a pendulum attached to the end of another pendulum. This system is governed by a set of coupled non-linear ordinary differential equations that cannot be solved analytically. In my simulation I implement fourth-order Runge-Kutta (RK4) integration to numerically solve the differential equations. The website showcases the derivation of the equations of motion using the Lagrangian formalism as well as phase-portraits for the system.
The generalized coordinates of the system are the angles of the two rods relative to their vertical.
The kinetic and potential energy of the system is:
The Lagrangian of the system is:
We then apply the Euler-Lagrange equation to our generalized coordinates:
After applying the Euler-Lagrange equation we do some simplifying (check out the website) to arrive at our equations of motion. The equations of motion are a set of coupled non-linear ODEs and have NO analytical solution 😿. Thus, they must be solved via numerical methods. In my simulation I use fourth-order Runge-Kutta (RK4) integration.