H-Theorem and Approach to Equilibrium
We take from the SM10 article h-theorem (aq-sm-h-theorem) the gas-kinetic result it owns: that Boltzmann's functional decreases monotonically under the Boltzmann transport equation, , with the decrease driven by the collision integral and the Stosszahlansatz (molecular chaos), zero only on the local Maxwell–Boltzmann distribution. That article, together with boltzmann-transport-equation, derives the streaming-plus-collision dynamics and the symmetrization proof. We do not re-derive them here. This article owns the stochastic-process face of the same physics: the H-theorem as monotonicity of relative entropy under Markov dynamics. For any master equation whose stationary distribution satisfies detailed balance, the Kullback–Leibler divergence is a Lyapunov function: , and as . Boltzmann's gas is the special case where is the Maxwellian and . This framing detaches the arrow of time from the details of two-body scattering and attaches it to a single, sharp mathematical fact — the convexity of — that governs relaxation in chemical networks, population dynamics, Monte Carlo chains, and any coarse-grained description with a Markov generator. The reframing also clarifies the old paradoxes. The monotone quantity is a coarse-grained, statistical divergence, not the fine-grained Gibbs entropy of the full phase-space density, which Liouville's theorem keeps exactly constant. Loschmidt's reversibility objection and Zermelo's recurrence objection both attack the fine-grained level; the relative-entropy H-theorem lives one level up, where information about correlations has already been discarded. Irreversibility is the price of that discarding, made quantitative by .
- The SM10 owner h-theorem proves for the dilute gas; here we recall that result and lift it to a general statement about Markov dynamics.
- For any master equation with a detailed-balanced stationary , the relative entropy obeys and — a universal Lyapunov / H-functional.
- The engine is the elementary convexity inequality ; detailed balance lets the master-equation rate be written as a manifest sum of such non-positive terms.
- Boltzmann's is the special case where is the Maxwellian; , so gas relaxation and Markov relaxation are one theorem.
- On a two-state chain decays as a single exponential set by the relaxation eigenvalue ; the arrow of time has an explicit rate.
- The monotone object is coarse-grained: the fine-grained Gibbs entropy stays flat by Liouville, so the arrow of time needs a statistical (Markov / coarse-graining) input — the resolution of Loschmidt and Zermelo.
- Key idea: the H-theorem is the statement that relative entropy to the stationary distribution can only shrink under detailed-balanced Markov dynamics; is the universal Lyapunov function that measures "distance to equilibrium," and Boltzmann's gas is one instance of it.
The H-theorem is the statement that relative entropy to the stationary distribution can only shrink under detailed-balanced Markov dynamics: satisfies , is bounded below by zero, and vanishes only at . Boltzmann's gas is the special case Maxwellian. The arrow of time is convexity applied to a coarse-grained distribution — not a new force law.
Where this lives today
The relative-entropy H-theorem is the workhorse guarantee behind Markov-chain Monte Carlo: any sampler built to satisfy detailed balance with the target is certified to relax toward it because decreases, and the whole art of algorithm design — cluster moves, lifted/irreversible samplers, parallel tempering — is about making that guaranteed-but-slow descent faster. In machine learning the same divergence reappears as the KL term in variational inference and diffusion models, and its monotonicity under the "denoising" Markov chain is exactly this theorem. In nonequilibrium physics it underlies the "speed limits" and thermodynamic-uncertainty bounds that relate how fast a system can relax to how much entropy it must produce. The gas-kinetic origin, owned by the SM10 article, remains the historical root; the Markov framing is what made the theorem portable across physics, chemistry, biology, and statistics.
The physical picture
The gas picture is familiar and is owned by the SM10 article: a sharply peaked velocity distribution gets smeared by collisions toward the broad Maxwellian bell, and slides downhill. The stochastic-process picture keeps the same downhill motion but replaces "collisions smear velocities" with "transition rates shuffle probability among discrete states." Prepare a Markov chain in any initial distribution ; the dynamics leak probability toward the stationary , and the number — how distinguishable still is from — can only decrease. Relative entropy is the right ruler because it is a contraction under stochastic maps: pushing two distributions through the same noisy channel can never make them more distinguishable. Detailed balance guarantees the channel's fixed point is , so every distribution is dragged toward it and measures the shrinking gap.
The relative entropy falls monotonically to zero from any starting distribution — the discrete H-theorem. It never rises and never overshoots below zero; only at .
The single most important figure is not the decay curve but a comparison that pins down why the H-theorem needs a statistical input. Split the description into a fine-grained level (full phase-space density, deterministic Liouville flow) and a coarse-grained level (the reduced/Markov distribution). The coarse-grained marches down; the fine-grained Gibbs entropy sits perfectly flat.
Punchline. The coarse-grained entropy climbs to its equilibrium value, but the fine-grained Gibbs entropy of the full density is constant (Liouville's theorem, ). The flat line is the thesis outlier: irreversibility is manufactured by discarding correlations, not by the equations of motion.
The core equations
The relative entropy (Kullback–Leibler divergence) between the running distribution and the stationary one is the object that decreases. It is defined for two probability vectors on the same state space and is the discrete analogue of Boltzmann's measured from equilibrium.
where: — probability of state at time ; — stationary distribution of the Markov generator; the sum runs over all states. The non-negativity is Gibbs' inequality, with equality iff : is a bona fide "distance to equilibrium," though not a metric. The dynamics are a master equation. We adopt the convention that is the rate of jumps from to , so probability flows into at rate and out at rate .
where: — transition rate ; the diagonal is fixed by conservation if one folds the escape rate in, or equivalently each state's outflow balances its rate sum. Probability is conserved: . Detailed balance is the condition that closes the H-theorem. It states that in the stationary state every individual transition is balanced by its reverse, not merely the net flow into each state.
where: the product of forward rate and source-state stationary weight equals that of the reverse. Equation (3) is strictly stronger than stationarity; it forbids circulating probability currents and is exactly the condition under which is monotone. The central result of this article is that (2) with (3) drives (1) downhill. We state it as the master-equation H-theorem, whose gas-kinetic counterpart is owned by the SM10 article h-theorem.
where: the divergence to the stationary distribution can only shrink. Equation (4) contains Boltzmann's as the special case in which the states are velocity cells and is the Maxwellian. The link to Boltzmann's functional is a shift by a constant. Because , and is the Gibbs entropy, differs from only by the -dependent term.
where: — Boltzmann's functional in its discrete form; — its equilibrium value; collects the cross term , which vanishes when is uniform (microcanonical) so that and move together exactly.
The goal is to prove Equation (4): that under the master equation (2) with a stationary distribution satisfying detailed balance (3), the Kullback–Leibler divergence decreases monotonically in time. The strategy is to differentiate , use probability conservation to kill the additive constant, re-express the rate using detailed balance so that it becomes symmetric in the ratio variables , and finally invoke the elementary inequality to certify that every term in the sum is non-positive. This mirrors the symmetrization the SM10 gas H-theorem performs over collision partners, but the algebra is purely linear and needs no scattering kernel.
Step 1. Differentiate . Since is time-independent, . The multiplies and drops out, leaving . Why the vanishes: probability conservation, , is the discrete analogue of particle-number conservation that removes the constant term from Boltzmann's .
Step 2. Insert the master equation and write . Using and detailed balance , the flow term becomes , where is symmetric. Then . Why detailed balance is essential: it is exactly what makes the weight symmetric under . Without (3) there is a residual antisymmetric piece — a circulating current — and need not be monotone.
Step 3. Symmetrize the double sum by averaging the and labelings. Because is symmetric, .
Step 4. Apply the inequality. With , the factor by . Since , every term is non-positive and . Equality requires for all connected pairs, i.e. , hence . Why this is the same theorem as the gas case: replace discrete states by velocity cells and by the Maxwellian, and the symmetric weight becomes the collision kernel — the SM10 owner's is the continuum image of this sum. *Verified symbolically and numerically in verify_aq-sm-h-theorem-sm11.py: the two-state and three-state chains give at all sampled times, and the analytic two-state decay rate matches.*
Go deeper · Derivation B · 1 minThe two-state chain: an exactly solvable arrow of time
The goal is to make the abstract monotonicity concrete by solving the smallest nontrivial case in closed form, extracting the relaxation rate and showing decays as a single exponential-squared-scale quantity governed by one eigenvalue. A two-state chain with up-rate (state ) and down-rate (state ) has stationary distribution , , which satisfies detailed balance automatically (any two-state chain does). We solve the linear dynamics and feed the solution into .
Step 1. The occupation obeys , a linear ODE. Its solution is with the single relaxation rate ; equivalently the nonzero eigenvalue of the generator is . Why one rate: a two-state generator has eigenvalues (stationary) and ; every observable relaxes with the same time constant .
Step 2. Write the deviation . Then , since probabilities sum to one.
Step 3. Substitute into . For small deviations, expand to second order: . So decays at twice the observable rate, , and is manifestly non-negative and monotone. Why : relative entropy is quadratic in the deviation near equilibrium (its Hessian is the Fisher information ), so a deviation gives .
Step 4. The exact (no expansion) is still monotone: , and and the log always carry opposite signs because net downward flow. Hence for all , not just near equilibrium. Verified in verify_aq-sm-h-theorem-sm11.py: , the small-deviation scaling, and exact- monotonicity are all checked; the corresponding coarse-grained entropy is confirmed to rise.
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| Uniform stationary (microcanonical) | , | Relative entropy equals Boltzmann's up to a constant; the two H-theorems coincide exactly. |
| Two-state chain | , | Single relaxation rate; the arrow of time has an explicit exponential clock. |
| Continuum velocity states, Maxwellian | Recovers Boltzmann's gas H-theorem — owned by the SM10 article, recalled not re-derived here. | |
| Broken detailed balance (NESS) | still to the stationary , but carries currents | to the true NESS decreases, yet entropy production is nonzero — the relaxation and the dissipation are different questions. |
| Fine-grained Gibbs entropy (Liouville) | No H-theorem without coarse-graining; the monotone quantity is statistical, not mechanical. |
Worked examples
Example 1 — A two-state ion channel: relaxation rate and monotone . A membrane channel gates between closed () and open () with opening rate and closing rate . It starts fully closed, . Find the stationary open probability, the relaxation time, and confirm the relative entropy falls to zero.
Step 1. Stationary distribution: open, closed.
Step 2. Relaxation rate , so the relaxation time is . The open probability follows .
Step 3. Initial divergence: .
Step 4. At , , ; . The divergence has fallen from to , monotonically, as the H-theorem demands. It reaches only as .
Example 2 — Three-state cycle with detailed balance: numeric monotonicity. Take states with symmetric-in- rates chosen so satisfies detailed balance: ; ; (all = rate ). Start at .
Step 1. Verify detailed balance holds pairwise: . ✓ Similarly for and . There are no net cycle currents.
Step 2. Initial divergence .
Step 3. Integrate the master equation numerically (RK4, ). The divergence decreases at every step: passes through at , at , and as . The measured is negative at all sampled times, with maximum value (numerically ).
Step 4. The coarse-grained entropy rises from (a pure state) to its equilibrium value nats, confirming exactly mirrors when is close to uniform. All numbers recomputed in the verify script.
Origins · 1 minarrow of time and how this was discovered
The "arrow of time" names the puzzle the H-theorem addresses: microscopic laws are time-reversal symmetric, yet macroscopic relaxation runs one way. The phrase was coined by Arthur Eddington in 1927, but the physics is Boltzmann's — he identified entropy increase, via , as the mechanical seat of temporal asymmetry. The modern resolution the relative-entropy H-theorem makes precise is that the arrow is not in the equations of motion but in the coarse-graining: once correlations are discarded (the Stosszahlansatz for gases, the Markov property for stochastic dynamics), can only shrink. The fine-grained description remains reversible; the arrow is emergent and statistical.
Going further
References. Boltzmann, Lectures on Gas Theory (1896/1898; Dover trans. 1964) · van Kampen, Stochastic Processes in Physics and Chemistry, 3rd ed., Ch. V · Sethna, Statistical Mechanics: Entropy, Order Parameters, and Complexity, 2nd ed., Ch. 5 · Cover & Thomas, Elements of Information Theory, Ch. 2 (KL divergence, data-processing) · Schnakenberg, Rev. Mod. Phys. 48, 571 (1976) · Kardar, Statistical Physics of Particles, Ch. 3 (gas H-theorem, owned by the SM10 article)
Provenance. The gas-kinetic H-theorem (, symmetrization, Maxwellian fixed point) is derived and owned by the SM10 article h-theorem (aq-sm-h-theorem) and its companion boltzmann-transport-equation; it is recalled here by name, not re-derived. This article's structural result is the relative-entropy Lyapunov property for detailed-balanced master equations, standard in van Kampen Ch. V and Cover–Thomas. A verifier should: (1) reproduce the symmetrization in the derivation and the non-positivity; (2) check the two-state analytic rate and the scaling of ; (3) integrate the three-state detailed-balanced chain and confirm numerically. No nonstandard numerical constants are asserted.
Builds on: Detailed Balance and Microscopic Reversibility · The Master Equation · Markov Processes and the Markov Property Leads to: Fokker–Planck Equation · Metropolis–Hastings Algorithm · Molecular Dynamics Simulation
Is the relative-entropy H-theorem the same theorem as Boltzmann's, or a generalization?
It is a generalization that contains Boltzmann's as a special case. Boltzmann's is defined for a gas evolving under the Boltzmann transport equation, and its decrease is owned by the SM10 article. The relative-entropy statement holds for any master equation with a detailed-balanced stationary distribution, whether or not it comes from two-body collisions. When you specialize the states to velocity cells and take to be the Maxwellian, becomes and the two coincide. The value of the abstraction is that it applies to chemical reaction networks, epidemic models, and Monte Carlo chains with no collision integral in sight.
If the fine-grained entropy is constant, in what sense does entropy increase?
The Gibbs entropy of the full phase-space density is exactly conserved under Hamiltonian (Liouville) flow, because the flow just relabels phase-space points without compressing volume. Entropy "increases" only for a reduced description — after you integrate out correlations or project onto macroscopic observables. That coarse-grained entropy is , and it rises. So the correct statement is: the entropy of our coarse description of the system increases, reflecting the information about microscopic correlations that we have deliberately discarded. Nothing about the microdynamics is irreversible.
What exactly goes wrong if detailed balance fails?
If the stationary distribution carries circulating probability currents (broken detailed balance, a nonequilibrium steady state), the weight is no longer symmetric, and the clean "sum of non-positive terms" argument breaks. Remarkably, the relative entropy to the true stationary still decreases monotonically for a broad class of such systems — relaxation to a NESS is still governed by . What changes is that the NESS itself produces entropy at a positive rate, a separate quantity (the Schnakenberg entropy production) that has nothing to do with the relaxation of . Relaxation and dissipation are distinct: measures approach to ; entropy production measures how far is from equilibrium.
Why does relative entropy decay at twice the eigenvalue rate near equilibrium?
Near the stationary state, expand to second order in the deviation . The linear term vanishes (because minimizes ), and the quadratic term is — the deviation weighted by the Fisher information . If the slowest eigenmode of the generator decays as , then . So relative entropy relaxes at twice the rate of any linear observable. This factor of two is generic and is why is often a more sensitive convergence diagnostic than a single observable.
How does this connect to Monte Carlo convergence in practice?
A Markov-chain Monte Carlo sampler is a master equation (or its discrete-time cousin) engineered so that its stationary distribution is the target you want to sample, and so that it satisfies detailed balance with (the Metropolis acceptance rule is built precisely for this). The H-theorem then guarantees the sampler's distribution converges to : decreases to zero. The catch is the rate: the relaxation is set by the spectral gap of the generator, which can be tiny near a phase transition (critical slowing down). Cluster algorithms and other tricks attack the gap, not the guarantee — the H-theorem promises arrival, not speed.
Can ever increase, even briefly, along the way?
No — under a genuine detailed-balanced master equation, at every instant, not just on average or asymptotically. This is stronger than the second law, which in some formulations only constrains net changes between equilibrium endpoints. The instantaneous monotonicity follows because the derivation bounds the rate termwise: each pair contributes a non-positive amount. If you ever measure rising, either the reference is not the true stationary distribution, detailed balance is broken, or there is a numerical/integration error. Genuine monotonicity is a strict diagnostic.
Does coarse-graining choice affect which H-theorem you get?
Yes, and this is subtle. Different coarse-grainings (different projections onto macroscopic variables, or different lumpings of microstates) give different reduced dynamics, and the reduced dynamics is only exactly Markovian for special choices. When the reduction is Markovian with a detailed-balanced stationary distribution, you get a clean H-theorem for that level's . When it is not — when memory effects (non-Markovian corrections) matter — the reduced can transiently rise, and one needs the full generalized master equation. The relative-entropy monotonicity is a property of Markov generators; its applicability rests on the reduction actually being (approximately) Markovian at the timescales of interest.