Advanced Physics‹›⌂ 0:00 studied

Module 13 · 6 min read · Free chapter

Macrostates and microstates, ensembles and Maxwell-Boltzmann statistics

What are you preparing for? We show the practice and previous year questions of your exam.

Start from zero: from coins to molecules

Toss four coins. You might get all heads, but you are far more likely to get two heads and two tails, because there are six ways to do that and only one way to get all heads.

A gas is like tossing 10²³ coins at once. The overwhelmingly likely outcome is the one with the most arrangements, so likely that it is effectively certain. This is the core idea of statistical mechanics: thermodynamic equilibrium is simply the most probable state.

This chapter defines microstates and macrostates, introduces ensembles, and derives the Maxwell-Boltzmann distribution and the partition function, from which all of classical thermodynamics can be calculated.

Microstates, macrostates and probability

Definitions. A microstate gives the complete microscopic description: which particle is where, with what momentum or in which quantum state. A macrostate gives only what we measure in bulk, such as total energy, volume and number of particles. Many microstates correspond to one macrostate.

Coin example. With 4 coins there are 2⁴ = 16 microstates. Grouping by number of heads:

Heads 0 1 2 3 4
W 1 4 6 4 1

The number of microstates W in a macrostate is its thermodynamic probability. In general W=N!n1! n2!W = \dfrac{N!}{n_1!\,n_2!}.

Fundamental postulate. For an isolated system in equilibrium, all accessible microstates are equally probable. This is the postulate of equal a priori probability. It is supported by the ergodic idea that over time the system visits all its accessible microstates.

Sharpness for large N. For N coins, the distribution of heads has width about N\sqrt N, so relative fluctuations go as 1N\dfrac{1}{\sqrt N}. For N = 6 × 10²³, this is about 10⁻¹². The most probable macrostate is effectively the only one observed: this is equilibrium.

Entropy. Boltzmann's relation S=kln⁡WS = k\ln W, introduced in the entropy chapter, links the count of microstates to thermodynamics. Maximum W means maximum S.

Phase space. For classical particles, a microstate is a point in 6N-dimensional phase space of positions and momenta. Quantum mechanics divides it into cells of volume h3h^3 per particle, making the count finite.

Ensembles

Idea. Instead of following one system in time, Gibbs imagined a huge collection of mental copies, all in the same macrostate but different microstates. Averages over this ensemble give thermodynamic quantities.

Three standard ensembles.

Ensemble Fixed Exchanges with surroundings Key function
Microcanonical E, V, N nothing (isolated) S=kln⁡WS = k\ln W
Canonical T, V, N energy, with a heat reservoir F=−kTln⁡ZF = -kT\ln Z
Grand canonical T, V, μ energy and particles grand potential

Canonical probability. A small system in contact with a large reservoir at temperature T is found in a microstate of energy EsE_s with probability

ps=e−EskTZ,Z=∑se−EskTp_s = \frac{e^{-\frac{E_s}{kT}}}{Z}, \qquad Z = \sum_se^{-\frac{E_s}{kT}}

This Boltzmann factor follows because the reservoir's entropy, and so its number of microstates, falls as e−EskTe^{-\frac{E_s}{kT}} when the system takes energy EsE_s.

Equivalence. For large systems, energy fluctuations in the canonical ensemble are tiny, so all three ensembles give the same thermodynamics. We choose whichever makes the calculation easiest. The grand canonical ensemble is the natural home of quantum statistics.

Deriving Maxwell-Boltzmann statistics

Set-up. N distinguishable particles share total energy E among levels εi\varepsilon_i, each with gig_i states. The number of ways to put nin_i particles in level i is

W=N!∏iginini!W = N!\prod_i\frac{g_i^{n_i}}{n_i!}

Maximising. Using Stirling's approximation ln⁡n!≈nln⁡n−n\ln n! \approx n\ln n - n, maximise ln W subject to ∑ni=N\sum n_i = N and ∑niεi=E\sum n_i\varepsilon_i = E, with Lagrange multipliers α and β. The result is

ni=gie−α−βεin_i = g_ie^{-\alpha - \beta\varepsilon_i}

Identifying β. Comparing with thermodynamics, via ∂S∂E=1T\dfrac{\partial S}{\partial E} = \dfrac{1}{T}, gives β=1kT\beta = \dfrac{1}{kT}. The constant α is fixed by N.

