Thermodynamic Functions from Statistics
The power of statistical thermodynamics is that once the partition function is known, the macroscopic thermodynamic functions follow by differentiation. This turns molecular energy levels into heat capacities, entropies, equations of state, and equilibrium constants.
Atkins uses this machinery to show that classical thermodynamic quantities are not independent assumptions. They emerge from molecular state counting, especially through the canonical partition function and the Helmholtz energy .
Figure: Molecular speed distributions as one route from microscopic state populations to thermodynamic functions. Image: Wikimedia Commons, Pdbailey, Cryptic C62, and Lilyu, public domain.
Definitions
The canonical ensemble describes systems with fixed , , and , in thermal contact with a heat reservoir. Its partition function is
where is the energy of a complete system microstate.
The Helmholtz energy is
For independent indistinguishable molecules,
where is the molecular partition function. Stirling's approximation,
is used for macroscopic .
Thermodynamic functions follow from :
For reactions, molecular partition functions lead to equilibrium constants through standard molar Gibbs energies and through ratios of partition functions for products and reactants.
Key results
If , then
Using Stirling's approximation,
For a monatomic ideal gas, , so
Pressure follows immediately:
which is the perfect gas law:
The entropy of an ideal monatomic gas is the Sackur-Tetrode equation:
or, molar form,
For a general molecular partition function,
when the zero of energy is chosen consistently. Heat capacity is
Residual entropy occurs when a crystal has more than one arrangement even as . If ,
which explains why orientational disorder can leave a nonzero entropy when the simple Third Law assumption of a unique perfect crystal is not met.
The canonical relation is one of the most compact results in physical chemistry. It says that the free energy is determined by the logarithm of the weighted number of accessible states. A system with many low-energy states has a large and therefore a lower . This is the statistical version of the thermodynamic drive toward lower Helmholtz energy at fixed and .
Differentiation of gives averages because the Boltzmann factor contains energy in the exponent. For example,
with . A derivative with respect to pulls down the energy of each state, weighted by its probability. This is a recurring statistical trick: derivatives of generating functions produce moments of distributions.
The pressure derivation from translational is especially important because it shows that the perfect gas equation is not merely empirical. The volume dependence of means that increasing volume increases the number of translational states. The system exerts pressure because expanding the volume lowers by increasing translational entropy. In this view, gas pressure is an entropic force.
Entropy contains two related contributions. One is the logarithm of the number of accessible states, and the other reflects how the average energy changes with temperature. In the canonical ensemble,
for appropriate energy conventions. This formula shows why entropy rises when either more states become accessible or energy is distributed over higher levels.
The correction resolves the Gibbs paradox for ideal gases. If identical particles were counted as distinguishable, mixing two samples of the same gas would appear to produce an entropy increase, even though no observable change occurs. Dividing by removes the overcounting of particle labels. For different gases, the labels correspond to observable species identity, so a real entropy of mixing remains.
Residual entropy illustrates that entropy is not only about thermal motion. Ice, for example, can retain many proton arrangements consistent with local bonding rules. If these arrangements remain frozen in at low temperature, there is configurational multiplicity even without thermal excitation. This connects statistical thermodynamics to materials disorder, glasses, orientational crystals, and magnetic systems.
Equilibrium constants can be built from partition functions because chemical potentials can. For an ideal-gas reaction, the standard Gibbs energy contains molecular partition functions, zero-point energies, electronic energies, and standard-state translational factors. A reaction is product-favored when the product side has lower energetic terms and/or greater accessible-state multiplicity after standard-state corrections. This perspective explains why entropy can drive dissociation at high temperature even when bond breaking is enthalpically costly.
Heat capacity is a fluctuation measure in the canonical ensemble. A system has high heat capacity when its energy can change substantially with temperature, which occurs when there are accessible states near . In more advanced form,
This equation explains why heat capacity is nonnegative in stable canonical systems and why closely spaced energy levels produce large thermal responses.
The statistical route also clarifies the limits of classical thermodynamics. Classical thermodynamics gives relationships among properties without identifying molecular origins. Statistical thermodynamics predicts those properties from masses, moments of inertia, frequencies, degeneracies, and interaction models. The two approaches agree when the molecular model is accurate and the system is large enough for fluctuations to be negligible on the macroscopic scale.
Visual
| Function | Statistical route | Physical interpretation |
|---|---|---|
| free energy at fixed | ||
| mean internal energy | ||
| accessible microstates plus energy spread | ||
| response to volume change | ||
| cost of adding a molecule | ||
| thermal accessibility of energy modes |
Worked example 1: Deriving ideal gas pressure from
Problem. Show explicitly that the translational partition function gives for a monatomic gas.
Method. Use
and
- Write :
- Substitute :
Only depends on volume.
- Helmholtz derivative:
- Differentiate:
- Pressure:
- Rearranged:
Checked answer. The equation of state follows from translational states because is proportional to .
Worked example 2: Heat capacity of a two-level system
Problem. A mole of independent molecules has two nondegenerate levels separated by with . Calculate the molar internal energy above the ground state at .
Method. For two levels,
and
- Exponent:
- Boltzmann factor:
- Upper population:
- Molar energy:
- Substitute:
Checked answer. The energy is less than the equal-population limit , as expected at .
Code
import numpy as np
R = 8.314462618
def two_level_energy(theta, T):
x = theta / T
p1 = np.exp(-x) / (1 + np.exp(-x))
return R * theta * p1
def two_level_cv(theta, T):
x = theta / T
ex = np.exp(x)
return R * x**2 * ex / (ex + 1)**2
for T in [50, 100, 300, 1000]:
print(f"T={T:5.0f} K U={two_level_energy(300,T):8.2f} J/mol Cv={two_level_cv(300,T):7.3f} J/K/mol")
Common pitfalls
- Differentiating when the correct thermodynamic object is . For gases, the factor affects entropy and chemical potential.
- Forgetting which variables are held constant in derivatives.
- Mixing molecular and molar constants. Use per molecule and per mole.
- Dropping zero-point energies inconsistently when comparing reactions.
- Treating the partition function as a purely mathematical trick. It is the bridge from quantum state accessibility to thermodynamic response.
When deriving thermodynamic functions, track the independent variables. The canonical ensemble naturally gives . Pressure, entropy, and chemical potential are derivatives of with respect to , , and under specified constraints. If you switch to constant pressure, you need or an appropriate transformation. Many derivation errors come from differentiating the right expression while holding the wrong variable fixed.
Use Stirling's approximation only in its domain. It is excellent for macroscopic , but not for a handful of particles in small statistical examples. Atkins uses small-particle examples to illustrate configurations and weights; those should be counted exactly. The thermodynamic formulas using assume large .
The statistical view also clarifies standard-state corrections. Translational partition functions depend on volume, so chemical potentials depend on pressure or concentration. When building equilibrium constants from molecular data, the standard-state volume or pressure factors are not optional bookkeeping; they determine the numerical standard Gibbs energy.
As a final check, compare statistical results with thermodynamic identities already known. A monatomic ideal gas should give , , and a positive entropy that increases with and . If a partition-function derivation violates these limits, the error is usually in distinguishability, the volume dependence, the chosen energy zero, or the variables held constant during differentiation.
For finite systems, fluctuations are not negligible. The canonical formulas still define ensemble averages, but small clusters, nanoscale systems, and simulations may show noticeable deviations from smooth macroscopic behavior.
In simulations, time averages and ensemble averages agree only under appropriate ergodic sampling. Poor sampling can make a correct statistical formula look wrong.
Always inspect convergence before interpreting molecular thermodynamics.