Double Pendulum
Model the motion of a double pendulum in Cartesian coordinates.
Derive the governing equations using Newton's second law of motion,

and

:
The lengths of the pendulum rods are fixed. These are expressed as algebraic constraints:
Specify the initial state of the system as initial conditions:
Specify the physical parameters for the pendulum system:
Solve and visualize the system: