8.08 is the second course in statistical physics, and Xiao-Gang Wen's handwritten notes begin with the ensemble that most calculations use: a system held at a fixed temperature by a large heat bath. The 8.044 pages on the canonical ensemble and its examples derived it by expanding the bath's entropy to first order and wrote it as a classical density in phase space; Wen idealises the bath so that the Boltzmann factor is exact, works with discrete quantum states, and then shows why the free energy is the quantity a system at fixed temperature minimises (notes pp. 1–4). Notation follows the notes, which follow Huang's textbook: the partition function is (8.044 wrote Z), the Helmholtz free energy is (8.044's F), and counts states. (MIT's material is eleven scanned pages numbered 1 to 12 by hand, with no page 8; this page covers points ① to ④ on pp. 1–4 and the next page points ⑤ to ⑦. Everything here is in our own words, with our own examples.)
A system and its heat bath#
Put a small system in thermal contact with a much larger heat reservoir, or bath, and wrap the two together in an insulating box (notes p. 1, point ①). The pair is isolated, so it is a microcanonical ensemble; the small system alone is the canonical ensemble. The question is: what is the probability that the system is in a particular state, of energy ?
Wen's first step is to idealise the bath. An ideal heat bath is one whose temperature does not depend on its energy, however much it gives or takes. Since temperature is defined by , a constant means the bath's entropy grows linearly with its energy (notes p. 1):
In words
1 over T equals partial S( capital E ) over partial capital E which gives S sub bath ( capital E ) equals capital E over T
(up to a constant, which drops out of every probability). With , the number of states of the bath is then an exponential:
In words
capital gamma sub bath ( capital E ) equals e to the power capital E over k B T, end of power
A real bath is not exactly ideal, but it is close: expanding about the total energy, the first-order term is exactly , and the next one is smaller by the ratio of the system's energy to the bath's, which a large enough bath makes as small as we like. (This remark is ours; the notes take the ideal bath as given.)
The Boltzmann distribution#
Now let the system have energy levels , (notes p. 1, point ②). The total energy of system plus bath is fixed, and in the microcanonical ensemble every state of the whole with that energy is equally likely (notes p. 2). If the system is in its th state, there is way to arrange the system and ways to arrange the bath, so the number of states of the whole is
In words
1 times capital gamma sub bath the quantity capital E sub tot minus capital E sub n, equals e to the power the quantity capital E sub tot minus capital E sub n, all over k B T, end of power
The factor is the same for every , so the probability of each state of the system is proportional to the Boltzmann factor (notes p. 2, boxed):
In words
P sub n is proportional to e to the power minus capital E sub n over k B T, end of power
Nothing about the system was used: it can be a single atom or a large body, quantum or classical. Everything comes from how fast the bath's number of states falls when the system takes energy from it.
The partition function#
The constant of proportionality is fixed by requiring the probabilities to add up to one. Their sum before normalising is the partition function, the "total probability" in Wen's words (notes p. 2, point ③):
In words
Q(T, V) is defined as the sum over n of e to the power minus capital E sub n over k B T, end of power
so that . The energies depend on the volume and anything else that sets the system's levels, hence . This form, a sum over quantum states, is the quantum one; for a classical system the sum becomes an integral over phase space, as on the next page.
Wen then rewrites as an integral over energy. Insert into each term; the sum of delta functions counts the system's states at energy , which is its density of states , and that is , with the entropy the system would have alone at energy (notes p. 2):
In words
Q equals the integral of d capital E the sum over n of delta the quantity capital E minus capital E sub n, e to the power minus capital E over k B T, end of power, equals the integral of d capital E capital gamma sub sys ( capital E ) e to the power minus capital E over k B T, end of power, equals the integral of d capital E e to the power minus 1 over the quantity k B T, times the quantity capital E minus S( capital E ) T, end of power
The integrand is proportional to the probability that the system has energy , whichever of its states it is in. Two factors compete in it: the Boltzmann factor falls with , and the number of states rises with it.
The free energy and why the peak is sharp#
The exponent is , with
In words
A equals capital E minus S( capital E ) T
so the most probable energy is the one that makes smallest. (The notes' first line says "maximize" and calls the extreme value the maximum; a few lines later they say the system minimises the free energy, which is right, since appears with a minus sign in the exponent.) At the minimum the derivative of vanishes, so the equilibrium energy satisfies (notes p. 3)
In words
1 over T equals d S( capital E ) over d capital E evaluated at capital E equals capital E bar
The left side is , the right side : the system settles at the energy where its own temperature equals the bath's. at that energy is the free energy, or Helmholtz free energy (notes p. 3). Wen draws two conclusions:
- is proportional to the probability distribution of the canonical ensemble's energy. A system in contact with a bath "wants" to minimise its free energy, which is what reaching equilibrium means (notes p. 3, ⓐ).
- That distribution is sharply peaked, with a width small compared with (notes p. 3, ⓑ). So the integral for is, up to a factor much less important than the exponential, the height of the peak:
In words
Q equals the integral of d capital E e to the power minus A over k B T, end of power, is of order e to the power minus A min over k B T, end of power, A equals minus k B T log Q
How sharp is the peak? Take a system whose number of states grows as , which is roughly true for independent degrees of freedom such as classical oscillators. Then plus a constant, is smallest at , and with the energy distribution is . (This model is our illustration; the notes only sketch a narrow peak.)
The relative width falls as . When we take the logarithm of , the width contributes only a term of order , while is of order ; for a macroscopic body the difference is utterly negligible, and is exact for all practical purposes.
Comparison with the microcanonical ensemble#
Wen sets the two ensembles side by side (notes p. 4). In the microcanonical ensemble every state of energy is equally likely, so the weight of energy is just the number of states, , and the system maximises its entropy. In the canonical ensemble each of those states also carries a Boltzmann factor:
In words
microcanonical: capital gamma ( capital E ) equals e to the power S over k B, end of power, canonical: capital gamma ( capital E ) e to the power minus capital E over k B T, end of power, equals e to the power minus the quantity capital E minus S T, all over k B T, end of power, equals e to the power minus A over k B T, end of power
So the rule "maximise " for an isolated system becomes "minimise " for a system at fixed temperature. The new ingredient is the Boltzmann factor, which is the bath's contribution: energy taken by the system lowers the bath's entropy by . So the system and bath together maximise , and multiplying by , that is the same as minimising .
Thermodynamics from the free energy#
Point ④ derives the thermodynamic quantities from (notes p. 4). Define the function of two variables
In words
A tilde ( capital E, T) equals capital E minus S( capital E ) T
The free energy is its minimum over :
In words
A(T) equals A tilde ( capital E bar (T), T), partial A tilde ( capital E, T) over partial capital E evaluated at capital E equals capital E bar equals 0
Entropy. Differentiating with the chain rule, the term through vanishes because is stationary there, and only the explicit remains (notes p. 4, ⓐ):
In words
partial A(T) over partial T equals partial A tilde over partial capital E evaluated at capital E equals capital E bar partial capital E bar (T) over partial T plus partial A tilde over partial T evaluated at capital E equals capital E bar equals 0 plus (-S) equals minus S
The heat absorbed per unit rise in temperature is the heat capacity (Wen calls it the specific heat), here at fixed volume:
In words
C equals T d S over d T
In words
capital E bar equals A plus S T equals A minus T partial A over partial T
Wen checks this a second way, straight from the definition of the average. With ,
In words
capital E bar equals the average of capital E equals the sum over n of capital E sub n e to the power minus beta capital E sub n over the quantity the sum over n of e to the power minus beta capital E sub n, equals minus partial over partial beta log Q equals k B T squared partial over partial T (- A over the quantity k B T, ) equals A minus T partial A over partial T
using and . The two routes agree, as they must. So once is known, gives the entropy, the energy and the heat capacity by differentiation; the next page adds the pressure.
A molecule with three levels
A molecule has three states, with energies 0, 0.020 eV and 0.050 eV, and is in a gas at 300 K, which acts as its bath. Find its partition function, the probability of each state, its mean energy, its free energy and its entropy, and check the entropy against .
The Boltzmann factors
At 300 K, eV. The factors are , and , so .
Probabilities and mean energy
, and . The mean energy is eV eV, about .
Free energy and entropy
eV eV. Then , which in units of is .
The check
, the same. The free energy is lower than the lowest level: the molecule's freedom to occupy three states is worth eV.
Summary#
- An ideal heat bath keeps its temperature whatever energy it exchanges, so and .
- System plus bath is microcanonical. With the system in state , the bath has states, so , normalised by the partition function .
- Rewritten as an integral over energy, : the energy distribution is with . The system sits at the minimum of , where its temperature equals the bath's.
- The peak has a relative width of order , so and .
- From : , and .