Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Physics LibreTexts

7.7: Generalized Energy and the Hamiltonian Function

( \newcommand{\kernel}{\mathrm{null}\,}\)

Consider the time derivative of the Lagrangian, plus the fact that time is the independent variable in the Lagrangian. Then the total time derivative is

dLdt=jLqj˙qj+jL˙qj¨qj+Lt

The Lagrange equations for a conservative force are given by equation (6.5.12) to be

ddtL˙qjLqj=QEXCj+mk=1λkgkqj(q,t)

The holonomic constraints can be accounted for using the Lagrange multiplier terms while the generalized force QEXCj includes non-holonomic forces or other forces not included in the potential energy term of the Lagrangian, or holonomic forces not accounted for by the Lagrange multiplier terms.

Substituting Equation ??? into Equation ??? gives

dLdt=j˙qjddtL˙qjj˙qj[QEXCj+mk=1λkgkqj(q,t)]+jL˙qj¨qj+Lt=jddt(˙qjL˙qj)j˙qj[QEXCj+mk=1λkgkqj(q,t)]+Lt

This can be written in the form ddt[j(˙qjL˙qj)L]=j˙qj[QEXCj+mk=1λkgkqj(q,t)]Lt

Define Jacobi’s Generalized Energy1 h(q,˙q,t) by

h(q,˙q,t)j(˙qjL˙qj)L(q,˙q,t)

Jacobi’s generalized momentum, equation 7.2.3, can be used to express the generalized energy h(q,˙q,t) in terms of the canonical coordinates ˙qi and pi, plus time t. Define the Hamiltonian function to equal the generalized energy expressed in terms of the conjugate variables (qj,pj), that is,

H(q,p,t)h(q,˙q,t)j(˙qjL˙qj)L(q,˙q,t)=j(˙qjpj)L(q,˙q,t)

This Hamiltonian H(q,p,t) underlies Hamiltonian mechanics which plays a profoundly important role in most branches of physics as illustrated in chapters 8,15 and 18.


1Most textbooks call the function h(q,˙q,t) Jacobi’s energy integral. This book adopts the more descriptive name Generalized energy in analogy with use of generalized coordinates q and generalized momentum p.


This page titled 7.7: Generalized Energy and the Hamiltonian Function 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.

Support Center

How can we help?