
Pendulum on a Cart — Part 1: Modeling
Deriving the nonlinear equations of motion for a pendulum on a cart using Lagrangian mechanics, then simplifying and linearising around the inverted equilibrium to arrive at a state-space model ready for LQR control.