Hamiltonian Mechanics
From TorontoMathWiki
When describing the mechanical state of a system of particles by specifying $n$ generalized coordinates $q_i$ and $n$ velocities $\dot{q_i}$, one can formulate the laws of mechanics in terms of the Lagrangian and the Euler-Lagrange equations derived from it. However, in the study of certain problems of mechanics, it is advantageous to describe the system in terms of the generalized coordinates $q_i$ and momenta $p_i$ of the system. In this formulation of mechanics, the equations of motion take on a simple, symmetric form, in which they are known as Hamilton's equations, or the canonical form of the Euler-Lagrange equations. We begin our study of Hamiltonian mechanics by deriving Hamilton’s equations in two ways: one of which uses differential calculus; the other involves defining a new action functional corresponding to the {$q_i, p_i, H$} formulation and deriving its associated Euler-Lagrange equations. Then we show that Lagrange's equations and Hamilton's equations are equivalent ways of describing the mechanics of a system, using properties of the Legendre Transformation. We conclude our analysis with a brief discussion of some consequences of the Hamiltonian formulation of mechanics.
Contents |
Derivation of Hamilton’s Equations
Let
be the Lagrangian of a system of particles described by $n$ generalized coordinates. The Euler-Lagrange equations of the associated action functional are
This is a system of $n$ second order differential equations. We obtain Hamilton's equations by reducing this system to a system of $2n$ first order differential equations. The generalized momenta are defined by the equations
Assume that
is a convex function of
, i.e.
, where
denotes the $n$ x $n$ matrix of second order partial derivatives of
with respect to
. Then the equations used to define
earlier also define
as functions of
and
.
Define the Hamiltonian
of the system by the formula
This is the Legendre Transformation of the Lagrangian, when
is defined as before. By definition of H,
By definition of $p_i$, the first and fourth terms cancel so
Therefore, the following system of first-order differential equations holds:
The first $2n$ equations are known as Hamilton’s equations.
Alternatively, consider the action functional
.
Define
as before. Define a new functional
where $q_i, p_i$ are $2n$ independent functions. When
, we have
. (We again assume that
, so we can solve for
as functions of
and
.) The Euler-Lagrange equations of
are
These are precisely Hamilton’s equations. We conclude that the Euler-Lagrange equations are equivalent to Hamilton’s equations provided that the functionals
and
have the same extrema.
Reference: Calculus of Variations by I.M. Gelfand & S.V. Fomin (translated and edited by Richard A. Silverman), 1991.
Equivalence of Euler-Lagrange and Hamiltonian formulations of mechanics
We demonstrate the equivalence of the Euler-Lagrange and Hamiltonian formulations of mechanics by showing that the functionals
and
, as defined before, have the same extrema. To do this, first observe that the Legendre Transformation is an involution. Thus, defining
and
as before, it follows that the Lagrangian
is the Legendre transform of
, since
so
for $ i = 1,...,n $, and hence
.
Next, it suffices to show that for fixed
,
is an extremum of
taken over all possible choices of the functions
. Symbolically,
Then any extremum of
, taken over all possible choices of the functions
, will be an extremum of
taken over all possible choices of the functions
and
. Symbolically,
Since
does not depend on
, it follows from the Euler-Lagrange equations (obtained when
is varied and
is fixed) that
, for $ i = 1,...,n $.
This implies that
. Let
, $ i = 1,...,n $, satisfy the equation
.
Since
, it follows that
, and hence,
.
This proves the equivalence of the Euler-Lagrange and Hamiltonian formulations of the mechanics of a system of particles.
Remark: Lagrange’s equations for a system of particles described by $n$ coordinates can be shown to be equivalent to Newton’s law
,
where
denotes the potential energy of the system.
Hence, Lagrangian Mechanics, Hamiltonian mechanics, and Newton’s laws are equivalent ways of describing the dynamics of the system.
Reference: Calculus of Variations by I.M. Gelfand & S.V. Fomin (translated and edited by Richard A. Silverman), 1991.
Complex Notation for Hamilton’s Equations
Consider Hamilton’s equations:
Suppose we let
and
give
and
and vice-versa, so we can express
as
, where
, and
. Consider the following system of $n$ equations in the complex variables
given by
This system is equivalent to Hamilton’s equations. Indeed,
so equating the real and imaginary parts of this expression with those of
yields Hamilton’s equations.
Reference: Prof. J. Colliander's lecture notes for MAT495H1 on May 12, 2010.
Consequences of the Hamiltonian formulation
Having shown the equivalence of the Hamiltonian formulation of mechanics to the Lagrangian formulation, it is natural to ask whether the Hamiltonian reformulation actually provides any new insights in the study of analytical mechanics. Several important results follow from formulating mechanics in terms of the momentum
and the Hamiltonian
(without loss of generality, let’s take $ n = 1 $). One of which is the following:
Proposition: Hamilton’s principle holds for independent variations of
and
i.e.
and
(respectively, the infinitesimal variations in
and
from a physical path in
phase space) are independent at each point in time (unlike
and
).
Proof: Hamilton’s principle requires the infinitesimal change in action,
, resulting from the variations
and
to be zero. The following equation holds:
By definition of the Hamiltonian, we have
Without loss of generality, assume that the Hamiltonian has no explicit time dependence. Therefore,
Thus,
Integrating the above equation with respect to time from
to
, we find that the integral of the total time derivative term is zero if
at the endpoints. Hamilton’s principle requires this condition to hold. So
It follows that
for independent arbitrary variations of
and
if and only if the coefficients of
and
vanish; the latter condition is equivalent to Hamilton’s equations. The expression,
implies that Hamilton’s equations
hold for independent variations of
and
. This proves the proposition. It also follows that
Note that in the above calculations, we required that
at the endpoints, while
can vary at the endpoints. The coordinates
and
are almost symmetric if, in addition, we impose the condition that
at the endpoints. This fact leads to the discovery of important theorems such as Liouville’s theorem and the Poincaré recurrence theorem. The symmetric treatment of
and
suggests that we can transform coordinates freely without thinking about whether a coordinate represents position or momentum. In fact, we use canonical transformations to find a new set of canonically conjugate coordinates in which a Hamiltonian system can be more easily solved. One such set of coordinates is the action-angle coordinates.
References:
- Analytical Mechanics by L. Hand and J. Finch, 1998.
- Classical Dynamics by D. Tong, 2008.