# 7.8: Generalized energy theorem


The Hamilton function, $$(7.7.6)$$ plus equation $$(7.7.4)$$ lead to the generalized energy theorem

$\frac{dH\left( \mathbf{q,p,}t\right) }{dt}=\frac{dh(\mathbf{q},\mathbf{\dot{q }},t)}{dt}=\sum_{j}\dot{q}_{j}\left[ Q_{j}^{EXC}+\sum_{k=1}^{m}\lambda _{k} \frac{\partial g_{k}}{\partial q_{j}}(\mathbf{q},t)\right] -\frac{\partial L( \mathbf{q},\mathbf{\dot{q}},t)}{\partial t}$

Note that for the special case where all the external forces $$\left[ Q_{j}^{EXC}+\sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}( \mathbf{q},t)\right] =0$$, then

$\frac{dH}{dt}=-\frac{\partial L}{\partial t}$

Thus the Hamiltonian is time independent if both $$\left[ Q_{j}^{EXC}+\sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}( \mathbf{q},t)\right] =0$$ and the Lagrangian are time-independent. For an isolated closed system having no external forces acting, then the Lagrangian is time independent because the velocities are constant, and there is no external potential energy. That is, the Lagrangian is time-independent, and

$\frac{d}{dt}\left[ \sum_{j}\left( \dot{q}_{j}\frac{\partial L}{\partial \dot{ q}_{j}}\right) -L\right] =\frac{dH}{dt}=-\frac{\partial L}{\partial t}=0$

As a consequence, the Hamiltonian $$H\left( \mathbf{q,p,}t\right) ,$$ and generalized energy $$h(\mathbf{q},\mathbf{\dot{q}},t)$$, both are constants of motion if the Lagrangian is a constant of motion, and if the external non-potential forces are zero. This is an example of Noether’s theorem, where the symmetry of time independence leads to conservation of the conjugate variable, which is the Hamiltonian or Generalized energy.

This page titled 7.8: Generalized energy theorem is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Douglas Cline via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.