Internal Energy from the Partition Function
A gas of molecules at room temperature stores energy in translation, rotation, and vibration all at once. How much energy lives in each mode? Statistical thermodynamics answers this with a single derivative of the partition function, no separate bookkeeping required. This is the payoff of building in the first place: once you have it, thermodynamics falls out by calculus. This matters because it connects a purely combinatorial object, a sum over quantum states weighted by Boltzmann factors, to a measurable macroscopic quantity, the internal energy . It is the bridge between microscopic spectroscopy and bulk calorimetry. This article derives as a temperature derivative of . It shows how the total energy splits cleanly into translational, rotational, vibrational, and electronic contributions. It closes with two fully worked numerical examples and the equipartition limits you will use constantly in the next chapters.
- The internal energy relative to the ground state is .
- Equivalently, in terms of , .
- Because factorizes over independent modes, is a sum, so is a sum of modal energies.
- Each fully "active" quadratic degree of freedom contributes per molecule (equipartition), recovered as a high-temperature limit.
- Vibrations freeze out at low because typically, giving contributions far below the equipartition value.
- Key idea: Differentiating with respect to temperature converts a partition function into the average energy, and because splits additively over modes, so does .
The internal energy is the ensemble average of energy, , and this average is generated automatically by taking , so every mode that contributes additively to contributes additively to .
The physical picture
Recall that the canonical partition function is a weighted sum over the accessible states of a system,
where is the degeneracy of a state with energy , measured from the ground state, and . As covered in "Physical Meaning of Beta and Temperature," sets the currency of exchange between energy and probability: states higher than above the ground level are exponentially suppressed. counts how many states are thermally accessible, but it also secretly contains the average energy of the system. The connection is that the probability of occupying state is , and the mean energy is . Differentiating with respect to generates exactly this weighted sum, because differentiating the exponential brings down a factor of . This is why is obtained by calculus on rather than by re-summing anything from scratch. For an ideal gas of independent, distinguishable-in-energy molecules (translational and internal motions separable), the molecular partition function itself factorizes,
and for indistinguishable gas molecules . Because , the factorial term is temperature-independent and drops out of any temperature derivative. Thus becomes a sum of logarithms of modal partition functions, and the derivative distributes the total energy additively across translation, rotation, vibration, and electronic excitation. This additivity is the entire reason the method is powerful: you can compute each mode's partition function separately (a much easier task) and simply add the resulting energies.
The second useful picture is how each mode's contribution to climbs from zero (frozen out at low ) toward its equipartition ceiling as temperature rises, with vibration lagging far behind translation and rotation because its energy-level spacing is much larger.
The core relations
where is the internal energy at (all molecules in their ground states), and the derivative is at constant volume (and composition).
where ; this is the same relation in "beta language," often more convenient algebraically.
where is the single-molecule partition function; the term vanishes upon differentiation.
where each term is computed from the corresponding factor of , molar quantities obtained by multiplying per-molecule energies by Avogadro's constant .
Goal. Show that equals the ensemble-averaged energy , starting only from the definition of .
Step 1. Write the average energy explicitly. Each accessible state has energy (measured from the ground state) and probability . The mean energy above the ground state is
Step 2. Recognize the numerator as a derivative. Differentiate with respect to at constant :
The energies (eigenvalues of the Hamiltonian at fixed ) do not depend on , so this differentiation is exact and no additional terms appear.
Step 3. Divide by and identify . Combining Steps 1 and 2,
using the chain rule .
Step 4. Convert back to temperature. Since , we have , so
Substituting into Step 3 flips the sign once more.
Step 5. Box the result.
Step 6. Additivity for independent modes. For a molecular gas with and ,
Since is temperature-independent, differentiating term by term gives as an unweighted sum of four modal contributions, each computed exactly as in Steps 1 through 5 but using the relevant modal .
Worked examples
Example 1 — Translational energy of argon gas at 298 K (foundational). The translational partition function of a structureless atom in a container of volume is
We need as a function of only, holding fixed:
Differentiate:
Apply the boxed result per molecule, then multiply by for one mole:
Numerically, at , using :
Sanity check: this is the textbook equipartition value for three translational quadratic degrees of freedom, independent of the atom's mass or the container volume, exactly as required since 's -dependence () doesn't involve or .
Example 2 — Vibrational contribution of CO at 500 K (applied, exam-level). Carbon monoxide has a vibrational wavenumber . Model it as a harmonic oscillator with the ground state as the energy zero, so
Define the vibrational temperature . First compute :
The standard result (obtained by differentiating with respect to , exactly following Steps 1–5 with ) is
At , form the ratio:
Sanity check: compare to the equipartition ceiling for one vibrational mode, . The actual value, 50.5 J/mol, is smaller by a factor of about 82. This confirms the mode is almost entirely frozen out at 500 K because — consistent with CO's stiff triple bond and high vibrational frequency, and it foreshadows why vibrations barely contribute to heat capacity near room temperature.
Limiting cases & common traps
| Regime | Behavior of per mode | Why |
|---|---|---|
| (translation, rotation at ordinary ) | Equipartition value: per quadratic term | Energy levels finely spaced compared to ; sum behaves like integral |
| (vibration near/below 298 K for most molecules) | exponentially, as | Level spacing ; almost all population in |
| for any mode | Only the ground state is populated; that is the definition of the energy zero | |
| Electronic modes, most molecules near 298 K | Gaps typically unless low-lying excited states exist (e.g., NO, O) |
The chemist behind it
The additive, mode-by-mode dissection of energy realized here traces back to the statistical mechanics built by Josiah Willard Gibbs, who formalized the ensemble concept and the free-energy-like role of , and to Ludwig Boltzmann, whose probability distribution over energy states is the microscopic content of . The specific machinery of factorizing molecular partition functions into translational, rotational, and vibrational pieces — the version used daily by physical chemists to compute thermodynamic functions from spectroscopic data — was systematized in the twentieth century, notably in the classic texts that made statistical thermodynamics a routine tool for interpreting heat capacities and equilibrium constants from molecular spectra.
Origins · 1 minJosiah Willard Gibbs and how this was discovered
Ask the tutor: How does this same derivative trick, applied to with respect to or instead of , generate pressure and chemical potential?
Why is U written as U minus U(0) instead of just U
The partition function is built with energies measured relative to the lowest accessible state, chosen as zero for convenience. Differentiating therefore only ever recovers the thermally excited energy above that zero, not any absolute energy scale (rest mass, bond dissociation energy, zero-point vibrational energy). Reporting keeps the formula clean and universal; if you need an absolute internal energy, you add separately from a known reference, such as spectroscopic zero-point energies.
How does this connect to heat capacity
Heat capacity at constant volume is , and since is temperature-independent, . Because splits additively across modes here, so does : translational, rotational, vibrational, and electronic contributions each get differentiated separately. This is exactly the route explored next in "Contributions to Heat Capacity from Molecular Modes," where the frozen-out vibrational term explains why diatomic gas heat capacities near room temperature look almost purely translational-plus-rotational.
Does this derivation assume classical or quantum mechanics
Nothing here assumes classical mechanics. The sum runs over genuine quantum states with quantized energies , and the derivative trick works for any discrete or continuous spectrum. Classical equipartition, per quadratic degree of freedom, emerges only as a high-temperature limit where level spacing becomes negligible compared to , which is why translation and rotation look "classical" at room temperature but vibration usually does not.
Why does N factor out for translational and rotational but the formula still uses q rather than Q directly
For a gas of independent, indistinguishable molecules, , so . Differentiating with respect to or kills the term because it carries no temperature dependence, leaving . Working with the single-molecule is simpler because spectroscopic data (bond lengths, vibrational frequencies, electronic term energies) naturally give you , not .