Maxwell-Boltzmann distribution.

ni=NZgie−εikT,Z=∑igie−εikTn_i = \frac{N}{Z}g_ie^{-\frac{\varepsilon_i}{kT}}, \qquad Z = \sum_ig_ie^{-\frac{\varepsilon_i}{kT}}

Z is the single-particle partition function. Applied to kinetic energy, this gives Maxwell's speed distribution; applied to height in a gravitational field, it gives the barometric formula n(h)=n0e−mghkTn(h) = n_0e^{-\frac{mgh}{kT}}.

Worked example. In the Sun's atmosphere at 6000 K, the ratio of hydrogen atoms in the n = 2 level (g = 8, 10.2 eV above ground) to the ground level (g = 2) is 82e−10.20.517\dfrac{8}{2}e^{-\frac{10.2}{0.517}} ≈ 1.1 × 10⁻⁸. So very few atoms can absorb the visible Balmer lines, yet there are so many atoms that the lines are strong.

Thermodynamics from the partition function

Key formulas. For N independent particles with single-particle partition function Z:

U=NkT2∂ln⁡Z∂T,F=−kTln⁡ZN,S=U−FT,P=−(∂F∂V)TU = NkT^2\frac{\partial\ln Z}{\partial T}, \qquad F = -kT\ln Z_N, \qquad S = \frac{U - F}{T}, \qquad P = -\left(\frac{\partial F}{\partial V}\right)_T

Ideal gas. For a particle in a box of volume V, summing over translational states gives

Z=V(2πmkTh2)32Z = V\left(\frac{2\pi mkT}{h^2}\right)^{\frac{3}{2}}

Then U=32NkTU = \dfrac{3}{2}NkT and P = NkT ÷ V, recovering the ideal gas law.

Gibbs paradox. If we take ZN=ZNZ_N = Z^N, as for distinguishable particles, the entropy is not extensive: mixing two identical gases appears to increase entropy, which is absurd. Gibbs resolved this by dividing by N!, since swapping identical particles does not give a new microstate:

ZN=ZNN!Z_N = \frac{Z^N}{N!}

This gives the Sackur-Tetrode equation for the entropy of an ideal monatomic gas, which matches measured entropies and contains Planck's constant, a hint of quantum mechanics hidden in classical gases.

Limits of Maxwell-Boltzmann statistics. MB statistics assumes that the number of available states far exceeds the number of particles, so no two particles compete for the same state. This fails at low temperature or high density, as for electrons in metals or photons in a cavity. There quantum statistics, Bose-Einstein or Fermi-Dirac, must be used.

Mains lens: how UPSC asks this

Statistical mechanics in Paper I usually begins with definitions and the Maxwell-Boltzmann derivation, then moves to quantum statistics.

Expect:

  • Define microstate, macrostate, thermodynamic probability, ensembles (10 marks).
  • Derive MB distribution law (15 marks) with Lagrange multipliers.
  • Partition function and thermodynamic quantities (10 to 15 marks): ideal gas.
  • Gibbs paradox (10 marks).

Model answer plan: "Derive the Maxwell-Boltzmann distribution law for a system of distinguishable particles. Define the partition function and express the internal energy and entropy of the system in terms of it" (15 marks).

  1. W for nin_i particles in levels with degeneracies gig_i.
  2. Stirling's approximation; constraints on N and E; Lagrange multipliers.
  3. ni=gie−α−βεin_i = g_ie^{-\alpha - \beta\varepsilon_i}; identify β=1kT\beta = \dfrac{1}{kT}.
  4. Define Z; ni=NZgie−εikTn_i = \dfrac{N}{Z}g_ie^{-\frac{\varepsilon_i}{kT}}.
  5. U=NkT2∂ln⁡Z∂TU = NkT^2\dfrac{\partial\ln Z}{\partial T}; S=Nkln⁡Z+UTS = Nk\ln Z + \dfrac{U}{T}; note N! correction for identical particles.

