🎲Statistical Mechanics

From microscopic randomness to thermodynamics: ensembles, the partition function and quantum statistics.

The big idea

A litre of gas has ~102210^{22} molecules — tracking each is impossible, but probabilities make the averages razor-sharp. Thermodynamics emerges from counting.

Microstates and entropy

S=kBln⁡ΩS = k_B\ln\Omega The second law is statistics: macrostates with overwhelmingly more microstates are overwhelmingly more likely.

The Boltzmann distribution

At temperature TT the probability of a state with energy EiE_i is pi=e−Ei/kBTZ,Z=∑ie−Ei/kBTp_i = \frac{e^{-E_i/k_BT}}{Z},\qquad Z = \sum_i e^{-E_i/k_BT} ZZ, the partition function, encodes everything: F=−kBTln⁡Z,⟨E⟩=−∂ln⁡Z∂β,β=1kBTF = -k_BT\ln Z,\qquad \langle E\rangle = -\frac{\partial\ln Z}{\partial\beta},\quad \beta = \frac1{k_BT}

Equipartition

Each quadratic degree of freedom carries 12kBT\tfrac12k_BT on average — so a monatomic gas has U=32NkBTU=\tfrac32Nk_BT. Its failure for vibrations at low TT was an early clue for quantum theory.

Quantum statistics

Identical particles are indistinguishable:

  • Fermions (electrons, spin ½): nˉ=1e(E−μ)/kBT+1\bar n = \dfrac{1}{e^{(E-\mu)/k_BT}+1} — Fermi–Dirac; explains metals and white dwarfs.
  • Bosons (photons, ⁴He): nˉ=1e(E−μ)/kBT−1\bar n = \dfrac{1}{e^{(E-\mu)/k_BT}-1} — Bose–Einstein; explains blackbody radiation, lasers, superfluids and Bose–Einstein condensates.

Phase transitions

Boiling, magnetism (Ising model), superconductivity: near a critical point, systems show universal critical exponents independent of microscopic details.

Key formulas

Boltzmann factor

pi=e−Ei/kBTZp_i=\frac{e^{-E_i/k_BT}}{Z}

Partition function

Z=∑ie−βEiZ=\sum_i e^{-\beta E_i}

Free energy

F=−kBTln⁡ZF=-k_BT\ln Z

Fermi–Dirac / Bose–Einstein

nˉ=1e(E−μ)/kBT±1\bar n=\frac{1}{e^{(E-\mu)/k_BT}\pm1}

Interactive simulation

PhET Interactive Simulations, University of Colorado Boulder (CC-BY 4.0)Open

Videos

Further resources

Check your understanding

1. Electrons obey…

Score: 0 / 1

My notes