The H-Theorem
In 1872 Ludwig Boltzmann faced a paradox that would define statistical mechanics: how can time-reversible molecular collisions produce the manifestly irreversible approach to equilibrium we see everywhere — a hot gas cooling, a scent spreading, two gases mixing? His answer was the H-theorem. From the transport equation for the single-particle velocity distribution , he built a single number and proved that collisions can only drive it downward, , until it bottoms out at the Maxwell-Boltzmann distribution. The theorem does two things at once. First, because is (up to a sign and constant) the negative of the gas entropy, is the second law of thermodynamics derived from mechanics — the first time irreversibility was pulled from the atoms. Second, the equality condition forces to be a summed collisional invariant, and the only such invariants — mass, momentum, energy — pin to a Gaussian. So the same inequality that proves relaxation also identifies exactly what the gas relaxes to. The engine turns out to be a single algebraic fact: for all positive , with and the post- and pre-collision products. Everything else is bookkeeping — symmetrizing the collision integral over the four equivalent labelings of a collision. But the theorem's real subtlety hides in an assumption, molecular chaos, that colliding partners are uncorrelated before they meet. That single time-asymmetric input is where the arrow of time secretly enters, and it is what Loschmidt and Zermelo would spend decades probing.
- The H-theorem proves that for a dilute gas obeying the Boltzmann transport equation, the functional never increases: .
- The decrease comes entirely from binary collisions; free streaming conserves in a uniform gas. The whole engine is the convexity inequality .
- Equality holds if and only if is a local Maxwell-Boltzmann distribution — so the theorem simultaneously proves relaxation and identifies equilibrium.
- Identifying (per particle) with entropy gives : the first molecular derivation of the second law.
- The arrow of time enters through the molecular-chaos (Stosszahlansatz) factorization of incoming pairs, not through the reversible equations of motion — the point Loschmidt (1876) and Zermelo (1896) contested.
- The same Lyapunov structure — relative entropy falling under detailed-balance dynamics — recurs for the master equation and the Fokker-Planck equation.
- Key idea: Collisions redistribute velocities so that the convex functional can only decrease, its rate vanishing exactly when becomes Maxwellian. The irreversibility is injected by the molecular-chaos assumption on incoming correlations, not by the microscopic dynamics.
Collisions redistribute velocities so that the convex functional can only decrease, vanishing in rate exactly when becomes Maxwellian. The arrow of time enters through the molecular-chaos factorization of incoming correlations, not through the microscopic equations of motion.
Where this lives today
The H-theorem's descendants run through all of modern non-equilibrium physics. Its cleanest generalization is the monotone decrease of relative entropy (Kullback-Leibler divergence) under any Markov dynamics with detailed balance — the Lyapunov functional that underpins convergence proofs for Markov-chain Monte Carlo, for the master equation, and, as free-energy decay, for the Fokker-Planck equation. Modern "entropy-entropy-production" and logarithmic Sobolev inequalities turn Boltzmann's qualitative into quantitative, exponential rates of approach to equilibrium, which is what tells a computational chemist how long a molecular-dynamics run must equilibrate before sampling. In kinetic theory proper, generalized H-theorems govern the Landau and Lenard-Balescu collision operators of plasma physics and the photon Boltzmann equation of radiative transfer, guaranteeing relaxation toward Maxwellian or Planckian distributions and thereby the stability of fusion and astrophysical plasmas. The rigorous status of the theorem — Lanford's derivation of the Boltzmann equation in the Boltzmann-Grad limit and its extensions — remains an active area of mathematical physics, precisely because it is the place where the arrow of time is made to emerge from reversible Newtonian mechanics under a controlled limit.
The physical picture
Prepare a gas in an ordered, atypical state — say every molecule moving with the same speed, or all the fast molecules bunched on the left. Now let it collide. Each binary encounter reshuffles two velocities into two new ones, and because there are overwhelmingly more ways to be "spread out" in velocity space than to be "ordered," the reshuffling almost always moves the distribution toward the broad Maxwellian bell. measures how peaked and ordered is; as the gas spreads, slides downhill. The Maxwellian is the floor because it is the single most probable arrangement consistent with the fixed particle number, momentum, and energy. The whole proof lives in one number attached to each collision. Write for the pre-collision product of the two colliding molecules' distributions and for the post-collision product. The collision integrand for turns out to be proportional to . This combination is never negative — if the log is positive, if both factors flip sign together — and it is zero only when . That single convexity fact, applied under a non-negative collision kernel, forces with no further physics needed.
Time reversal does not break the collisions themselves — an elastic scattering played backward is another valid elastic scattering. What it breaks is molecular chaos. Boltzmann's collision integral assumes that two molecules about to collide are statistically independent, so their joint distribution factorizes, . This is true before a collision, when the pair arrived from unrelated histories, but false after, when the scattering has correlated them. Running the film backward would demand that outgoing (correlated) pairs be treated as independent — a conspiracy the assumption forbids. The arrow of time is smuggled in through this asymmetric treatment of incoming versus outgoing correlations, a point made sharp by the Loschmidt and Zermelo objections and resolved only statistically.
Finally, the equilibrium condition reads : the quantity is conserved in every collision. In an elastic binary collision the only conserved quantities are the number (a constant), the three momentum components, and the kinetic energy. So must be a linear combination of , , and — and exponentiating a quadratic in gives precisely the Gaussian Maxwell-Boltzmann form. This is why the equilibrium is Gaussian and nothing else: the collision invariants leave no other option.
The core equations
The starting point is the Boltzmann transport equation for the single-particle distribution. It balances how changes by free flight and external forcing against how collisions reshuffle velocities. The H-theorem lives entirely in the collision term, so the streaming and force terms play only a supporting role.
where: — single-particle phase-space distribution; is the expected number of molecules in a cell; — external force per molecule; — molecular mass; — the rate of change due to binary collisions. Read it as a continuity equation in phase space with a collisional source; in a uniform, force-free gas only the right-hand side survives. The collision term itself is a gain-minus-loss integral over binary scatterings, closed by the molecular-chaos factorization. It is the object whose sign, once weighted by , produces the theorem.
where: are before the collision; are the post-collision values; is the differential cross section; is the relative speed (the flux factor). The gain term counts inverse collisions that populate ; the loss term counts direct collisions that depopulate it. The factorization into single-particle products is the Stosszahlansatz. The H-functional is the single number the theorem tracks. Its dimensionless value depends on the choice of phase-space cell, but its monotone decrease does not.
where: is the H-functional; it is a convex functional of , smallest when is as spread out as the constraints allow. For a dilute gas the total entropy is , so (integrated over space, per particle) is minus the entropy divided by — which is why is the second law. The theorem is the statement that this functional's collisional rate of change is a manifestly non-positive integral. The four-collision symmetrization produces the crucial factored form.
where: the is the symmetrization factor from the four equivalent labelings of a collision (swap and swap directinverse). The integrand is a non-negative kernel times , so the whole integral is . The convexity inequality is the entire engine, worth stating on its own because everything reduces to it.
where: here and . If both factors are positive; if both are negative; the product is never negative and vanishes only at . This is the same convexity that makes relative entropy (Kullback-Leibler divergence) a Lyapunov functional for any detailed-balance Markov process. Equality pins down equilibrium: must be conserved in every collision, which forces the Gaussian.
where: are constants fixed by the five collisional invariants (number, three momenta, energy). Exponentiating and completing the square gives the Maxwell-Boltzmann distribution , with identifying the temperature.
Our goal is to show that the collision term forces the H-functional to decrease monotonically in a spatially uniform, force-free gas, using nothing but the symmetries of a binary collision and the convexity inequality — this is the authoritative statement of Boltzmann's 1872 result that later chapters recall. The strategy is to differentiate , insert the collision integral, then exploit the four-fold labeling symmetry of a collision (interchange the two partners, and interchange the direct and inverse collision) to re-express the weight as the symmetric combination ; the convexity of then delivers the sign for free. Watch that the constant "1" in integrates to zero by number conservation, and that the kernel is non-negative and invariant under collision reversal.
Step 1. Take uniform in space with , so . Differentiate the functional: . The "1" multiplies the collision term and integrates to zero because collisions conserve particle number, leaving the effective weight .
Step 2. Insert the collision integral (2): , where and abbreviates the collision measure. Why we may symmetrize: the kernel is symmetric under (relative speed and cross section do not care which partner is labeled first) and invariant under the collision reversal by microscopic reversibility plus parity.
Step 3. Relabel and average the two identical integrals. The weight becomes .
Step 4. Now use microscopic reversibility to swap primed and unprimed states; the loss term picks up a sign under this swap, and averaging over both forms converts the weight to multiplying the same .
Step 5. Assemble: . Since and, by the convexity inequality (5) with , , the product pointwise, the integrand is non-negative and .
Step 6. Equality demands for every collision, i.e. is a collisional invariant — which, as the next derivation shows, forces the Maxwellian. Verified: verify_h-theorem.py checks the convexity sign of over a grid of positive (min value , zero only on ) and confirms number conservation kills the "1" weight; matches Pathria & Beale §3.2 and Huang Ch. 4.
Go deeper · Derivation B · 1 minFrom the equality condition to the Maxwell-Boltzmann distribution
The goal here is to show that the vanishing of does not merely mean "some steady state" but uniquely selects the Gaussian Maxwell-Boltzmann distribution — so the H-theorem identifies equilibrium as well as proving relaxation to it. The strategy is to recognize the equality condition as the statement that is a "summational invariant," enumerate the complete set of such invariants for elastic binary collisions (number, momentum, energy — five in total), write as their linear combination, and complete the square. Watch that normalizability forces the energy coefficient negative, which is what turns the general invariant into a decaying Gaussian rather than a divergent one.
Step 1. The equality condition says is conserved when the collision products are summed: is unchanged by the collision. Such quantities are called summational (collisional) invariants.
Step 2. For an elastic binary collision the complete set of summational invariants is spanned by five quantities: the number , the three momentum components , and the kinetic energy . No independent sixth invariant exists (angular momentum is not conserved in a homogeneous gas of point particles at the level of the velocity distribution).
Step 3. Therefore for constants . Complete the square in : with drift . Why must be negative: must converge, so the Gaussian must decay at large , forcing .
Step 4. Fix the constants thermodynamically. Matching , the mean velocity , and the mean kinetic energy per particle (equipartition, which sets ) yields — the Maxwell-Boltzmann distribution, established as the equilibrium of the gas in the maxwell-boltzmann-velocity-distribution article. Verified: verify_h-theorem.py confirms the Gaussian integrals and with , and that the collision integral (2) vanishes on because under energy conservation; matches Kardar SPP Ch. 3.
Go deeper · Derivation C · 1 minThe discrete H-theorem: relative entropy falls under detailed balance
The goal is to show that Boltzmann's argument is not special to gases: any Markovian gain-loss dynamics obeying detailed balance drives a relative-entropy functional monotonically down, revealing the H-theorem as a universal feature of relaxation — the same structure the master-equation article establishes for its rate matrix and the Fokker-Planck article for its free energy. The strategy is to take the master equation, define (the Kullback-Leibler divergence), differentiate, and symmetrize the sum using detailed balance so that the same convexity inequality (5) applies term by term. Watch that detailed balance, not mere stationarity, is what makes the symmetrization go through.
Step 1. Let obey the master equation with an equilibrium satisfying detailed balance . This is the gain-loss dynamics the master-equation article derives.
Step 2. Define , the relative entropy — a convex functional minimized (at ) when .
Step 3. Differentiate and use detailed balance to write , where .
Step 4. Each term is (non-positive coefficient) times , so , with equality iff all are equal, i.e. . Identical engine, discrete arena. Verified: verify_h-theorem.py builds a random detailed-balance rate matrix, evolves a non-equilibrium , and checks numerically at every step plus the fixed point ; standard, van Kampen Ch. V.
Limiting cases
The H-theorem sharpens into distinct statements depending on the regime, and its rigorous status depends on how the dilute limit is taken.
| Case | Result | Meaning |
|---|---|---|
| Spatially uniform gas | Streaming drops out; collisions alone drive monotone decay — the cleanest setting for the proof. | |
| Local equilibrium (Maxwellian) | Collision integral vanishes; . The unique stationary point of . | |
| Inhomogeneous gas | The -density obeys a balance law; only the space-integrated is monotone, via a local production . | |
| Boltzmann-Grad limit | Lanford's theorem: the Boltzmann equation and molecular chaos hold rigorously for a short time, validating the H-theorem from Hamiltonian mechanics. |
Worked examples
Example 1 — A two-velocity-class relaxation, computing ΔH explicitly. Model a gas by two velocity classes with populations () relaxing by a symmetric exchange rate. Start ordered at and take one symmetric relaxation step toward the equal-population equilibrium ; verify decreases.
Step 1. Initial .
Step 2. Apply one symmetric relaxation step (rate chosen so the step moves halfway): , .
Step 3. New .
Step 4. Change . H decreased, confirming the theorem for this discrete model. Continuing to the fixed point gives , the minimum — the equal-population state is the discrete Maxwellian.
Example 2 — Entropy production sign for a hot-to-cold velocity exchange. Two sub-populations at "temperatures" set by mean square speeds exchange energy in collisions. Show the resulting change in over an equilibrating collision is negative for a concrete pair of Gaussian widths.
Step 1. Take two 1-D Gaussian velocity distributions with variances and (arbitrary units), equal weights. Each contributes up to a constant (differential entropy of a Gaussian is , and ).
Step 2. Before mixing, . The bracket sum of log-variances is , so .
Step 3. After equilibration both reach the common variance (energy conserved), giving .
Step 4. . Equalizing the two temperatures lowers H (raises entropy), exactly as the second law demands: the concavity of under the energy-conserving average guarantees .
Origins · 1 minh-theorem and how this was discovered
Going further
References. Pathria & Beale, Statistical Mechanics, 3rd ed., Ch. 3 (kinetic theory) & §3.2 · Kardar, Statistical Physics of Particles, Ch. 3 · Reif, Fundamentals of Statistical and Thermal Physics, Ch. 13–14 · Sethna, Statistical Mechanics: Entropy, Order Parameters, and Complexity, Ch. 5 · Landau & Lifshitz, Physical Kinetics (Vol. 10), §4 · Cercignani, The Boltzmann Equation and Its Applications · Huang, Statistical Mechanics, 2nd ed., Ch. 4.
Provenance. A verifier should recompute: (1) the symmetrization steps yielding , confirming the sign via — Pathria §3.2, Huang Ch. 4; (2) the Maxwell-Boltzmann form with and — Kardar Ch. 3; (3) the relative-entropy master-equation H-theorem under detailed balance — van Kampen Ch. V. The factor arises from averaging over four equivalent collision relabelings. The entropy identification and the Boltzmann-Grad/Lanford limit are standard (Cercignani; Sethna Ch. 5). The worked-example numbers (; ) are recomputed in verify_h-theorem.py.
Builds on: The Master Equation · The Fokker-Planck Equation · The Diffusion Equation Leads to: The Fluctuation-Dissipation Theorem · The Fokker-Planck Equation · Kramers' Escape Rate Theory
Why is H defined with a plus sign as ∫f ln f, when entropy is minus that?
Convention. Boltzmann defined so that it decreases toward equilibrium, mirroring the pre-thermodynamic intuition that some quantity is "used up." Entropy is (per particle, up to a constant), so is identical to . The sign is purely historical; the physics — a convex functional moving monotonically toward its extremum — is the same either way.
Does the streaming term really never change H?
In a spatially uniform gas, , so streaming vanishes outright. In an inhomogeneous gas the streaming term does move the local -density around, but when you integrate over all space it contributes only a surface term that vanishes for a confined or periodic system. So the total still changes only through collisions; streaming merely redistributes it, contributing a divergence that integrates to zero.
What exactly is molecular chaos, and why is it an assumption rather than a theorem?
Molecular chaos (the Stosszahlansatz) is the assumption that two molecules about to collide have uncorrelated velocities, so their joint distribution factorizes: . It is not a theorem because the exact dynamics does correlate colliding partners — after a collision they are entangled in phase space. Assuming factorization for incoming pairs (and not outgoing) is a time-asymmetric modeling choice that closes the BBGKY hierarchy at first order. It is provably valid, briefly, only in the Boltzmann-Grad limit (Lanford's theorem).
If the microscopic dynamics is reversible, how can any coarse-grained quantity be strictly monotone?
It cannot be strictly monotone for every microstate — that is the content of the Loschmidt and Zermelo objections. The resolution is that the H-theorem describes the typical member of an ensemble that respects molecular chaos. For the overwhelming majority of initial conditions consistent with a given macrostate, decreases; the measure-zero (or exponentially rare) exceptions — velocity-reversed states, Poincaré recurrences — are exactly those the Stosszahlansatz excludes. Irreversibility is thus statistical and tied to how we prepare and coarse-grain, not a property of individual trajectories.
Why does the equality condition give five constants and not some other number?
Because an elastic binary collision has exactly five independent conserved quantities: particle number (1 scalar), the three components of momentum (a vector), and the kinetic energy (1 scalar) — five in total. The equilibrium condition says is conserved in collisions, so must be a linear combination of precisely these five invariants. That is why has five constants , and matching them to fixes the Maxwellian.
How is the H-theorem related to the master equation and Fokker-Planck versions?
They are the same Lyapunov-functional idea in different settings. For the master equation, the relative entropy decreases under detailed-balance rates. For the Fokker-Planck equation, the analogous functional is the free energy , which decreases toward the Boltzmann stationary state. All three rest on the convexity inequality . The gas H-theorem is the continuous-velocity, nonlinear-collision instance; the master-equation and Fokker-Planck versions are the linear, discrete- and continuous-state instances.
Can the H-theorem be violated in a real gas, even briefly?
In a real, finite gas, fluctuations mean can rise briefly — the theorem is exact only for the smooth of the idealized Boltzmann equation. Modern fluctuation theorems quantify exactly how probable such transient entropy decreases are: they are exponentially suppressed in the system size and observation time, . So the "violations" are real but rare, and they average out to Boltzmann's monotone decrease in any macroscopic sample — the H-theorem is the mean behavior, the fluctuation theorem the full distribution.