Advanced Mathematics

Statistical Mechanics and Entropy

Temperature, heat and entropy explained by counting microscopic states: each state of energy EE has probability proportional to e−E/kTe^{-E/kT}.

Needs a step first: 16

A gas has an astronomical number of microscopic arrangements for each large-scale state. Entropy S=kln⁡ΩS = k\ln\Omega counts them, and the second law says systems drift to the states with the most arrangements. For a system at temperature TT, the Boltzmann distribution gives each microstate probability e−E/kT/Ze^{-E/kT}/Z, where the partition function ZZ sums the weights and yields average energy, heat capacity and pressure. The same exponential weights appear in softmax, and the same entropy formula, without kk, is information entropy.

Where it shows up: Boltzmann weights reappear as softmax with a temperature, and the energy-based view of probability runs through generative models.

How to hold it: In your head

See entropy as a count of microscopic arrangements and the Boltzmann weight e−E/kTe^{-E/kT} as how temperature favours low energies, the same exponential that softmax uses.

What knowing it looks like

  • Count the microstates of a small system and compute its entropy.
  • Find the Boltzmann probabilities and mean energy of a system with a few energy levels at a given temperature.
  • Explain why heat flows from hot to cold in terms of counting states.

Test yourself

A system has two states, with energies 00 and ε\varepsilon. It is in contact with surroundings at temperature TT, where ε=kTln⁡2\varepsilon = kT\ln 2. Find the probability of each state and the mean energy.
Show the worked answer
Boltzmann weights: e0=1e^{0} = 1 and e−ε/kT=e−ln⁡2=12e^{-\varepsilon/kT} = e^{-\ln 2} = \tfrac12. So Z=32Z = \tfrac32, p0=1/32=23p_0 = 1/\tfrac32 = \tfrac23 and p1=12/32=13p_1 = \tfrac12/\tfrac32 = \tfrac13. Mean energy ⟨E⟩=0⋅23+ε⋅13=ε/3\langle E\rangle = 0\cdot\tfrac23 + \varepsilon\cdot\tfrac13 = \varepsilon/3.

Needs a step first: 16

Learn it with an AI

Copy this prompt into any AI assistant. It will take you through step by step at your level and finish with the test above.

Be my maths tutor. I'm learning "Statistical Mechanics and Entropy" (Undergraduate II tier): Temperature, heat and entropy explained by counting microscopic states: each state of energy $E$ has probability proportional to $e^{-E/kT}$.
I already know: Energy, Work and Momentum, Random Variables, Expectation and Variance, Exponentials and Logarithms.
Teach it Socratically: first ask what I already know; then explain the core idea with one concrete example and why it's true; then give me three problems, one at a time, easy to hard. Wait for my answer, check every step, and point out mistakes without giving the answer away.
Finish by testing me with this: A system has two states, with energies $0$ and $\varepsilon$. It is in contact with surroundings at temperature $T$, where $\varepsilon = kT\ln 2$. Find the probability of each state and the mean energy.
Use LaTeX for formulas. When you say where it's used later (machine learning, quantum mechanics), be specific.

Recommended