Quick revision

  • Microstate vs macrostate; W = thermodynamic probability; 4 coins 1, 4, 6, 4, 1.
  • Equal a priori probability; equilibrium = max W; fluctuations 1N\dfrac{1}{\sqrt N}; S=kln⁡WS = k\ln W.
  • Microcanonical (E,V,N), canonical (T,V,N), grand canonical (T,V,μ); ps∝e−EskTp_s \propto e^{-\frac{E_s}{kT}}.
  • MB: ni=NZgie−εikTn_i = \dfrac{N}{Z}g_ie^{-\frac{\varepsilon_i}{kT}}; β=1kT\beta = \dfrac{1}{kT}; barometric formula.
  • U=NkT2∂ln⁡Z∂TU = NkT^2\dfrac{\partial\ln Z}{\partial T}; F=−kTln⁡ZNF = -kT\ln Z_N; ideal gas Z=V(2πmkTh2)32Z = V\left(\dfrac{2\pi mkT}{h^2}\right)^{\frac{3}{2}}.
  • Gibbs paradox ⇒ ZNN!\dfrac{Z^N}{N!}; Sackur-Tetrode; MB fails at low T, high density.

Mains answer practice

Write your answer first, then open the points a good answer should cover.

  1. Derive the Maxwell-Boltzmann distribution law for a system of distinguishable particles. Define the partition function and express the internal energy and entropy in terms of it.

    Show answer points
    • W = N! Π g_i^{n_i}/n_i!
    • Stirling ln n! ≈ n ln n − n; constraints Σn_i = N, Σn_iε_i = E; Lagrange α, β
    • n_i = g_i e^{−α−βε_i}; β = 1/kT from ∂S/∂E = 1/T
    • Z = Σ g_i e^{−ε_i/kT}; n_i = (N/Z) g_i e^{−ε_i/kT}
    • U = NkT² ∂lnZ/∂T; S = Nk ln Z + U/T
  2. Define microstate, macrostate and thermodynamic probability. For 4 distinguishable coins, list the macrostates and their thermodynamic probabilities, and explain why the most probable macrostate dominates for a large system.

    Show answer points
    • Microstate: full specification of every particle
    • Macrostate: bulk variables; W = number of microstates
    • 4 coins: 16 microstates; W = 1, 4, 6, 4, 1 for 0–4 heads
    • Equal a priori probability ⇒ most probable macrostate has max W
    • Width ~√N, relative ~1/√N ≈ 10⁻¹² for N ~ 10²⁴ ⇒ equilibrium
  3. Distinguish between microcanonical, canonical and grand canonical ensembles. Show that in the canonical ensemble the probability of a microstate of energy E_s is proportional to e^{−E_s/kT}.

    Show answer points
    • Microcanonical: fixed E, V, N (isolated)
    • Canonical: fixed T, V, N; energy exchange with reservoir
    • Grand canonical: fixed T, V, μ; energy and particle exchange
    • Reservoir microstates Ω_R(E − E_s); ln Ω_R ≈ ln Ω_R(E) − E_s/kT
    • ⇒ p_s = e^{−E_s/kT}/Z; ensembles equivalent for large systems
  4. What is the Gibbs paradox? Show how dividing the N-particle partition function by N! resolves it, and write the partition function of an ideal monatomic gas.

    Show answer points
    • Z_N = Z^N gives non-extensive entropy
    • Mixing identical gases appears to increase S: paradox
    • Identical particles: permutations not new microstates ⇒ Z_N = Z^N/N!
    • Ideal gas Z = V(2πmkT/h²)^{3/2}
    • Gives extensive Sackur-Tetrode entropy, containing h
  5. In a stellar atmosphere at 6000 K, estimate the ratio of hydrogen atoms in the n = 2 level (g = 8, 10.2 eV above ground) to those in the ground state (g = 2).

    Show answer points
    • Boltzmann: N₂/N₁ = (g₂/g₁) e^{−ΔE/kT}
    • kT = 8.617 × 10⁻⁵ × 6000 ≈ 0.517 eV
    • ΔE/kT ≈ 19.7
    • N₂/N₁ ≈ 4 × e^{−19.7}
    • ≈ 1.1 × 10⁻⁸

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

More in this module: Kinetic theory and statistical physics

Official sources

Facts in this chapter were checked against these official sources.

  1. IGNOU BPHCT-135 Basic concepts of statistical mechanics and classical statistics units
  2. MIT OpenCourseWare 8.333 Statistical mechanics I, ensembles notes
  3. OpenStax University Physics Volume 2, Chapter 4: Entropy on a microscopic scale