Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Statistical ensembles

The puzzle: two pillars that seem to disagree

Module 08 boxed one statement as the foundation of statistical mechanics: every accessible microstate of an isolated system is equally probable. No microstate is favoured, whatever its energy.

Every physicist also quotes a second statement, just as often: high-energy states are exponentially rare. Only about one nitrogen molecule in seventy thousand is vibrationally excited at room temperature; a sodium atom in a flame emits yellow light only because a small, exponentially suppressed fraction of the atoms is excited; the air thins with altitude by a factor ee every eight kilometres. That exponential is the Boltzmann factor, and it is everywhere.

Put side by side, the two sound like a contradiction. Equal probability, or exponential weighting — which is it?

They can, and the resolution is the whole of this module. The two statements are about different things. The first is about an isolated whole. The second is about a small part of that whole, one that trades energy with the rest. The step from one to the other involves no new physics: no collisions, no dynamics, no new postulate. It is counting — the same counting as module 08, applied to a system and the bath it sits in.

Predict before you calculate

Commit to an answer for each of these before reading on. Write them down.

  1. A two-level system — a ground state and one excited state — sits in equilibrium with a large heat bath. Module 08 said every microstate is equally probable. Are the system’s two states equally likely?

  2. Keep the bath at a fixed temperature but make it bigger and bigger. Does the system’s occupation histogram change its slope, or does it only get cleaner?

  3. System and bath together are isolated, so every joint microstate — the system’s state and every bath oscillator’s state — is equally probable. With that given, which is more probable: the system excited, or the system in its ground state? Why?

  4. Heat the bath without limit, T→∞T \to \infty. Does the excited state’s population approach 1, 1/21/2 or 0?

Explore the model

The laboratory is built around a single experiment with no dynamics in it at all. A small system shares energy quanta with a bath made of Einstein oscillators — module 01’s solid, returning for the third time. Nothing moves. The computer lists every way the whole composite can hold its fixed number of quanta, gives each one the same weight, and asks how often the small system is found in each of its states.

The first animation grows the bath while keeping its temperature fixed.

A solid of three oscillators on a bath whose size (upper right of the left panel) grows from 3 to 3000 oscillators, always holding one quantum per oscillator, which fixes the bath’s temperature at kBT=ε/ln⁡2k_{\mathrm{B}} T = \varepsilon/\ln 2. Left: the probability PkP_k that the small solid holds kk quanta (blue bars), against the Boltzmann values for an infinitely large bath at that temperature (black dots). Right: the logarithm of the probability of one microstate of the small solid at level kk, ln⁡(Pk/gk)\ln(P_k/g_k), where gkg_k counts the solid’s microstates at that level. For the Boltzmann distribution this is the straight black line. The finite bath’s blue points begin bent downward and straighten onto the line as the bath grows. Levels above k=14k = 14 are not shown.

The second animation draws the same composite twice: once as the whole, once as the part.

Left: every joint microstate of system plus bath, laid side by side and each drawn at the same height, 1/Ωtot1/\Omega_{\mathrm{tot}} — the equal-probability postulate, applied to the isolated whole. They are sorted by how many quanta the small solid holds, and coloured by it. At the start the bath has three oscillators and there are only 56 joint microstates, separated by white lines; by the end there are about 10601. The horizontal axis is the fraction of all joint microstates, so the width of each colour is the probability of that level. Right: those widths as bars, with the Boltzmann values dotted. The left panel is flat at every size. The right panel is not flat at any size.

Run the laboratory now, then come back. Four things are worth doing before you read on:

Derive the result

System and boundary. A small system in contact with a much larger one, the bath, through a rigid wall that passes energy but no volume and no particles. The two together are isolated.

Independent variables and constraint. The total energy UtotU_{\mathrm{tot}} is fixed. The system’s state ss is free, and the bath takes whatever energy the system leaves it: Ubath=Utot−EsU_{\mathrm{bath}} = U_{\mathrm{tot}} - E_s.

Sign convention. The course convention holds,

dU=δQ+δWon,\mathrm{d}U = \dbar Q + \dbar \Won ,

and here the wall is rigid, so δWon=0\dbar \Won = 0 for the system: every change in its energy is heat, drawn from or given to the bath.

Route. Six steps. First the postulate, applied to the composite. Then an exact counting result, true for a bath of any size. Then the one approximation — an expansion of the bath’s ln⁡Ω\ln\Omega — stated with its hypotheses. That gives the Boltzmann distribution. Then the price of the approximation, computed rather than waved away, and last the two-level system worked in full.

Step 1: the whole is microcanonical

System and bath together are an isolated system at fixed energy. Module 08’s postulate applies to it directly.

A joint microstate names the state of everything: which state the system is in, and how many quanta each bath oscillator holds. That is the level at which probabilities are equal.

Step 2: the exact counting result

Fix one particular microstate ss of the system, with energy EsE_s. How many joint microstates have the system in exactly that state? The system’s part is fixed, so the count is the number of ways the bath can hold what is left over, Ωbath(Utot−Es)\Omega_{\mathrm{bath}}(U_{\mathrm{tot}} - E_s). Every joint microstate has the same probability, so the probability of finding the system in ss is the fraction of all joint microstates that have it there:

Read it slowly, because it holds the whole answer to the puzzle. A system state with more energy leaves less for the bath. The bath’s multiplicity rises steeply with its energy — that is what a positive temperature means — so the bath has fewer ways to hold the remainder. The high-energy system state is not disfavoured by anything it does; it is simply paired with fewer joint microstates.

A marginal of a flat distribution need not be flat. It is flat only if every system state is paired with the same number of bath microstates, and here it is not.

Worked by hand. Take a two-level system whose gap is one quantum, and a bath of three oscillators, with three quanta in all. For an Einstein bath of NN oscillators holding qq quanta, module 01’s stars and bars give

Ωbath(N,q)=(q+N−1q).\Omega_{\mathrm{bath}}(N, q) = \binom{q + N - 1}{q} .

If the system is in its ground state, the bath holds all three quanta, in (53)=10\binom{5}{3} = 10 ways. If it is excited, the bath holds two, in (42)=6\binom{4}{2} = 6 ways. There are 16 joint microstates, each with probability 1/161/16, so the probabilities of the ground state and the excited state are

p0=1016=0.625,p1=616=0.375.p_0 = \frac{10}{16} = 0.625 , \qquad p_1 = \frac{6}{16} = 0.375 .

Every joint microstate is equally likely. The system’s two states are not.

When the system has several microstates at the same energy — a degenerate level — they each pair with the same number of bath microstates, so the probability of the level kk is gkg_k times the probability of any one of them, where gkg_k counts them.

Step 3: expanding the bath’s logarithm

For a large bath, Ωbath\Omega_{\mathrm{bath}} is astronomically large and varies astronomically fast. Expanding it directly in powers of EsE_s fails: removing a single quantum from a thousand-oscillator bath at one quantum per oscillator cuts its multiplicity roughly in half, a change of fifty percent from the smallest possible step. Its logarithm, by contrast, falls by almost the same amount for every quantum removed. The logarithm is the smooth quantity, so that is what gets expanded:

ln⁡Ωbath(Utot−Es)=ln⁡Ωbath(Utot)−Es ∂ln⁡Ωbath∂U+Es22 ∂2ln⁡Ωbath∂U2−⋯\ln \Omega_{\mathrm{bath}}(U_{\mathrm{tot}} - E_s) = \ln \Omega_{\mathrm{bath}}(U_{\mathrm{tot}}) - E_s \, \frac{\partial \ln \Omega_{\mathrm{bath}}}{\partial U} + \frac{E_s^2}{2} \, \frac{\partial^2 \ln \Omega_{\mathrm{bath}}}{\partial U^2} - \cdots

The first slope is not new. Module 08 defined S=kBln⁡ΩS = \kB \ln\Omega, and module 09 defined temperature as the slope 1/T=(∂S/∂U)V,N1/T = (\partial S/\partial U)_{V,N}. Put together, the slope of ln⁡Ωbath\ln\Omega_{\mathrm{bath}} is the bath’s 1/(kBT)1/(\kB T).

For an Einstein bath this slope can be computed exactly. The logarithm of the binomial coefficient is a difference of log-gamma functions, and since NN is a whole number its derivative with respect to qq collapses into a finite sum:

β ε=∑j=1N−11q+j,\beta\,\varepsilon = \sum_{j=1}^{N-1} \frac{1}{q + j} ,

which approaches module 09’s ln⁡(1+N/q)\ln(1 + N/q) as the bath grows. One oscillator alone gives an empty sum, β=0\beta = 0: a single oscillator holds any number of quanta in exactly one way, its ln⁡Ω\ln\Omega is flat, and it has no temperature to give anything.

Step 4: the Boltzmann distribution

Keep the first two terms of the expansion and exponentiate:

Ωbath(Utot−Es)≈Ωbath(Utot) e−βEs.\Omega_{\mathrm{bath}}(U_{\mathrm{tot}} - E_s) \approx \Omega_{\mathrm{bath}}(U_{\mathrm{tot}}) \, e^{-\beta E_s} .

The factor Ωbath(Utot)\Omega_{\mathrm{bath}}(U_{\mathrm{tot}}) is the same for every ss, so it cancels between the numerator and the denominator of step 2. What is left is the central result of the module.

The exponential e−βEse^{-\beta E_s} is the Boltzmann factor. Two states differing in energy by ΔE\Delta E are occupied in the ratio e−ΔE/(kBT)e^{-\Delta E/(\kB T)}, whatever else is true of them.

The puzzle, resolved. Both pillars are true, of different things. Equal probability holds for the isolated composite, microstate by microstate. The exponential holds for the small system’s marginal, and it arises because of the equal probability: each system state is weighted by the number of bath microstates it leaves room for, and that number falls off exponentially with the energy the system takes.

Temperature belongs to the bath. β\beta is a slope of the bath’s multiplicity. The system does not have a temperature of its own to bring; it inherits the bath’s. Put two different systems on one bath and both are weighted by the same e−βEe^{-\beta E} — the reason a thermometer, whatever it is made of, reads the temperature of what it touches.

No dynamics was used. Nothing in steps 1 to 4 mentions collisions, rates or time. The Boltzmann factor is a consequence of counting. Collisions are one way a real system explores its joint microstates, but they are not where the exponential comes from.

Step 5: the price of an infinite bath

The Boltzmann distribution dropped the second-order term. That term can be computed, so the approximation carries a measurable error bar rather than a promise.

The curvature of ln⁡Ωbath\ln\Omega_{\mathrm{bath}} is the rate at which its slope changes:

∂2ln⁡Ωbath∂U2=∂β∂U=−1kBT2∂T∂U=−1kBT2 Cbath,\frac{\partial^2 \ln \Omega_{\mathrm{bath}}}{\partial U^2} = \frac{\partial \beta}{\partial U} = -\frac{1}{\kB T^2} \frac{\partial T}{\partial U} = -\frac{1}{\kB T^2 \, C_{\mathrm{bath}}} ,

with CbathC_{\mathrm{bath}} the bath’s heat capacity. So the correction to ln⁡Ps\ln P_s is

δln⁡Ps=−Es22kBT2 Cbath,\delta \ln P_s = -\frac{E_s^2}{2 \kB T^2 \, C_{\mathrm{bath}}} ,

and for a bath in its equipartition regime, Cbath=NbathkBC_{\mathrm{bath}} = N_{\mathrm{bath}} \kB,

δln⁡Ps=−Es22Nbath(kBT)2.\delta \ln P_s = -\frac{E_s^2}{2 N_{\mathrm{bath}} (\kB T)^2} .

The sign is worth a sentence. The correction is always negative: a finite bath’s temperature drops as the system takes energy from it, so the next quantum is dearer than the last, and high-energy system states are a little rarer than the exponential says — as the verification below measures.

Step 6: the two-level system, worked in full

The simplest system with a Boltzmann factor to show has two states: a ground state at energy 0 and an excited state at Δ\Delta. Its partition function has two terms,

Z=1+e−βΔ,Z = 1 + e^{-\beta \Delta} ,

and its occupations are

p0=11+e−βΔ,p1=e−βΔ1+e−βΔ=1eβΔ+1.p_0 = \frac{1}{1 + e^{-\beta \Delta}} , \qquad p_1 = \frac{e^{-\beta \Delta}}{1 + e^{-\beta \Delta}} = \frac{1}{e^{\beta \Delta} + 1} .

Its mean energy is the excited energy times the chance of being there,

⟨E⟩=Δ p1=ΔeΔ/(kBT)+1.\langle E \rangle = \Delta \, p_1 = \frac{\Delta}{e^{\Delta/(\kB T)} + 1} .
Left, the ground-state occupation falling from 1 and the excited-state occupation rising from 0, both approaching one half as temperature increases on a logarithmic axis. Right, the mean energy rising from zero toward one half of the gap.

The two-level system against kBT/Δ\kB T/\Delta, on a logarithmic axis. (a) The ground-state occupation p0p_0 (blue) and the excited-state occupation p1p_1 (red); the dashed line is 1/21/2. (b) The mean energy in units of the gap, approaching 1/21/2 (dashed) from below.

The limits are the point.

Verify computationally

Every number below comes from thermolab.ensembles, which counts joint microstates exactly and contains no random numbers. The energy quantum is ε=10−21 J\varepsilon = 10^{-21}\ \mathrm{J} throughout; one quantum per bath oscillator puts the bath at kBT=ε/ln⁡2\kB T = \varepsilon/\ln 2, that is 104.5 K104.5\ \mathrm{K}.

1. The hand count. For the two-level system of step 2 on a bath of three oscillators with three quanta, listing the joint microstates one by one gives 16 of them: 10 with the system in its ground state and 6 with it excited, matching the binomial counts exactly.

2. Flat joint, curved marginal. With a bath of six oscillators and six quanta there are 714 joint microstates, each with probability exactly 1/7141/714. The system is in its ground state in 462 of them and excited in 252: probabilities 0.647 and 0.353. On a bath of a thousand oscillators the excited probability is 0.33344, against the Boltzmann value 1/31/3. For this system the exact ratio is p1/p0=q/(q+N−1)p_1/p_0 = q/(q + N - 1), which sits just above e−βε=1/2e^{-\beta\varepsilon} = 1/2 and approaches it as the bath grows.

3. The finite bath converges, at a rate you can quote.

4. The dropped term, measured. Step 5 predicted the correction to ln⁡Ps\ln P_s beyond −βEs-\beta E_s. The exact count measures it directly, level by level, as

ln⁡Ωbath(q−k)Ωbath(q)+βEk.\ln \frac{\Omega_{\mathrm{bath}}(q - k)}{\Omega_{\mathrm{bath}}(q)} + \beta E_k .
Left, a log-log plot of the gap to the Boltzmann distribution against bath size for two systems, both falling on straight lines of slope minus one. Right, the correction to the log probability against energy, with curves for three bath sizes and dots lying on them, except at high energy for the smallest bath.

(a) The largest gap between the finite-bath marginal and the Boltzmann distribution, against bath size, for the two-level system with Δ=ε\Delta = \varepsilon (blue) and the three-oscillator solid (orange); the lines have slope -1. (b) What the exact count adds to −βEk-\beta E_k (dots), against the curvature term of step 5 (lines), for baths of 30 (red), 100 (orange) and 300 (blue) oscillators.

5. Reading β\beta off a bath. A student with only the counts can estimate the slope by adding and removing one quantum,

β≈ln⁡Ω(q+1)−ln⁡Ω(q−1)2ε.\beta \approx \frac{\ln\Omega(q + 1) - \ln\Omega(q - 1)}{2\varepsilon} .

At one quantum per oscillator this differs from the exact slope by 1.7×10−31.7 \times 10^{-3} of itself at Nbath=10N_{\mathrm{bath}} = 10, 1.1×10−41.1 \times 10^{-4} at 40, 7.0×10−67.0 \times 10^{-6} at 160 and 4.4×10−74.4 \times 10^{-7} at 640 — a sixteenfold drop for every fourfold growth, second order. The exact slope itself differs from the infinite bath’s ln⁡2/ε\ln 2/\varepsilon by 10.7%10.7\% at 10 oscillators and 0.17%0.17\% at 640: first order, the same 1/N1/N as item 3.

6. The bath’s energy is not what sets the occupations. Put the same two-level system on three baths that each hold 100 quanta, but with 25, 100 and 400 oscillators. The excited occupation is 0.446, 0.334 and 0.167. The three baths have the same energy and very different slopes: their temperatures are 338, 106 and 45 K45\ \mathrm{K}, and in each case the occupation matches the Boltzmann factor at that temperature to better than half a percent.

7. Two systems, one temperature. Put a two-level system with a gap of two quanta and a three-oscillator solid on the same bath of 5000 oscillators, and read each one’s own exponent off its own marginal. The two-level system gives βε=0.6934\beta\varepsilon = 0.6934, the solid 0.6931 to 0.6933 from its first three level ratios, and the bath’s own slope is 0.6930. Neither system has a temperature of its own.

Transfer the idea

The Boltzmann factor applies to any system in contact with any large bath, and “energy of the state” can be any energy at all. That generality is its power.

Looking ahead:

Worked examples

Try each one before opening its solution.

Worked example 1 — a bath of four. A two-level system with a gap of one quantum shares four quanta with a bath of three oscillators. Find the probability that it is excited, and compare with the value on a bath of three oscillators holding three quanta.

Solution

Ground: the bath holds four quanta in (64)=15\binom{6}{4} = 15 ways. Excited: three quanta in (53)=10\binom{5}{3} = 10 ways. So the excited probability is

p1=1025=0.400.p_1 = \frac{10}{25} = 0.400 .

With three quanta it was 6/16=0.3756/16 = 0.375. The extra quantum warmed the bath, and a warmer bath excites the system more often. The exact ratio p1/p0=q/(q+N−1)p_1/p_0 = q/(q + N - 1) gives 4/64/6 here and 3/53/5 before.

Worked example 2 — a population ratio at room temperature. A molecule has an excited state 0.10 eV0.10\ \mathrm{eV} above its ground state, both non-degenerate. What fraction of molecules is excited at 300 K300\ \mathrm{K}?

Solution

At 300 K300\ \mathrm{K}, kBT=0.02585 eV\kB T = 0.02585\ \mathrm{eV}, so Δ/(kBT)=3.87\Delta/(\kB T) = 3.87 and

p1p0=e−3.87=0.0209,p1=1e3.87+1=0.0205.\frac{p_1}{p_0} = e^{-3.87} = 0.0209 , \qquad p_1 = \frac{1}{e^{3.87} + 1} = 0.0205 .

About two molecules in a hundred. A gap of 0.10 eV0.10\ \mathrm{eV} is only four times kBT\kB T, and that is already enough to empty the upper level almost completely.

Worked example 3 — the scale height. Estimate the scale height of an isothermal nitrogen atmosphere at 288 K288\ \mathrm{K}, and the pressure at the summit of a 4.8 km4.8\ \mathrm{km} mountain if it is 101 kPa101\ \mathrm{kPa} at sea level.

Solution

A nitrogen molecule has mass 28.0×1.661×10−27=4.65×10−26 kg28.0 \times 1.661 \times 10^{-27} = 4.65 \times 10^{-26}\ \mathrm{kg}, so

H=kBTmg=1.381×10−23×2884.65×10−26×9.81=8.7 km.H = \frac{\kB T}{m g} = \frac{1.381 \times 10^{-23} \times 288}{4.65 \times 10^{-26} \times 9.81} = 8.7\ \mathrm{km} .

At 4.8 km4.8\ \mathrm{km}, P=101×e−4.8/8.7=58 kPaP = 101 \times e^{-4.8/8.7} = 58\ \mathrm{kPa}. The real atmosphere is colder aloft, which makes it thin a little faster; the international standard atmosphere, which builds that cooling in, gives 55 kPa55\ \mathrm{kPa}. The isothermal assumption is the error, not the Boltzmann factor.

Worked example 4 — vacancies. Creating a vacancy in copper costs about 1.28 eV1.28\ \mathrm{eV}. Estimate the fraction of empty lattice sites just below the melting point, 1356 K1356\ \mathrm{K}, and at room temperature.

Solution

At 1356 K1356\ \mathrm{K}, kBT=0.1169 eV\kB T = 0.1169\ \mathrm{eV}, so the fraction is e−1.28/0.1169=e−10.95=1.7×10−5e^{-1.28/0.1169} = e^{-10.95} = 1.7 \times 10^{-5}, about one site in sixty thousand. At 300 K300\ \mathrm{K} it is e−49.5≈3×10−22e^{-49.5} \approx 3 \times 10^{-22} — which is why vacancies frozen in by quenching from a high temperature are far more numerous than room-temperature equilibrium allows.

Worked example 5 — how big a bath? You want the Boltzmann distribution to be accurate to 1%1\% in ln⁡P\ln P for system energies up to 3 kBT3\,\kB T. How many oscillators must an Einstein bath in its equipartition regime have?

Solution

The dropped term is Es2/(2Nbath(kBT)2)E_s^2/(2 N_{\mathrm{bath}} (\kB T)^2). At Es=3 kBTE_s = 3\,\kB T it is 9/(2Nbath)9/(2 N_{\mathrm{bath}}), and requiring it to be below 0.01 gives

Nbath>450.N_{\mathrm{bath}} > 450 .

A few hundred oscillators already make an excellent bath for a system that only ever holds a few kBT\kB T. The bath does not need to be macroscopic; it needs to be large compared with the system’s energies.

Worked example 6 — sodium in a flame. The sodium D line comes from atoms in the 3p3p level, 2.104 eV2.104\ \mathrm{eV} above the ground 3s3s level. The 3p3p level holds six states and the 3s3s level two. What fraction of sodium atoms is in the 3p3p level in a flame at 2500 K2500\ \mathrm{K}?

Solution

At 2500 K2500\ \mathrm{K}, kBT=0.2154 eV\kB T = 0.2154\ \mathrm{eV}, so

N3pN3s=g3pg3s e−2.104/0.2154=3×e−9.77=1.7×10−4.\frac{N_{3p}}{N_{3s}} = \frac{g_{3p}}{g_{3s}} \, e^{-2.104/0.2154} = 3 \times e^{-9.77} = 1.7 \times 10^{-4} .

Fewer than two atoms in ten thousand are excited, and yet the flame glows bright yellow: there are a great many atoms. Leaving out the degeneracy factor would understate the population threefold.

Check your understanding

  1. A small system has reached equilibrium with a large heat bath, and system plus bath together are isolated. Which microstates are equally probable?

    A. Every joint microstate of system plus bath -- the system’s state together with the state of every bath oscillator. B. Every microstate of the small system, because it is in equilibrium. C. Every microstate of the bath, whatever the system is doing. D. None of them; equilibrium does not involve equal probabilities.

    Check your answer

    Correct answer: A — Every joint microstate of system plus bath -- the system’s state together with the state of every bath oscillator.

    • A. Right. The equal-probability postulate applies to an isolated system, and the isolated system here is the composite. The system’s own states are not equally probable: each is weighted by the number of bath microstates it leaves room for, which falls off exponentially with the energy the system takes.

    • B. This is the canonical-equal-probability misconception. Equal probability is a statement about an isolated system, and the small system is not isolated: it trades energy with the bath. Its microstates are weighted by exp(-E_s/(k_B T)). In the laboratory’s hand count, 16 joint microstates are each 1/16 likely, but the system is in its ground state in 10 of them and excited in only 6.

    • C. The bath is not isolated either: it trades energy with the system. What is fixed is the total, so it is the joint microstates -- system and bath together -- that are equally likely.

    • D. The whole derivation rests on equal probabilities, applied to the right thing: the joint microstates of the isolated composite. The Boltzmann factor is a consequence of that postulate, not a replacement for it.

  2. Which pairing of ensemble, situation and probability rule is correct?

    A. Canonical: a system exchanging energy with a bath at temperature T; P_s = exp(-E_s/(k_B T)) / Z. B. Canonical: a system exchanging energy with a bath; every microstate equally probable. C. Microcanonical: a system exchanging energy with a bath; P_s = exp(-E_s/(k_B T)) / Z. D. Microcanonical: an isolated system at fixed energy; P_s = exp(-E_s/(k_B T)) / Z.

    Check your answer

    Correct answer: A — Canonical: a system exchanging energy with a bath at temperature T; P_s = exp(-E_s/(k_B T)) / Z.

    • A. Right. The canonical ensemble is the small system’s view: its energy is not fixed, and its microstates are Boltzmann-weighted. The microcanonical ensemble is the isolated view: fixed energy, equal weights.

    • B. That pairs the canonical situation with the microcanonical rule. Equal weights belong to an isolated system at fixed energy. A system that trades energy with a bath has Boltzmann-weighted microstates.

    • C. The microcanonical ensemble describes an isolated system, whose energy is fixed; it exchanges nothing. The Boltzmann rule belongs to the canonical ensemble.

    • D. The situation is right but the rule is not. At fixed energy every accessible microstate has the same energy, and the postulate gives each the same probability, 1/Omega.

  3. A two-level system in contact with a bath has a gap of Delta = 2 k_B T between its two non-degenerate states. What is the ratio of the excited population to the ground population, p_1 / p_0?

    Check your answer

    Correct answer: 0.1353 (± 0.002)

    The Boltzmann factor gives p_1 / p_0 = exp(-Delta/(k_B T)) = exp(-2) = 0.135. If you answered 0.119, you computed the excited occupation p_1 = 1/(exp(2) + 1) rather than the ratio. If you answered 0.5, you gave both states equal weight, which holds only for an isolated system -- or at infinite temperature.

  4. The Boltzmann distribution P_s = exp(-beta E_s) / Z was derived from P_s proportional to Omega_bath(U_tot - E_s). Which hypotheses does that step need?

    A. The bath is much larger than the system’s energies, and the curvature of ln Omega_bath is negligible over them. B. Frequent collisions must shuffle the energy between system and bath. C. The system must be large, so that Stirling’s approximation applies to it. D. The system’s energy levels must be equally spaced.

    Check your answer

    Correct answer: A — The bath is much larger than the system’s energies, and the curvature of ln Omega_bath is negligible over them.

    • A. Right. Expanding ln Omega_bath about U_tot and stopping at the linear term needs both: E_s small compared with the bath’s energy, and E_s^2 times the second derivative of ln Omega_bath much less than one. The second derivative is -1/(k_B T^2 C_bath), so a big bath makes it vanish.

    • B. This is the misconception that the Boltzmann factor is a dynamical effect. The derivation counts joint microstates and uses no dynamics at all -- the laboratory’s enumeration contains no time and no collisions, and the exponential appears anyway. Collisions are one way a real system explores its microstates, not the origin of the exponential.

    • C. It is the bath that must be large, not the system. The Boltzmann distribution is exact enough for a single two-level system, provided its bath is big.

    • D. Nothing about the system’s levels enters the expansion, which is of the bath’s ln Omega. Any set of levels is Boltzmann-weighted; the laboratory uses both a two-level system and a solid with degenerate levels.

  5. A two-level system sits on an Einstein bath at a fixed temperature. The largest gap between its exact occupations and the Boltzmann values is 1.4e-3 when the bath has 80 oscillators. The bath is doubled to 160 oscillators at the same temperature. By what factor is the gap divided?

    Check your answer

    Correct answer: 2.0 (± 0.1)

    The term the Boltzmann derivation drops is E_s^2 / (2 k_B T^2 C_bath), and C_bath grows in proportion to the bath, so the gap falls as 1/N_bath: doubling the bath halves it, to about 7.0e-4. The laboratory measures an exponent of -1.004. If you answered sqrt(2), you carried over the N^(-1/2) of module 08’s fluctuations; that law is about a system’s spread, not about the error of treating a finite bath as infinite.

  6. In P_s = exp(-beta E_s) / Z, what is beta?

    A. The slope d(ln Omega)/dU of the bath’s multiplicity -- the bath’s 1/(k_B T), which the system inherits. B. 1/(k_B T) with T the temperature the small system has on its own. C. The system’s energy divided by k_B. D. A fitting constant chosen so that the probabilities add up to one.

    Check your answer

    Correct answer: A — The slope d(ln Omega)/dU of the bath’s multiplicity -- the bath’s 1/(k_B T), which the system inherits.

    • A. Right. beta came from expanding ln Omega_bath, so it is a property of the bath. The laboratory puts one two-level system on three baths holding the same energy but with 25, 100 and 400 oscillators: the excited occupation is 0.446, 0.334 and 0.167 -- each the Boltzmann value at that bath’s own temperature.

    • B. This is the misconception that temperature is a property of the system alone. Nothing of the small system entered beta: it is the slope of the bath’s ln Omega. Put the same system on baths of equal energy but different size and its occupations change, because the baths’ slopes differ.

    • C. beta is an inverse energy, 1/(k_B T), not an energy. And it does not belong to the system: it is the slope of the bath’s ln Omega.

    • D. That is the job of Z. beta has a meaning of its own: module 09’s 1/T = dS/dU, divided by k_B, evaluated on the bath.

  7. In two or three sentences: every joint microstate of system plus bath is equally likely, yet the system’s own states are exponentially weighted. Explain how both can be true.

    Check your answer

    Equal probability applies to the joint microstates of the isolated composite, and the system’s probability of being in state s is the number of those joint microstates that have it there -- Omega_bath(U_tot - E_s) -- divided by the total. A system state with more energy leaves less for the bath, and the bath’s multiplicity falls steeply as its energy falls, so that state pairs with fewer joint microstates. A strong answer names the marginal (summing the flat joint distribution over the bath) and says why the fall is exponential: ln Omega of the bath drops by beta for each unit of energy removed.

  8. The density of an isothermal atmosphere falls with height h as exp(-E/(k_B T)). Which energy E appears in the exponent?

    A. The gravitational potential energy of one molecule, m g h. B. The kinetic energy of one molecule, (3/2) k_B T. C. The potential energy of the whole column of air above height h. D. The energy needed to ionize a molecule.

    Check your answer

    Correct answer: A — The gravitational potential energy of one molecule, m g h.

    • A. Right. The Boltzmann factor weights a molecule’s state by that state’s energy, and what changes with height is m g h. The scale height is k_B T/(m g), about 8.7 km for nitrogen at 288 K.

    • B. The kinetic energy is distributed the same way at every height in an isothermal atmosphere; it does not depend on h, so it cannot make the density fall with height.

    • C. The Boltzmann factor is about the state of one molecule in contact with a bath -- here the rest of the atmosphere. The column’s weight is what the macroscopic, hydrostatic derivation uses, and it gives the same answer.

    • D. Ionization energies are several electronvolts, far beyond k_B T in the lower atmosphere, and they do not change with height. The energy that changes with height is m g h.

  9. A large number of two-level systems are in contact with a bath whose temperature is raised without limit. What does the fraction in the upper state approach?

    A. One half, from below. B. One -- at high enough temperature every system is excited. C. Zero -- the excited state is always exponentially rare. D. It depends on the size of the gap Delta, even at infinite temperature.

    Check your answer

    Correct answer: A — One half, from below.

    • A. Right. p_1 = 1/(exp(Delta/(k_B T)) + 1), and as T grows exp(Delta/(k_B T)) approaches 1, so p_1 approaches 1/2. For any positive T the ratio p_1/p_0 = exp(-Delta/(k_B T)) is below one: heating equalizes the populations but never inverts them.

    • B. A hotter bath makes the upper state more likely, but never more likely than the lower one: the Boltzmann ratio exp(-Delta/(k_B T)) is below one at every positive temperature. An inverted population is not a very hot equilibrium state; module 12 says what it is.

    • C. The upper state is exponentially rare only when Delta is large compared with k_B T. At high temperature the exponent is small and the two states become nearly equally likely.

    • D. The gap sets how hot the bath must be before the populations approach each other, but not where they end up: as T grows without limit, p_1 approaches 1/2 for any gap.

  10. A two-level system with a gap of one quantum shares 3 quanta with a bath of 3 Einstein oscillators; an Einstein solid of N oscillators holds q quanta in C(q + N - 1, q) ways. Counting joint microstates, what is the probability that the system is excited?

Check your answer

Correct answer: 0.375 (± 0.002)

Ground: the bath holds 3 quanta in C(5, 3) = 10 ways. Excited: it holds 2 in C(4, 2) = 6 ways. That is 16 joint microstates, each equally likely, so P(excited) = 6/16 = 0.375. If you answered 0.5, you weighted the system’s two states equally instead of counting what each leaves the bath.

Exam-style problems for this module — the ones worth doing with a pen — are collected in the problem set.

Explain it in your own words

Answer in a few sentences each.

  1. A student writes: “In the canonical ensemble every microstate is equally probable.” Rewrite the sentence so that it is correct, and say precisely what was wrong with it.

  2. Explain why temperature is a property of the bath that the system inherits, rather than a property the system brings. Use the three equal-energy baths of the verification.

  3. The Boltzmann factor is often described as the result of molecules colliding and sharing energy. What does the counting argument deliver without any collisions, and what — if anything — are collisions still needed for?

  4. Why does the derivation expand ln⁡Ωbath\ln\Omega_{\mathrm{bath}} rather than Ωbath\Omega_{\mathrm{bath}} itself? What would go wrong the other way?

Advanced: when the choice of ensemble stops mattering

The canonical ensemble lets the system’s energy fluctuate; the microcanonical ensemble fixes it exactly. For a small system the difference is enormous: a two-level system on a bath is sometimes excited and sometimes not. So why can module 04 be casual about which ensemble a real experiment realizes?

Because the canonical energy distribution of a large system is extraordinarily narrow. Consider an Einstein solid of nn oscillators on a bath. Each oscillator is independently Boltzmann-distributed, so the means and the variances of the oscillators add. With b=ε/(kBT)b = \varepsilon/(\kB T), one oscillator has mean energy ε/(eb−1)\varepsilon/(e^{b} - 1) and variance ε2eb/(eb−1)2\varepsilon^2 e^{b}/(e^{b} - 1)^2, so for the whole solid

σE⟨E⟩=ebn=1+xn x,\frac{\sigma_E}{\langle E \rangle} = \sqrt{\frac{e^{b}}{n}} = \sqrt{\frac{1 + x}{n\,x}} ,

with xx the mean number of quanta per oscillator. At one quantum per oscillator this is 2/n\sqrt{2/n}: 1.41 for one oscillator, 0.14 for a hundred, 0.045 for a thousand, and about 4.5×10−124.5 \times 10^{-12} for 1023. The library’s energy_moments computes these spreads directly from the Boltzmann distribution over the solid’s levels, with no independence assumed, and the test suite checks that it finds exactly this n−1/2n^{-1/2} law.

At that point, fixing the energy exactly (microcanonical) or letting it fluctuate by a part in 1012 (canonical) changes nothing any instrument can detect, and every thermodynamic quantity computed either way agrees. This is the equivalence of ensembles in the thermodynamic limit. It is the same N−1/2N^{-1/2} that narrowed module 08’s multiplicity peak and module 04’s pressure fluctuations, arriving by a third road.

The width is not a detail to be thrown away, though. Module 18 shows that for any system it is fixed by the heat capacity, σE2=kBT2CV\sigma_E^2 = \kB T^2 C_V — a fluctuation, measured at equilibrium, that tells you how the system responds when pushed. The Einstein result above is one instance of that relation.