The Lagrangian energy function h is conserved when the Lagrangian has no explicit time dependence.
Statement
Define the Lagrangian energy function
h(q,q˙,t)=j=1∑nq˙jpj−L,pj=∂q˙j∂L.
If ∂L/∂t=0, then dh/dt=0 along every Euler–Lagrange solution. In general h need not equal T+U. If, in addition, the constraints are stationary and U=U(q) is velocity independent, then h=T+U.
Assumptions
The Euler–Lagrange equations hold for n independent coordinates, L=T−U is C2, and conservation uses ∂L/∂t=0. For the sufficient identification h=T+U, additionally ri=ri(q) and U=U(q); then T is homogeneous quadratic in the q˙j and U has no explicit time dependence.
Derivation
Along a solution, the Euler–Lagrange equations imply p˙j=∂L/∂qj. Therefore