Lagrange's equations of motion