# Statistical Mechanics

Statistical mechanics answers one question: how do the sharp, reliable laws
of heat and pressure emerge from the blind motion of enormous
numbers of particles? The bridge is counting, not tracking.


_Figure 001 — A gas in perpetual collision: random molecular speeds settle into the
Maxwell–Boltzmann distribution.
_

_Figure 002 — In equilibrium, a state of energy E is occupied in proportion to the
Boltzmann factor <em>e</em><sup>−E/kT</sup>.
_

Give up on solving the equations of motion for _10²³_ particles.
Instead, count the microscopic arrangements — the microstates — consistent
with what you can actually measure, and let probability do the rest.


Boltzmann's insight ties the two scales together: the entropy of a
macrostate is **k ln Ω**, the logarithm of how many microstates
realize it. The second law is then just the statement that systems drift
toward the macrostate with the most microstates.


_Figure 003 — Many microstates, one macrostate: entropy S = k ln Ω counts them.
_

Fix a temperature instead of an energy and every state's weight is
**e−E/kT**. The normalizing sum of those weights,
the _partition function_, is the object everything else is squeezed
out of.


From ln Z you recover the free energy, the entropy, the mean energy, and its
fluctuations — thermodynamics falls out by differentiation. The same machine
runs from ideal gases to quantum statistics.


_Figure 004 — The partition function Z = Σ e<sup>−E/kT</sup> sums the weight of every state.
_

Push a system across a critical point and its collective behavior changes
qualitatively. An order parameter that was zero lifts continuously off the
axis, correlations reach across the whole system, and the details of the
microphysics stop mattering.


_Figure 005 — A continuous phase transition: an order parameter growing below T_c.
_

The course follows this arc — ensembles, the partition function, quantum
gases of bosons and fermions, and phase transitions — always with the same
move underneath: **count the states, weight them, and take the log**.


What you gain is a way of seeing. Temperature, pressure, and entropy stop
being primitive and become _bookkeeping over microstates_, and the
irreversibility of the everyday world becomes a matter of overwhelming odds.


---

## Contents

### 1. Thermodynamics

1. [Equilibrium, State Variables, and the Zeroth Law](/statistical-mechanics/thermodynamics/equilibrium-state-variables-zeroth-law)
2. [The First Law: Internal Energy, Heat, and Work](/statistical-mechanics/thermodynamics/first-law-heat-and-work)
3. [The Second Law, Carnot Cycles, and Entropy](/statistical-mechanics/thermodynamics/second-law-entropy-and-the-carnot-bound)
4. [Thermodynamic Potentials and Maxwell Relations](/statistical-mechanics/thermodynamics/thermodynamic-potentials-and-maxwell-relations)
5. [Response Functions, Stability, and the Third Law](/statistical-mechanics/thermodynamics/stability-response-functions-and-the-third-law)

### 2. Microstates, Phase Space, and Statistical Entropy

