Equipartition theorem

*light has 3 degrees of freedom*

In classical statistical mechanics, the **equipartition theorem** relates the temperature of a system to its average energies. The equipartition theorem is also known as the **law of equipartition**, **equipartition of energy**, or simply **equipartition**. The original idea of equipartition was that, in thermal equilibrium, energy is shared equally among all of its various forms; for example, the average kinetic energy per degree of freedom in translational motion of a molecule should equal that in rotational motion.

The equipartition theorem makes quantitative predictions. Like the virial theorem, it gives the total average kinetic and potential energies for a system at a given temperature, from which the system's heat capacity can be computed. However, equipartition also gives the average values of individual components of the energy, such as the kinetic energy of a particular particle or the potential energy of a single spring. For example, it predicts that every atom in a monatomic ideal gas has an average kinetic energy of (3/2)*k*B*T* in thermal equilibrium, where *k*B is the Boltzmann constant and *T* is the (thermodynamic) temperature. More generally, equipartition can be applied to any classical system in thermal equilibrium, no matter how complicated. It can be used to derive the ideal gas law, and the Dulong–Petit law for the specific heat capacities of solids. The equipartition theorem can also be used to predict the properties of stars, even white dwarfs and neutron stars, since it holds even when relativistic effects are considered.

Although the equipartition theorem makes accurate predictions in certain conditions, it is inaccurate when quantum effects are significant, such as at low temperatures. When the thermal energy *k*B*T* is smaller than the quantum energy spacing in a particular degree of freedom, the average energy and heat capacity of this degree of freedom are less than the values predicted by equipartition. Such a degree of freedom is said to be "frozen out" when the thermal energy is much smaller than this spacing. For example, the heat capacity of a solid decreases at low temperatures as various types of motion become frozen out, rather than remaining constant as predicted by equipartition. Such decreases in heat capacity were among the first signs to physicists of the 19th century that classical physics was incorrect and that a new, more subtle, scientific model was required. Along with other evidence, equipartition's failure to model black-body radiation—also known as the ultraviolet catastrophe—led Max Planck to suggest that energy in the oscillators in an object, which emit light, were quantized, a revolutionary hypothesis that spurred the development of quantum mechanics and quantum field theory.

## Basic concept and simple examples

See also: Kinetic energy, Heat capacity

The name "equipartition" means "equal division," as derived from the Latin *equi* from the antecedent, æquus ("equal or even"), and partition from the noun, *partitio* ("division, portion"). The original concept of equipartition was that the total kinetic energy of a system is shared equally among all of its independent parts, *on the average*, once the system has reached thermal equilibrium. Equipartition also makes quantitative predictions for these energies. For example, it predicts that every atom of an inert noble gas, in thermal equilibrium at temperature *T*, has an average translational kinetic energy of (3/2)*k*B*T*, where *k*B is the Boltzmann constant. As a consequence, since kinetic energy is equal to 1/2(mass)(velocity)2, the heavier atoms of xenon have a lower average speed than do the lighter atoms of helium at the same temperature. Figure 2 shows the Maxwell–Boltzmann distribution for the speeds of the atoms in four noble gases.

In this example, the key point is that the kinetic energy is quadratic in the velocity. The equipartition theorem shows that in thermal equilibrium, any degree of freedom (such as a component of the position or velocity of a particle) which appears only quadratically in the energy has an average energy of ​1⁄2*k*B*T* and therefore contributes ​1⁄2*k*B to the system's heat capacity. This has many applications.

### Translational energy and ideal gases

See also: Ideal gas
The (Newtonian) kinetic energy of a particle of mass *m*, velocity **v** is given by

H

kin

=

1
2

m

v

2

=

1
2

m

(

v

x

2

v

y

2

v

z

2

)

,

{\displaystyle H\_{\text{kin}}={\tfrac {1}{2}}m|\mathbf {v} |^{2}={\tfrac {1}{2}}m\left(v\_{x}^{2}+v\_{y}^{2}+v\_{z}^{2}\right),}

where *vx*, *vy* and *vz* are the Cartesian components of the velocity **v**. Here, *H* is short for Hamiltonian, and used henceforth as a symbol for energy because the Hamiltonian formalism plays a central role in the most general form of the equipartition theorem.

Since the kinetic energy is quadratic in the components of the velocity, by equipartition these three components each contribute ​1⁄2*k*B*T* to the average kinetic energy in thermal equilibrium. Thus the average kinetic energy of the particle is (3/2)*k*B*T*, as in the example of noble gases above.

More generally, in an ideal gas, the total energy consists purely of (translational) kinetic energy: by assumption, the particles have no internal degrees of freedom and move independently of one another. Equipartition therefore predicts that the total energy of an ideal gas of *N* particles is (3/2) *N k*B *T*.

It follows that the heat capacity of the gas is (3/2) *N k*B and hence, in particular, the heat capacity of a mole of such gas particles is (3/2)*N*A*k*B = (3/2)*R*, where *N*A is the Avogadro constant and *R* is the gas constant. Since *R* ≈ 2 cal/(mol·K), equipartition predicts that the molar heat capacity of an ideal gas is roughly 3 cal/(mol·K). This prediction is confirmed by experiment.

The mean kinetic energy also allows the root mean square speed *v*rms of the gas particles to be calculated:

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle v\_{\text{rms}} = \sqrt{\langle v^2 \rangle} = \sqrt{\frac{3 k\_B T}{m}} = \sqrt{\frac{3 R T}{M}}, }**

where *M* = *N*A*m* is the mass of a mole of gas particles. This result is useful for many applications such as Graham's law of effusion, which provides a method for enriching uranium.

### Rotational energy and molecular tumbling in solution

See also: Angular velocity, Rotational diffusion
A similar example is provided by a rotating molecule with principal moments of inertia *I*1, *I*2 and *I*3. The rotational energy of such a molecule is given by

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle H\_{\mathrm{rot}} = \tfrac{1}{2} ( I\_{1} \omega\_{1}^{2} + I\_{2} \omega\_{2}^{2} + I\_{3} \omega\_{3}^{2} ), }**

where *ω*1, *ω*2, and *ω*3 are the principal components of the angular velocity. By exactly the same reasoning as in the translational case, equipartition implies that in thermal equilibrium the average rotational energy of each particle is (3/2)*k*B*T*. Similarly, the equipartition theorem allows the average (more precisely, the root mean square) angular speed of the molecules to be calculated.

The tumbling of rigid molecules—that is, the random rotations of molecules in solution—plays a key role in the relaxations observed by nuclear magnetic resonance, particularly protein NMR and residual dipolar couplings. Rotational diffusion can also be observed by other biophysical probes such as fluorescence anisotropy, flow birefringence and dielectric spectroscopy.

### Potential energy and harmonic oscillators

Equipartition applies to potential energies as well as kinetic energies: important examples include harmonic oscillators such as a spring, which has a quadratic potential energy

H

pot

=

1
2

a

q

2

,

{\displaystyle H\_{\text{pot}}={\tfrac {1}{2}}aq^{2},\,}

where the constant *a* describes the stiffness of the spring and *q* is the deviation from equilibrium. If such a one-dimensional system has mass *m*, then its kinetic energy *H*kin is

H

kin

=

1
2

m

v

2

=

p

2

2
m

,

{\displaystyle H\_{\text{kin}}={\frac {1}{2}}mv^{2}={\frac {p^{2}}{2m}},}

where *v* and *p* = *mv* denote the velocity and momentum of the oscillator. Combining these terms yields the total energy

# H

H

kin

H

pot

=

p

2

2
m

1
2

a

q

2

.

{\displaystyle H=H\_{\text{kin}}+H\_{\text{pot}}={\frac {p^{2}}{2m}}+{\frac {1}{2}}aq^{2}.}

