Technopedia

The technologist’s encyclopedia

Grand Canonical Ensemble

The grand canonical ensemble is the probability measure for a system that exchanges both energy and particles with a reservoir. Temperature TT and chemical potential μ\mu are fixed; the energy EE and particle number NN are random. It is the right tool whenever the particle count is not conserved in the subsystem you care about: an open gas, the electron gas in a metal, a superfluid or superconductor, a reacting mixture, a blackbody cavity, or the occupation of a single quantum state.

Use it when (a) the system is open to particles, or (b) you want the average occupation of a state without committing to a total NN. It is the natural home for Fermi–Dirac and Bose–Einstein statistics.

Authoritative sources

Probability weight

Each microstate (E,N)(E, N) of the system (volume VV fixed) has probability

P(E,N)=1Ξ eβ(μN−E),β=1kBTP(E, N) = \frac{1}{\Xi}\, e^{\beta(\mu N - E)}, \qquad \beta = \frac{1}{k_B T}

This is the generalized Boltzmann factor: the canonical factor e−βEe^{-\beta E} multiplied by eβμNe^{\beta \mu N}. The μN\mu N term makes adding particles favorable when μ\mu is high. For ss independent species, μN\mu N becomes ∑i=1sμiNi\sum_{i=1}^{s} \mu_i N_i.

Details

The weight is derived by cutting a small system out of a large isolated (microcanonical) reservoir. The reservoir has NtotN_{\text{tot}} particles and energy EtotE_{\text{tot}}; giving the system (E,N)(E,N) leaves the reservoir (Etot−E,Ntot−N)(E_{\text{tot}}-E, N_{\text{tot}}-N). The probability is proportional to the reservoir’s entropy, expanded to first order:

P(E,N)∝exp⁡ ⁣[Sres(Etot−E, Ntot−N)kB]P(E,N) \propto \exp\!\left[\frac{S_{\text{res}}(E_{\text{tot}}-E,\,N_{\text{tot}}-N)}{k_B}\right]

Using (∂S/∂E)N=β(\partial S/\partial E)_{N}=\beta and (∂S/∂N)E=βμ(\partial S/\partial N)_{E}=\beta\mu for the reservoir and dropping the constant Sres(Etot,Ntot)S_{\text{res}}(E_{\text{tot}},N_{\text{tot}}) gives exactly eβ(μN−E)e^{\beta(\mu N - E)}. The chemical potential is defined by the reservoir’s entropy slope:

μ≡(∂F∂N)T,V\mu \equiv \left(\frac{\partial F}{\partial N}\right)_{T,V}

so it is the free-energy cost of adding one particle. This is the same construction that turns the microcanonical ensemble into the canonical one, with particle exchange added on top. See MicrocanonicalEnsemble and CanonicalEnsemble.

Grand partition function

The normalization constant is the grand partition function Ξ\Xi (also written Z\mathcal{Z} or ZZ):

Ξ(T,μ,V)=∑N=0∞∑states αeβ(μN−Eα,N)\Xi(T,\mu,V) = \sum_{N=0}^{\infty} \sum_{\text{states }\alpha} e^{\beta(\mu N - E_{\alpha,N})}

For non-interacting particles in single-particle levels εi\varepsilon_i it factorizes over levels, which is what makes the grand ensemble so powerful:

Ξ=∏iΞi,Ξi={1+eβ(μ−εi)fermion11−eβ(μ−εi)bosonexp⁡ ⁣(eβ(μ−εi))classical\Xi = \prod_i \Xi_i, \qquad \Xi_i = \begin{cases} 1 + e^{\beta(\mu-\varepsilon_i)} & \text{fermion} \\[4pt] \dfrac{1}{1 - e^{\beta(\mu-\varepsilon_i)}} & \text{boson} \\[4pt] \exp\!\bigl(e^{\beta(\mu-\varepsilon_i)}\bigr) & \text{classical} \end{cases}

Every thermodynamic quantity is a derivative of ln⁡Ξ\ln \Xi.

Details

Because ln⁡Ξ\ln \Xi is the log-sum-exp of all weights, it is the single object that plays the role of the canonical partition function. The factorization is the key: an ideal gas of MM independent levels has Ξ\Xi as a product of MM one-level factors, so the mean occupation of a level is independent of all the others. This is why the grand ensemble turns a many-body sum into a sum of one-particle terms.

The derivative identities that follow are the workhorses of the subject:

⟨N⟩=∂ln⁡Ξ∂(βμ)=1β∂ln⁡Ξ∂μ\langle N \rangle = \frac{\partial \ln \Xi}{\partial (\beta \mu)} = \frac{1}{\beta}\frac{\partial \ln \Xi}{\partial \mu} ⟨E⟩=−∂ln⁡Ξ∂β\langle E \rangle = -\frac{\partial \ln \Xi}{\partial \beta} ⟨N2⟩−⟨N⟩2=∂2ln⁡Ξ∂(βμ)2\langle N^2 \rangle - \langle N \rangle^2 = \frac{\partial^2 \ln \Xi}{\partial (\beta \mu)^2}

The last line says the variance of the particle number is the second derivative of ln⁡Ξ\ln \Xi — the same pattern as the canonical ensemble, where energy variance is the second β\beta-derivative of ln⁡Z\ln Z.

Grand potential

The thermodynamic potential conjugate to T,μ,VT,\mu,V is the grand potential Ω\Omega:

Ω(T,μ,V)=−kBTln⁡Ξ\Omega(T,\mu,V) = -k_B T \ln \Xi

It is the Legendre transform of the Helmholtz free energy FF that removes the NN dependence:

Ω=F−μN,dΩ=−S dT−N dμ−P dV\Omega = F - \mu N, \qquad d\Omega = -S\,dT - N\,d\mu - P\,dV

From Ω\Omega you read off every extensive quantity:

N=−(∂Ω∂μ)T,V,S=−(∂Ω∂T)μ,V,P=−(∂Ω∂V)T,μN = -\left(\frac{\partial \Omega}{\partial \mu}\right)_{T,V}, \qquad S = -\left(\frac{\partial \Omega}{\partial T}\right)_{\mu,V}, \qquad P = -\left(\frac{\partial \Omega}{\partial V}\right)_{T,\mu}
Details

The grand potential is the free energy of a system allowed to trade particles: Ω=F−μN\Omega = F - \mu N. Minimizing Ω\Omega over NN at fixed T,μ,VT,\mu,V gives the most probable particle number, and in the thermodynamic limit the fluctuations vanish. See Thermodynamic Potentials and Equilibrium.

Mean number and fluctuations

The ensemble average particle number and its variance are

⟨N⟩=∑NN P(N),Var⁡(N)=⟨N2⟩−⟨N⟩2\langle N \rangle = \sum_N N\, P(N), \qquad \operatorname{Var}(N) = \langle N^2 \rangle - \langle N \rangle^2

For non-interacting particles these reduce to per-level sums:

⟨N⟩=∑ifi,Var⁡(N)=∑i{fi(1−fi)fermionfi(1+fi)bosonficlassical\langle N \rangle = \sum_i f_i, \qquad \operatorname{Var}(N) = \sum_i \begin{cases} f_i(1-f_i) & \text{fermion} \\[4pt] f_i(1+f_i) & \text{boson} \\[4pt] f_i & \text{classical} \end{cases}

where fif_i is the mean occupation of level ii. The fluctuation–dissipation relation ties the variance to a response:

Var⁡(N)=kBT(∂⟨N⟩∂μ)T,V\operatorname{Var}(N) = k_B T \left(\frac{\partial \langle N \rangle}{\partial \mu}\right)_{T,V}
Details

The relation Var⁡(N)=kBT ∂μ⟨N⟩\operatorname{Var}(N) = k_B T\, \partial_\mu \langle N\rangle says that how much NN jitters is the same number as how much NN shifts when you nudge μ\mu. It is the grand-canonical fluctuation formula; see Statistical Foundations of Thermodynamics.

Note the three statistics give different fluctuations for the same mean number: fermions are anti-bunched (f(1−f)<ff(1-f) < f), bosons are bunched (f(1+f)>ff(1+f) > f), and classical particles are Poisson (Var⁡=⟨N⟩\operatorname{Var}=\langle N\rangle). This is the seed of phenomena like fermion pressure and Bose condensation. For the thermodynamic limit of these fluctuations and the onset of collective behavior, see PhaseTransitions.

Ensemble equivalence

In the thermodynamic limit (N→∞N \to \infty), the grand canonical and canonical ensembles give identical thermodynamic quantities. The relative particle-number fluctuation scales as Var⁡(N)/⟨N⟩∼1/N\sqrt{\operatorname{Var}(N)}/\langle N\rangle \sim 1/\sqrt{N}, so for macroscopic systems the two ensembles are indistinguishable in practice. This is why one can safely use the grand canonical ensemble (which factorizes over levels) even when the total particle number is effectively fixed: the constraint N=constN = \text{const} and the constraint μ=const\mu = \text{const} lead to the same macroscopic predictions. The equivalence breaks down for small systems (nanoparticles, single molecules) or near critical points where fluctuations are enhanced.

Occupation numbers

The mean occupation ff of a single-particle level at energy ε\varepsilon is the distribution function. With x=(ε−μ)/kBTx = (\varepsilon - \mu)/k_B T:

StatisticsLevel factor ΞiOccupation f(ε)Allowed f
Fermi–Dirac (fermions)1 + e−x1/(ex+1)0 ≤ f ≤ 1
Bose–Einstein (bosons)1/(1 − e−x)1/(ex−1)f ≥ 0 (requires μ<ε)
Maxwell–Boltzmann (classical)exp(e−x)e−xf ≪ 1

All three reduce to f≈e−xf \approx e^{-x} when the level is dilute (f≪1f \ll 1). The exact classical level factor Ξi=exp⁡(e−x)\Xi_i = \exp(e^{-x}) reduces to 1+e−x1 + e^{-x} in the dilute limit (since e−x≪1e^{-x} \ll 1 makes exp⁡(e−x)≈1+e−x\exp(e^{-x}) \approx 1 + e^{-x}), which is the same form as the fermion factor — the two statistics become indistinguishable when occupation is low.

Details

The difference is the exclusion rule on a single level. A fermion level can hold 0 or 1 particle, so Ξi=e−βε+eβ(μ−ε)\Xi_i = e^{-\beta\varepsilon} + e^{\beta(\mu-\varepsilon)} and f=Ξi′/Ξi=1/(ex+1)f = \Xi_i' / \Xi_i = 1/(e^x+1). A boson level can hold 0,1,2,…0,1,2,\dots particles, so Ξi\Xi_i is a geometric series that converges only when μ<ε\mu < \varepsilon — this is why the boson chemical potential is bounded above by the ground-state energy. A classical particle has no restriction, and the dilute limit f≪1f\ll 1 makes both quantum formulas collapse to e−xe^{-x}.

The interactive simulation below plots the three distributions versus x=(ε−μ)/kBTx = (\varepsilon-\mu)/k_B T at fixed TT. The Fermi curve is a smooth step at x=0x=0 (sharp as T→0T\to 0), the boson curve blows up as x→0+x\to 0^+ (a precursor of Bose condensation), and the classical curve is the common exponential tail.

The occupation of a state is the bridge to PhaseTransitions: when a boson level’s occupation diverges as μ→ε0\mu \to \varepsilon_0, the excess particles pile into the ground state — Bose–Einstein condensation.

Interactive simulation

The simulation below fixes TT and μ\mu for a system of 12 single-particle levels (ε=0,1,…,11\varepsilon = 0,1,\dots,11, kB=1k_B=1). It draws the particle-number distribution P(N)P(N), the per-level occupations fif_i, and a live sample of particles, and it checks the fluctuation–dissipation identity kBT ∂μ⟨N⟩=Var⁡(N)k_B T\,\partial_\mu\langle N\rangle = \operatorname{Var}(N) in real time.

Example problem

A two-level fermionic system has levels ε0=0\varepsilon_0 = 0 and ε1=2\varepsilon_1 = 2 (energy units), in contact with a reservoir at T=1T = 1 and μ=0\mu = 0 (kB=1k_B = 1). Find the mean occupation of each level, ⟨N⟩\langle N \rangle, Var⁡(N)\operatorname{Var}(N), and the grand potential Ω\Omega.

Solution

For a fermion, f(ε)=1/(e(ε−μ)/T+1)f(\varepsilon) = 1/(e^{(\varepsilon-\mu)/T}+1).

Mean number: ⟨N⟩=f0+f1=0.6192\langle N \rangle = f_0 + f_1 = 0.6192.

Variance (fermion levels are independent): Var⁡(N)=f0(1−f0)+f1(1−f1)=0.25+0.1050=0.3550\operatorname{Var}(N) = f_0(1-f_0) + f_1(1-f_1) = 0.25 + 0.1050 = 0.3550.

Check with fluctuation–dissipation: kBT ∂μ⟨N⟩=0.3550=Var⁡(N)k_B T\,\partial_\mu\langle N\rangle = 0.3550 = \operatorname{Var}(N). ✓

Grand partition function: ln⁡Ξ=ln⁡(1+e0)+ln⁡(1+e−2)=ln⁡2+ln⁡(1+e−2)=0.8201\ln\Xi = \ln(1+e^0) + \ln(1+e^{-2}) = \ln 2 + \ln(1+e^{-2}) = 0.8201, so Ω=−Tln⁡Ξ=−0.8201\Omega = -T\ln\Xi = -0.8201.

The mean energy is ⟨E⟩=0⋅f0+2⋅f1=0.2384\langle E\rangle = 0\cdot f_0 + 2\cdot f_1 = 0.2384.

Note that fi≤1f_i \le 1 for fermions (exclusion), and the variance is smaller than the classical/Poisson value ⟨N⟩=0.6192\langle N\rangle = 0.6192 — a signature of anti-bunching.

How this fits together

The grand canonical ensemble is the canonical ensemble with particle exchange added. The chain of ideas is: a reservoir fixes TT and μ\mu (the two intensive slopes of the reservoir’s entropy), the generalized Boltzmann factor eβ(μN−E)e^{\beta(\mu N - E)} weights microstates, ln⁡Ξ\ln \Xi is the generating function from which every quantity is a derivative, Ω=−kBTln⁡Ξ\Omega = -k_B T \ln\Xi is the thermodynamic potential, and the per-level occupations f(ε)f(\varepsilon) encode the exclusion statistics. Fluctuations of NN are not a nuisance — through Var⁡(N)=kBT ∂μ⟨N⟩\operatorname{Var}(N)=k_B T\,\partial_\mu\langle N\rangle they measure the system’s susceptibility to particle exchange, the same link between fluctuations and response that runs through all of statistical mechanics. See CanonicalEnsemble for the fixed-NN limit, PhaseTransitions for what happens when f(ε0)f(\varepsilon_0) diverges, and NonequilibriumStatisticalMechanics for driven systems where μ\mu is not uniform.