6.9: A Simple Example
( \newcommand{\kernel}{\mathrm{null}\,}\)
For a particle moving in a potential in one dimension, L(q,˙q)=12m˙q2−V(q).
Hence
p=∂L∂˙q=m˙q,˙q=pm
Therefore
H=p˙q−L=p˙q−12m˙q2+V(q)=p22m+V(q)
(Of course, this is just the total energy, as we expect.)
The Hamiltonian equations of motion are
˙q=∂H∂p=pm˙p=−∂H∂q=−V′(q)
So, as we’ve said, the second order Lagrangian equation of motion is replaced by two first order Hamiltonian equations. Of course, they amount to the same thing (as they must!): differentiating the first equation and substituting in the second gives immediately −V′(q)=m¨q, that is, F=ma, the original Newtonian equation (which we derived earlier from the Lagrange equations).