We have

Where (mass times velocity) is the generalized momentum, and is the Generalized Forces.