1.1. Calculating Temperature#
Kinetic Energy#
Consider a system of \(N\) particles. Take the kinetic energy to be
We leave the form of the potential energy unspecified and assume only that it depends on the coordinates. The Hamiltonian (total energy) is then
The resulting classical partition function is given below (\(\beta\equiv1/kT\)).
We now calculate the mean kinetic energy.
Here we define the mean kinetic energy of particle \(j\) as
The formula for the Gaussian integral gives
This result in turn gives
It follows that the mean kinetic energy per particle, independent of \(j\), is
The final result for the system is
Solving this equation for the temperature \(T\) gives
The temperature of the system can thus be obtained by calculating the mean kinetic energy per particle. Dropping the averaging brackets, we define
This quantity can be called the instantaneous temperature at time \(t\). It is used in molecular dynamics (MD) simulations, for example, to keep the system at a constant temperature.
Fig. 1.1.1 Constant-temperature MD simulation at 300 K for a system of 432 Fe atoms.#
Temperature Fluctuations#
As the derivation of Equation (1.1.5) shows, even tracking the kinetic energy of just one particle can in principle give the temperature. In practice, with few particles the fluctuations become so large that this is difficult to use as a temperature indicator. Fig. 1.1.2 shows an example with only a few atoms.
Fig. 1.1.2 Constant-temperature MD simulation at 300 K for a system of 16 Fe atoms.#
With many particles, fluctuations are small, so even a statistical quantity has an almost definite value. As in the derivation of Equation (1.1.4), the kinetic energy is a sum of \(3N\) independent squared terms. Each term has variance \((kT)^2/2\), so the variance of \(T_{\rm kin}\) is \(3N(kT)^2/2\). Dividing the square root of the variance by the mean in Equation (1.1.5) gives the relative fluctuation (standard deviation divided by mean) in the instantaneous temperature of Equation (1.1.7),
which decreases in inverse proportion to the square root of the number of particles. Values for different particle counts with the center-of-mass degrees of freedom removed are given in the molecular dynamics calculation example.
Equipartition Theorem#
As the derivation of Equation (1.1.5) shows, if the Hamiltonian contains a term \(ax^2\) proportional to the square of a degree of freedom (one component of a coordinate or momentum) \(x\), and \(x\) appears in no other term, then the integral over \(x\) is the same Gaussian integral as for the kinetic energy, and the mean value of that term is \(kT/2\). A system of harmonic oscillators is an example in which every term is quadratic. When each particle vibrates harmonically about its equilibrium position, the potential energy is also a sum of squared displacements (even if the particles are coupled, transforming to normal coordinates makes it a sum of independent squared terms). Each of the \(3N\) kinetic terms and the same number of potential terms contributes \(kT/2\), so
The mean energy of every harmonic oscillator is thus \(kT\); this is the result known as the equipartition theorem. Treating lattice vibrations as a collection of harmonic oscillators gives a heat capacity (the derivative of the expression above with respect to \(T\)) that is constant. This result is known as the Dulong–Petit law. Textbooks often discuss it as an example of where the classical theory breaks down at low temperatures.