Derivation of the Canonical Distribution from the Microcanonical Ensemble

The microcanonical ensemble is the bedrock: an isolated system of fixed energy, with the single postulate that every accessible microstate is equally likely. The canonical ensemble is the workhorse: a system at fixed temperature, with microstate probabilities weighted by the Boltzmann factor e−βEe^{-\beta E}. These look like two different theories — one democratic (all states equal), the other exponentially biased. This article shows they are the same theory: the Boltzmann distribution is derived, not postulated, from the microcanonical bedrock, simply by taking a small system and putting it in contact with a large one. The trick is a change of viewpoint. Take a small system SS and surround it with a huge reservoir RR. Together, S+RS+R form an isolated whole with fixed total energy — a microcanonical system, to which the equal-a-priori postulate applies. Now ask: what is the probability that SS sits in a specific microstate ii? It is proportional to the number of ways the reservoir can accommodate the leftover energy Etot−EiE_{\text{tot}}-E_i. Because the reservoir is enormous, its entropy is a smooth function of energy, and expanding it to first order in the small system energy EiE_i produces the exponential: ΩR(Etot−Ei)∝e−βEi\Omega_R(E_{\text{tot}}-E_i)\propto e^{-\beta E_i}, with β\beta the reservoir's inverse temperature. That is the entire content of the canonical ensemble, and it explains why temperature appears where energy was: the reservoir's β=(∂SR/∂E)/kB=1/kBT\beta=(\partial S_R/\partial E)/k_B=1/k_BT imprints itself on the system. The derivation also reveals its own limits: the linear (first-order) expansion is exact only because the second-order term is suppressed by the reservoir's size, ∼NS/NR→0\sim N_S/N_R\to0. This article carries out the reservoir expansion carefully, identifies β\beta as inverse temperature, quantifies why the expansion is exact, and checks the whole thing numerically on two coupled Einstein solids where the small one is driven to a Boltzmann distribution by the large one.

Key takeaways
  • The canonical (Boltzmann) distribution is derived from the microcanonical postulate by coupling a small system SS to a large reservoir RR and treating S+RS+R as isolated.
  • The probability of system microstate ii is ∝ΩR(Etot−Ei)\propto\Omega_R(E_{\text{tot}}-E_i) — the number of reservoir states compatible with it.
  • Expanding the reservoir entropy (not ΩR\Omega_R) to first order: ln⁡ΩR(Etot−Ei)≈const−βEi\ln\Omega_R(E_{\text{tot}}-E_i)\approx\text{const}-\beta E_i, so pi∝e−βEip_i\propto e^{-\beta E_i}.
  • The coefficient is inverse temperature: β=∂ln⁡ΩR/∂E∣Etot=1/kBT\beta=\left.\partial\ln\Omega_R/\partial E\right|_{E_{\text{tot}}}=1/k_BT — the reservoir imprints its temperature on the system.
  • The expansion is exact because the second-order term is suppressed by ∼NS/NR→0\sim N_S/N_R\to0: only an infinite reservoir gives a pure exponential.
  • Key idea: the Boltzmann distribution is not an axiom but a consequence — expanding a large reservoir's entropy to first order in the system energy turns the microcanonical postulate into pi∝e−βEip_i\propto e^{-\beta E_i}.
The core insight

Coupling a small system to a large reservoir and applying the microcanonical equal-a-priori postulate to the isolated whole yields the canonical distribution: pi∝ΩR(Etot−Ei)p_i\propto\Omega_R(E_{\text{tot}}-E_i), and expanding the reservoir entropy to first order gives pi∝e−βEip_i\propto e^{-\beta E_i} with β=1/kBT\beta=1/k_BT. The exponential is exact because the second-order term vanishes as NS/NR→0N_S/N_R\to0.

Where this lives today

This derivation is the logical spine that connects the two most-used ensembles, and its ideas recur wherever "temperature control" must be implemented. In molecular-dynamics simulations, a real system of a few thousand atoms is coupled to a thermostat — a mathematical reservoir (Nosé–Hoover, Langevin, Andersen) — precisely to sample the canonical distribution e−βEe^{-\beta E} rather than the microcanonical one; the thermostat algorithms are engineered reservoirs, and understanding their subtle finite-size artifacts requires exactly the second-order corrections this article quantifies. Getting the reservoir coupling wrong biases every computed free energy. The reservoir picture also underlies the modern theory of open quantum systems and quantum thermodynamics. A qubit in contact with a thermal bath relaxes to the quantum canonical state ρ=e−βH^/Z\rho=e^{-\beta\hat H}/Z by exactly the reasoning here, generalized to density matrices; the theory of thermalization (the eigenstate thermalization hypothesis) asks how a large isolated quantum system can act as its own reservoir for its subsystems, deriving canonical behaviour from microcanonical (unitary) dynamics. This is one of the deepest current questions in statistical physics: how the Boltzmann distribution — here derived by coupling to an external bath — emerges for a subsystem of a closed, isolated quantum world. The humble reservoir expansion is the classical shadow of that profound quantum-thermalization program, and it remains the cleanest demonstration that the exponential Boltzmann weight is not a postulate but a consequence of counting states.

The physical picture

Start from the one postulate of the microcanonical ensemble: for an isolated system of fixed energy, all accessible microstates are equally likely. Now the small system we care about is not isolated — it exchanges energy with its surroundings. So enlarge the box: consider system + reservoir together as one isolated whole. That combined system is microcanonical, and the postulate applies to it. Every microstate of the whole — every way of splitting the fixed total energy between SS and RR — is equally likely.

Figure
System S in contact with a large reservoir R at total energy E_tot. When S is in a definite state of energy E, the reservoir holds E_tot − E and can be in Ω_R(E_tot − E) states.
reservoir R (large): energy E_tot − E Ω_R(E_tot − E) states system S state i, energy E isolated whole: E_tot fixed all microstates equally likely ⇒ p_i ∝ Ω_R(E_tot−E)

Here is the pivot. Fix the small system in a definite microstate ii of energy EiE_i — that is one state of SS, so it carries no multiplicity of its own. But the reservoir can then be in any of ΩR(Etot−Ei)\Omega_R(E_{\text{tot}}-E_i) microstates, all equally likely. So the probability that SS is in state ii is proportional to ΩR(Etot−Ei)\Omega_R(E_{\text{tot}}-E_i): the system prefers low-energy states not because they are intrinsically favoured, but because leaving more energy for the reservoir gives the reservoir more ways to arrange itself. The exponential bias of the canonical ensemble is really the reservoir's entropy talking. Why an exponential, specifically? Because ΩR\Omega_R is astronomically steep, but its logarithm — the entropy — is smooth and nearly linear over the tiny energy range the small system samples. Expand ln⁡ΩR\ln\Omega_R to first order and you get const−βEi\text{const}-\beta E_i, so ΩR∝e−βEi\Omega_R\propto e^{-\beta E_i}. The punchline plot below shows this: the reservoir's entropy curve is gently sloped, and its local slope β=∂ln⁡ΩR/∂E\beta=\partial\ln\Omega_R/\partial E — evaluated at EtotE_{\text{tot}} — is exactly the inverse temperature that the reservoir imprints on the system. Temperature is the slope of the reservoir's entropy.

Figure
The reservoir entropy ln Ω_R(E_tot − E) is smooth; its slope at E_tot is β = 1/k_BT. Linearizing gives ln Ω_R ≈ const − βE, hence p ∝ e^{-βE}.
E (system energy)ln Ω_R tangent: slope = −β ln Ω_R(E_tot − E) β = ∂ ln Ω_R/∂E = 1/k_BT

The core equations

The starting point is the microcanonical probability of a system microstate, proportional to the reservoir multiplicity:

pi∝ΩR(Etot−Ei)=exp⁡ ⁣[1kBSR(Etot−Ei)](1)p_i \propto \Omega_R(E_{\text{tot}}-E_i) = \exp\!\left[\frac{1}{k_B}S_R(E_{\text{tot}}-E_i)\right] \qquad (1)

where: pip_i — probability of system microstate ii; ΩR\Omega_R — reservoir multiplicity; SR=kBln⁡ΩRS_R=k_B\ln\Omega_R — reservoir entropy; Etot=ES+ERE_{\text{tot}}=E_S+E_R — fixed total energy. The reservoir entropy in the exponent is what will be expanded. Expanding the reservoir entropy (smooth, unlike ΩR\Omega_R) to first order in the small energy EiE_i:

SR(Etot−Ei)=SR(Etot)−Ei∂SR∂E∣Etot+12Ei2∂2SR∂E2∣+⋯(2)S_R(E_{\text{tot}}-E_i) = S_R(E_{\text{tot}}) - E_i\left.\frac{\partial S_R}{\partial E}\right|_{E_{\text{tot}}} + \tfrac12 E_i^2\left.\frac{\partial^2 S_R}{\partial E^2}\right|+\cdots \qquad (2)

where: the first-order term is linear in EiE_i; the second-order term is the curvature. The reservoir's largeness is what makes the linear term dominate. Identifying the linear coefficient as inverse temperature gives the Boltzmann distribution:

1kB∂SR∂E=1kBT=β⇒pi∝e−βEi,pi=e−βEiZ(3)\frac{1}{k_B}\frac{\partial S_R}{\partial E}=\frac{1}{k_BT}=\beta \quad\Rightarrow\quad p_i\propto e^{-\beta E_i},\qquad p_i=\frac{e^{-\beta E_i}}{Z} \qquad (3)

where: β=1/kBT\beta=1/k_BT — the reservoir's inverse temperature (from 1/T=∂S/∂E1/T=\partial S/\partial E); Z=∑ie−βEiZ=\sum_i e^{-\beta E_i} — the normalizing partition function. The canonical distribution is derived, not assumed. The second-order term measures the error, and it is suppressed by the reservoir size:

2nd-order1st-order∼EiER∼NSNR→NR→∞0(4)\frac{\text{2nd-order}}{\text{1st-order}} \sim \frac{E_i}{E_R} \sim \frac{N_S}{N_R} \xrightarrow{N_R\to\infty} 0 \qquad (4)

where: NS,NRN_S,N_R — number of degrees of freedom in system and reservoir. The curvature term (related to the reservoir's finite heat capacity) vanishes as the reservoir grows, so the exponential is exact only for an infinite reservoir.

Derivation ADeriving the Boltzmann distribution and identifying β as inverse temperature

The goal is to derive the canonical probability pi∝e−βEip_i\propto e^{-\beta E_i} from the microcanonical postulate applied to system-plus-reservoir, and to show that β\beta is exactly the reservoir's inverse temperature. The strategy is to expand the reservoir entropy (not the steep multiplicity) to first order and identify the linear coefficient thermodynamically. We use the ideal-gas reservoir to make the coefficient explicit.

Step 1. By the equal-a-priori postulate for the isolated whole, pi∝ΩR(Etot−Ei)p_i\propto\Omega_R(E_{\text{tot}}-E_i). Write this as exp⁡[SR(Etot−Ei)/kB]\exp[S_R(E_{\text{tot}}-E_i)/k_B] so we can expand the smooth entropy rather than the astronomically steep ΩR\Omega_R. Why: ΩR\Omega_R varies by factors of e1023e^{10^{23}} over tiny energy ranges, so a Taylor expansion of ΩR\Omega_R diverges; the entropy SR=kBln⁡ΩRS_R=k_B\ln\Omega_R is smooth and extensive, and its expansion converges.

Step 2. Taylor-expand: SR(Etot−Ei)=SR(Etot)−Ei(∂SR/∂E)+⋯S_R(E_{\text{tot}}-E_i)=S_R(E_{\text{tot}})-E_i(\partial S_R/\partial E)+\cdots. The constant SR(Etot)S_R(E_{\text{tot}}) is absorbed into the normalization, leaving pi∝exp⁡[−Ei(∂SR/∂E)/kB]p_i\propto\exp[-E_i(\partial S_R/\partial E)/k_B]. Why: only the EiE_i-dependent term matters for the relative probabilities; the constant reservoir entropy at the full energy is the same for every system state.

Step 3. Identify the coefficient. The thermodynamic definition of temperature is 1/T=(∂S/∂E)V,N1/T=(\partial S/\partial E)_{V,N}, so (∂SR/∂E)/kB=1/(kBT)=β(\partial S_R/\partial E)/k_B=1/(k_BT)=\beta. Hence pi∝e−βEip_i\propto e^{-\beta E_i}, with β\beta the reservoir's inverse temperature. For a monatomic ideal-gas reservoir, SR=32NRkBln⁡ERS_R=\tfrac32 N_R k_B\ln E_R gives ∂SR/∂E=32NRkB/ER\partial S_R/\partial E=\tfrac32 N_R k_B/E_R, and with ER=32NRkBTE_R=\tfrac32 N_R k_BT this is exactly 1/T1/T — a concrete check. Why: the slope of the reservoir's entropy versus energy is the inverse temperature; the reservoir stamps its β\beta onto the small system's distribution.

Step 4. Normalize: pi=e−βEi/Zp_i=e^{-\beta E_i}/Z with Z=∑ie−βEiZ=\sum_i e^{-\beta E_i}. This is the canonical ensemble, obtained purely from the microcanonical postulate plus the largeness of the reservoir. Why: dividing by the sum enforces ∑ipi=1\sum_i p_i=1; the whole canonical formalism is the microcanonical postulate seen from the small system's perspective. *Verified: for the ideal-gas reservoir, ∂ln⁡ΩR/∂E=32NR/Etot=1/(kBT)\partial\ln\Omega_R/\partial E=\tfrac32 N_R/E_{\text{tot}}=1/(k_BT) with Etot=32NRkBTE_{\text{tot}}=\tfrac32 N_R k_BT, confirmed symbolically in verify_aq-sm-canonical-from-microcanonical.py.*

Go deeper · Derivation B · 2 minWhy the linear expansion is exact — the owned result on the second-order term
Derivation BWhy the linear expansion is exact — the owned result on the second-order term

This is the article's owned structural result: the reservoir expansion is not merely a convenient approximation but becomes exact in the reservoir limit, because the second-order (curvature) term is suppressed by the ratio NS/NRN_S/N_R and vanishes as the reservoir grows. The goal is to compute the second-order term explicitly and show it dies. The strategy is to keep the quadratic term in the entropy expansion and estimate its size relative to the linear term for an ideal-gas reservoir.

Step 1. Keep two terms: ln⁡ΩR(Etot−E)=ln⁡ΩR(Etot)−βE+12c2E2+⋯\ln\Omega_R(E_{\text{tot}}-E)=\ln\Omega_R(E_{\text{tot}})-\beta E+\tfrac12 c_2 E^2+\cdots, where c2=∂2ln⁡ΩR/∂E2c_2=\partial^2\ln\Omega_R/\partial E^2. For the ideal-gas reservoir ln⁡ΩR∝32NRln⁡E\ln\Omega_R\propto\tfrac32 N_R\ln E, so β=32NR/Etot\beta=\tfrac32 N_R/E_{\text{tot}} and c2=−32NR/(2Etot2)c_2=-\tfrac32 N_R/(2E_{\text{tot}}^2) (negative — the entropy is concave). Why: differentiating the reservoir entropy twice gives a curvature inversely proportional to Etot2E_{\text{tot}}^2 and proportional to NRN_R — the reservoir's finite heat capacity.

Step 2. Form the ratio of the quadratic to the linear term at a typical system energy E∼ESE\sim E_S: ∣c2∣E2/2βE=∣c2∣E2β=E2Etot\dfrac{|c_2|E^2/2}{\beta E}=\dfrac{|c_2|E}{2\beta}=\dfrac{E}{2E_{\text{tot}}}. With ES∼32NSkBTE_S\sim\tfrac32 N_S k_BT and Etot∼32NRkBTE_{\text{tot}}\sim\tfrac32 N_R k_BT, this is NS2NR\dfrac{N_S}{2N_R}. Why: the two energy scales are set by the numbers of degrees of freedom, so their ratio is the ratio of system to reservoir sizes — small when the reservoir is large.

Step 3. Take the reservoir limit NR→∞N_R\to\infty at fixed NSN_S and TT: the ratio NS/2NR→0N_S/2N_R\to0, so the quadratic (and all higher) terms vanish and ln⁡ΩR(Etot−E)→const−βE\ln\Omega_R(E_{\text{tot}}-E)\to\text{const}-\beta E exactly. The Boltzmann distribution is exact for an infinite reservoir, not merely approximate. Why: an infinite reservoir has infinite heat capacity, so absorbing the system's energy does not change its temperature at all — the slope β\beta is truly constant, and the expansion terminates at first order.

Step 4. Physical reading of the corrections. For a finite reservoir the residual curvature reflects the reservoir cooling slightly as it absorbs energy; this is the origin of small canonical-vs-microcanonical differences that scale as 1/NR1/N_R. Why: a finite bath has a finite heat capacity, so its temperature is not perfectly rigid; the second-order term encodes exactly this back-reaction, which disappears only in the idealized infinite-reservoir limit. *Verified: for the ideal-gas reservoir the 2nd/1st-order term ratio equals NS/(2NR)→0N_S/(2N_R)\to0; two coupled Einstein solids (small NS=4N_S=4, large NR=4000N_R=4000) drive the small system to a Boltzmann distribution — the slope of ln⁡(P/ΩS)\ln(P/\Omega_S) matches −β-\beta and ⟨qS⟩\langle q_S\rangle matches the canonical NS/(eβ−1)N_S/(e^\beta-1) within 10%10\%, in the verify script.*

Limiting cases

The derivation across regimes:

CaseResultMeaning
Infinite reservoirpi=e−βEi/Zp_i = e^{-\beta E_i}/Z exactlyThe pure canonical ensemble; reservoir temperature perfectly rigid.
Finite reservoircorrections ∼NS/NR\sim N_S/N_RSmall deviations from Boltzmann; the bath cools slightly as it gives up energy.
System = reservoir sizeexpansion invalidNo separation of scales; must treat the whole microcanonically.
Ideal-gas reservoirβ=32NR/Etot\beta = \tfrac32 N_R/E_{\text{tot}}The slope of SRS_R vs EE is explicitly 1/kBT1/k_BT.
Zero couplingisolated systemMicrocanonical; no energy exchange, no Boltzmann weighting.

Worked examples

1 · Two coupled Einstein solids drive the small one to Boltzmann (a real emergence)

A small Einstein solid (NS=4N_S=4 oscillators) is coupled to a large one (NR=4000N_R=4000) sharing qtot=4000q_{\text{tot}}=4000 energy quanta. Show that the small system's energy distribution is Boltzmann, and find its effective temperature (Einstein solid Ω(N,q)=(q+N−1q)\Omega(N,q)=\binom{q+N-1}{q}).

Step 1. The probability the small solid holds qq quanta is P(q)∝ΩS(q) ΩR(qtot−q)P(q)\propto\Omega_S(q)\,\Omega_R(q_{\text{tot}}-q), by the microcanonical postulate on the combined solid. Enumerate: ΩS(q)=(q+3q)\Omega_S(q)=\binom{q+3}{q}, ΩR(4000−q)=(4000−q+39994000−q)\Omega_R(4000-q)=\binom{4000-q+3999}{4000-q}.

Step 2. The reservoir's inverse "temperature" per quantum is β=∂ln⁡ΩR/∂q≈ln⁡(1+NR/qR)\beta=\partial\ln\Omega_R/\partial q\approx\ln(1+N_R/q_R). With qR≈qtot=4000q_R\approx q_{\text{tot}}=4000 and NR=4000N_R=4000: β=ln⁡(1+4000/4000)=ln⁡2=0.693\beta = \ln(1+4000/4000) = \ln 2 = \mathbf{0.693} per quantum.

Step 3. Predicted Boltzmann distribution: P(q)∝ΩS(q) e−βqP(q)\propto\Omega_S(q)\,e^{-\beta q}. Numerically (in the verify script) the slope of ln⁡[P(q)/ΩS(q)]\ln[P(q)/\Omega_S(q)] against qq is −β≈−0.69-\beta\approx-0.69, confirming the small system samples its states with a Boltzmann weight set by the reservoir — even though nothing was postulated about temperature.

Step 4. Mean energy: canonically ⟨qS⟩=NS/(eβ−1)=4/(e0.693−1)=4/1.0=4.0\langle q_S\rangle=N_S/(e^\beta-1)=4/(e^{0.693}-1)=4/1.0=\mathbf{4.0} quanta, matching the direct microcanonical average within a few percent. A large "dumb" reservoir, obeying only equal-a-priori probabilities, forces a small system into the exponential Boltzmann distribution — the canonical ensemble emerging from the microcanonical, computed explicitly.

2 · Identifying β for an ideal-gas reservoir (exam level)

A small system is in contact with a monatomic ideal-gas reservoir of NRN_R atoms and total energy EtotE_{\text{tot}} (with ES≪EtotE_S\ll E_{\text{tot}}). (a) Compute β=∂ln⁡ΩR/∂E\beta=\partial\ln\Omega_R/\partial E. (b) Verify it equals 1/kBT1/k_BT. (c) Estimate the size of the neglected second-order term for NS=1N_S=1 atom, NR=1020N_R=10^{20}.

Step 1. Ideal-gas multiplicity scales as ΩR∝E3NR/2\Omega_R\propto E^{3N_R/2}, so ln⁡ΩR=32NRln⁡E+const\ln\Omega_R=\tfrac32 N_R\ln E+\text{const} and β=∂ln⁡ΩR/∂E=3NR2Etot\beta=\partial\ln\Omega_R/\partial E=\dfrac{3N_R}{2E_{\text{tot}}}.

Step 2. The reservoir energy is Etot=32NRkBTE_{\text{tot}}=\tfrac32 N_R k_BT (equipartition). Substitute: β=3NR/232NRkBT=1kBT\beta=\dfrac{3N_R/2}{\tfrac32 N_R k_BT}=\dfrac{1}{k_BT}. Confirmed: the slope of the reservoir entropy is exactly the inverse temperature.

Step 3. Second-order term ratio ≈NS2NR=12×1020=5×10−21\approx\dfrac{N_S}{2N_R}=\dfrac{1}{2\times10^{20}}=\mathbf{5\times10^{-21}}. The curvature correction is one part in 2×10202\times10^{20} — utterly negligible.

Step 4. Interpretation. For a macroscopic reservoir the Boltzmann distribution is exact to twenty-one decimal places; the "approximation" of truncating at first order is, for all practical purposes, an identity. Only for a pathologically small "reservoir" (comparable in size to the system) would the corrections matter — and then the canonical ensemble simply does not apply.

Origins · 1 minheat reservoir and how this was discovered
HR
heat reservoir
statistical-mechanics concept · —

The heat reservoir (or heat bath) is the idealization at the heart of the canonical ensemble: a system so large that it can exchange arbitrary amounts of energy with a smaller system while its own temperature remains fixed. It is the thermodynamic analogue of an infinite ocean into which you can pour any amount of heat without warming it. Formally, a reservoir has infinite heat capacity, so its inverse temperature β=∂ln⁡ΩR/∂E\beta=\partial\ln\Omega_R/\partial E is constant — and it is precisely this constancy that makes the reservoir-entropy expansion terminate at first order, producing the pure exponential Boltzmann weight. The concept crystallized with Gibbs's ensemble formalism (1902): the canonical ensemble is the statistics of a system in contact with a heat reservoir. Every real thermostat — a water bath, a cryostat, the atmosphere, a computer's thermostat algorithm in molecular dynamics — is an approximation to an ideal reservoir. The reservoir is where the arrow of "temperature control" enters statistical mechanics, and understanding that the Boltzmann factor is the reservoir's entropy in disguise is the conceptual key to the entire canonical formalism.

History
1877
— Boltzmann's combinatorial entropy S = k log W provides the reservoir-counting foundation.
1902
— Gibbs's Elementary Principles derives the canonical ensemble from the reservoir picture and names it.
1912
— the Einstein/Debye solids provide the first explicit reservoir-coupling computations of specific heat.
1929
— Szilard analyzes the reservoir's role in the thermodynamics of information (Maxwell's demon).
1957
— Jaynes recasts the derivation as maximum entropy subject to a mean-energy constraint, an alternative route to the same e^{−βE}.

Going further

References. Reif, Fundamentals of Statistical and Thermal Physics, Ch. 6 (the classic reservoir derivation) · Pathria & Beale, Statistical Mechanics, 3rd ed., Ch. 3 · Kardar, Statistical Physics of Particles, §4.2 · Schroeder, An Introduction to Thermal Physics, Ch. 6 · Sethna, Statistical Mechanics, Ch. 6 · Landau & Lifshitz, Statistical Physics Part 1, §28.

Provenance. The reservoir derivation of the canonical distribution is standard (Reif Ch. 6; Schroeder Ch. 6). A verifier should reproduce: pi∝ΩR(Etot−Ei)p_i\propto\Omega_R(E_{\text{tot}}-E_i); the first-order entropy expansion ln⁡ΩR≈const−βE\ln\Omega_R\approx\text{const}-\beta E with β=∂ln⁡ΩR/∂E=1/kBT\beta=\partial\ln\Omega_R/\partial E=1/k_BT (checked on the ideal-gas reservoir β=32NR/Etot\beta=\tfrac32 N_R/E_{\text{tot}} with Etot=32NRkBTE_{\text{tot}}=\tfrac32 N_R k_BT); the second-order suppression ∼NS/2NR→0\sim N_S/2N_R\to0; and the two-Einstein-solid emergence of the Boltzmann distribution (⟨qS⟩\langle q_S\rangle matches NS/(eβ−1)N_S/(e^\beta-1)). Numerical instances are recomputed in verify_aq-sm-canonical-from-microcanonical.py.

Builds on: The Microcanonical Ensemble and the Postulate of Equal a Priori Probabilities · Boltzmann Entropy S=kBln⁡ΩS=k_B\ln\Omega · Temperature, Pressure, and Chemical Potential as Entropy Derivatives. Leads to: Canonical Ensemble · Boltzmann Factor · Canonical Partition Function · Helmholtz Free Energy from the Partition Function · Energy Fluctuations in the Canonical Ensemble · Grand Canonical Ensemble.

Why does the small system prefer low-energy states if all microstates of the whole are equally likely?

This is the beautiful subtlety of the derivation. It is true that all microstates of the combined system-plus-reservoir are equally likely — no state is intrinsically favoured. But when you ask about the small system alone, you must count how many combined states correspond to each small-system state. If the small system takes a low energy, it leaves more energy for the reservoir, and a reservoir with more energy has vastly more microstates available (its multiplicity ΩR\Omega_R rises steeply with energy). So low-energy states of the small system are compatible with more equally-likely reservoir arrangements, and are therefore more probable — not because they are preferred, but because they leave the reservoir more room. The exponential bias of the Boltzmann factor is entirely the reservoir's entropy talking: the small system "wants" to give energy to the reservoir because that maximizes the total number of arrangements, which is just entropy maximization in action.

Where exactly does temperature come from in this derivation?

Temperature enters as the slope of the reservoir's entropy versus energy, and nowhere else. When you expand the reservoir entropy SR(Etot−E)S_R(E_{\text{tot}}-E) to first order in the small system's energy EE, the linear coefficient is −(∂SR/∂E)-(\partial S_R/\partial E). The thermodynamic definition of temperature is precisely 1/T=(∂S/∂E)1/T=(\partial S/\partial E), so that coefficient is 1/T1/T (in units where you divide by kBk_B, it is β=1/kBT\beta=1/k_BT). This is profound: the small system has no temperature of its own in the derivation — temperature is a property of the reservoir, and it gets imprinted on the small system's distribution through the coupling. Two systems in contact with the same reservoir end up with the same β\beta regardless of their internal structure, which is exactly the zeroth law (thermal equilibrium is transitive) emerging from the reservoir picture. So temperature is not something the small system possesses; it is something the reservoir stamps onto it.

What is the difference between this derivation and just postulating the Boltzmann distribution?

Logically, everything. If you postulate pi=e−βEi/Zp_i=e^{-\beta E_i}/Z, you have to accept the exponential form and the meaning of β\beta on faith, and you have two independent postulates (microcanonical equal-a-priori and canonical Boltzmann) that might seem unrelated. This derivation shows they are the same postulate viewed from different vantage points: the canonical Boltzmann distribution is a theorem, provable from the single microcanonical postulate plus the mathematical fact that a large reservoir's entropy is smooth and nearly linear over the range the small system explores. It also explains the two things a postulate leaves mysterious: why the weight is exponential (because the reservoir entropy is linear, and elineare^{\text{linear}} is exponential) and why β\beta is inverse temperature (because it is the slope of the reservoir entropy, which is 1/T1/T by definition). A derivation that reduces two postulates to one and explains the form of the result is far more satisfying — and far more illuminating about the why — than a postulate.

