Lagrangian

The Lagrangian is L = T-V where T is the kinetic energy and V is the potential energy. If q is a generalized coordinate and Q is a generalized force, then the Euler-Lagrange Equation of Motion is expressed as:

where is the time derivative of q.