So far we have described a system of particles by using
cartesian coordinates and
momenta (or velocities) coordinates to specify the position and the state of motion of each particle. We have also separated the treatment of the centre of mass of the particles from that of the internal degrees of freedom.
More generally, if the system has degrees of freedom it may be convenient to use the
generalised coordinates
and generalised velocities
, where
. In such a description the
generalised coordinates are all independent from each other. A simple example to illustrate this idea is the description of a rigid diatomic molecule in which the distance between the two atoms is fixed to be
. We could describe its position using the cartesian coordinates of the two atoms in the molecule,
and
, together with the auxiliary condition specifying the constraint
. Or, more simply, we could use 5 generalised coordinates, choosing for example the cartesian coordinates of atoms 1,
, and the two polar angles
and
defining the direction of the vector
, with
.
The kinetic energy of the system depends on the generalised coordinates and velocities,
, and so does the potential energy in general (e.g. charged particles in a magnetic field). However, here we will consider only potential energy functions that depend only on the generalised coordinates,
. An alternative a more convenient way to describe the state of the system is to use the generalised coordinates
and their conjugate momenta
, which are defined through the Lagrangian:
in classical mechanics these are continuous variables and so there would be an infinite number of them in any volume of phase space
To write an expression for the partition function we need the total energy of the system, which we define via the Hamiltonian:
where we have used the abbreviations