Three double pendulums with near identical initial conditions diverge over time, displaying the chaotic nature of the system.
The Lagrangian is given by
The first term is the linearkinetic energy of the center of mass of the bodies and the second term is the rotational kinetic energy around the center of mass of each rod. The last term is the potential energy of the bodies in a uniform gravitational field. The dot-notation indicates the time derivative of the variable in question.