Model Constrained Systems as DAEs

Model the motion of a single pendulum.

Derive the governing equations using Newton's second law of motion, and :
Express the fixed length of the pendulum rod as an algebraic constraint:
The pendulum is released from the horizontal position with a vertical velocity of 1:
Specify the physical parameters for the pendulum system:
Solve the high-index DAE and visualize the system: