next up previous contents
Next: Exercises Up: Hamiltonian Dynamics Previous: Constrained Lagrangian Dynamics   Contents

Hamilton's Equations

Consider a dynamical system with ${\cal F}$ degrees of freedom described by the generalized coordinates $q_i$, for $i=1,{\cal F}$. Suppose that neither the kinetic energy $K$ nor the potential energy $U$ depend explicitly on the time $t$. Now, in conventional dynamical systems, the potential energy is generally independent of the $\dot{q}_i$, whereas the kinetic energy takes the form of a homogeneous quadratic function of the $\dot{q}_i$. In other words,
\begin{displaymath}
K = \sum_{i,j = 1,{\cal F}} m_{ij}\,\dot{q}_i\,\dot{q}_j,
\end{displaymath} (813)

where the $m_{ij}$ depend on the $q_i$, but not on the $\dot{q}_i$. It is easily demonstrated from the above equation that
\begin{displaymath}
\sum_{i=1,{\cal F}} \dot{q}_i\,\frac{\partial K}{\partial \dot{q}_i} = 2\,K.
\end{displaymath} (814)

Recall, from Sect. 10.8, that generalized momentum conjugate to the $i$th generalized coordinate is defined

\begin{displaymath}
p_i = \frac{\partial L}{\partial \dot{q}_i} = \frac{\partial K}{\partial \dot{q}_i},
\end{displaymath} (815)

where $L=K-U$ is the Lagrangian of the system, and we have made use of the fact that $U$ is independent of the $\dot{q}_i$. Consider the function
\begin{displaymath}
H = \sum_{i=1,{\cal F}} \dot{q}_i\,p_i - L = \sum_{i=1,{\cal F}} \dot{q}_i\,p_i -K + U.
\end{displaymath} (816)

If all of the conditions discussed above are satisfied, then Eqs. (814) and (815) yield
\begin{displaymath}
H = K+ U.
\end{displaymath} (817)

In other words, the function $H$ is equal to the total energy of the system.

Consider the variation of the function $H$. We have

\begin{displaymath}
\delta H = \sum_{i=1,{\cal F}} \left(\delta\dot{q}_i\,p_i + ...
...dot{q}_i - \frac{\partial L}{\partial q_i}\,\delta q_i\right).
\end{displaymath} (818)

The first and third terms in the bracket cancel, because $p_i=
\partial L/\partial \dot{q}_i$. Furthermore, since Lagrange's equation can be written $\dot{p}_i = \partial L/\partial q_i$ (see Sect. 10.8), we obtain
\begin{displaymath}
\delta H = \sum_{i=1,{\cal F}} \left(\dot{q}_i\,\delta p_i - \dot{p}_i\,\delta q_i\right).
\end{displaymath} (819)

