Derivation
The change in the particle positions rk for an infinitesimal change in the D generalized coordinates is
Taking two derivatives with respect to time yields an equivalent equation for the accelerations
The work done by an infinitesimal change dqr in the generalized coordinates is
Substituting the formula for drk and swapping the order of the two summations yields the formulae
Therefore, the generalized forces are
This equals the derivative of S with respect to the generalized accelerations
yielding Appell’s equation of motion
Read more about this topic: Appell's Equation Of Motion