Equipartition therefore implies that in thermal equilibrium, the oscillator has average energy

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle \langle H \rangle = \langle H\_{\text{kin}} \rangle + \langle H\_{\text{pot}} \rangle = \tfrac{1}{2} k\_B T + \tfrac{1}{2} k\_B T = k\_B T, }**

where the angular brackets

⟨
…
⟩

{\displaystyle \left\langle \ldots \right\rangle }

 denote the average of the enclosed quantity,

This result is valid for any type of harmonic oscillator, such as a pendulum, a vibrating molecule or a passive electronic oscillator. Systems of such oscillators arise in many situations; by equipartition, each such oscillator receives an average total energy *k*B*T* and hence contributes *k*B to the system's heat capacity. This can be used to derive the formula for Johnson–Nyquist noise and the Dulong–Petit law of solid heat capacities. The latter application was particularly significant in the history of equipartition.

 Error creating thumbnail:
### Specific heat capacity of solids

*For more details on the molar specific heat capacities of solids, see Einstein solid and Debye model.*
An important application of the equipartition theorem is to the specific heat capacity of a crystalline solid. Each atom in such a solid can oscillate in three independent directions, so the solid can be viewed as a system of 3*N* independent simple harmonic oscillators, where *N* denotes the number of atoms in the lattice. Since each harmonic oscillator has average energy *k*B*T*, the average total energy of the solid is 3*Nk*B*T*, and its heat capacity is 3*Nk*B.

By taking *N* to be the Avogadro constant *N*A, and using the relation *R* = *N*A*k*B between the gas constant *R* and the Boltzmann constant *k*B, this provides an explanation for the Dulong–Petit law of specific heat capacities of solids, which stated that the specific heat capacity (per unit mass) of a solid element is inversely proportional to its atomic weight. A modern version is that the molar heat capacity of a solid is *3R* ≈ 6 cal/(mol·K).

However, this law is inaccurate at lower temperatures, due to quantum effects; it is also inconsistent with the experimentally derived third law of thermodynamics, according to which the molar heat capacity of any substance must go to zero as the temperature goes to absolute zero. A more accurate theory, incorporating quantum effects, was developed by Albert Einstein (1907) and Peter Debye (1911).

Many other physical systems can be modeled as sets of coupled oscillators. The motions of such oscillators can be decomposed into normal modes, like the vibrational modes of a piano string or the resonances of an organ pipe. On the other hand, equipartition often breaks down for such systems, because there is no exchange of energy between the normal modes. In an extreme situation, the modes are independent and so their energies are independently conserved. This shows that some sort of mixing of energies, formally called *ergodicity*, is important for the law of equipartition to hold.

### Sedimentation of particles

