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