For a Lagrangian expressed in independent generalized coordinates, stationary action gives the Euler-Lagrange equationsIdeal constraints can either be incorporated into the independent coordinates or treated using Lagrange multipliers, as in solution.