See also: Sedimentation, Mason–Weaver equation, Brewing
Potential energies are not always quadratic in the position. However, the equipartition theorem also shows that if a degree of freedom *x* contributes only a multiple of *x*s (for a fixed real number *s*) to the energy, then in thermal equilibrium the average energy of that part is *k*B*T*/*s*.

There is a simple application of this extension to the sedimentation of particles under gravity. For example, the haze sometimes seen in beer can be caused by clumps of proteins that scatter light. Over time, these clumps settle downwards under the influence of gravity, causing more haze near the bottom of a bottle than near its top. However, in a process working in the opposite direction, the particles also diffuse back up towards the top of the bottle. Once equilibrium has been reached, the equipartition theorem may be used to determine the average position of a particular clump of buoyant mass *m*b. For an infinitely tall bottle of beer, the gravitational potential energy is given by

H

g
r
a
v

=

m

b

g
z

{\displaystyle H^{\mathrm {grav} }=m\_{\rm {b}}gz\,}

where *z* is the height of the protein clump in the bottle and *g* is the acceleration due to gravity. Since *s* = 1, the average potential energy of a protein clump equals *k*B*T*. Hence, a protein clump with a buoyant mass of 10 MDa (roughly the size of a virus) would produce a haze with an average height of about 2 cm at equilibrium. The process of such sedimentation to equilibrium is described by the Mason–Weaver equation.

## History

*This article uses the non-SI unit of* cal/(mol·K) *for heat capacity, because it offers greater accuracy for single digits.
For an approximate conversion to the corresponding SI unit of* J/(mol·K)*, such values should be multiplied by 4.2* J/cal.
The equipartition of kinetic energy was proposed initially in 1843, and more correctly in 1845, by John James Waterston. In 1859, James Clerk Maxwell argued that the kinetic heat energy of a gas is equally divided between linear and rotational energy. In 1876, Ludwig Boltzmann expanded on this principle by showing that the average energy was divided equally among all the independent components of motion in a system. Boltzmann applied the equipartition theorem to provide a theoretical explanation of the Dulong–Petit law for the specific heat capacities of solids.

 Error creating thumbnail:
The history of the equipartition theorem is intertwined with that of specific heat capacity, both of which were studied in the 19th century. In 1819, the French physicists Pierre Louis Dulong and Alexis Thérèse Petit discovered that the specific heat capacities of solid elements at room temperature were inversely proportional to the atomic weight of the element. Their law was used for many years as a technique for measuring atomic weights. However, subsequent studies by James Dewar and Heinrich Friedrich Weber showed that this Dulong–Petit law holds only at high temperatures; at lower temperatures, or for exceptionally hard solids such as diamond, the specific heat capacity was lower.

Experimental observations of the specific heat capacities of gases also raised concerns about the validity of the equipartition theorem. The theorem predicts that the molar heat capacity of simple monatomic gases should be roughly 3 cal/(mol·K), whereas that of diatomic gases should be roughly 7 cal/(mol·K). Experiments confirmed the former prediction, but found that molar heat capacities of diatomic gases were typically about 5 cal/(mol·K), and fell to about 3 cal/(mol·K) at very low temperatures. Maxwell noted in 1875 that the disagreement between experiment and the equipartition theorem was much worse than even these numbers suggest; since atoms have internal parts, heat energy should go into the motion of these internal parts, making the predicted specific heats of monatomic and diatomic gases much higher than 3 cal/(mol·K) and 7 cal/(mol·K), respectively.

A third discrepancy concerned the specific heat of metals. According to the classical Drude model, metallic electrons act as a nearly ideal gas, and so they should contribute (3/2) *N*e*k*B to the heat capacity by the equipartition theorem, where *N*e is the number of electrons. Experimentally, however, electrons contribute little to the heat capacity: the molar heat capacities of many conductors and insulators are nearly the same.

Several explanations of equipartition's failure to account for molar heat capacities were proposed. Boltzmann defended the derivation of his equipartition theorem as correct, but suggested that gases might not be in thermal equilibrium because of their interactions with the aether. Lord Kelvin suggested that the derivation of the equipartition theorem must be incorrect, since it disagreed with experiment, but was unable to show how. In 1900 Lord Rayleigh instead put forward a more radical view that the equipartition theorem and the experimental assumption of thermal equilibrium were *both* correct; to reconcile them, he noted the need for a new principle that would provide an "escape from the destructive simplicity" of the equipartition theorem. Albert Einstein provided that escape, by showing in 1906 that these anomalies in the specific heat were due to quantum effects, specifically the quantization of energy in the elastic modes of the solid. Einstein used the failure of equipartition to argue for the need of a new quantum theory of matter. Nernst's 1910 measurements of specific heats at low temperatures supported Einstein's theory, and led to the widespread acceptance of quantum theory among physicists.

## General formulation of the equipartition theorem

See also: Generalized coordinates, Hamiltonian mechanics, Microcanonical ensemble, Canonical ensemble
The most general form of the equipartition theorem states that under suitable assumptions (discussed below), for a physical system with Hamiltonian energy function *H* and degrees of freedom *xn*, the following equipartition formula holds in thermal equilibrium for all indices *m* and *n*:

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle \! \Bigl\langle x\_{m} \frac{\partial H}{\partial x\_{n}} \Bigr\rangle = \delta\_{mn} k\_{B} T. }**

Here *δmn* is the Kronecker delta, which is equal to one if *m* = *n* and is zero otherwise. The averaging brackets **Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle \left\langle \ldots \right\rangle}**
 is assumed to be an ensemble average over phase space or, under an assumption of ergodicity, a time average of a single system.

The general equipartition theorem holds in both the microcanonical ensemble, when the total energy of the system is constant, and also in the canonical ensemble, when the system is coupled to a heat bath with which it can exchange energy. Derivations of the general formula are given later in the article.

The general formula is equivalent to the following two:

1. ⟨

x

n

∂
H

∂

x

n

⟩

=

k

B

T

for all

n

{\displaystyle {\Bigl \langle }x\_{n}{\frac {\partial H}{\partial x\_{n}}}{\Bigr \rangle }=k\_{B}T\quad {\mbox{for all }}n}
2. ⟨

x

m

∂
H

∂

x

n

⟩

=
0

for all

m
≠
n
.

{\displaystyle {\Bigl \langle }x\_{m}{\frac {\partial H}{\partial x\_{n}}}{\Bigr \rangle }=0\quad {\mbox{for all }}m\neq n.}

If a degree of freedom *xn* appears only as a quadratic term *anxn*2 in the Hamiltonian *H*, then the first of these formulae implies that

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle k\_{B} T = \Bigl\langle x\_{n} \frac{\partial H}{\partial x\_{n}}\Bigr\rangle = 2\langle a\_n x\_n^2 \rangle, }**

which is twice the contribution that this degree of freedom makes to the average energy **Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle \langle H\rangle}**
. Thus the equipartition theorem for systems with quadratic energies follows easily from the general formula. A similar argument, with 2 replaced by *s*, applies to energies of the form *anxns*.

The degrees of freedom *xn* are coordinates on the phase space of the system and are therefore commonly subdivided into generalized position coordinates *qk* and generalized momentum coordinates *pk*, where *pk* is the conjugate momentum to *qk*. In this situation, formula 1 means that for all *k*,

⟨

p

k

∂
H

∂

p

k

⟩

=

⟨

q

k

∂
H

∂

q

k

⟩

=

k

B

T
.

{\displaystyle {\Bigl \langle }p\_{k}{\frac {\partial H}{\partial p\_{k}}}{\Bigr \rangle }={\Bigl \langle }q\_{k}{\frac {\partial H}{\partial q\_{k}}}{\Bigr \rangle }=k\_{\rm {B}}T.}

Using the equations of Hamiltonian mechanics, these formulae may also be written

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle \Bigl\langle p\_{k} \frac{dq\_{k}}{dt} \Bigr\rangle = -\Bigl\langle q\_{k} \frac{dp\_{k}}{dt} \Bigr\rangle = k\_{\rm B} T. }**

Similarly, one can show using formula 2 that

⟨

q

j

∂
H

∂

p

k

⟩

=

⟨

p

j

∂
H

∂

q

k

⟩

=
0

 for all

j
,
k

{\displaystyle {\Bigl \langle }q\_{j}{\frac {\partial H}{\partial p\_{k}}}{\Bigr \rangle }={\Bigl \langle }p\_{j}{\frac {\partial H}{\partial q\_{k}}}{\Bigr \rangle }=0\quad {\mbox{ for all }}\,j,k}

and

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle \Bigl\langle q\_{j} \frac{\partial H}{\partial q\_{k}} \Bigr\rangle = \Bigl\langle p\_{j} \frac{\partial H}{\partial p\_{k}} \Bigr\rangle = 0 \quad \mbox{ for all } \, j \neq k. }**

### Relation to the virial theorem

See also: Virial theorem, Generalized coordinates, Hamiltonian mechanics
The general equipartition theorem is an extension of the virial theorem (proposed in 1870), which states that

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle \Bigl\langle \sum\_{k} q\_{k} \frac{\partial H}{\partial q\_{k}} \Bigr\rangle = \Bigl\langle \sum\_{k} p\_{k} \frac{\partial H}{\partial p\_{k}} \Bigr\rangle = \Bigl\langle \sum\_{k} p\_{k} \frac{dq\_{k}}{dt} \Bigr\rangle = -\Bigl\langle \sum\_{k} q\_{k} \frac{dp\_{k}}{dt} \Bigr\rangle, }**

where *t* denotes time. Two key differences are that the virial theorem relates *summed* rather than *individual* averages to each other, and it does not connect them to the temperature *T*. Another difference is that traditional derivations of the virial theorem use averages over time, whereas those of the equipartition theorem use averages over phase space.

## Applications

### Ideal gas law

See also: Ideal gas, Ideal gas law
Ideal gases provide an important application of the equipartition theorem. As well as providing the formula

⟨

H

k
i
n

⟩

=

1

2
m

⟨

p

x

2

p

y

2

p

z

2

⟩

=

1
2

(

⟨

p

x

∂

H

k
i
n

∂

p

x

⟩

⟨

p

y

∂

H

k
i
n

∂

p

y

⟩

⟨

p

z

∂

H

k
i
n

∂

p

z

⟩

)

=

3
2

k

B

T

{\displaystyle {\begin{aligned}\langle H^{\mathrm {kin} }\rangle &={\frac {1}{2m}}\langle p\_{x}^{2}+p\_{y}^{2}+p\_{z}^{2}\rangle \\&={\frac {1}{2}}{\biggl (}{\Bigl \langle }p\_{x}{\frac {\partial H^{\mathrm {kin} }}{\partial p\_{x}}}{\Bigr \rangle }+{\Bigl \langle }p\_{y}{\frac {\partial H^{\mathrm {kin} }}{\partial p\_{y}}}{\Bigr \rangle }+{\Bigl \langle }p\_{z}{\frac {\partial H^{\mathrm {kin} }}{\partial p\_{z}}}{\Bigr \rangle }{\biggr )}={\frac {3}{2}}k\_{B}T\end{aligned}}}

for the average kinetic energy per particle, the equipartition theorem can be used to derive the ideal gas law from classical mechanics. If **q** = (*qx*, *qy*, *qz*) and **p** = (*px*, *py*, *pz*) denote the position vector and momentum of a particle in the gas, and
**F** is the net force on that particle, then

⟨

q

⋅

F

⟩

=

⟨

q

x

d

p

x

d
t

⟩

⟨

q

y

d

p

y

d
t

⟩

⟨

q

z

d

p

z

d
t

⟩

=
−

⟨

q

x

∂
H

∂

q

x

⟩

−

⟨

q

y

∂
H

∂

q

y

⟩

−

⟨

q

z

∂
H

∂

q

z

⟩

=
−
3

k

B

T
,

{\displaystyle {\begin{aligned}\langle \mathbf {q} \cdot \mathbf {F} \rangle &={\Bigl \langle }q\_{x}{\frac {dp\_{x}}{dt}}{\Bigr \rangle }+{\Bigl \langle }q\_{y}{\frac {dp\_{y}}{dt}}{\Bigr \rangle }+{\Bigl \langle }q\_{z}{\frac {dp\_{z}}{dt}}{\Bigr \rangle }\\&=-{\Bigl \langle }q\_{x}{\frac {\partial H}{\partial q\_{x}}}{\Bigr \rangle }-{\Bigl \langle }q\_{y}{\frac {\partial H}{\partial q\_{y}}}{\Bigr \rangle }-{\Bigl \langle }q\_{z}{\frac {\partial H}{\partial q\_{z}}}{\Bigr \rangle }=-3k\_{B}T,\end{aligned}}}

where the first equality is Newton's second law, and the second line uses Hamilton's equations and the equipartition formula. Summing over a system of *N* particles yields

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle 3Nk\_{B} T = - \biggl\langle \sum\_{k=1}^{N} \mathbf{q}\_{k} \cdot \mathbf{F}\_{k} \biggr\rangle. }**

 Error creating thumbnail:
By Newton's third law and the ideal gas assumption, the net force on the system is the force applied by the walls of their container, and this force is given by the pressure *P* of the gas. Hence

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle -\biggl\langle\sum\_{k=1}^{N} \mathbf{q}\_{k} \cdot \mathbf{F}\_{k}\biggr\rangle = P \oint\_{\mathrm{surface}} \mathbf{q} \cdot \mathbf{dS}, }**

where **d*S*** is the infinitesimal area element along the walls of the container. Since the divergence of the position vector **q** is

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle \boldsymbol\nabla \cdot \mathbf{q} = \frac{\partial q\_{x}}{\partial q\_{x}} + \frac{\partial q\_{y}}{\partial q\_{y}} + \frac{\partial q\_{z}}{\partial q\_{z}} = 3, }**

the divergence theorem implies that

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle P \oint\_{\mathrm{surface}} \mathbf{q} \cdot \mathbf{dS} = P \int\_{\mathrm{volume}} \left( \boldsymbol\nabla \cdot \mathbf{q} \right) \, dV = 3PV, }**

where d*V* is an infinitesimal volume within the container and *V* is the total volume of the container.

Putting these equalities together yields

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle 3Nk\_{B} T = -\biggl\langle \sum\_{k=1}^{N} \mathbf{q}\_{k} \cdot \mathbf{F}\_{k} \biggr\rangle = 3PV, }**

which immediately implies the ideal gas law for *N* particles:

P
# V
N

k

B

# T
n
R
T
,

{\displaystyle PV=Nk\_{B}T=nRT,\,}

where *n* = *N*/*N*A is the number of moles of gas and *R* = *N*A*k*B is the gas constant. Although equipartition provides a simple derivation of the ideal-gas law and the internal energy, the same results can be obtained by an alternative method using the partition function.

### Diatomic gases

See also: Two-body problem, Rigid rotor, Harmonic oscillator
A diatomic gas can be modelled as two masses, *m*1 and *m*2, joined by a spring of stiffness *a*, which is called the *rigid rotor-harmonic oscillator approximation*. The classical energy of this system is

# H

p

1

2

2

m

1

p

2

2

2

m

2

1
2

a

q

2

,

where **p**1 and **p**2 are the momenta of the two atoms, and *q* is the deviation of the inter-atomic separation from its equilibrium value. Every degree of freedom in the energy is quadratic and, thus, should contribute ​1⁄2*k*B*T* to the total average energy, and ​1⁄2*k*B to the heat capacity. Therefore, the heat capacity of a gas of *N* diatomic molecules is predicted to be 7*N*·​1⁄2*k*B: the momenta **p**1 and **p**2 contribute three degrees of freedom each, and the extension *q* contributes the seventh. It follows that the heat capacity of a mole of diatomic molecules with no other degrees of freedom should be (7/2)*N*A*k*B = (7/2)*R* and, thus, the predicted molar heat capacity should be roughly 7 cal/(mol·K). However, the experimental values for molar heat capacities of diatomic gases are typically about 5 cal/(mol·K) and fall to 3 cal/(mol·K) at very low temperatures. This disagreement between the equipartition prediction and the experimental value of the molar heat capacity cannot be explained by using a more complex model of the molecule, since adding more degrees of freedom can only *increase* the predicted specific heat, not decrease it. This discrepancy was a key piece of evidence showing the need for a quantum theory of matter.

 File:Chandra-crab.jpg
### Extreme relativistic ideal gases

See also: Special relativity, White dwarf, Neutron star
Equipartition was used above to derive the classical ideal gas law from Newtonian mechanics. However, relativistic effects become dominant in some systems, such as white dwarfs and neutron stars, and the ideal gas equations must be modified. The equipartition theorem provides a convenient way to derive the corresponding laws for an extreme relativistic ideal gas. In such cases, the kinetic energy of a single particle is given by the formula

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle H\_{\mathrm{kin}} \approx cp = c \sqrt{p\_{x}^{2} + p\_{y}^{2} + p\_{z}^{2}}. }**

Taking the derivative of *H* with respect to the *px* momentum component gives the formula

p

x

∂

H

k
i
n

∂

p

x

=
c

p

x

2

p

x

2

p

y

2

p

z

2

{\displaystyle p\_{x}{\frac {\partial H\_{\mathrm {kin} }}{\partial p\_{x}}}=c{\frac {p\_{x}^{2}}{\sqrt {p\_{x}^{2}+p\_{y}^{2}+p\_{z}^{2}}}}}

and similarly for the *py* and *pz* components. Adding the three components together gives

⟨

H

k
i
n

⟩

=

⟨

c

p

x

2

p

y

2

p

z

2

p

x

2

p

y

2

p

z

2

⟩

=

⟨

p

x

∂

H

k
i
n

∂

p

x

⟩

⟨

p

y

∂

H

k
i
n

∂

p

y

⟩

⟨

p

z

∂

H

k
i
n

∂

p

z

⟩

=
3

k

B

T

{\displaystyle {\begin{aligned}\langle H\_{\mathrm {kin} }\rangle &={\biggl \langle }c{\frac {p\_{x}^{2}+p\_{y}^{2}+p\_{z}^{2}}{\sqrt {p\_{x}^{2}+p\_{y}^{2}+p\_{z}^{2}}}}{\biggr \rangle }\\&={\Bigl \langle }p\_{x}{\frac {\partial H^{\mathrm {kin} }}{\partial p\_{x}}}{\Bigr \rangle }+{\Bigl \langle }p\_{y}{\frac {\partial H^{\mathrm {kin} }}{\partial p\_{y}}}{\Bigr \rangle }+{\Bigl \langle }p\_{z}{\frac {\partial H^{\mathrm {kin} }}{\partial p\_{z}}}{\Bigr \rangle }\\&=3k\_{B}T\end{aligned}}}

where the last equality follows from the equipartition formula. Thus, the average total energy of an extreme relativistic gas is twice that of the non-relativistic case: for *N* particles, it is 3 *Nk*B*T*.

### Non-ideal gases

See also: Virial expansion, Virial coefficient
In an ideal gas the particles are assumed to interact only through collisions. The equipartition theorem may also be used to derive the energy and pressure of "non-ideal gases" in which the particles also interact with one another through conservative forces whose potential *U*(*r*) depends only on the distance *r* between the particles. This situation can be described by first restricting attention to a single gas particle, and approximating the rest of the gas by a spherically symmetric distribution. It is then customary to introduce a radial distribution function *g*(*r*) such that the probability density of finding another particle at a distance *r* from the given particle is equal to 4π*r*2*ρg*(*r*), where *ρ* = *N*/*V* is the mean density of the gas. It follows that the mean potential energy associated to the interaction of the given particle with the rest of the gas is

⟨

h

p
o
t

# ⟩

∫

0

∞

4
π

r

2

ρ
U
(
r
)
g
(
r
)

d
r
.

{\displaystyle \langle h\_{\mathrm {pot} }\rangle =\int \_{0}^{\infty }4\pi r^{2}\rho U(r)g(r)\,dr.}

The total mean potential energy of the gas is therefore **Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle \langle H\_{pot} \rangle = \tfrac12 N \langle h\_{\mathrm{pot}} \rangle }**
, where *N* is the number of particles in the gas, and the factor ​1⁄2 is needed because summation over all the particles counts each interaction twice.
Adding kinetic and potential energies, then applying equipartition, yields the *energy equation*

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle H = \langle H\_{\mathrm{kin}} \rangle + \langle H\_{\mathrm{pot}} \rangle = \frac{3}{2} Nk\_{B}T + 2\pi N \rho \int\_{0}^{\infty} r^{2} U(r) g(r) \, dr. }**

A similar argument, can be used to derive the *pressure equation*

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle 3Nk\_{\rm B}T = 3PV + 2\pi N \rho \int\_{0}^{\infty} r^{3} U'(r) g(r)\, dr. }**

### Anharmonic oscillators

See also: Anharmonic oscillator
An anharmonic oscillator (in contrast to a simple harmonic oscillator) is one in which the potential energy is not quadratic in the extension *q* (the generalized position which measures the deviation of the system from equilibrium). Such oscillators provide a complementary point of view on the equipartition theorem. Simple examples are provided by potential energy functions of the form

H

p
o
t

=
C

q

s

,

{\displaystyle H\_{\mathrm {pot} }=Cq^{s},\,}

where *C* and *s* are arbitrary real constants. In these cases, the law of equipartition predicts that

k

B

# T

⟨

q

∂

H

p
o
t

∂
q

⟩

=
⟨
q
⋅
s
C

q

s
−
1

# ⟩
⟨
s
C

q

s

# ⟩
s
⟨

H

p
o
t

⟩
.

{\displaystyle k\_{\rm {B}}T={\Bigl \langle }q{\frac {\partial H\_{\mathrm {pot} }}{\partial q}}{\Bigr \rangle }=\langle q\cdot sCq^{s-1}\rangle =\langle sCq^{s}\rangle =s\langle H\_{\mathrm {pot} }\rangle .}

Thus, the average potential energy equals *k*B*T*/*s*, not *k*B*T*/2 as for the quadratic harmonic oscillator (where *s* = 2).

More generally, a typical energy function of a one-dimensional system has a Taylor expansion in the extension *q*:

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle H\_{\mathrm{pot}} = \sum\_{n=2}^{\infty} C\_{n} q^{n} }**

for non-negative integers *n*. There is no *n* = 1 term, because at the equilibrium point, there is no net force and so the first derivative of the energy is zero. The *n* = 0 term need not be included, since the energy at the equilibrium position may be set to zero by convention. In this case, the law of equipartition predicts that

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle k\_{B} T = \Bigl\langle q \frac{\partial H\_{\mathrm{pot}}}{\partial q} \Bigr\rangle = \sum\_{n=2}^{\infty} \langle q \cdot n C\_{n} q^{n-1} \rangle = \sum\_{n=2}^{\infty} n C\_{n} \langle q^{n} \rangle. }**

In contrast to the other examples cited here, the equipartition formula

⟨

H

p
o
t

# ⟩

1
2

k

B

T
−

∑

# n
3

∞

(

n
−
2

2

)

C

n

⟨

q

n

⟩

{\displaystyle \langle H\_{\mathrm {pot} }\rangle ={\frac {1}{2}}k\_{\rm {B}}T-\sum \_{n=3}^{\infty }\left({\frac {n-2}{2}}\right)C\_{n}\langle q^{n}\rangle }

does *not* allow the average potential energy to be written in terms of known constants.

### Brownian motion

 Error creating thumbnail:
The equipartition theorem can be used to derive the Brownian motion of a particle from the Langevin equation. According to that equation, the motion of a particle of mass *m* with velocity **v** is governed by Newton's second law

d

v

d
t

=

1
m

F

=
−

v

τ

1
m

F

r
n
d

,

{\displaystyle {\frac {d\mathbf {v} }{dt}}={\frac {1}{m}}\mathbf {F} =-{\frac {\mathbf {v} }{\tau }}+{\frac {1}{m}}\mathbf {F} \_{\mathrm {rnd} },}

where **F**rnd is a random force representing the random collisions of the particle and the surrounding molecules, and where the time constant τ reflects the drag force that opposes the particle's motion through the solution. The drag force is often written **F**drag = −γ**v**; therefore, the time constant τ equals *m*/γ.

The dot product of this equation with the position vector **r**, after averaging, yields the equation

⟨

r

⋅

d

v

d
t

⟩

1
τ

⟨

r

⋅

v

# ⟩
0

{\displaystyle {\Bigl \langle }\mathbf {r} \cdot {\frac {d\mathbf {v} }{dt}}{\Bigr \rangle }+{\frac {1}{\tau }}\langle \mathbf {r} \cdot \mathbf {v} \rangle =0}

for Brownian motion (since the random force **F**rnd is uncorrelated with the position **r**). Using the mathematical identities

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle \frac{d}{dt} \left( \mathbf{r} \cdot \mathbf{r} \right) = \frac{d}{dt} \left( r^{2} \right) = 2 \left( \mathbf{r} \cdot \mathbf{v} \right) }**

and

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle \frac{d}{dt} \left( \mathbf{r} \cdot \mathbf{v} \right) = v^{2} + \mathbf{r} \cdot \frac{d\mathbf{v}}{dt}, }**

the basic equation for Brownian motion can be transformed into

d

2

d

t

2

⟨

r

2

⟩

1
τ

d

d
t

⟨

r

2

# ⟩
2
⟨

v

2

# ⟩

6
m

k

B

T
,

{\displaystyle {\frac {d^{2}}{dt^{2}}}\langle r^{2}\rangle +{\frac {1}{\tau }}{\frac {d}{dt}}\langle r^{2}\rangle =2\langle v^{2}\rangle ={\frac {6}{m}}k\_{\rm {B}}T,}

where the last equality follows from the equipartition theorem for translational kinetic energy:

⟨

H

k
i
n

# ⟩

⟨

p

2

2
m

⟩

=
⟨

1
2

m

v

2

# ⟩

3
2

k

B

T
.

{\displaystyle \langle H\_{\mathrm {kin} }\rangle ={\Bigl \langle }{\frac {p^{2}}{2m}}{\Bigr \rangle }=\langle {\tfrac {1}{2}}mv^{2}\rangle ={\tfrac {3}{2}}k\_{\rm {B}}T.}

The above differential equation for **Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle \langle r^2\rangle}**
 (with suitable initial conditions) may be solved exactly:

⟨

r

2

# ⟩

6

k

B

T

τ

2

m

(

e

−
t

/

τ

−
1

t
τ

)

.

{\displaystyle \langle r^{2}\rangle ={\frac {6k\_{\rm {B}}T\tau ^{2}}{m}}\left(e^{-t/\tau }-1+{\frac {t}{\tau }}\right).}

On small time scales, with *t* << *τ*, the particle acts as a freely moving particle: by the Taylor series of the exponential function, the squared distance grows approximately *quadratically*:

**Failed to parse (SVG with PNG fallback (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest\_v1/":): {\displaystyle \langle r^{2} \rangle \approx \frac{3k\_{\rm B} T}{m} t^{2} = \langle v^{2} \rangle t^{2}. }**

However, on long time scales, with *t* >> *τ*, the exponential and constant terms are negligible, and the squared distance grows only *linearly*:

⟨

r

2

⟩
≈

6

k

B

T
τ

m

# t

6

k

B

T
t

γ

.

{\displaystyle \langle r^{2}\rangle \approx {\frac {6k\_{B}T\tau }{m}}t={\frac {6k\_{B}Tt}{\gamma }}.}

This describes the diffusion of the particle over time. An analogous equation for the rotational diffusion of a rigid molecule can be derived in a similar way.

### Stellar physics

See also: Astrophysics, Stellar structure
The equipartition theorem and the related virial theorem have long been used as a tool in astrophysics. As examples, the virial theorem may be used to estimate stellar temperatures or the Chandrasekhar limit on the mass of white dwarf stars.

The average temperature of a star can be estimated from the equipartition theorem. Since most stars are spherically symmetric, the total gravitational potential energy can be estimated by integration

H

g
r
a
v

=
−

∫

0

R

4
π

r

2

G

r

M
(
r
)

ρ
(
r
)

d
r
,

{\displaystyle H\_{\mathrm {grav} }=-\int \_{0}^{R}{\frac {4\pi r^{2}G}{r}}M(r)\,\rho (r)\,dr,}

where *M*(*r*) is the mass within a radius *r* and *ρ*(*r*) is the stellar density at radius *r*; *G* represents the gravitational constant and *R* the total radius of the star. Assuming a constant density throughout the star, this integration yields the formula

H

g
r
a
v

=
−

3
G

M

2

5
R

,

{\displaystyle H\_{\mathrm {grav} }=-{\frac {3GM^{2}}{5R}},}

where *M* is the star's total mass. Hence, the average potential energy of a single particle is

⟨

H

g
r
a
v

# ⟩

H

g
r
a
v

N

=
−

3
G

M

2

5
R
N

,

{\displaystyle \langle H\_{\mathrm {grav} }\rangle ={\frac {H\_{\mathrm {grav} }}{N}}=-{\frac {3GM^{2}}{5RN}},}

where *N* is the number of particles in the star. Since most stars are composed mainly of ionized hydrogen, *N* equals roughly *M*/*m*p, where *m*p is the mass of one proton. Application of the equipartition theorem gives an estimate of the star's temperature

⟨

r

∂

H

g
r
a
v

∂
r

⟩

=
⟨
−

H

g
r
a
v

# ⟩

k

B

# T

3
G

M

2

5
R
N

.

{\displaystyle {\Bigl \langle }r{\frac {\partial H\_{\mathrm {grav} }}{\partial r}}{\Bigr \rangle }=\langle -H\_{\mathrm {grav} }\rangle =k\_{B}T={\frac {3GM^{2}}{5RN}}.}

Substitution of the mass and radius of the Sun yields an estimated solar temperature of *T* = 14 million kelvins, very close to its core temperature of 15 million kelvins. However, the Sun is much more complex than assumed by this model—both its temperature and density vary strongly with radius—and such excellent agreement (≈7% relative error) is partly fortuitous.

### Star formation

The same formulae may be applied to determining the conditions for star formation in giant molecular clouds. A local fluctuation in the density of such a cloud can lead to a runaway condition in which the cloud collapses inwards under its own gravity. Such a collapse occurs when the equipartition theorem—or, equivalently, the virial theorem—is no longer valid, i.e., when the gravitational potential energy exceeds twice the kinetic energy

3
G

M

2

5
R

>
3
N

k

B

T
.

{\displaystyle {\frac {3GM^{2}}{5R}}>3Nk\_{B}T.}

Assuming a constant density ρ for the cloud

# M

4
3

π

R

3

ρ

{\displaystyle M={\frac {4}{3}}\pi R^{3}\rho }

yields a minimum mass for stellar contraction, the Jeans mass *M*J

M

J

2

=

(

5

k

B

T

G

m

p

)

3

(

3

4
π
ρ

)

.

{\displaystyle M\_{\rm {J}}^{2}=\left({\frac {5k\_{B}T}{Gm\_{p}}}\right)^{3}\left({\frac {3}{4\pi \rho }}\right).}

Substituting the values typically observed in such clouds (*T* = 150 K, ρ = 2×10−16 g/cm3) gives an estimated minimum mass of 17 solar masses, which is consistent with observed star formation. This effect is also known as the Jeans instability, after the British physicist James Hopwood Jeans who published it in 1902.

## Derivations

### Kinetic energies and the Maxwell–Boltzmann distribution

The original formulation of the equipartition theorem states that, in any physical system in thermal equilibrium, every particle has exactly the same average translational kinetic energy, (3/2)*k*B*T*. This may be shown using the Maxwell–Boltzmann distribution (see Figure 2), which is the probability distribution

f
(
v
# )
4
π

(

m

2
π

k

B

T

)

3

/

2

v

2

exp
⁡

(

−
m

v

2

2

k

B

T

)

{\displaystyle f(v)=4\pi \left({\frac {m}{2\pi k\_{\rm {B}}T}}\right)^{3/2}\!\!v^{2}\exp {\Bigl (}{\frac {-mv^{2}}{2k\_{\rm {B}}T}}{\Bigr )}}

for the speed of a particle of mass *m* in the system, where the speed *v* is the magnitude

v

x

2

v

y

2

v

z

2

{\displaystyle {\sqrt {v\_{x}^{2}+v\_{y}^{2}+v\_{z}^{2}}}}

 of the velocity vector

v

=
(

v

x

,

v

y

,

v

z

)
.

{\displaystyle \mathbf {v} =(v\_{x},v\_{y},v\_{z}).}

The Maxwell–Boltzmann distribution applies to any system composed of atoms, and assumes only a canonical ensemble, specifically, that the kinetic energies are distributed according to their Boltzmann factor at a temperature *T*. The average translational kinetic energy for a particle of mass *m* is then given by the integral formula

⟨

H

k
i
n

# ⟩
⟨

1
2

m

v

2

# ⟩

∫

0

∞

1
2

m

v

2

f
(
v
)

d
# v

3
2

k

B

T
,

{\displaystyle \langle H\_{\mathrm {kin} }\rangle =\langle {\tfrac {1}{2}}mv^{2}\rangle =\int \_{0}^{\infty }{\tfrac {1}{2}}mv^{2}\ f(v)\ dv={\tfrac {3}{2}}k\_{\rm {B}}T,}

as stated by the equipartition theorem. The same result can also be obtained by averaging the particle energy using the probability of finding the particle in certain quantum energy state.

### Quadratic energies and the partition function

More generally, the equipartition theorem states that any degree of freedom *x* which appears in the total energy *H* only as a simple quadratic term *Ax*2, where *A* is a constant, has an average energy of ½*k*B*T* in thermal equilibrium. In this case the equipartition theorem may be derived from the partition function *Z*(*β*), where *β* = 1/(*k*B*T*) is the canonical inverse temperature. Integration over the variable *x* yields a factor

Z

x

=

∫

−
∞

∞

d
x

e

−
β
A

x

2

=

π

β
A

,

{\displaystyle Z\_{x}=\int \_{-\infty }^{\infty }dx\ e^{-\beta Ax^{2}}={\sqrt {\frac {\pi }{\beta A}}},}

in the formula for *Z*. The mean energy associated with this factor is given by

⟨

H

x

# ⟩
−

∂
log
⁡

Z

x

∂
β

=

1

2
β

=

1
2

k

B

T

{\displaystyle \langle H\_{x}\rangle =-{\frac {\partial \log Z\_{x}}{\partial \beta }}={\frac {1}{2\beta }}={\frac {1}{2}}k\_{\rm {B}}T}

as stated by the equipartition theorem.

### General proofs

General derivations of the equipartition theorem can be found in many statistical mechanics textbooks, both for the microcanonical ensemble and for the canonical ensemble.
They involve taking averages over the phase space of the system, which is a symplectic manifold.

To explain these derivations, the following notation is introduced. First, the phase space is described in terms of generalized position coordinates *q**j* together with their conjugate momenta *p**j*. The quantities *q**j* completely describe the configuration of the system, while the quantities (*q**j*,*p**j*) together completely describe its state.

Secondly, the infinitesimal volume

d
# Γ

∏

i

d

q

i

d

p

i

{\displaystyle d\Gamma =\prod \_{i}dq\_{i}\,dp\_{i}\,}

of the phase space is introduced and used to define the volume Σ(*E*, Δ*E*) of the portion of phase space where the energy *H* of the system lies between two limits, *E* and *E* + Δ*E*:

Σ
(
E
,
Δ
E
# )

∫

H
∈

[

E
,
E
Δ
E

]

d
Γ
.

{\displaystyle \Sigma (E,\Delta E)=\int \_{H\in \left[E,E+\Delta E\right]}d\Gamma .}

In this expression, Δ*E* is assumed to be very small, Δ*E* << *E*. Similarly, Ω(*E*) is defined to be the total volume of phase space where the energy is less than *E*:

Ω
(
E
# )

∫

H
<
E

d
Γ
.

{\displaystyle \Omega (E)=\int \_{H<E}d\Gamma .\,}

Since Δ*E* is very small, the following integrations are equivalent

∫

H
∈

[

E
,
E
Δ
E

]

…
d
# Γ
Δ
E

∂

∂
E

∫

H
<
E

…
d
Γ
,

{\displaystyle \int \_{H\in \left[E,E+\Delta E\right]}\ldots d\Gamma =\Delta E{\frac {\partial }{\partial E}}\int \_{H<E}\ldots d\Gamma ,}

where the ellipses represent the integrand. From this, it follows that Γ is proportional to Δ*E*

# Σ
Δ
E

∂
Ω

∂
E

=
Δ
E

ρ
(
E
)
,

{\displaystyle \Sigma =\Delta E\ {\frac {\partial \Omega }{\partial E}}=\Delta E\ \rho (E),}

where *ρ*(*E*) is the density of states. By the usual definitions of statistical mechanics, the entropy *S* equals *k*B log *Ω*(*E*), and the temperature *T* is defined by

1
T

=

∂
S

∂
E

=

k

B

∂
log
⁡
Ω

∂
E

=

k

B

1
Ω

∂
Ω

∂
E

.

{\displaystyle {\frac {1}{T}}={\frac {\partial S}{\partial E}}=k\_{\rm {B}}{\frac {\partial \log \Omega }{\partial E}}=k\_{\rm {B}}{\frac {1}{\Omega }}\,{\frac {\partial \Omega }{\partial E}}.}

#### The canonical ensemble

In the canonical ensemble, the system is in thermal equilibrium with an infinite heat bath at temperature *T* (in kelvins). The probability of each state in phase space is given by its Boltzmann factor times a normalization factor

N

{\displaystyle {\mathcal {N}}}

, which is chosen so that the probabilities sum to one

N

∫

e

−
β
H
(
p
,
q
)

d
# Γ
1
,

{\displaystyle {\mathcal {N}}\int e^{-\beta H(p,q)}d\Gamma =1,}

where *β* = 1/*k*B*T*. Using Integration by parts for a phase-space variable *xk* the above can be written as

N

∫

e

−
β
H
(
p
,
q
)

d
# Γ

N

∫
d
[

x

k

e

−
β
H
(
p
,
q
)

]
d

Γ

k

−

N

∫

x

k

∂

e

−
β
H
(
p
,
q
)

∂

x

k

d
Γ
,

{\displaystyle {\mathcal {N}}\int e^{-\beta H(p,q)}d\Gamma ={\mathcal {N}}\int d[x\_{k}e^{-\beta H(p,q)}]d\Gamma \_{k}-{\mathcal {N}}\int x\_{k}{\frac {\partial e^{-\beta H(p,q)}}{\partial x\_{k}}}d\Gamma ,}

where d*Γk* = d*Γ*/d*xk*, i.e., the first integration is not carried out over *xk*. Performing the first integral between two limits *a* and *b* and simplifying the second integral yields the equation

N

∫

[

e

−
β
H
(
p
,
q
)

x

k

]

x

k

=
a

x

k

=
b

d

Γ

k

N

∫

e

−
β
H
(
p
,
q
)

x

k

β

∂
H

∂

x

k

d
# Γ
1
,

{\displaystyle {\mathcal {N}}\int \left[e^{-\beta H(p,q)}x\_{k}\right]\_{x\_{k}=a}^{x\_{k}=b}d\Gamma \_{k}+{\mathcal {N}}\int e^{-\beta H(p,q)}x\_{k}\beta {\frac {\partial H}{\partial x\_{k}}}d\Gamma =1,}

The first term is usually zero, either because *xk* is zero at the limits, or because the energy goes to infinity at those limits. In that case, the equipartition theorem for the canonical ensemble follows immediately

N

∫

e

−
β
H
(
p
,
q
)

x

k

∂
H

∂

x

k

d
# Γ

⟨

x

k

∂
H

∂

x

k

⟩

=

1
β

=

k

B

T
.

{\displaystyle {\mathcal {N}}\int e^{-\beta H(p,q)}x\_{k}{\frac {\partial H}{\partial x\_{k}}}\,d\Gamma ={\Bigl \langle }x\_{k}{\frac {\partial H}{\partial x\_{k}}}{\Bigr \rangle }={\frac {1}{\beta }}=k\_{B}T.}

Here, the averaging symbolized by

⟨
…
⟩

{\displaystyle \langle \ldots \rangle }

 is the ensemble average taken over the canonical ensemble.

#### The microcanonical ensemble

In the microcanonical ensemble, the system is isolated from the rest of the world, or at least very weakly coupled to it. Hence, its total energy is effectively constant; to be definite, we say that the total energy *H* is confined between *E* and *E*+d*E*. For a given energy *E* and spread d*E*, there is a region of phase space Σ in which the system has that energy, and the probability of each state in that region of phase space is equal, by the definition of the microcanonical ensemble. Given these definitions, the equipartition average of phase-space variables *xm* (which could be either *qk*or *pk*) and *xn* is given by

⟨

x

m

∂
H

∂

x

n

⟩

=

1
Σ

∫

H
∈

[

E
,
E
Δ
E

]

x

m

∂
H

∂

x

n

d
Γ

=

Δ
E

Σ

∂

∂
E

∫

H
<
E

x

m

∂
H

∂

x

n

d
Γ

=

1
ρ

∂

∂
E

∫

H
<
E

x

m

∂

(

H
−
E

)

∂

x

n

d
Γ
,

{\displaystyle {\begin{aligned}{\Bigl \langle }x\_{m}{\frac {\partial H}{\partial x\_{n}}}{\Bigr \rangle }&={\frac {1}{\Sigma }}\,\int \_{H\in \left[E,E+\Delta E\right]}x\_{m}{\frac {\partial H}{\partial x\_{n}}}\,d\Gamma \\&={\frac {\Delta E}{\Sigma }}\,{\frac {\partial }{\partial E}}\int \_{H<E}x\_{m}{\frac {\partial H}{\partial x\_{n}}}\,d\Gamma \\&={\frac {1}{\rho }}\,{\frac {\partial }{\partial E}}\int \_{H<E}x\_{m}{\frac {\partial \left(H-E\right)}{\partial x\_{n}}}\,d\Gamma ,\end{aligned}}}

where the last equality follows because *E* is a constant that does not depend on *xn*. Integrating by parts yields the relation

∫

H
<
E

x

m

∂
(
H
−
E
)

∂

x

n

d
Γ

=

∫

H
<
E

∂

∂

x

n

(

x

m

(
H
−
E
)

)

d
Γ
−

∫

H
<
E

δ

m
n

(
H
−
E
)
d
Γ

=

δ

m
n

∫

H
<
E

(
E
−
H
)

d
Γ
,

{\displaystyle {\begin{aligned}\int \_{H<E}x\_{m}{\frac {\partial (H-E)}{\partial x\_{n}}}\,d\Gamma &=\int \_{H<E}{\frac {\partial }{\partial x\_{n}}}{\bigl (}x\_{m}(H-E){\bigr )}\,d\Gamma -\int \_{H<E}\delta \_{mn}(H-E)d\Gamma \\&=\delta \_{mn}\int \_{H<E}(E-H)\,d\Gamma ,\end{aligned}}}

since the first term on the right hand side of the first line is zero (it can be rewritten as an integral of *H* − *E* on the hypersurface where *H* = *E*).

Substitution of this result into the previous equation yields

⟨

x

m

∂
H

∂

x

n

⟩

=

δ

m
n

1
ρ

∂

∂
E

∫

H
<
E

(

E
−
H

)

d
# Γ

δ

m
n

1
ρ

∫

H
<
E

d
# Γ

δ

m
n

Ω
ρ

.

{\displaystyle {\Bigl \langle }x\_{m}{\frac {\partial H}{\partial x\_{n}}}{\Bigr \rangle }=\delta \_{mn}{\frac {1}{\rho }}\,{\frac {\partial }{\partial E}}\int \_{H<E}\left(E-H\right)\,d\Gamma =\delta \_{mn}{\frac {1}{\rho }}\,\int \_{H<E}\,d\Gamma =\delta \_{mn}{\frac {\Omega }{\rho }}.}

Since

# ρ

∂
Ω

∂
E

{\displaystyle \rho ={\frac {\partial \Omega }{\partial E}}}

 the equipartition theorem follows:

⟨

x

m

∂
H

∂

x

n

⟩

=

δ

m
n

(

1
Ω

∂
Ω

∂
E

)

−
1

=

δ

m
n

(

∂
log
⁡
Ω

∂
E

)

−
1

=

δ

m
n

k

B

T
.

{\displaystyle {\Bigl \langle }x\_{m}{\frac {\partial H}{\partial x\_{n}}}{\Bigr \rangle }=\delta \_{mn}{\Bigl (}{\frac {1}{\Omega }}{\frac {\partial \Omega }{\partial E}}{\Bigr )}^{-1}=\delta \_{mn}{\Bigl (}{\frac {\partial \log \Omega }{\partial E}}{\Bigr )}^{-1}=\delta \_{mn}k\_{B}T.}

Thus, we have derived the general formulation of the equipartition theorem

⟨

x

m

∂
H

∂

x

n

⟩

=

δ

m
n

k

B

T
,

{\displaystyle \!{\Bigl \langle }x\_{m}{\frac {\partial H}{\partial x\_{n}}}{\Bigr \rangle }=\delta \_{mn}k\_{B}T,}

which was so useful in the applications described above.

## Limitations

### Requirement of ergodicity

See also: Ergodicity, Chaos theory, Kolmogorov–Arnold–Moser theorem, Solitons
The law of equipartition holds only for ergodic systems in thermal equilibrium, which implies that all states with the same energy must be equally likely to be populated. Consequently, it must be possible to exchange energy among all its various forms within the system, or with an external heat bath in the canonical ensemble. The number of physical systems that have been rigorously proven to be ergodic is small; a famous example is the hard-sphere system of Yakov Sinai. The requirements for isolated systems to ensure ergodicity—and, thus equipartition—have been studied, and provided motivation for the modern chaos theory of dynamical systems. A chaotic Hamiltonian system need not be ergodic, although that is usually a good assumption.

A commonly cited counter-example where energy is *not* shared among its various forms and where equipartition does *not* hold in the microcanonical ensemble is a system of coupled harmonic oscillators. If the system is isolated from the rest of the world, the energy in each normal mode is constant; energy is not transferred from one mode to another. Hence, equipartition does not hold for such a system; the amount of energy in each normal mode is fixed at its initial value. If sufficiently strong nonlinear terms are present in the energy function, energy may be transferred between the normal modes, leading to ergodicity and rendering the law of equipartition valid. However, the Kolmogorov–Arnold–Moser theorem states that energy will not be exchanged unless the nonlinear perturbations are strong enough; if they are too small, the energy will remain trapped in at least some of the modes.

Another way ergodicity can be broken is by the existence of nonlinear soliton symmetries. In 1953, Fermi, Pasta, Ulam and Tsingou conducted computer simulations of a vibrating string that included a non-linear term (quadratic in one test, cubic in another, and a piecewise linear approximation to a cubic in a third). They found that the behavior of the system was quite different from what intuition based on equipartition would have led them to expect. Instead of the energies in the modes becoming equally shared, the system exhibited a very complicated quasi-periodic behavior. This puzzling result was eventually explained by Kruskal and Zabusky in 1965 in a paper which, by connecting the simulated system to the Korteweg–de Vries equation led to the development of soliton mathematics.

### Failure due to quantum effects

See also: Ultraviolet catastrophe, History of quantum mechanics, Identical particles
The law of equipartition breaks down when the thermal energy *kBT* is significantly smaller than the spacing between energy levels. Equipartition no longer holds because it is a poor approximation to assume that the energy levels form a smooth continuum, which is required in the derivations of the equipartition theorem above. Historically, the failures of the classical equipartition theorem to explain specific heats and blackbody radiation were critical in showing the need for a new theory of matter and radiation, namely, quantum mechanics and quantum field theory.

To illustrate the breakdown of equipartition, consider the average energy in a single (quantum) harmonic oscillator, which was discussed above for the classical case. Neglecting the irrelevant zero-point energy term, its quantum energy levels are given by *En = nhν*, where *h* is the Planck constant, *ν* is the fundamental frequency of the oscillator, and *n* is an integer. The probability of a given energy level being populated in the canonical ensemble is given by its Boltzmann factor

P
(

E

n

# )

e

−
n
β
h
ν

Z

,

{\displaystyle P(E\_{n})={\frac {e^{-n\beta h\nu }}{Z}},}

where *β* = 1/*k*B*T* and the denominator *Z* is the partition function, here a geometric series

# n
0

∞

e

−
n
β
h
ν

=

1

1
−

e

−
β
h
ν

.

{\displaystyle Z=\sum \_{n=0}^{\infty }e^{-n\beta h\nu }={\frac {1}{1-e^{-\beta h\nu }}}.}

Its average energy is given by

⟨
H

# n
0

∞

E

n

P
(

E

n

# )

1
Z

∑

# n
0

∞

n
h
ν

e

−
n
β
h
ν

=
−

1
Z

∂
Z

∂
β

=
−

∂
log
⁡
Z

∂
β

.

{\displaystyle \langle H\rangle =\sum \_{n=0}^{\infty }E\_{n}P(E\_{n})={\frac {1}{Z}}\sum \_{n=0}^{\infty }nh\nu \ e^{-n\beta h\nu }=-{\frac {1}{Z}}{\frac {\partial Z}{\partial \beta }}=-{\frac {\partial \log Z}{\partial \beta }}.}

Substituting the formula for *Z* gives the final result

⟨
H
# ⟩
h
ν

e

−
β
h
ν

1
−

e

−
β
h
ν

.

{\displaystyle \langle H\rangle =h\nu {\frac {e^{-\beta h\nu }}{1-e^{-\beta h\nu }}}.}

At high temperatures, when the thermal energy *k*B*T* is much greater than the spacing *hν* between energy levels, the exponential argument *βhν* is much less than one and the average energy becomes *k*B*T*, in agreement with the equipartition theorem (Figure 10). However, at low temperatures, when *hν* >> *k*B*T*, the average energy goes to zero—the higher-frequency energy levels are "frozen out" (Figure 10). As another example, the internal excited electronic states of a hydrogen atom do not contribute to its specific heat as a gas at room temperature, since the thermal energy *k*B*T* (roughly 0.025 eV) is much smaller than the spacing between the lowest and next higher electronic energy levels (roughly 10 eV).

Similar considerations apply whenever the energy level spacing is much larger than the thermal energy. This reasoning was used by Max Planck and Albert Einstein, among others, to resolve the ultraviolet catastrophe of blackbody radiation. The paradox arises because there are an infinite number of independent modes of the electromagnetic field in a closed container, each of which may be treated as a harmonic oscillator. If each electromagnetic mode were to have an average energy *k*B*T*, there would be an infinite amount of energy in the container. However, by the reasoning above, the average energy in the higher-frequency modes goes to zero as *ν* goes to infinity; moreover, Planck's law of black body radiation, which describes the experimental distribution of energy in the modes, follows from the same reasoning.

Other, more subtle quantum effects can lead to corrections to equipartition, such as identical particles and continuous symmetries. The effects of identical particles can be dominant at very high densities and low temperatures. For example, the valence electrons in a metal can have a mean kinetic energy of a few electronvolts, which would normally correspond to a temperature of tens of thousands of kelvins. Such a state, in which the density is high enough that the Pauli exclusion principle invalidates the classical approach, is called a degenerate fermion gas. Such gases are important for the structure of white dwarf and neutron stars. At low temperatures, a fermionic analogue of the Bose–Einstein condensate (in which a large number of identical particles occupy the lowest-energy state) can form; such superfluid electrons are responsible for superconductivity.

## See also

* Kinetic theory
* Quantum statistical mechanics