Marginal

Statistical Physics

How macroscopic behavior emerges from microscopic randomness: temperature, heat and the laws of thermodynamics, heat engines, microstates and Boltzmann entropy, the microcanonical, canonical and grand canonical ensembles, partition functions, free energy and fluctuations, equipartition and the Maxwell–Boltzmann distribution, quantum statistics, the Ising model, mean-field theory, phase transitions, Landauer's principle and fluctuation theorems.

32 lessons in 4 units

Start your free trial14 days free. No card needed.
What you'll learn

32 lessons, one small step at a time

Each lesson states its goal, then works up to it in short steps with practice after each. A placement test at the start skips what you already know.

Thermodynamics

8 lessons
  1. The ideal gas lawApply the ideal gas law to find pressure and temperature, count molecules, and derive pressure from molecular collisions.
  2. The first lawApply the first law of thermodynamics, compute the work a gas does, and tell state quantities from path quantities.
  3. Isotherms & adiabatsCompute the work and heat of isothermal expansion, and the temperature and pressure changes of adiabatic compression.
  4. Entropy changesCompute entropy changes for reversible heat flows, for expanding gases, including irreversible expansions, and for heating.
  5. The second lawCompute the total entropy change of a heat flow, tell which processes the second law forbids, and explain why it holds.
  6. Heat enginesCompute a heat engine's efficiency and waste heat, apply them to power stations, and analyze cycles on a pV diagram.
  7. The Carnot limitCompute the Carnot limit on efficiency and work, and how the reservoir temperatures change it.
  8. Refrigerators & heat pumpsCompute the best coefficients of performance of refrigerators and heat pumps, and the minimum work cooling requires.

Ensembles

16 lessons
  1. Counting microstatesCount the microstates of a macrostate, compare macrostates, and combine systems.
  2. Boltzmann entropyCompute Boltzmann entropy from microstate counts, for small and large systems, and explain why entropy grows.
  3. Einstein solidsCount the microstates of an Einstein solid, and the weights and probabilities of energy splits between two solids in contact.
  4. Temperature from entropyFind the most likely energy split between two systems, define temperature from entropy, and compute it for an Einstein solid and for systems in contact.
  5. The Boltzmann distributionCompute Boltzmann population ratios, derive the Boltzmann distribution from a heat bath, and apply it to real energies and beyond physics.
  6. Partition functionsCompute partition functions for simple systems, independent parts and degenerate levels.
  7. Average energy from ZCompute average energies from the partition function, for two-level and many-level systems and for Planck's oscillator.
  8. Free energyCompute free energy from the partition function and as energy minus temperature times entropy, and use it to decide between order and disorder.
  9. Enthalpy & Gibbs free energyCompute enthalpy and Gibbs free energy changes, find the temperature where phases coexist, and relate ΔG° to equilibrium constants.
  10. Fluctuations & heat capacityCompute energy fluctuations and the heat capacity they determine, and explain why fluctuations vanish for large systems.
  11. Equipartition & the ideal gasCompute internal energies and heat capacities by equipartition, and the average energy per molecule.
  12. Maxwell–Boltzmann speedsCompute how rms speeds depend on temperature and mass, read the speed distribution, and explain why light molecules escape.
  13. Brownian motion & diffusionCompute diffusive spreading, apply the Stokes–Einstein relation, and explain the link between fluctuation and dissipation.
  14. Gibbs entropy & informationCompute Gibbs entropy, compare it with the Boltzmann maximum, and use maximum entropy for inference.
  15. The grand canonical ensembleCompute average occupancies with a chemical potential, convert energies to physical units, and explain what the chemical potential balances.
  16. Quantum statisticsCompute Fermi–Dirac and Bose–Einstein occupancies, and explain their consequences for stars and condensates.

Interactions & Phase Transitions

5 lessons
  1. Ising energiesCompute the energy of Ising spin configurations, with and without a field, and find ground states.
  2. The Ising modelCompute the energy change of a spin flip, apply the Metropolis acceptance rule, and describe what the Ising model represents.
  3. Spins in a fieldCompute the average value of a single spin in a field, and apply Curie's law.
  4. Mean-field theoryCompute the mean-field critical temperature, solve the self-consistency equation, and tell when mean-field theory works.
  5. Phase transitionsCompute how an order parameter scales near a critical point, compare mean-field and real exponents, and classify transitions.

Information & Thermodynamics

3 lessons
  1. The Szilard engineCompute the work a Szilard engine can extract from information, perfect or imperfect, and explain information as a resource.
  2. Landauer & Maxwell's demonCompute Landauer's minimum cost of erasing information, compare it with real computers, and explain how it saves the second law.
  3. Fluctuation theoremsCompute free energy differences with Jarzynski's equality and probability ratios with Crooks' theorem, and interpret them.
Sample lesson

The ideal gas law

Goal: Apply the ideal gas law to find pressure and temperature, count molecules, and derive pressure from molecular collisions.

Steam engines drove the Industrial Revolution long before anyone understood heat. Thermodynamics grew out of the effort to improve them, describing systems by a few measurable quantities: temperature, pressure, volume and amount. Clapeyron assembled the ideal gas law in 1834 from the relations Boyle, Charles and Gay-Lussac had each found.

We will find pressure, then temperature, count molecules, and finish with pressure from collisions.

Step 1: Pressure

For a dilute gas, with temperature T in kelvin and n moles:

pV = nRT, R ≈ 8.3 J/(mol·K)

A handy value: RT ≈ 2,500 J/mol at room temperature, 300 K, and RT grows in proportion to T. So 1 mol at 300 K in 0.025 m³ has p = 2,500/0.025 = 100,000 Pa = 100 kPa, about atmospheric pressure. Temperatures must be absolute: heating a sealed rigid tank from 27 °C (300 K) to 327 °C (600 K) doubles its pressure, while "doubling" a Celsius reading means nothing special.

Step 2: Temperature

Solving for T gives a thermometer: T = pV/nR. At fixed volume, pressure is proportional to absolute temperature, so a gas thermometer reading twice its pressure at 300 K is at 600 K. 1 mol in 0.025 m³ at 150 kPa has T = 150,000 × 0.025/8.3 ≈ 450 K. Extrapolating the pressure down to zero points to absolute zero, 0 K = −273 °C, which is why the gas law needs kelvin.

Step 3: Counting molecules

Per molecule, the law reads

pV = NkT, k = 1.38 × 10⁻²³ J/K (Boltzmann's constant)

At 300 K, kT ≈ 4 × 10⁻²¹ J, so 1 m³ at 100 kPa holds N = pV/kT = 10⁵/(4 × 10⁻²¹) = 2.5 × 10²⁵ molecules. Since R = NAk, Avogadro's number links the molecular and molar scales. The law does not depend on what the molecules are: equal volumes of hydrogen and oxygen at the same pressure and temperature contain the same number of molecules. At fixed temperature, halving the volume doubles both the number per cubic meter and the pressure.

Step 4: Pressure from collisions

Pressure is the push of molecules bouncing off the walls. A molecule with velocity component vₓ toward a wall reverses it on impact, changing its momentum by 2mvₓ. In a box of length L it returns to the same wall every 2L/vₓ, so its average force there is 2mvₓ ÷ (2L/vₓ) = mvₓ²/L. Adding up N molecules and dividing by the wall's area A, with V = AL, gives p = Nm⟨vₓ²⟩/V. Motion is equally likely in all three directions, so ⟨vₓ²⟩ = ⟨v²⟩/3, and

pV = ⅓Nm⟨v²⟩ = ⅔N × ⟨½mv²⟩

Comparing with pV = NkT gives each molecule an average kinetic energy of (3/2)kT: temperature measures molecular motion. Example: 0.03 kg of gas, so Nm = 0.03 kg, in 0.025 m³ with ⟨v²⟩ = 500² m²/s² gives p = 0.03 × 250,000 ÷ (3 × 0.025) = 100 kPa.

In the app, each step ends with practice questions, new ones every time, and the lesson comes back later in spaced reviews.

Start Statistical Physics

Lessons that need something you haven't learned yet bring it in first, from any course.

Start your free trial14 days free. No card needed.