The grand partition function and the grand potential
Let a system exchange particles with an ideal particle reservoir, which charges an energy μ for every particle it gives away, as well as energy with a heat bath. System plus reservoir is then a canonical ensemble with weight e^(−β(E − μN)), and its partition function is the grand partition function Q_G = Σ_N e^(βμN) Q_N. Its logarithm defines the thermodynamic potential Ω = −k_BT ln Q_G = A − μN, which the system minimises. Derivatives of Ω give the mean particle number, its fluctuations, the entropy and the pressure, and because Ω is extensive, Ω = −PV.
Chapter I held the number of particles fixed and let the system exchange energy with a heat bath. Many systems also exchange particles: a gas in contact with a liquid, molecules sticking to a surface, atoms that combine into molecules, a small volume inside a larger gas. Xiao-Gang Wen's fourth chapter builds the ensemble for them, the grand canonical ensemble, by the same route as Chapter I: an idealised reservoir, then a sum over states, then a free energy that the system minimises (notes pp. 28–30, points ① to ③). The 8.044 page on the grand canonical ensemblederived it by expanding the reservoir's entropy and went on to Fermi and Bose occupations; Wen instead adds a particle reservoir to the canonical ensemble and spends the chapter on what equal chemical potentials imply. Notation follows the notes (which, like Huang's textbook, write Q for partition functions and A for the free energy): the grand partition function is QG (8.044 wrote Ξ) and the thermodynamic potential is Ω (8.044's grand potentialΦG). (MIT's material for this chapter is eight scanned pages numbered 28 to 35 by hand; in the PDF, p. 30 comes before p. 29. This page covers pp. 28–30 and the next page the applications on pp. 31–35. Everything here is in our own words, with our own examples.)
Wen's opening sketch (notes p. 28) puts the three ensembles inside one another. The system alone, with fixed energy and particle number, is the microcanonicalensemble. Put it in contact with a heat bath at temperature T and the system is canonical. Now let it also exchange particles with a particle reservoir characterised by a number μ, the chemical potential, and the system becomes grand canonical, described by T and μ instead of a fixed energy and a fixed particle number.
Wen's reservoir is idealised in the same spirit as the ideal heat bath of Chapter I: it has energyμ per particle it holds, so with Nres particles its energy is Nresμ (notes p. 28, point ①). If the system is in its nth state with N particles, of energyEn,N, the energy of system plus reservoir is
Energy of system plus particle reservoir
En,N+Nresμ=En,N−Nμ+Ntotμ
In words
capital E sub n N plus capital N sub res mu equals capital E sub n N minus capital N mu plus capital N sub tot mu
because the total number of particles Ntot=N+Nres is fixed. The last term is a constant and is dropped. System plus reservoir sits in the heat bath, so it is an ordinary canonical ensemble, and its partition function, which Wen calls the grand partition function of the system, is a sum over both the state and the particle number (notes p. 28):
Grand partition function
QG=n,N∑e−β(En,N−Nμ)
In words
Q sub G equals the sum over n, capital N of e to the power minus beta the quantity capital E sub n N minus capital N mu, end of power
with β=1/kBT. Summing first over the states n at fixed N gives the canonical partition functionQN(V,T) of N particles, so
Grand partition function as a sum over N
QG(μ,V,T)=N∑eβμNQN(V,T)=N∑zNQN(V,T),z=eβμ
In words
Q sub G ( mu, V, T) equals the sum of _ capital N e to the power beta mu capital N Q sub N (V, T) equals the sum of _ capital N z^ capital N Q sub N (V, T), z equals e to the power beta mu
where z is the fugacity. Every particle the system takes from the reservoir costs the reservoir energyμ, and that is the only way the reservoir enters. (Our remark: a real reservoir is not exactly like this, but just as for the heat bath, what matters is its first-order response. Its free energy changes by μ=∂Ares/∂Nres per particle, and that gives the same weighteβμN.)
Each term e−β(En,N−Nμ) is proportional to the probability that the system has N particles and is in its nth state; summed over n, the term eβμNQN is proportional to the probability that it has N particles, whatever its state (notes p. 29, point ②). The mean particle number is therefore
Mean particle number
⟨N⟩=∑NeβμNQN∑NNeβμNQN=−∂μ∂Ω(μ,V,T)
In words
the average of capital N equals the sum of _ capital N capital N e to the power beta mu capital N Q sub N over the quantity the sum of _ capital N e to the power beta mu capital N Q sub N, equals minus partial over partial mu capital omega ( mu, V, T)
As in Chapter I, the sum is dominated by its largest term. Write QN=e−βAN, with AN the free energy of N particles. The weight of N particles is then
Weight of N particles
eβμNQN=eβμNe−βAN=e−β(AN−μN)
In words
e to the power beta mu capital N Q sub N equals e to the power beta mu capital N e to the power minus beta A sub N equals e to the power minus beta the quantity A sub N minus mu capital N, end of power
Let Nˉ be the particle number that maximises it. For a large system the peak is sharp, so (notes p. 29)
Grand partition function from its largest term
QG≈eβμNˉQNˉ=e−β(ANˉ−μNˉ)=e−βΩ⟹Ω=A−μN,Nˉ=⟨N⟩
In words
Q sub G is approximately e to the power beta mu capital N bar Q sub N bar equals e to the power minus beta the quantity A sub N bar minus mu capital N bar, end of power, equals e to the power minus beta capital omega which gives capital omega equals A minus mu capital N, capital N bar equals the average of capital N
Wen's margin note draws the lesson: the system "wants" to maximise eβμNQN, which is to say it minimises Ω=A−μN. A system in a heat bath minimises its free energyA; a system that can also trade particles minimises A−μN. Setting the derivativewith respect toN to zero gives the condition for the peak, ∂A/∂N=μ: the system takes particles until the free energy of one more particle equals the reservoir's price for it. (That condition is written out on the next page, where the notes use it.)
How far does N wander from Nˉ? Wen gives two ways (notes p. 29). First, expand the exponent of the weightto second order about its maximum; the first-order term vanishes there, so the weight is a Gaussian:
Gaussian distribution of N
eβμNe−βAN≈const×e−21β∂N2∂2ANN=Nˉ(N−Nˉ)2
In words
e to the power beta mu capital N e to the power minus beta A sub N is approximately const times e to the power minus one half beta partial squared A sub N over partial capital N squared evaluated at capital N equals capital N bar the quantity capital N minus capital N bar, all squared, end of power
minus partial squared over partial mu squared capital omega equals beta the sum of _ capital N capital N squared e to the power beta mu capital N Q sub N over the quantity the sum of _ capital N e to the power beta mu capital N Q sub N, minus beta ( the sum of _ capital N capital N e to the power beta mu capital N Q sub N ) squared over ( the sum of _ capital N e to the power beta mu capital N Q sub N ) squared equals beta the quantity the average of capital N squared minus the average of capital N squared
the average of the quantity capital N minus capital N bar, all squared equals minus k B T partial squared over partial mu squared capital omega ( mu, V, T)
The two agree. (Our check: since ⟨N⟩=−∂Ω/∂μ, the right side is kBT∂⟨N⟩/∂μ; and since μ=∂A/∂N at the peak, ∂N/∂μ=1/(∂2A/∂N2), the variance of the Gaussian.) Both Ω and N are proportional to the size of the system, so the variance is too, and the relativefluctuation falls as 1/Nˉ: large systems have a sharp particle number even when it is not fixed.
Point ③ derives the thermodynamic quantities (notes p. 30). Pressure.DifferentiatinglnQGwith respect to the volume brings down a factor −β∂En,N/∂V in each term, and −∂En,N/∂V is the force on the walls per unit area:
partial over partial V log Q sub G equals the quantity the sum over n, capital N of (- beta partial capital E sub n N over partial V )e to the power minus beta the quantity capital E sub n N minus capital N mu, end of power, all over the quantity the sum over n, capital N of e to the power minus beta the quantity capital E sub n N minus mu capital N, end of power, equals minus beta the average of partial capital E sub n N over partial V equals beta P
partial capital omega over partial T evaluated at V, mu equals partial A over partial T evaluated at V, capital N plus partial A over partial capital N evaluated at V,T partial capital N over partial T evaluated at V, mu minus mu partial capital N over partial T evaluated at V, mu equals partial A over partial T evaluated at V, capital N equals minus S
The two terms from the change of N cancel, because ∂A/∂N=μ. This is the same argument as in Chapter I, where the change of the equilibriumenergydropped out of ∂A/∂T: wherever a quantity sits at the minimum of a function, its own change does not count to first order.
partial capital omega over partial mu equals partial the quantity A minus mu capital N, over partial capital N, times partial capital N over partial mu minus capital N equals minus capital N
For the classical ideal gas the sum over N can be done without any approximation (our example; the notes reach the same results on p. 31 by keeping only the largest term, as the next page shows. We use Chapter I's QN=(V/λ3)N/N!, with λ=2πℏ2/mkBT the thermal wavelength). The sum is the series of the exponential: QG=∑N(zV/λ3)N/N!=ezV/λ3, so Ω=−kBTzV/λ3. Then every result above can be checked directly. ⟨N⟩=−∂Ω/∂μ=zV/λ3, so z=nλ3 and μ=kBTln(nλ3). P=−∂Ω/∂V=kBTz/λ3=nkBT, the ideal gas law, and indeed Ω=−⟨N⟩kBT=−PV. The variance is −kBT∂2Ω/∂μ2=⟨N⟩, and the probability of N particles, zNQN/QG, is the Poisson distribution⟨N⟩Ne−⟨N⟩/N!.
Loading graph…
Computed from the grand canonical distribution of the number of molecules of an ideal gas in an open volume with ⟨N⟩=25: the Poisson distribution 25Ne−25/N! (drawn through the integers with N!=Γ(N+1)), and the Gaussian of the same mean and variance from the expansion of A−μN. The standard deviation is 25=5, 20% of the mean.
Worked example
Molecules in a small open volume of air
Treat air as nitrogen (m=28 u =4.65×10−26 kg), with the molecules as structureless points (their rotations are ignored), at 300 K and 101325 Pa. Find the number density, the thermal wavelength and the chemical potential. Then imagine a fixed imaginary box inside the gas, open to it on all sides: find the mean number of molecules and its standard deviation for a box of 1 μm³ and for a box of (10 nm)³ (kB=1.380649×10−23 J/K, ℏ=1.054572×10−34 J s).
Density, thermal wavelength and μ
kBT=4.142×10−21 J, so n=P/kBT=2.446×1025 m⁻³. The thermal wavelength is λ=2πℏ2/mkBT=1.905×10−11 m, so nλ3=1.69×10−7: the gas is very dilute on the scale of λ, as a classical gas must be. Then μ=kBTln(nλ3)=−15.6kBT=−0.40 eV. The chemical potential of a classical gas is large and negative.
The open boxes
The rest of the gas is the particle reservoir. For 1 μm³, ⟨N⟩=nV=2.45×107, and the standard deviation is ⟨N⟩=4.9×103, a relative fluctuation of 2.0×10−4. For (10 nm)3=10−24 m³, ⟨N⟩=24.5 and the standard deviation is 4.9: 20%, the plot above. Particle number is sharp in a micrometre box and visibly random in a box of ten nanometres.
The label of the system's quantum states (E_n,N is the energy of the nth state with N particles); in the ideal-gas example, the number density N/V. Say it: “n”.
A quantity, measured in joules, that a body or field has because of its motion, position or state; a closed system keeps its total. Explained in Conservation of energy.
A body so large that it can give or take any amount of heat without changing temperature, used to hold a system at fixed temperature. Explained in Entropy, temperature and the second law.
An imagined, very large collection of copies of a system, all prepared alike, used to define probabilities and averages. Explained in Probability: one random variable.
Energy minus temperature times entropy; a system kept at a fixed temperature settles in the state where this quantity is lowest. Explained in The canonical ensemble and the free energy.
A measure of how many microscopic arrangements of a system match its large-scale state; it never decreases in an isolated system. Explained in Entropy and the second law.
A departure of a quantity from its average value, usually small and random, from moment to moment or from place to place. Explained in Zero-point energy, fluctuations and surprises.
Of a quantity: proportional to the size of the system, so it doubles when two identical systems are put together, like volume or energy. Explained in Thermodynamic variables, temperature and work.
Of a quantity: the same however large the system is, so it does not change when two identical systems are joined, like temperature. Explained in Thermodynamic variables, temperature and work.
The settled state a system reaches when left alone: its large-scale properties stop changing, although its atoms keep moving. Explained in Thermodynamic variables, temperature and work.
The energy minus temperature times entropy plus pressure times volume, G = U − TS + PV, smallest in equilibrium at fixed temperature and pressure. Explained in The liquid–gas transition of the van der Waals gas.
How much of something (mass, charge, energy, particles or probability) there is in each unit of volume, area, length or other variable. Explained in Density and pressure.
The typical de Broglie wavelength of a particle in a gas at a given temperature; quantum effects matter when it reaches the spacing between particles. Explained in Examples using the canonical ensemble.
A measure of how widely values are spread around their average, in the same units as the values: the square root of the variance. Explained in Probability: one random variable.
The radiation given off by a body in thermal equilibrium, whose spread over wavelengths depends only on its temperature. Explained in Black-body radiation in statistical physics.
Stated or written out directly and in full, with nothing left to be worked out.
Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).