6.6: Hamilton's Use of the Legendre Transform
( \newcommand{\kernel}{\mathrm{null}\,}\)
We have the Lagrangian L(qi,˙qi), and Hamilton's insight that these are not the best variables, we need to replace the Lagrangian with a closely related function (like going from the energy to the free energy), that is a function of the qi (that's not going to change) and, instead of the ˙qi 's, the pi 's, with pi=∂L(qi,˙qi)/∂˙qi. This is exactly a Legendre transform like the one from f→g discussed above.
The new function is
H(qi,pi)=n∑i=1pi˙qi−L(qi,˙qi)
from which
dH(pi,qi)=−∑i˙pidqi+∑i˙qidpi
analogous to dF=−SdT−PdV This new function is of course the Hamiltonian.