2.4.10 · D1Thermodynamics & Statistical Mechanics (Advanced)

Foundations — Canonical ensemble — partition function Z

2,088 words9 min readBack to topic

This page assumes you have seen nothing. Before you touch the parent note, we build each symbol it uses — plain words, a picture, and the reason the topic cannot live without it. Read top to bottom; each block only uses symbols already earned.


0. The scene we are describing

Everything below is about the picture in the first figure: a small system glued to a giant heat bath, sealed together inside a rigid box that lets nothing escape.

Figure — Canonical ensemble — partition function Z

Why do we need this split? Because a system with fixed temperature is a system that is allowed to swap energy. Fixing and fixing are opposites; you get one by giving up the other.


1. Microstate, and the symbol

The letter is just an index — a counter, like naming children "child 1, child 2." When you see later, read it as "walk through every pigeonhole and add."


2. Energy of a state:

Why the topic needs it: the whole question of statistical mechanics is how often does the system sit at each height? — and the answer will depend only on those heights and the temperature.

Figure — Canonical ensemble — partition function Z

3. Temperature and the Boltzmann constant


4. The combo — "coldness"


5. The exponential — the shape of "rare"

Before the Boltzmann factor, you must feel the exponential function.

Figure — Canonical ensemble — partition function Z

Why this function and not, say, a straight line? Because it is the only shape that comes out of the reservoir-counting argument (Section 8), and it has the magic property that : differentiating just multiplies by . That is exactly why -derivatives will conjure energies.


6. The Boltzmann factor

This is a weight, not yet a probability — it does not sum to . Fixing that is the whole job of the next symbol. See Boltzmann distribution for the full story of these weights.


7. The sum and the partition function


8. Degeneracy and multiplicity


9. Entropy and the logarithm


10. The bridge: — and the partial symbol


11. Averages , fluctuations , heat capacity


12. The other players: , , , ,


Prerequisite map

Microstate index i

Energy E_i of each state

Temperature T

beta = 1 over kB T

Boltzmann constant kB

Exponential e to the minus x

Boltzmann weight e to minus beta E

Multiplicity Omega

Entropy S = kB ln Omega

dS by dE equals 1 over T

Partition function Z = sum of weights

Logarithm ln

ln Z the master handle

Average energy and F = minus kB T ln Z

Canonical ensemble topic


Equipment checklist

Test yourself — reveal only after you have answered.

What does the index label?
One complete microstate (a fully specified configuration) of the system.
What is and its units?
, units of inverse energy, so is dimensionless.
Why must be a pure number?
Because only pure numbers can go into an exponential .
Shape of for ?
Starts at , decays smoothly toward , never negative, never touching zero.
Is a probability?
No — it is the sum of weights (a normalizer); the probability is .
What does instruct you to do?
Add the quantity over every value of the index .
What is degeneracy ?
The number of distinct microstates sharing the same energy level .
What does undo, and why is it used on ?
It undoes ; it turns products (independent systems) into sums, and its -derivative gives energy.
Define temperature via entropy.
— entropy gained per unit energy added.
What do the angle brackets mean?
The probability-weighted average energy, .
Why is fixed in the canonical ensemble?
Only energy fluctuates; particles and volume are held fixed (that is the setup).
What is and why care?
, the Helmholtz free energy — the direct bridge from to classical thermodynamics.