Does this mean the canonical ensemble is only an approximation to the microcanonical one?

For a finite reservoir, yes — there are small corrections of order NS/NRN_S/N_R. But in the idealized reservoir limit (NR→∞N_R\to\infty), the canonical distribution is exact, and for any realistic macroscopic reservoir the corrections are so tiny (one part in 102010^{20} or smaller) that "approximation" is a technically-true-but-misleading word. More importantly, the two ensembles give identical thermodynamic predictions for large systems — this is ensemble equivalence. The canonical energy fluctuates while the microcanonical is fixed, but the fluctuations are relatively negligible (∼N−1/2\sim N^{-1/2}), so every thermodynamic quantity (energy, entropy, free energy, pressure) comes out the same. So it is not that one ensemble is "right" and the other "approximate"; they are two equally valid descriptions that agree in the thermodynamic limit, connected by exactly this reservoir derivation. You choose whichever is more convenient — usually canonical, because fixed temperature is easier to work with than fixed energy.

Can a system be its own reservoir? What if there's nothing external?

This is one of the deepest questions in modern statistical mechanics, and the answer is a qualified yes. For a large isolated system, any small subsystem can be treated canonically, with the rest of the system acting as its reservoir — you simply designate part of the whole as "system" and the remainder as "bath," and the derivation goes through. This is how the Boltzmann distribution emerges for local degrees of freedom even in a completely closed, isolated system: the vast number of other degrees of freedom serve as the reservoir. In quantum mechanics this idea is formalized by the eigenstate thermalization hypothesis (ETH), which proposes that a single energy eigenstate of a large chaotic quantum system already looks thermal (canonical) when you examine any small subsystem, so an isolated quantum system can thermalize its own parts through unitary evolution alone — no external bath needed. This resolves an old puzzle: how can a closed system, whose total dynamics is reversible and never increases entropy, exhibit thermal (irreversible-looking) behaviour in its subsystems? The answer is that the rest of the system is the reservoir. So "there is nothing external" does not prevent canonical behaviour — it just means the reservoir is internal.

Why must the reservoir be much larger than the system?

Because the derivation relies on the reservoir's temperature being essentially unchanged when it exchanges energy with the system — and that requires the reservoir to have a much larger heat capacity, i.e. many more degrees of freedom. Quantitatively, the neglected second-order term in the entropy expansion scales as NS/NRN_S/N_R, the ratio of system to reservoir sizes. If the reservoir is much larger (NR≫NSN_R\gg N_S), this ratio is tiny and the linear expansion — hence the pure exponential Boltzmann weight — is essentially exact. If the "reservoir" is comparable in size to the system, the ratio is order one, the second-order (curvature) term is significant, and the distribution is not a clean Boltzmann exponential: the effective temperature shifts as energy flows, because the small "reservoir" noticeably cools when it gives up energy. In that case there is no separation of scales, no fixed temperature, and you must treat the combined system microcanonically. So the largeness of the reservoir is exactly what guarantees a rigid temperature and a pure canonical distribution; it is the mathematical condition for "temperature control" to make sense.

Before this

Where this leads