1. [Classical Statistics and Equipartition](/statistical-mechanics/foundations/classical-statistics-and-equipartition)
2. [Phase Space, Trajectories, and Liouville's Theorem](/statistical-mechanics/foundations/phase-space-and-liouvilles-theorem)
3. [Ensembles and the Postulate of Equal a Priori Probabilities](/statistical-mechanics/foundations/ensembles-and-the-equal-probability-postulate)
4. [Statistical Entropy: Boltzmann and Gibbs](/statistical-mechanics/foundations/statistical-entropy-boltzmann-and-gibbs)

### 3. The Microcanonical Ensemble

1. [The Microcanonical Ensemble and Statistical Entropy](/statistical-mechanics/microcanonical/microcanonical-ensemble-and-entropy)
2. [Thermal, Mechanical, and Diffusive Equilibrium](/statistical-mechanics/microcanonical/equilibrium-conditions-temperature-pressure-chemical-potential)
3. [The Ideal Gas, Phase-Space Volume, and the Sackur–Tetrode Entropy](/statistical-mechanics/microcanonical/ideal-gas-phase-space-and-the-sackur-tetrode-entropy)
4. [Two-State Systems, Paramagnets, and Negative Temperature](/statistical-mechanics/microcanonical/two-state-systems-paramagnets-and-negative-temperature)

### 4. The Canonical Ensemble

1. [The Canonical Ensemble and the Boltzmann Distribution](/statistical-mechanics/canonical/canonical-ensemble-and-the-boltzmann-distribution)
2. [The Partition Function and the Helmholtz Free Energy](/statistical-mechanics/canonical/partition-function-and-the-helmholtz-free-energy)
3. [Energy Fluctuations and the Equivalence of Ensembles](/statistical-mechanics/canonical/energy-fluctuations-and-ensemble-equivalence)
4. [Harmonic Systems: The Einstein Solid and Vibrational Heat Capacity](/statistical-mechanics/canonical/the-einstein-solid-and-harmonic-systems)
5. [Paramagnetism, Two-Level Systems, and the Schottky Anomaly](/statistical-mechanics/canonical/paramagnetism-and-the-schottky-anomaly)

### 5. The Classical Ideal Gas

1. [The Ideal Gas Partition Function and the Gibbs Paradox](/statistical-mechanics/classical-gas/ideal-gas-partition-function-and-the-gibbs-paradox)
2. [Equipartition and the Virial Theorem](/statistical-mechanics/classical-gas/equipartition-and-the-virial-theorem)
3. [Molecular Gases: Rotational and Vibrational Degrees of Freedom](/statistical-mechanics/classical-gas/molecular-gases-rotation-and-vibration)

### 6. Grand Canonical Ensemble

1. [The Grand Canonical Ensemble](/statistical-mechanics/grand-canonical/grand-canonical-ensemble-and-the-grand-partition-function)
2. [Chemical Potential, Fugacity, and Number Fluctuations](/statistical-mechanics/grand-canonical/chemical-potential-fugacity-and-number-fluctuations)
3. [The Three Ensembles and the Thermodynamic Web](/statistical-mechanics/grand-canonical/ensemble-summary-and-the-thermodynamic-web)

### 7. Quantum Statistics

1. [Quantum Statistics — Bose-Einstein and Fermi-Dirac](/statistical-mechanics/quantum-statistics/quantum-statistics-bose-einstein-and-fermi-dirac)
2. [Deriving the Quantum Distributions from the Grand Ensemble](/statistical-mechanics/quantum-statistics/deriving-the-quantum-distributions)
3. [The Classical Limit and Quantum Concentration](/statistical-mechanics/quantum-statistics/the-classical-limit-and-quantum-concentration)
4. [Ideal Quantum Gases: The General Framework](/statistical-mechanics/quantum-statistics/ideal-quantum-gases-general-framework)

### 8. Bosonic Systems

1. [Bose-Einstein Condensation and the Fermion Gas](/statistical-mechanics/bose-systems/bose-einstein-condensation-and-the-fermion-gas)
2. [The Photon Gas and Planck's Radiation Law](/statistical-mechanics/bose-systems/the-photon-gas-and-plancks-radiation-law)
3. [Blackbody Thermodynamics and Radiation Pressure](/statistical-mechanics/bose-systems/blackbody-thermodynamics-and-radiation-pressure)
4. [Phonons and the Debye Model](/statistical-mechanics/bose-systems/phonons-and-the-debye-model)
5. [Bose-Einstein Condensation Derived](/statistical-mechanics/bose-systems/bose-einstein-condensation-derived)
6. [Thermodynamics of the Bose Gas and Superfluidity](/statistical-mechanics/bose-systems/thermodynamics-of-the-bose-gas-and-superfluidity)

### 9. Degenerate Fermi Gas

1. [The Ideal Fermi Gas at Zero Temperature](/statistical-mechanics/fermi-gas/the-ideal-fermi-gas-at-zero-temperature)
2. [The Sommerfeld Expansion and Electrons in Metals](/statistical-mechanics/fermi-gas/sommerfeld-expansion-and-electrons-in-metals)
3. [White Dwarfs and the Chandrasekhar Limit](/statistical-mechanics/fermi-gas/white-dwarfs-and-the-chandrasekhar-limit)
4. [Neutron Stars and Dense Matter](/statistical-mechanics/fermi-gas/neutron-stars-and-nuclear-matter)

### 10. Interacting Gases

1. [The Cluster Expansion and Virial Coefficients](/statistical-mechanics/interactions/the-cluster-expansion-and-virial-coefficients)
2. [The van der Waals Gas and Liquid-Gas Coexistence](/statistical-mechanics/interactions/the-van-der-waals-gas-and-liquid-gas-coexistence)
3. [Quantum Gases with Interactions and Statistical Exchange](/statistical-mechanics/interactions/quantum-gases-with-interactions-and-exchange)

### 11. Phase Transitions

1. [Phases, Coexistence, and the Classification of Transitions](/statistical-mechanics/phase-transitions/phases-coexistence-and-classification)
2. [The Ising Model and Exact Results](/statistical-mechanics/phase-transitions/the-ising-model-and-exact-solutions)
3. [Mean-Field Theory and Spontaneous Symmetry Breaking](/statistical-mechanics/phase-transitions/mean-field-theory-and-the-weiss-model)
4. [Critical Exponents, Scaling, and Landau Theory](/statistical-mechanics/phase-transitions/critical-exponents-and-landau-theory)
5. [Scaling and the Renormalization-Group Idea](/statistical-mechanics/phase-transitions/the-renormalization-group-idea)

### 12. Fluctuations and Response

1. [Thermodynamic Fluctuations and Response Functions](/statistical-mechanics/fluctuations/thermodynamic-fluctuations-and-response)
2. [Brownian Motion and the Langevin Equation](/statistical-mechanics/fluctuations/brownian-motion-and-the-langevin-equation)
3. [Linear Response and the Fluctuation-Dissipation Theorem](/statistical-mechanics/fluctuations/linear-response-and-the-fluctuation-dissipation-theorem)
