Hamilton’s Equations
The formulation of the laws of mechanics in terms of the Lagrangian, and of the Euler-Lagrange’s equations derived from it, presupposes that the mechanical state of a system is described by specifying its generalized coordinates and velocities. This is not the only possible mode of description, however. A number of advantages, especially in the study of certain general problems of mechanics, attach to a description in terms of the generalized coordinates and momenta of the system. The question therefore arises of the form of the equations of motion corresponding to that formulation of mechanics.
The passage from one set of independent variables to another can be effected by means of what is called in mathematics Legendre’s transformation. In the present case of this transformation is as follows. The total differential of the Lagrangian as a function of coordinates and velocities is
This expression may be written
since the derivatives
Definition:
Just like generalized forces are the extension of linear forces and moments, generalized momentum are the extension of linear and angular momentum to systems described by generalized coordinates, defines as:
It is also known as canonical momentum.
Rewriting (LL40.1) gives us:
The argument of the differential is the energy of the system expressed in terms of coordinates and momentum, it is called the Hamilton’s function or Hamiltonian of the system:
From the equation in differentials
in which the independent variables are the coordinates and momenta, we have the equations
These are the required equations of motion in the variables
The total time derivative of the Hamiltonian is
substitution of
In particular, if the Hamiltonian does not depend explicitly on time, then
As well as the dynamical variables
and (LL40.3) becomes
Hence
which relates the derivatives of the Lagrangian and the Hamiltonian with respect to the parameter
This result can be put in another way. Let the Lagrangian be of the form
It may be noticed that, in transforming (LL40.1) into (LL40.3), we did not include a term in
Exercises
Exercise 1
Find the Hamiltonian for a single particle in Cartesian, cylindrical and spherical coordinates.
Solution:
In Cartesian coordinates
The Lagrangian is:
The generalized momenta are:
Inverting these relations gives the velocities in terms of momenta:
The Hamiltonian is defined as
In cylindrical coordinates
The momenta are:
Velocities:
The Hamiltonian is:
In spherical coordinates
The momenta are:
Velocities:
The Hamiltonian is:
