Generalized Equipartition Theorem
The familiar equipartition rule — each quadratic term in the Hamiltonian carries — is only the shadow of a far more powerful statement. For any classical system in thermal equilibrium, described by phase-space coordinates and Hamiltonian , the canonical average obeys a single clean identity: . One equation, and out of it fall the heat capacity of a gas, the virial theorem, the pressure of an interacting fluid, and the corrections to ideal-gas behaviour. It is the master key of classical statistical mechanics. The proof is a one-line integration by parts. Because the Boltzmann weight vanishes wherever — the physical requirement that the energy confines the system — the boundary terms drop out and each derivative of turns into a factor of . Nothing in this argument requires to be quadratic, the coordinates to be Cartesian, or the particles to be free. That robustness is exactly why the theorem reaches so far: it handles anharmonic springs ( gives ), relativistic energies ( gives per direction), and the forces between interacting molecules on the same footing. Two diagonal specializations dominate the applications. Set , a momentum, and you recover kinetic equipartition and the heat capacities of gases and solids. Set , a coordinate, sum over particles, and you get the Clausius virial and the equation of state. And because the identity is purely classical, its failures are equally informative: whenever a quantum level spacing rivals , the continuous phase-space integral is illegal and equipartition breaks — vibrations freeze out, the Dulong-Petit law collapses, and the theorem's boundary is the boundary of classical physics itself.
- The generalized equipartition theorem states that for a classical system with Hamiltonian , the canonical average for any phase-space coordinates .
- It follows from one integration by parts, using only that at the boundaries of phase space.
- Setting or recovers per quadratic degree of freedom; the off-diagonal () average vanishes.
- For an energy homogeneous of degree in a variable, the theorem gives — quadratic , anharmonic quartic , linear (relativistic) .
- The momentum-diagonal case gives heat capacities; the coordinate-diagonal case gives the virial theorem and the virial equation of state.
- It is intrinsically classical: quantization (level spacing ) freezes degrees of freedom and breaks the theorem.
- Key idea: every appearance of equipartition — the per mode, the kinetic energy of a gas, the virial of forces, the pressure of an interacting fluid — is the single identity , which is nothing more than an integration by parts on .
Every appearance of equipartition — the per mode, the kinetic energy of a gas, the virial of forces, the pressure of an interacting fluid — is the single phase-space identity , which is just an integration by parts on the Boltzmann factor .
Where this lives today
The generalized theorem is a working instrument, not a museum piece. In molecular-dynamics and Monte-Carlo simulations it is how "temperature" is defined and checked: a thermostat measures over the trajectory and adjusts the dynamics until it equals for every degree of freedom — the equipartition test is the standard sanity check that a simulation has equilibrated. In single-molecule biophysics, the coordinate-diagonal case calibrates force probes: turns a measured positional variance into a trap stiffness for optical tweezers and AFM cantilevers, and the anharmonic generalization corrects the calibration when the trap is not perfectly harmonic. In astrophysics, the degree-1 relativistic case sets the specific heat of degenerate and radiation-dominated matter in stellar interiors and the early universe. And the theorem's coordinate branch, summed into the virial, remains the fastest route from a microscopic pair potential to the equation of state of a real gas or liquid.
The physical picture
Picture the canonical probability cloud draped over phase space. Wherever is small the cloud is thick; wherever grows large the cloud thins to nothing. The generalized equipartition theorem is a statement about how this cloud is shaped: it says that the average of times the local slope of the energy is exactly . When you probe a coordinate against its own energy-slope () you always get ; when you probe one coordinate against another's slope () the independent Gaussian wings cancel and you get zero. The reason the coefficient of a mode never matters is geometric. A stiff parabola confines the cloud to a narrow sliver; a soft one lets it spread wide. A stiff mode stores more energy per unit displacement but explores less displacement, and the two effects cancel to the last decimal. This is the same "energy democracy" that gives per quadratic term — but now stated so generally that it survives anharmonic and relativistic energies, where the share becomes for a term homogeneous of degree .
The second figure is the punchline: the share of thermal energy per mode depends only on the degree of the energy in that variable, not on any coefficient. A quadratic term () gets ; a linear relativistic energy () gets the full ; an anharmonic quartic () gets a stingy . The rule is the theorem's most compact fingerprint, and it puts the classical harmonic oscillator, the photon-like ultrarelativistic gas, and the quartic anharmonic trap on one curve.
The core equations
The heart of the article is a single phase-space average. It is stated for the canonical ensemble, but by ensemble equivalence it holds microcanonically too in the thermodynamic limit. The claim is that pairing any coordinate with the energy-gradient gives a strikingly simple answer.
where: — any of the canonical phase-space variables (coordinates or momenta ); — the energy gradient, which is or by Hamilton's equations; — the Kronecker delta, if else ; — the equilibrium thermal average. Reading it: a coordinate probed against its own energy-slope always returns ; against any other slope it returns zero, because the corresponding phase-space integrals factorize into independent, mean-symmetric pieces. Specializing the diagonal case to a single term homogeneous of degree gives the compact energy-share rule.
where: — the degree of homogeneity of that energy term in the variable . Quadratic () gives ; the linear ultrarelativistic energy () gives per component; an anharmonic quartic () gives . This follows from equation (1) because , so . Summed over all quadratic degrees of freedom, equation (2) gives the total energy and the classical heat capacity — the working payoff for gases and solids.
where: — the number of active quadratic degrees of freedom (each momentum and each harmonic coordinate counts once); . Reading it: monatomic gas gives ; a solid ( oscillators, each two quadratic terms) gives (Dulong-Petit). Finally, summing the coordinate-diagonal case over all particles produces the statistical virial theorem — the bridge to the equation of state.
where: is the total force on particle (walls plus interactions), and the left side is the Clausius virial. Splitting into a wall part (which yields ) and an interaction part gives — the seed of the virial equation of state.
The goal is to prove the master identity for an arbitrary confining Hamiltonian, using nothing but the canonical average and integration by parts. The strategy is to write the average as a phase-space integral, rewrite the factor as a derivative of the Boltzmann factor, integrate by parts, and use that vanishes on the boundaries so the surface term dies. What remains is , delivering the result with no assumption that be quadratic.
Step 1. Write the canonical average , where is the phase-space volume element and the partition function.
Step 2. Notice that . This is the key move — the energy gradient is (up to ) the gradient of the Boltzmann factor itself.
Step 3. Substitute and integrate by parts in : . Why the boundary term vanishes. At the edges of phase space (a confining potential, or for kinetic energy), so faster than grows. The surface term is exactly zero — this is the sole physical assumption, and it is what "confined system" means.
Step 4. Use and : the remaining integral is , which is equation (1). Nothing here assumed quadratic. Verified: the diagonal result for and for (degree-independent), and the off-diagonal for a separable , are confirmed symbolically in verify_aq-sm-generalized-equipartition-theorem.py.
Go deeper · Derivation B · 1 minThe energy-share rule and the anharmonic and relativistic cases
Limiting cases
The generalized theorem is the classical, high-temperature limit of more complete results; each row is a specialization or a place where it breaks.
| Case | Result | Meaning |
|---|---|---|
| Quadratic term, | Ordinary equipartition; the coefficient cancels. | |
| Off-diagonal, | Independent modes are uncorrelated; only self-slopes give . | |
| Degree- homogeneous | Quartic , linear (relativistic) . | |
| Coordinate-diagonal, summed | The virial theorem; wall part . | |
| (quantum) | theorem fails | Phase-space integral illegal; mode freezes out. |
Worked examples
Example 1 — Heat capacity of an anharmonic trap versus a harmonic one (enumerate, apply, boundary number). A single particle sits in a one-dimensional trap. Compare its average potential energy for a harmonic trap and for a quartic trap , both at temperature .
Step 1. Enumerate the energy terms. Harmonic: one quadratic potential term, degree . Quartic: one potential term, degree . In both cases the kinetic energy is a separate quadratic term (degree 2).
Step 2. Apply the rule. Harmonic potential: ; total . Quartic potential: ; total .
Step 3. Boundary number. The heat capacities are and . A quartic trap has of the heat capacity of a harmonic one — a directly measurable classical signature of anharmonicity, and the reason real solids deviate from Dulong-Petit even before quantum freeze-out.
Example 2 — Kinetic energy of an ultrarelativistic electron gas. Consider electrons hot enough that , so their energy is (linear dispersion).
Step 1. The energy is homogeneous of degree in the momentum magnitude; there are three momentum directions.
Step 2. By the theorem, per particle (each direction contributes , not ).
Step 3. Boundary number. At (relativistic astrophysical plasma), , so per electron — well above the rest energy, confirming the ultrarelativistic regime is self-consistent. The factor of 2 over the nonrelativistic raises the specific heat of relativistic matter, a fact that matters for the interiors of stars and the early universe.
Origins · 1 minenergy equipartition and how this was discovered
The generalized equipartition theorem extends Maxwell's and Boltzmann's quadratic equipartition to arbitrary Hamiltonians. Maxwell (1859) first argued that energy is shared equally among molecular degrees of freedom; Boltzmann (1868–1871) generalized it to any quadratic term and connected it to the virial. Richard Tolman gave the theorem its modern general phase-space form in the 1910s–1920s, showing that the single integration-by-parts identity subsumes kinetic equipartition, the virial theorem, and the pressure of interacting gases. The theorem's dramatic failures — the frozen heat capacities of diatomic gases and the ultraviolet catastrophe — were among the clearest classical anomalies driving the quantum revolution.
Going further
References. Pathria & Beale, Statistical Mechanics, 3rd ed., §3.7 (equipartition and virial theorems) · Reif, Fundamentals of Statistical and Thermal Physics, §7.5–7.7 · Kardar, Statistical Physics of Particles, §4.3 · Tolman, The Principles of Statistical Mechanics, Ch. 3 · Landau & Lifshitz, Statistical Physics Part 1, §28.
Provenance. The identity , the energy-share rule , and the virial specialization are standard (Pathria §3.7, Tolman Ch. 3). A verifier should confirm: (i) for and for (degree-independent); (ii) and (the rule); (iii) the off-diagonal ; (iv) ; (v) for , giving . All checks are in verify_aq-sm-generalized-equipartition-theorem.py. Constants: , .
Builds on: Equipartition Theorem · Classical Ideal Gas · Maxwell-Boltzmann Velocity Distribution Leads to: Virial Theorem in Statistical Mechanics · Virial Equation of State · Classical Limit of Quantum Statistics
How is the "generalized" theorem different from ordinary equipartition?
Ordinary equipartition is a rule about quadratic terms: each contributes . The generalized theorem is the phase-space identity that holds for any confining Hamiltonian, quadratic or not. Ordinary equipartition is the special case with . But the general form also handles anharmonic energies (a term gives ), relativistic dispersion ( gives per direction), and — through the coordinate-diagonal case summed over particles — the virial theorem and the pressure of an interacting gas. It is one identity that unifies several results that look unrelated in the elementary treatment.
Why does the coefficient of the energy term never appear in the average?
Because it cancels between the energy and the measure. For a term , rescaling removes from the energy entirely, appearing only as an overall constant in both the numerator and denominator of the thermal average — so it drops out. Physically, a larger coefficient makes the mode stiffer (more energy per unit ) but also confines it to a smaller range of , and the two effects cancel exactly. Only the degree survives, giving the share . This is why a stiff and a soft spring in the same bath store identical average energy.
What exactly is the "boundary term" and why must it vanish?
When you integrate by parts, you generate a surface term evaluated at the edges of the integration region. For the theorem to hold, this must be zero. It vanishes because a physical Hamiltonian confines the system: as any coordinate or momentum runs to , the energy , so decays to zero faster than the polynomial factor can grow. If a coordinate were not confined — say a free particle in an infinite box with no walls — the boundary term would not vanish, and that degree of freedom would not obey equipartition. The confining requirement is the theorem's only physical assumption.
How does the theorem give the virial theorem?
Take the diagonal case with a coordinate, , and note (the force). Summing over all coordinates gives , which is the Clausius virial. Splitting the force into the wall (container) part and the interparticle part, the wall part integrates to , giving . The interaction term is the configurational virial that generates the virial equation of state. So the virial theorem is literally the coordinate branch of the generalized equipartition identity.
Does the theorem hold in the microcanonical ensemble too?
Yes, in the thermodynamic limit. The cleanest derivation uses the canonical Boltzmann factor, but the result is ensemble-equivalent: the microcanonical and canonical averages of agree to leading order in , both giving , with the microcanonical temperature defined by . There is a subtlety — the microcanonical version is sometimes written with replacing , and for small systems the two ensembles differ at order — but for any macroscopic system the distinction is negligible and the theorem is robust.
Why does a relativistic gas have twice the energy per direction?
Because its energy is linear in momentum, not quadratic. For a nonrelativistic gas, is homogeneous of degree , so each direction gives . For an ultrarelativistic gas, is homogeneous of degree , and the rule with gives the full per direction — total per particle in three dimensions. The physical reason: a linear energy climbs more gently away from the origin, so the Boltzmann cloud spreads wider and stores more thermal energy before the weight cuts it off. This doubling raises the heat capacity of radiation-dominated and relativistic matter.
Can I use the general theorem to spot when a mode is anharmonic experimentally?
Yes — measure the mode's contribution to the heat capacity and compare it to the harmonic prediction. A purely quadratic mode contributes (kinetic + potential, each); a purely quartic potential contributes only . A measured heat capacity below the harmonic value (but above zero, so not frozen out) is a fingerprint of anharmonicity, encoded in the effective degree of the potential. This is exactly how the thermal expansion and specific-heat anomalies of strongly anharmonic crystals are read: the share of a soft, anharmonic mode differs measurably from the harmonic .