Intuition The one core idea
A small system touching a huge warm reservoir cannot keep its energy fixed — it constantly borrows and lends tiny amounts, so its energy jitters around some average. The partition function Z is just a weighted headcount of every state the system could be in , and once you own that single number, every thermodynamic quantity drops out by differentiation.
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.
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.
Definition System vs. reservoir (heat bath)
The system is the little thing we care about (a single spin, one oscillator, a gas of N molecules). The reservoir is so enormous that dumping or draining a bit of energy barely changes its temperature. The two together are isolated — total energy is locked.
Why do we need this split? Because a system with fixed temperature is a system that is allowed to swap energy . Fixing T and fixing E are opposites; you get one by giving up the other.
A microstate is one complete, fully-detailed configuration of the system — every position, every spin, every velocity specified. We label the microstates i = 1 , 2 , 3 , …
Picture a row of numbered pigeonholes; state i is one specific pigeonhole the system can sit in.
The letter i is just an index — a counter, like naming children "child 1, child 2." When you see ∑ i later, read it as "walk through every pigeonhole and add."
E i — energy of microstate i
Each microstate i carries a definite energy E i . Different states can have different energies; some states can even share an energy (that sharing has a name — see g n below).
Picture the pigeonholes stacked at different heights ; the height of hole i is E i .
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 E i and the temperature.
T
T (in kelvin) measures how vigorously the reservoir jiggles. High T = lots of spare energy the system can borrow; low T = the reservoir is stingy.
Definition Boltzmann constant
k B
k B ≈ 1.38 × 1 0 − 23 J/K is the fixed exchange rate between temperature (kelvin) and energy (joules). It converts "degrees" into "joules per particle." Without it, T and E would live in incompatible units and could never sit in the same exponent.
β (inverse temperature)
β ≡ k B T 1
Big β = cold. Small β = hot. It has units of 1/ energy , so the product β E i is a pure number — which is essential, because you are only allowed to exponentiate pure numbers.
β at all?
Every formula in the topic wants k B T E together. Writing it as one symbol β makes the algebra clean, and — crucially — differentiating with respect to β is the trick that pulls energies out of Z . Think of β as the steepness knob for the exponential to come.
Before the Boltzmann factor, you must feel the exponential function.
e x and e − x
e ≈ 2.718 . The function e − x starts at 1 (when x = 0 ) and decays smoothly toward zero as x grows — never negative, never flat, always dropping.
Picture a slide that starts at height 1 and swoops down, getting gentler but never touching the ground.
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 d x d e − x = − e − x : differentiating just multiplies by − 1 . That is exactly why β -derivatives will conjure energies.
This is a weight , not yet a probability — it does not sum to 1 . Fixing that is the whole job of the next symbol. See Boltzmann distribution for the full story of these weights.
Definition The summation symbol
∑
∑ i f i means "add up f i over every value the index i takes." If i runs 1 , 2 , 3 then ∑ i f i = f 1 + f 2 + f 3 .
Z ≤ 1 because it's built from probabilities."
Z is the sum of weights , not a probability. It is typically huge — it roughly counts how many states are thermally reachable. The thing that is ≤ 1 is P i = e − β E i / Z .
g n
Often many distinct microstates share the same energy level E n . The count of states at that level is the degeneracy g n . Then you may sum over levels instead of states :
Z = ∑ n g n e − β E n .
Picture several pigeonholes all sitting at the same height E n ; g n counts how many.
Ω
Ω ( E ) = the number of microstates an isolated system has at energy E . For the reservoir, Ω R ( E ) is how many ways it can arrange itself while holding energy E . This is the engine behind why the Boltzmann factor is exponential (Section 10). More in Microcanonical ensemble .
Definition The natural log
ln
ln x is the inverse of e x : it answers "e to what power gives x ?" Its killer feature: it turns products into sums, ln ( ab ) = ln a + ln b . That is why we take ln Z everywhere — it converts the giant products of independent systems into friendly sums.
S
S = k B ln Ω
A measure of how many microstates a macrostate hides — the log of the multiplicity. Its slope with energy defines temperature (next section).
Definition Partial derivative
∂
∂ x ∂ f is the slope of f as you nudge only x , holding all other variables frozen. The curly ∂ (instead of d ) is a reminder that other variables are being held still.
Intuition Why this line is the keystone of the whole topic
Thermodynamics defines temperature as T 1 = ∂ E ∂ S : how much entropy the reservoir gains per joule you hand it. Feed this into S R = k B ln Ω R , Taylor-expand for a tiny E i , and the reservoir's state-count collapses to exactly e − β E i . That single expansion is the reason the Boltzmann factor is exponential — the parent note walks it in full. Everything downstream (Z , ⟨ E ⟩ , F ) is bookkeeping on top of this bridge.
Definition Angle brackets
⟨ ⋅ ⟩
⟨ E ⟩ means the probability-weighted average energy: ⟨ E ⟩ = ∑ i E i P i . It is the value you'd actually measure on average, since the true energy jitters.
σ E 2
σ E 2 = ⟨ E 2 ⟩ − ⟨ E ⟩ 2 measures the size of the jitter around the average. Zero variance = energy is pinned; large variance = wild fluctuations.
C V
C V = ∂ T ∂ ⟨ E ⟩ at fixed volume — how many joules it takes to warm the system by one kelvin. The topic reveals a stunning link, σ E 2 = k B T 2 C V : the jitter and the response to heating are the same physics. See Heat capacity and fluctuations .
N and V
N = number of particles, V = volume of the box. In the canonical ensemble these are fixed ; only energy is free to fluctuate. Contrast with Grand canonical ensemble — grand partition function where N floats too.
F = − k B T ln Z
The Helmholtz free energy — the single quantity that reconnects Z to everyday thermodynamics. From it, S = − ∂ F / ∂ T and P = − ∂ F / ∂ V . See Helmholtz free energy F .
H and Planck's constant h
For continuous (classical) systems, H ( p , q ) is the energy written as a function of momenta p and positions q ; the sum ∑ i becomes an integral over this phase space , and h (Planck's constant) sets the size of one "cell" of phase space so the count stays a pure number. The 1/ N ! that appears with it fixes the Gibbs paradox , and the resulting 2 1 k B T per quadratic term is the Equipartition theorem .
Exponential e to the minus x
Boltzmann weight e to minus beta E
Partition function Z = sum of weights
Average energy and F = minus kB T ln Z
Test yourself — reveal only after you have answered.
What does the index i label? One complete microstate (a fully specified configuration) of the system.
What is β and its units? β = 1/ ( k B T ) , units of inverse energy, so β E i is dimensionless.
Why must β E i be a pure number? Because only pure numbers can go into an exponential e − β E i .
Shape of e − x for x ≥ 0 ? Starts at 1 , decays smoothly toward 0 , never negative, never touching zero.
Is Z a probability? No — it is the sum of weights (a normalizer); the probability is e − β E i / Z .
What does ∑ i instruct you to do? Add the quantity over every value of the index i .
What is degeneracy g n ? The number of distinct microstates sharing the same energy level E n .
What does ln undo, and why is it used on Z ? It undoes e x ; it turns products (independent systems) into sums, and its β -derivative gives energy.
Define temperature via entropy. 1/ T = ∂ S / ∂ E — entropy gained per unit energy added.
What do the angle brackets ⟨ E ⟩ mean? The probability-weighted average energy, ∑ i E i P i .
Why is N fixed in the canonical ensemble? Only energy fluctuates; particles and volume are held fixed (that is the ( N , V , T ) setup).
What is F and why care? F = − k B T ln Z , the Helmholtz free energy — the direct bridge from Z to classical thermodynamics.