Suppose, now, that we can express the total energy of the system, $H$, solely as a function of the $q_i$ and the $p_i$, with no explicit dependence on the $\dot{q}_i$. In other words, suppose that we can write $H=H(q_i,p_i)$. When the energy is written in this fashion it is generally termed the Hamiltonian of the system. The variation of the Hamiltonian function takes the form
\begin{displaymath}
\delta H =\sum_{i=1,{\cal F}} \left(\frac{\partial H}{\parti...
...ta p_i +
\frac{\partial H}{\partial q_i}\,\delta{q}_i\right).
\end{displaymath} (820)

A comparison of the previous two equations yields
$\displaystyle \dot{q}_i$ $\textstyle =$ $\displaystyle \frac{\partial H}{\partial p_i},$ (821)
$\displaystyle \dot{p}_i$ $\textstyle =$ $\displaystyle -\frac{\partial H}{\partial q_i},$ (822)

for $i=1,{\cal F}$. These $2{\cal F}$ first-order differential equations are known as Hamilton's equations. Hamilton's equations are often a useful alternative to Lagrange's equations, which take the form of ${\cal F}$ second-order differential equations.

Consider a one-dimensional harmonic oscillator. The kinetic and potential energies of the system are written $K = (1/2)\,m\,\dot{x}^{\,2}$ and $U=(1/2)\,k\,x^2$, where $x$ is the displacement, $m$ the mass, and $k>0$. The generalized momentum conjugate to $x$ is

\begin{displaymath}
p = \frac{\partial K}{\partial\dot{x}} = m\,\dot{x}.
\end{displaymath} (823)

Hence, we can write
\begin{displaymath}
K = \frac{1}{2}\,\frac{p^{\,2}}{m}.
\end{displaymath} (824)

So, the Hamiltonian of the system takes the form
\begin{displaymath}
H = K + U = \frac{1}{2}\,\frac{p^{\,2}}{m} + \frac{1}{2}\,k\,x^2.
\end{displaymath} (825)

Thus, Hamilton's equations, (821) and (822), yield
$\displaystyle \dot{x}$ $\textstyle =$ $\displaystyle \frac{\partial H}{\partial p} = \frac{p}{m},$ (826)
$\displaystyle \dot{p}$ $\textstyle =$ $\displaystyle - \frac{\partial H}{\partial x} = - k\,x.$ (827)

Of course, the first equation is just a restatement of Eq. (823), whereas the second is Newton's second law of motion for the system.

Consider a particle of mass $m$ moving in the central potential $U(r)$. In this case,

\begin{displaymath}
K = \frac{1}{2}\,m\,(\dot{r}^{\,2} + r^2\,\dot{\theta}^{\,2}),
\end{displaymath} (828)

where $r,\theta$ are plane polar coordinates. The generalized momenta conjugate to $r$ and $\theta$ are
$\displaystyle p_r$ $\textstyle =$ $\displaystyle \frac{\partial K}{\partial \dot{r}} = m\,\dot{r},$ (829)
$\displaystyle p_\theta$ $\textstyle =$ $\displaystyle \frac{\partial K}{\partial \dot{\theta}} = m\,r^2\,\dot{\theta},$ (830)

respectively. Hence, we can write
\begin{displaymath}
K = \frac{1}{2\,m}\left(p_r^{\,2} + \frac{p_\theta^{\,2}}{r^2}\right).
\end{displaymath} (831)

Thus, the Hamiltonian of the system takes the form
\begin{displaymath}
H = \frac{1}{2\,m}\left(p_r^{\,2} + \frac{p_\theta^{\,2}}{r^2}\right)
+ U(r).
\end{displaymath} (832)

In this case, Hamilton's equations yield
$\displaystyle \dot{r}$ $\textstyle =$ $\displaystyle \frac{\partial H}{\partial p_r} = \frac{p_r}{m},$ (833)
$\displaystyle \dot{\theta}$ $\textstyle =$ $\displaystyle \frac{\partial H}{\partial p_\theta} = \frac{p_\theta}{m\,r^2},$ (834)

which are just restatements of Eqs. (829) and (830), respectively, as well as
$\displaystyle \dot{p}_r$ $\textstyle =$ $\displaystyle -\frac{\partial H}{\partial r} = \frac{p_\theta^{\,2}}{m\,r^3}-\frac{\partial U}{\partial r},$ (835)
$\displaystyle \dot{p}_\theta$ $\textstyle =$ $\displaystyle -\frac{\partial H}{\partial \theta} = 0.$ (836)

The last equation implies that
\begin{displaymath}
\frac{p_\theta}{m} =r^2\,\dot{\theta} =h,
\end{displaymath} (837)

where $h$ is a constant. This can be combined with Eq. (835) to give
\begin{displaymath}
\frac{\dot{p}_r}{m} = \ddot{r} = \frac{h^2}{r^3} - \frac{\partial V}{\partial r},
\end{displaymath} (838)

where $V = U/m$. Of course, Eqs. (837) and (838) are the conventional equations of motion for a particle moving in a central potential (see Sect. 6).


next up previous contents
Next: Exercises Up: Hamiltonian Dynamics Previous: Constrained Lagrangian Dynamics   Contents
Richard Fitzpatrick 2008-01-13