搜索
File 2026.10.28物理

Canonical and grand canonical ensembles

Date / 日期
Updated / 更新
2026.10.28
Reading / 阅读
126 Min
Words / 字数
25189
Category / 分类
物理热力学

Canonical and grand canonical ensembles

· 更新于 2026年10月28日· 约 126 分钟· 25189 字

点击跳转到中文版(Chinese ver.)

The microcanonical ensemble of the previous chapter describes an isolated system: the energy is given once and for all, and every average has to be computed inside a thin energy shell. This is conceptually clean but practically painful, because the shell restriction enters every integral and the entropy S(E,V)S(E,V) has to be obtained before anything else can be computed.

In this chapter we relax the constraint on the energy. The system is put in contact with a heat reservoir, so that its energy fluctuates, and the ensemble average turns into an unrestricted integral over the whole phase space. Then we relax the constraint on the particle number as well, which leads to the grand canonical ensemble and to the chemical potential.

Canonical ensemble

Canonical ensemble

We consider an isolated system made up of two subsystems

1: N1,V1,H1N_1, V_1, H_1
2: N2,V2,H2N_2, V_2, H_2

with

N=N1+N2V=V1+V2H=H1(p1,q1)+H2(p2,q2)\begin{align} N &= N_1 + N_2\\ V &= V_1 + V_2\\ H &= H_1(p_1,q_1) + H_2(p_2,q_2) \end{align}

and assume that the interaction between the two subsystems is negligibly small.

As discussed in the previous chapter, a “most probable” decomposition E=Eˉ1+Eˉ2E = \bar{E}_1 + \bar{E}_2 of the energy dominates. We are interested in the special case N2≫N1N_2 \gg N_1 and Eˉ2≫Eˉ1\bar{E}_2 \gg \bar{E}_1, so that subsystem 2 is a large environment of subsystem 1.

Let E=E1+E2E = E_1 + E_2 be any decomposition of the energy, fluctuating around the most probable one. The probability of finding system 1 at (p1,q1)(p_1,q_1) and system 2 at (p2,q2)(p_2,q_2) is ∝dp1dq1dp2dq2\propto \dd p_1 \dd q_1 \dd p_2 \dd q_2.

If we look at only system 1, we should sum up all possible microscopic states of system 2 with E2=E−E1E_2 = E - E_1,

∝dp1dq1∫E2=E−E1dp2dq2=dp1dq1 Γ2(E−E1)\begin{align} \propto \dd p_1 \dd q_1 \int_{E_2 = E-E_1} \dd p_2 \dd q_2 = \dd p_1 \dd q_1\, \Gamma_2(E-E_1) \end{align}

That is, the probability of finding system 1 in a microscopic state within the volume dp1dq1\dd p_1 \dd q_1 at (p1,q1)(p_1,q_1) is ∝dp1dq1 Γ2(E−E1)\propto \dd p_1 \dd q_1\, \Gamma_2(E-E_1), and therefore the density distribution is

ρ(p1,q1)∝Γ2(E−E1)\begin{align} \rho(p_1,q_1) \propto \Gamma_2(E-E_1) \end{align}

Since E1E_1 fluctuates only around Eˉ1\bar{E}_1, and Eˉ1≪E\bar{E}_1 \ll E,

klog⁡Γ2(E−E1)=klog⁡Γ2(E)−E1∂ klog⁡Γ2(E2)∂E2∣E2=E+⋯=S2(E)−E1∂S2(E2)∂E2∣E2=E=S2(E)−E1T\begin{align} k \log \Gamma_2(E-E_1) &= k \log \Gamma_2(E) - E_1 \left.\frac{\partial\, k\log \Gamma_2(E_2)}{\partial E_2}\right|_{E_2 = E} + \cdots\\ &= S_2(E) - E_1 \left.\frac{\partial S_2(E_2)}{\partial E_2}\right|_{E_2 = E}\\ &= S_2(E) - \frac{E_1}{T} \end{align}

Here TT is the temperature of the whole system, and therefore also the temperature of system 1, and S2(E)S_2(E) is irrelevant to system 1.

Question: why not expand Γ2(E−E1)\Gamma_2(E-E_1) itself?

Answer: Γ2\Gamma_2 is the volume of phase space, and it grows exponentially with N2N_2. Expanding such a function in powers of E1E_1 produces coefficients that grow with N2N_2, and the series is useless beyond the first term. The quantity that is additive and slowly varying is not Γ2\Gamma_2 but its logarithm, i.e. the entropy, and log⁡Γ2\log \Gamma_2 is extensive. Besides, Γ2\Gamma_2 is not even smooth on the scale of Δ\Delta: it is a coarse-grained volume, defined only up to the shell width. The expansion of klog⁡Γ2k\log\Gamma_2 is legitimate because the second-order term is smaller than the first by a factor of order E1/EE_1/E, and we have assumed E1≪EE_1 \ll E.

Omitting the subscript 1, this leads to

ρ(p,q)∝e−H(p,q)/kT=e−βH(p,q),β=1kT\begin{align} \rho(p,q) \propto e^{-H(p,q)/kT} = e^{-\beta H(p,q)},\qquad \beta = \frac{1}{kT} \end{align}

This is the probability distribution of the so-called canonical ensemble. Similar to that of the microcanonical ensemble, ρ(p,q)\rho(p,q) of the canonical ensemble depends on (p,q)(p,q) also only through the Hamiltonian H(p,q)H(p,q).

The macroscopic conditions for the canonical ensemble:

  • NN is fixed;
  • the system is in contact with a heat reservoir of temperature TT, and TT is fixed.

In other words, the energy is no longer a macroscopic parameter of the system: it is replaced by the temperature of the reservoir. Fig. 3.1(a) shows the arrangement.

TikZ 源码
\begin{tikzpicture}[>=stealth, thick, font=\small]
% ---- (a) canonical ensemble ----
\draw (0,0) rectangle (2,2);
\node at (1,1.35) {System 1};
\node at (1,0.75) {$N_1,V_1$};
\draw (2.9,0) rectangle (6.7,2.8);
\node at (4.8,2.2) {Heat reservoir 2};
\node at (4.8,1.6) {$N_2\gg N_1$};
\node at (4.8,1.05) {$\bar{E}_2\gg\bar{E}_1$};
\node at (4.8,0.5) {$T$ fixed};
\draw[<->,red] (2.05,1.0) -- (2.85,1.0);
\node[red,above] at (2.45,1.05) {$E$};
\node at (1,-0.5) {(a)};
% ---- (b) grand canonical ensemble ----
\draw (0,-5.2) rectangle (6.7,-1.9);
\node[anchor=north west] at (0.15,-2.0) {Reservoir: $T$, $\mu$};
\draw (2.5,-4.3) rectangle (4.9,-2.35);
\fill (2.9,-2.7) circle (2pt);
\fill (4.4,-2.75) circle (2pt);
\fill (3.0,-3.9) circle (2pt);
\fill (4.5,-3.95) circle (2pt);
\node at (3.7,-4.6) {open system: $V$ fixed, $N$ varies};
\fill (0.6,-2.5) circle (2pt);
\fill (1.1,-3.4) circle (2pt);
\fill (1.7,-4.3) circle (2pt);
\fill (0.6,-4.7) circle (2pt);
\fill (5.9,-2.4) circle (2pt);
\fill (6.2,-3.4) circle (2pt);
\fill (5.5,-4.3) circle (2pt);
\fill (6.2,-4.7) circle (2pt);
\draw[->,red] (2.0,-3.25) -- (2.4,-3.25);
\node[red,above left] at (2.3,-3.3) {$\Delta N$};
\draw[->,red] (5.0,-3.25) -- (5.4,-3.25);
\node[red,above right] at (5.1,-3.3) {$\Delta N$};
\node at (1,-5.65) {(b)};
\end{tikzpicture}

We define the partition function as the effective volume in Γ\Gamma space, i.e. the effective number of the microscopic states,

QN(V,T)≡1N!∫d3Npd3Nq e−H/kT\begin{align} Q_N(V,T) \equiv \frac{1}{N!} \int \dd^{3N}p \dd^{3N}q\, e^{-H/kT} \end{align}

then the thermodynamics is obtained from

QN(V,T)≡e−A(V,T)/kT\begin{align} Q_N(V,T) \equiv e^{-A(V,T)/kT} \end{align}

where A(V,T)A(V,T) is the free energy. To show this, one should prove

(a) AA is extensive;
(b) AA is related to UU by A=U−TSA = U - TS with S≡−(∂A/∂T)VS \equiv -(\partial A/\partial T)_V.

Proof of (b): differentiating the following identity with respect to β=1/kT\beta = 1/kT,

1N!∫d3Npd3Nq eβ[A(V,T)−H(p,q)]=1\begin{align} \frac{1}{N!} \int \dd^{3N}p \dd^{3N}q\, e^{\beta[A(V,T)-H(p,q)]} = 1 \end{align}

we obtain, keeping in mind that H(p,q)H(p,q) does not depend on β\beta,

1N!∫d3Npd3Nq eβ[A−H][A−H+β∂A∂β]=0\begin{align} \frac{1}{N!} \int \dd^{3N}p \dd^{3N}q\, e^{\beta[A-H]} \left[ A - H + \beta \frac{\partial A}{\partial \beta} \right] = 0 \end{align}

Since

β∂A∂β=β∂A∂T∂T∂β=−T(∂A∂T)V=TS\begin{align} \beta \frac{\partial A}{\partial \beta} = \beta \frac{\partial A}{\partial T}\frac{\partial T}{\partial \beta} = -T \left(\frac{\partial A}{\partial T}\right)_V = TS \end{align}

where we have used T=1/(kβ)T = 1/(k\beta) and therefore ∂T/∂β=−T/β\partial T/\partial \beta = -T/\beta. Therefore the bracket is just A−H+TSA - H + TS, and averaging gives A−U+TS=0A - U + TS = 0, i.e. A=U−TSA = U - TS, with U=⟨H⟩U = \langle H \rangle the internal energy.

Proof of (a): the partition function of a system composed of two independent parts factorizes, QN1+N2=QN1QN2Q_{N_1+N_2} = Q_{N_1}Q_{N_2}, up to the same binomial counting and the same neglect of O(log⁡N)O(\log N) terms as in the proof of the extensiveness of SS in the previous chapter. Hence −A/kT=log⁡QN-A/kT = \log Q_N is additive, and AA is extensive.

Please note that now the temperature is already defined from the beginning: it is the temperature of the reservoir, and it is an independent variable. Then the free energy A(V,T)A(V,T) is a characteristic function, and one may straightforwardly derive

P=−(∂A∂V)TS=−(∂A∂T)VU=A+TSG=A+PV\begin{align} P &= -\left(\frac{\partial A}{\partial V}\right)_T\\ S &= -\left(\frac{\partial A}{\partial T}\right)_V\\ U &= A + TS\\ G &= A + PV \end{align}

The free energy A(V,T)A(V,T) in the canonical ensemble plays the role of the entropy S(E,V)S(E,V) in the microcanonical ensemble.

In principle, the integration of dpdq\dd p \dd q cannot extend to the entire Γ\Gamma space, since from the beginning ρ(p1,q1)\rho(p_1,q_1) requires E1≤EE_1 \le E. But we show in the next subsection that the contribution from the region H≥EH \ge E is negligibly small. In fact, only one value of the energy dominantly contributes to the partition function. Therefore, practically the integration may extend over all energies. This provides much convenience for calculations in the canonical ensemble.

In addition, the free energy A(V,T)A(V,T) in the canonical ensemble can be explicitly computed. In contrast, the internal energy U(S,V)U(S,V) in the microcanonical ensemble could be potentially obtained only from the computation of S(E,V)S(E,V), and such a solution is usually much more difficult.

The definition of the partition function QN(V,T)Q_N(V,T) in the canonical ensemble is similar to the total volume Γ(E)\Gamma(E) of the microscopic states in the microcanonical ensemble. In fact

klog⁡QN(V,T)=−A(V,T)/T=S−U/T\begin{align} k \log Q_N(V,T) = -A(V,T)/T = S - U/T \end{align}

Question: why and how?

Hint: only the microscopic states with the most probable energy Eˉ\bar{E}, i.e. with the average energy U=EˉU = \bar{E}, contribute to QN(V,T)Q_N(V,T). Therefore QN(V,T)=e−Eˉ/kTΓ(Eˉ)Q_N(V,T) = e^{-\bar{E}/kT}\Gamma(\bar{E}), and taking the logarithm gives klog⁡QN=−U/T+Sk\log Q_N = -U/T + S directly.

A simple argument for the canonical ensemble: suppose that a large isolated system consists of many identical quasi-independent subsystems, and each subsystem is described by the Hamiltonian H(p,q)H(p,q). According to the result of the previous chapter, i.e. the Maxwell-Boltzmann distribution, the probability distribution of finding a subsystem at (p,q)(p,q) is

ρ(p,q)∝e−βH(p,q)\begin{align} \rho(p,q) \propto e^{-\beta H(p,q)} \end{align}

The same result therefore follows without repeating the reservoir argument, provided that the interaction between the subsystems is negligible.

Energy fluctuation

Questions:

  • In what sense are the microcanonical and canonical ensembles equivalent?
  • Why do we need both ensembles?

Any macroscopic observable can be calculated by

⟨O⟩=1QNN!∫dpdq e−βHO\begin{align} \langle O \rangle = \frac{1}{Q_N N!} \int \dd p \dd q\, e^{-\beta H} O \end{align}

and for the energy,

U=⟨H⟩=1QNN!∫dpdq e−βHH\begin{align} U = \langle H \rangle = \frac{1}{Q_N N!} \int \dd p \dd q\, e^{-\beta H} H \end{align}

which we may write as

1N!∫dpdq eβ(A−H)(U−H)=0\begin{align} \frac{1}{N!}\int \dd p \dd q\, e^{\beta(A-H)} (U - H) = 0 \end{align}

Differentiating both sides with respect to β\beta, and noting that ∂U/∂β\partial U/\partial\beta is the only term in which the derivative acts on something other than the exponential, we obtain

∂U∂β+1N!∫dpdq eβ(A−H)(U−H)(A−H+β∂A∂β)=0\begin{align} \frac{\partial U}{\partial \beta} + \frac{1}{N!}\int \dd p \dd q\, e^{\beta(A-H)} (U-H)\left( A - H + \beta \frac{\partial A}{\partial \beta} \right) = 0 \end{align}

Further, since

β∂A∂β=−T(∂A∂T)V=TS,U=A+TS\begin{align} \beta \frac{\partial A}{\partial \beta} = -T\left(\frac{\partial A}{\partial T}\right)_V = TS,\qquad U = A + TS \end{align}

the bracket is A−H+TS=U−HA - H + TS = U - H, and therefore ∂U/∂β+⟨(U−H)2⟩=0\partial U/\partial\beta + \langle (U-H)^2 \rangle = 0, i.e.

⟨H2⟩−⟨H⟩2=−∂U∂β=kT2∂U∂T=kT2CV\begin{align} \langle H^2 \rangle - \langle H \rangle^2 = -\frac{\partial U}{\partial \beta} = kT^2 \frac{\partial U}{\partial T} = kT^2 C_V \end{align}

or, in terms of the deviation ΔE=H−⟨H⟩\Delta E = H - \langle H \rangle,

⟨(ΔE)2⟩=kT2CV\begin{align} \langle (\Delta E)^2 \rangle = kT^2 C_V \end{align}

In fact, this is a special case of the well-known fluctuation-dissipation theorem, which relates the fluctuation of the energy to the response to the external change. Since the left-hand side is a variance, it also follows that CV≥0C_V \ge 0 in equilibrium.

Now, because ⟨H⟩∼N\langle H \rangle \sim N and CV∼NC_V \sim N, we have, as N→∞N \to \infty,

⟨H2⟩−⟨H⟩2⟨H⟩2∼1N→0\begin{align} \frac{\langle H^2 \rangle - \langle H \rangle^2}{\langle H \rangle^2} \sim \frac{1}{N} \to 0 \end{align}

as sketched in Fig. 3.2. Therefore, the microcanonical and canonical ensembles are equivalent, in the sense that the energy only fluctuates around a fixed value in both cases. In the canonical ensemble, however, the energy is not given and needs to be computed. Further, this theorem also shows that the contribution of the states with a very large energy is negligible: the weight e−βHe^{-\beta H} falls off exponentially, and the fluctuation is small.

TikZ 源码
\begin{tikzpicture}[>=stealth, thick, font=\small, x=0.8cm, y=2.8cm]
\draw[->] (0,0) -- (10.5,0) node[below] {$N$};
\draw[->] (0,0) -- (0,1.05) node[above] {$\frac{\sqrt{\langle(\Delta E)^2\rangle}}{U}$};
\node[below left] at (0,0) {$O$};
\draw[blue] plot[domain=0.95:10, samples=120] (\x, {0.85/sqrt(\x)});
\draw[dashed] (1,0) -- (1,0.85);
\draw[dashed] (4,0) -- (4,0.425);
\draw[dashed] (4,0.425) -- (0,0.425);
\draw[dashed] (1,0.85) -- (0,0.85);
\fill (1,0.85) circle (2pt);
\fill (4,0.425) circle (2pt);
\fill (9,0.2833) circle (2pt);
\node[right, xshift=4pt] at (1,0.85) {$N$};
\node[right, xshift=4pt] at (4,0.425) {$4N$};
\node[above] at (9,0.32) {$O(N^{-1/2})$};
\end{tikzpicture}

In the figure the relative fluctuation of the energy is drawn against NN; the curve is O(N−1/2)O(N^{-1/2}), so quadrupling the system halves the relative fluctuation.

Boltzmann statistical theory

Consider NN identical quasi-independent particles,

H=∑iϵ(pi,qi)\begin{align} H = \sum_i \epsilon(p_i,q_i) \end{align}

where now the index ii labels particles. Then

QN(V,T)=1N!∑p,qe−βH=1N!∑p,q∏ie−βϵ(pi,qi)=1N!(∑pi,qie−βϵ(pi,qi))N=1N![Z(β,V)]N=e−βA(V,T)\begin{align} Q_N(V,T) &= \frac{1}{N!}\sum_{p,q} e^{-\beta H}\\ &= \frac{1}{N!}\sum_{p,q}\prod_i e^{-\beta\epsilon(p_i,q_i)} = \frac{1}{N!}\left(\sum_{p_i,q_i} e^{-\beta\epsilon(p_i,q_i)}\right)^N\\ &= \frac{1}{N!}\left[Z(\beta,V)\right]^N = e^{-\beta A(V,T)} \end{align}

where Z(β,V)=∑p,qe−βϵ(p,q)Z(\beta,V) = \sum_{p,q} e^{-\beta\epsilon(p,q)} is the partition function of a single particle, the same Z(β,y)Z(\beta,y) introduced in the previous chapter, with yy replaced by VV.

Using log⁡N!≈Nlog⁡N−N\log N! \approx N\log N - N, we then have log⁡QN≈Nlog⁡Z−Nlog⁡N+N=Nlog⁡(Z/N)+N\log Q_N \approx N\log Z - N\log N + N = N\log(Z/N) + N, i.e.

A(V,T)=−NkTlog⁡Z(β,V)N−NkT=−NkT(log⁡Z(β,V)N+1)\begin{align} A(V,T) = -NkT\log\frac{Z(\beta,V)}{N} - NkT = -NkT\left(\log\frac{Z(\beta,V)}{N} + 1\right) \end{align}

The constant term 11 comes from Stirling’s approximation, and it cannot be dropped when the entropy is computed. Then

S=−(∂A∂T)V=Nklog⁡ZN+NkT∂log⁡Z∂T+Nk=Nklog⁡ZN+NkT∂log⁡Z∂β∂β∂T+Nk=Nk(log⁡Z(β,V)N+1−β∂log⁡Z(β,V)∂β)\begin{align} S &= -\left(\frac{\partial A}{\partial T}\right)_V\\ &= Nk\log\frac{Z}{N} + NkT\frac{\partial \log Z}{\partial T} + Nk\\ &= Nk\log\frac{Z}{N} + NkT\frac{\partial \log Z}{\partial \beta}\frac{\partial \beta}{\partial T} + Nk\\ &= Nk\left(\log\frac{Z(\beta,V)}{N} + 1 - \beta\frac{\partial \log Z(\beta,V)}{\partial \beta}\right) \end{align}

since ∂β/∂T=−β/T\partial\beta/\partial T = -\beta/T.

Comparing Z(β,V)Z(\beta,V) here with Z(β,y)Z(\beta,y) introduced in the previous chapter, the only difference is that the energy for calculating Z(β,V)Z(\beta,V) here is not bounded by the total energy. But this difference is negligibly small, since ϵ≪E∝N\epsilon \ll E \propto N.

Some applications of canonical ensemble

Equipartition theorem

Let the Hamiltonian be

H=12∑iaipi2+U({qi})\begin{align} H = \frac{1}{2}\sum_i a_i p_i^2 + U(\{q_i\}) \end{align}

then ⟨12aipi2⟩=12kT\left\langle \frac{1}{2} a_i p_i^2 \right\rangle = \frac{1}{2}kT.

Proof:

⟨12aipi2⟩=∫−∞+∞12aipi2 e−βH d3Npd3Nq∫−∞+∞e−βH d3Npd3Nq=∫−∞+∞12aipi2 e−β12aipi2dpi∫−∞+∞e−β12aipi2dpi\begin{align} \left\langle \frac{1}{2} a_i p_i^2 \right\rangle &= \frac{\displaystyle\int_{-\infty}^{+\infty} \frac{1}{2} a_i p_i^2\, e^{-\beta H}\, \dd^{3N}p \dd^{3N}q}{\displaystyle\int_{-\infty}^{+\infty} e^{-\beta H}\, \dd^{3N}p \dd^{3N}q}\\ &= \frac{\displaystyle\int_{-\infty}^{+\infty} \frac{1}{2}a_i p_i^2\, e^{-\beta \frac{1}{2}a_i p_i^2}\dd p_i}{\displaystyle\int_{-\infty}^{+\infty} e^{-\beta \frac{1}{2}a_i p_i^2}\dd p_i} \end{align}

because the integrations over all the other variables cancel between the numerator and the denominator. For the numerator, integrating by parts,

numerator=∫12aipi2 e−β12aipi2dpi=∫12aipi⋅pie−β12aipi2dpi=−12β[pie−β12aipi2]−∞+∞+12β∫e−β12aipi2dpi=12kT⋅denominator\begin{align} \text{numerator} &= \int \frac{1}{2}a_i p_i^2\, e^{-\beta \frac{1}{2}a_i p_i^2}\dd p_i = \int \frac{1}{2}a_i p_i \cdot p_i e^{-\beta\frac{1}{2}a_i p_i^2}\dd p_i\\ &= -\frac{1}{2\beta}\left[ p_i e^{-\beta\frac{1}{2}a_i p_i^2} \right]_{-\infty}^{+\infty} + \frac{1}{2\beta}\int e^{-\beta\frac{1}{2}a_i p_i^2}\dd p_i\\ &= \frac{1}{2}kT \cdot \text{denominator} \end{align}

where the boundary term vanishes because H→∞H \to \infty as pi→±∞p_i \to \pm\infty. Therefore ⟨12aipi2⟩=12kT\left\langle \frac{1}{2} a_i p_i^2 \right\rangle = \frac{1}{2}kT, as claimed.

The condition for the proof is that the Boltzmann factor decays at the boundary, i.e. that the quadratic coefficient is positive, ai>0a_i > 0, and that the integration over pip_i can be extended to ±∞\pm\infty. The same manipulation applies to any variable appearing quadratically in HH; it does not matter whether it is a coordinate or a momentum, and the potential energy U({qi})U(\{q_i\}) plays no role in the average.

Exercise: if H(ξ→±∞)→∞H(\xi \to \pm\infty) \to \infty, then ⟨ξ∂H∂ξ⟩=kT\left\langle \xi \frac{\partial H}{\partial \xi} \right\rangle = kT.

Compare this with the derivation in the previous chapter. There the same identity required a careful treatment of the energy shell, integration by parts on the surface H=EH = E, and the neglect of a term containing (E−H)(E-H). Here the shell is gone, the average is an ordinary Gaussian integral, and the proof takes three lines. This is the practical gain of the canonical ensemble.

For a Hamiltonian that is a sum of quadratic terms, H=∑iAiPi2+∑iBiQi2H = \sum_i A_i P_i^2 + \sum_i B_i Q_i^2, the theorem gives ⟨H⟩=f2kT\langle H \rangle = \frac{f}{2}kT with ff the number of quadratic degrees of freedom, as derived in the previous chapter.

Ideal gases

For an ideal gas, H=12m∑ipi2H = \frac{1}{2m}\sum_i p_i^2, and

QN(V,T)=1N!∫d3Npd3Nq e−β∑ipi2/2m=VNN!(∫d3p e−βp2/2m)N=VNN![q(β)]N\begin{align} Q_N(V,T) &= \frac{1}{N!}\int \dd^{3N}p \dd^{3N}q\, e^{-\beta \sum_i p_i^2/2m}\\ &= \frac{V^N}{N!}\left(\int \dd^3 p\, e^{-\beta p^2/2m}\right)^N\\ &= \frac{V^N}{N!}\left[q(\beta)\right]^N \end{align}

with

q(β)=∫d3p e−βp2/2m=∫0∞dp p2e−p2/2mkT∫dΩ=(2πmkT)3/2\begin{align} q(\beta) = \int \dd^3 p\, e^{-\beta p^2/2m} = \int_0^\infty \dd p\, p^2 e^{-p^2/2mkT}\int \dd\Omega = (2\pi mkT)^{3/2} \end{align}

using

∫0∞dp p2e−p2/2mkT=π4(2mkT)3/2,∫dΩ=4π\begin{align} \int_0^\infty \dd p\, p^2 e^{-p^2/2mkT} = \frac{\sqrt{\pi}}{4}(2mkT)^{3/2},\qquad \int \dd\Omega = 4\pi \end{align}

Then

A(V,T)=−kTlog⁡QN(V,T)=−NkT(log⁡VN+32log⁡(2πmkT)+1)\begin{align} A(V,T) &= -kT\log Q_N(V,T)\\ &= -NkT\left(\log\frac{V}{N} + \frac{3}{2}\log(2\pi mkT) + 1\right) \end{align}

and

S=−(∂A∂T)V=Nk(log⁡VN+32log⁡(2πmkT)+1)+NkT⋅32⋅1T=Nk(log⁡VN+32log⁡(2πmkT)+52)\begin{align} S &= -\left(\frac{\partial A}{\partial T}\right)_V\\ &= Nk\left(\log\frac{V}{N} + \frac{3}{2}\log(2\pi mkT) + 1\right) + NkT\cdot\frac{3}{2}\cdot\frac{1}{T}\\ &= Nk\left(\log\frac{V}{N} + \frac{3}{2}\log(2\pi mkT) + \frac{5}{2}\right) \end{align} P=−(∂A∂V)T=NkTV\begin{align} P = -\left(\frac{\partial A}{\partial V}\right)_T = \frac{NkT}{V} \end{align}

This is the equation of state. For the internal energy, U=A+TS=32NkTU = A + TS = \frac{3}{2}NkT. Eliminating TT in favour of UU, i.e. 2πmkT=4πmU/(3N)2\pi mkT = 4\pi mU/(3N),

S=Nk(log⁡VN+32log⁡4πmU3N+52)\begin{align} S = Nk\left(\log\frac{V}{N} + \frac{3}{2}\log\frac{4\pi mU}{3N} + \frac{5}{2}\right) \end{align}

Everything is the same as that from the microcanonical ensemble in the previous chapter: the equation of state, U=32NkTU = \frac{3}{2}NkT, and the entropy as a function of VV and UU, including the V/NV/N under the logarithm that solves the Gibbs paradox.

Two remarks are in order. First, the factor 1/N!1/N! is essential; without it the entropy would contain log⁡V\log V instead of log⁡(V/N)\log(V/N), which is not extensive. Second, no factor of h3h^3 appears in the measure d3pd3q\dd^3 p \dd^3 q: a choice of the unit volume of phase space only shifts SS by a term proportional to NN, i.e. by a constant per particle, and does not affect PP, UU, CVC_V or any derivative of AA. That constant cannot be fixed inside classical statistical mechanics.

The calculation is therefore classical throughout: the particles are treated as distinguishable up to permutations, and the sum over states is an integral over phase space. This describes a dilute gas at high temperature, where the particles are on average far apart compared with their quantum spread. At low temperature or high density the counting of states has to be redone with quantum statistics, and the 1/N!1/N! of the Gibbs factor is then replaced by the correct symmetry of the many-particle wave function.

Ising model

The Ising model is the simplest model for magnetic materials, and it exhibits a phase transition.

Fig. 3.3 shows a square lattice in two dimensions, describing a crystal. On each lattice site there is a magnet, described by Si=±1S_i = \pm 1.

TikZ 源码
\begin{tikzpicture}[>=stealth, thick, font=\small, x=1.35cm, y=1.35cm]
% lattice
\foreach \i in {0,1,2,3} {
\draw[gray!55] (0,\i) -- (3,\i);
\draw[gray!55] (\i,0) -- (\i,3);
}
% spins
\foreach \x/\y/\s in {
0/0/1, 1/0/-1, 2/0/1, 3/0/1,
0/1/-1, 1/1/-1, 2/1/1, 3/1/-1,
0/2/1, 1/2/1, 2/2/-1, 3/2/-1,
0/3/-1, 1/3/1, 2/3/1, 3/3/-1} {
\fill (\x,\y) circle (1.6pt);
\draw[->, blue] (\x,\y-0.26*\s) -- (\x,\y+0.26*\s);
}
% nearest neighbour pair
\draw[red, dashed, thick] (0.15,1) -- (0.85,1);
\node[red, above] at (0.5,1.12) {$\langle ij\rangle$};
% labels
\node at (1.5,3.7) {square lattice};
\draw[<->] (2.55,3.05) -- (3.25,3.05);
\node[above] at (2.9,3.05) {$a$};
\node at (1.5,-0.75) {$S_i=\pm 1$ on every site};
\end{tikzpicture}

The Hamiltonian is written as

−1kTH=K∑⟨ij⟩SiSj+h∑iSi,Si=±1\begin{align} -\frac{1}{kT}H = K \sum_{\langle ij \rangle} S_i S_j + h \sum_i S_i, \qquad S_i = \pm 1 \end{align}

where

⟨ij⟩:nearest neighbourJ=−kTK:couplinghˉ=−kTh:external magnetic field\begin{align} \langle ij \rangle &: \text{nearest neighbour}\\ J &= -kT K : \text{coupling}\\ \bar h &= -kT h : \text{external magnetic field} \end{align}

It is a convention to put the whole Hamiltonian in units of kTkT, because only the combination H/kTH/kT enters the Boltzmann factor. With this convention the weight of a configuration is eK∑SiSj+h∑Sie^{K\sum S_iS_j + h\sum S_i}, so K>0K > 0 favours parallel neighbouring spins, i.e. it is the ferromagnetic case, while hh favours one sign of SiS_i. The energy of a bond is JSiSj=−kTK SiSjJ S_i S_j = -kT K\, S_i S_j, and the energy of a spin in the external field is hˉSi=−kTh Si\bar h S_i = -kT h\, S_i.

The canonical ensemble is described by ρ∝e−H/kT\rho \propto e^{-H/kT}.

Omitting the Gibbs factor, the partition function is written as

Z=∑{Si}e−H/kT\begin{align} Z = \sum_{\{S_i\}} e^{-H/kT} \end{align}

Note that no 1/N!1/N! appears here: the lattice sites are labelled, so the configurations are distinguishable, and the sum runs over the 2N2^N configurations of the NN spins.

The average magnetization is

M=1Z∑{Si}(1N∑iSi)e−H/kT\begin{align} M = \frac{1}{Z}\sum_{\{S_i\}} \left( \frac{1}{N}\sum_i S_i \right) e^{-H/kT} \end{align}

Solvable cases, with dd now denoting the spatial dimension:

  • d=1d = 1: there is no real phase transition;
  • d=2d = 2: too difficult, and not treated here.

The result for h=0h = 0 is the following. There is a critical temperature TCT_C such that

T>TC:M=0T<TC:M≠0T=TC:M=0 continuous,∂M/∂T discontinuous\begin{align} T > T_C&: \quad M = 0\\ T < T_C&: \quad M \neq 0\\ T = T_C&: \quad M = 0\ \text{continuous},\quad \partial M/\partial T\ \text{discontinuous} \end{align}

and near TCT_C the magnetization behaves as

M∝(−τ)β,τ=T−TCTC\begin{align} M \propto (-\tau)^{\beta}, \qquad \tau = \frac{T - T_C}{T_C} \end{align}

So MM is continuous at the transition while its derivative is not: the transition is continuous, with a jump in ∂M/∂T\partial M/\partial T. The exponent β\beta here is the usual critical exponent of the order parameter; unfortunately it is the same letter as β=1/kT\beta = 1/kT, and one has to tell them apart from the context.

How to solve, or at least approximate, such a model? The mean-field approximation replaces the interaction of a spin with its neighbours by the interaction with the average magnetization.

First, what is required of an approximation?

  • After the approximation, one can perform the calculation.
  • There is a clear physical meaning, and at extreme conditions, the approximation should be correct or roughly correct.

The mean-field replacement is

∑⟨ij⟩SiSj→∑⟨ij⟩Si⟨S⟩=d⟨S⟩∑iSi\begin{align} \sum_{\langle ij \rangle} S_i S_j \to \sum_{\langle ij \rangle} S_i \langle S \rangle = d \langle S \rangle \sum_i S_i \end{align}

where dd is the coordination number, i.e. the number of nearest neighbours of a site; for a hypercubic lattice it equals twice the spatial dimension, so d=2d = 2 for a chain and d=4d = 4 for the square lattice. In the last equality the sum over pairs is counted so that each site contributes dd bonds, i.e. each bond is counted twice, once from each end; this is the convention that leads to KC=1/dK_C = 1/d below.

After the replacement the Hamiltonian no longer couples different sites,

−1kTH=−1kT∑iH(Si),−1kTH(Si)=Kd⟨S⟩Si+hSi\begin{align} -\frac{1}{kT}H = -\frac{1}{kT}\sum_i H(S_i),\qquad -\frac{1}{kT}H(S_i) = Kd \langle S \rangle S_i + h S_i \end{align}

and therefore

Z=ZiN,Zi=∑Si=±1e−1kTH(Si)=∑Si=±1eKd⟨S⟩Si+hSi=2cosh⁡(Kd⟨S⟩+h)\begin{align} Z = Z_i^N, \qquad Z_i = \sum_{S_i = \pm 1} e^{-\frac{1}{kT}H(S_i)} = \sum_{S_i=\pm 1} e^{Kd\langle S\rangle S_i + hS_i} = 2\cosh\left( Kd\langle S\rangle + h \right) \end{align} M=⟨Si⟩=1Zi∑Si=±1Sie−1kTH(Si)=tanh⁡(Kd⟨S⟩+h)\begin{align} M = \langle S_i \rangle = \frac{1}{Z_i}\sum_{S_i = \pm 1} S_i e^{-\frac{1}{kT}H(S_i)} = \tanh\left( Kd\langle S \rangle + h \right) \end{align}

The self-consistent condition is M=⟨S⟩M = \langle S \rangle. For h=0h = 0,

M=tanh⁡(KdM)\begin{align} M = \tanh(KdM) \end{align}

Since tanh⁡x=x−x3/3+⋯\tanh x = x - x^3/3 + \cdots, we have

M=KdM−13(KdM)3+⋯\begin{align} M = KdM - \frac{1}{3}(KdM)^3 + \cdots \end{align}

The graphical solutions are shown in Fig. 3.4: the curve tanh⁡(KdM)\tanh(KdM) against the straight line MM itself.

TikZ 源码
\begin{tikzpicture}[>=stealth, thick, font=\small, x=1.15cm, y=1.15cm]
% ---------- (a) Kd < 1 ----------
\begin{scope}[shift={(0,0)}]
\draw[->] (-1.65,0) -- (1.65,0) node[below] {$M$};
\draw[->] (0,-1.45) -- (0,1.45);
\node[above] at (0,1.45) {$\tanh(KdM)$};
\draw[gray] (-1.3,-1.3) -- (1.3,1.3);
\draw[blue] plot[domain=-1.5:1.5, samples=150] (\x, {1-2/(exp(0.5*\x)+1)});
\fill (0,0) circle (2pt);
\node at (0,-1.85) {(a) $Kd<1$: only $M=0$};
\end{scope}
% ---------- (b) Kd > 1 ----------
\begin{scope}[shift={(4.8,0)}]
\draw[->] (-1.65,0) -- (1.65,0) node[below] {$M$};
\draw[->] (0,-1.45) -- (0,1.45);
\node[above] at (0,1.45) {$\tanh(KdM)$};
\draw[gray] (-1.3,-1.3) -- (1.3,1.3);
\draw[blue] plot[domain=-1.5:1.5, samples=150] (\x, {1-2/(exp(4*\x)+1)});
\fill (0,0) circle (2pt);
\fill (0.96,0.96) circle (2pt);
\fill (-0.96,-0.96) circle (2pt);
\node[above left] at (0.96,0.96) {$M_0$};
\node[below, yshift=-3pt] at (-0.96,-1.02) {$-M_0$};
\node at (0,-1.85) {(b) $Kd>1$: $M=0$ and $M=\pm M_0$};
\end{scope}
\end{tikzpicture}

For Kd<1Kd < 1, there is only one solution, M=0M = 0. For Kd>1Kd > 1, there are three roots, M=0M = 0 and M=±M0M = \pm M_0, i.e. two branches.

In an equilibrium state, the free energy should reach its minimum, and one can prove that M=±M0M = \pm M_0 is a physical solution, while M=0M = 0 is only stationary. Therefore

KCd=1,KC=1d\begin{align} K_C d = 1, \qquad K_C = \frac{1}{d} \end{align}

and the phase transition takes place.

What are the features of the system around KCK_C? Let

K=KC+ΔK,ΔK small⇒M small\begin{align} K = K_C + \Delta K, \qquad \Delta K\ \text{small} \Rightarrow M\ \text{small} \end{align}

Then

M=(KC+ΔK)dM−13(KC+ΔK)3d3M3≈M+ΔKdM−13M3−ΔKdM3≈M+ΔKdM−13M3\begin{align} M &= (K_C+\Delta K)dM - \frac{1}{3}(K_C+\Delta K)^3 d^3 M^3\\ &\approx M + \Delta K d M - \frac{1}{3}M^3 - \Delta K d M^3\\ &\approx M + \Delta K d M - \frac{1}{3}M^3 \end{align}

where KCd=1K_C d = 1 has been used in going to the last line, and the term ΔKM3\Delta K M^3 has been dropped because it is of higher order. Hence

M=±M0=±3ΔKKC\begin{align} M = \pm M_0 = \pm\sqrt{\frac{3\Delta K}{K_C}} \end{align}

Since K∝1/TK \propto 1/T with JJ and kk fixed, ΔK/KC≈−(T−TC)/TC=−τ\Delta K/K_C \approx -(T-T_C)/T_C = -\tau to leading order near TCT_C, so M∝(−τ)1/2M \propto (-\tau)^{1/2}: the mean-field value of the exponent β\beta is 1/21/2.

Exercise: derive ∂M/∂ΔK\partial M/\partial \Delta K, UU and CVC_V at and around KCK_C, and discuss their behavior at and around KCK_C.

Under what conditions is the mean-field approximation almost correct?

  • Higher spatial dimensions: then each spin has many neighbours, and the replacement of the neighbours by their average is less violent.
  • Long-range interactions: then the mean field is not an approximation but almost the interaction itself.

It should be kept in mind that the approximation has to be justified, not assumed. In d=1d = 1 the exact model has no transition at any finite temperature, and yet the mean-field condition above, with d=2d = 2 for a chain, predicts KC=1/2K_C = 1/2.

Advanced methods in statistical physics:

Approximate methods

  • Mean-field methods, and improved mean-field methods
  • Variational methods
  • Series expansions (high temperature and low temperature expansions, cumulant expansions, …)
  • Renormalization group methods (real space, momentum space)

Exact methods

  • Numerical solutions
  • Monte Carlo simulations
  • Molecular dynamics

Grand canonical ensemble

Now we allow the number of particles of the system to be non-conserved. The idea here is similar to that for deriving the canonical ensemble.

Γ\Gamma space: spanned by (p,q,N)(p,q,N), N=0,1,2,…N = 0,1,2,\dots

The grand canonical ensemble: a collection of systems, identical in composition and macroscopic conditions, but existing in different numbers of particles and different microscopic states, without interactions with each other.

A member of the ensemble, i.e. a microscopic state of the system, is represented by a point in Γ\Gamma space. The density distribution of these points is denoted by ρ(p,q,N)\rho(p,q,N). The arrangement is sketched in Fig. 3.1(b).

To find ρ(p,q,N)\rho(p,q,N), we consider a canonical ensemble of NN particles, volume VV, and temperature TT. We divide the system into two subsystems,

1: N1,V1N_1, V_1
2: N2=N−N1,V2=V−V1N_2 = N - N_1, V_2 = V - V_1

and consider the special case V2≫V1V_2 \gg V_1 and N2≫N1N_2 \gg N_1.

We designate the coordinates of the N1N_1 particles in V1V_1 by {p1,q1}\{p_1,q_1\}, and those in V2V_2 by {p2,q2}\{p_2,q_2\},

H(p,q,N)=H(p1,q1,N1)+H(p2,q2,N2)\begin{align} H(p,q,N) = H(p_1,q_1,N_1) + H(p_2,q_2,N_2) \end{align}

Note that H(p1,q1,N1)H(p_1,q_1,N_1) and H(p2,q2,N2)H(p_2,q_2,N_2) here are the same functions evaluated at different values of the arguments. This is different from the discussion of the canonical ensemble, since we now allow interchange of particles between the two subsystems: if a particle moves from V2V_2 to V1V_1, we change its coordinates from {p2,q2}\{p_2,q_2\} to {p1,q1}\{p_1,q_1\}.

The partition function of the whole canonical system is

QN(V,T)=1N!∫Vdpdq e−βH(p,q)=1N!∫dp1dp2∑N1=0NN!N1!N2!∫V1dq1∫V2dq2 exp⁡{−β[H(p1,q1,N1)+H(p2,q2,N2)]}=∑N1=0N1N1!∫V1dp1dq1 e−βH(p1,q1,N1)⋅1N2!∫V2dp2dq2 e−βH(p2,q2,N2)=∑N1=0NQN2(V2,T)N1!∫V1dp1dq1 e−βH(p1,q1,N1)\begin{align} Q_N(V,T) &= \frac{1}{N!}\int_V \dd p \dd q\, e^{-\beta H(p,q)}\\ &= \frac{1}{N!}\int \dd p_1 \dd p_2 \sum_{N_1=0}^{N} \frac{N!}{N_1! N_2!} \int_{V_1}\dd q_1 \int_{V_2}\dd q_2\, \exp\{-\beta[H(p_1,q_1,N_1) + H(p_2,q_2,N_2)]\}\\ &= \sum_{N_1=0}^{N} \frac{1}{N_1!}\int_{V_1}\dd p_1 \dd q_1\, e^{-\beta H(p_1,q_1,N_1)} \cdot \frac{1}{N_2!}\int_{V_2}\dd p_2 \dd q_2\, e^{-\beta H(p_2,q_2,N_2)}\\ &= \sum_{N_1=0}^{N} \frac{Q_{N_2}(V_2,T)}{N_1!}\int_{V_1}\dd p_1 \dd q_1\, e^{-\beta H(p_1,q_1,N_1)} \end{align}

Now the integration over dq1\dd q_1 is restricted to V1V_1, dq2\dd q_2 to V2V_2, and we need the sum over N1N_1. The argument is similar to the decomposition of the energy in deriving the canonical ensemble. The factorial number N!/(N1!N2!)N!/(N_1!N_2!) is the number of possible ways to distribute N1N_1 particles to V1V_1 and N2N_2 particles to V2V_2.

For example, for N=2N = 2,

∫Vdq1dq2=(∫V1+∫V2)(∫V1+∫V2)=∫V2∫V2+2∫V2∫V1+∫V1∫V1\begin{align} \int_V \dd q_1 \dd q_2 &= \left( \int_{V_1} + \int_{V_2} \right)\left( \int_{V_1} + \int_{V_2} \right)\\ &= \int_{V_2}\int_{V_2} + 2\int_{V_2}\int_{V_1} + \int_{V_1}\int_{V_1} \end{align}

where the binomial coefficients 2!/(N1!N2!)2!/(N_1!N_2!) count the terms.

The denominator N!N! is introduced to solve the Gibbs paradox. Whenever the number of particles is relevant in the physical phenomena, such a factor is needed. Here the Gibbs factor is essential, for all QNQ_N, QN1Q_{N_1} and QN2Q_{N_2}.

Therefore, one may define the probability distribution of finding N1N_1 particles in V1V_1 to be

ρ(p1,q1,N1)=QN2(V2,T)QN(V,T)e−βH(p1,q1,N1)N1!\begin{align} \rho(p_1,q_1,N_1) = \frac{Q_{N_2}(V_2,T)}{Q_N(V,T)}\frac{e^{-\beta H(p_1,q_1,N_1)}}{N_1!} \end{align}

Understanding: taking into account the Gibbs factor,

ρ(p1,q1,N1,p2,q2,N2)∝e−βH(p1,q1,N1)N1!e−βH(p2,q2,N2)N2!\begin{align} \rho(p_1,q_1,N_1,p_2,q_2,N_2) \propto \frac{e^{-\beta H(p_1,q_1,N_1)}}{N_1!}\frac{e^{-\beta H(p_2,q_2,N_2)}}{N_2!} \end{align}

If looking only at system 1, one should integrate over p2p_2 and q2q_2,

ρ(p1,q1,N1)∝QN2(V2,T)e−βH(p1,q1,N1)N1!\begin{align} \rho(p_1,q_1,N_1) \propto Q_{N_2}(V_2,T)\frac{e^{-\beta H(p_1,q_1,N_1)}}{N_1!} \end{align}

The factor

QN2(V2,T)QN(V,T)=exp⁡{−β[A(N−N1,V−V1,T)−A(N,V,T)]}\begin{align} \frac{Q_{N_2}(V_2,T)}{Q_N(V,T)} = \exp\{-\beta[A(N-N_1,V-V_1,T) - A(N,V,T)]\} \end{align}

ensures the normalization

∑N1=0N∫V1dp1dq1 ρ(p1,q1,N1)=1\begin{align} \sum_{N_1=0}^{N}\int_{V_1}\dd p_1 \dd q_1\, \rho(p_1,q_1,N_1) = 1 \end{align}

Since N≫N1N \gg N_1 and V≫V1V \gg V_1,

A(N−N1,V−V1,T)−A(N,V,T)=−N1μ+V1P\begin{align} A(N-N_1,V-V_1,T) - A(N,V,T) = -N_1 \mu + V_1 P \end{align}

where μ\mu and PP are respectively the chemical potential and the pressure of the whole system,

μ=(∂A(N2,V,T)∂N2)N2=NP=−(∂A(N,V2,T)∂V2)V2=V\begin{align} \mu &= \left(\frac{\partial A(N_2,V,T)}{\partial N_2}\right)_{N_2 = N}\\ P &= -\left(\frac{\partial A(N,V_2,T)}{\partial V_2}\right)_{V_2 = V} \end{align}

Note that μ\mu is a macroscopic parameter:

  • it is intensive, μ=μ(N,V,T)=μ(V/N,T)\mu = \mu(N,V,T) = \mu(V/N,T);
  • in equilibrium, μ=μ(V1/N1,T)=μ(V2/N2,T)\mu = \mu(V_1/N_1,T) = \mu(V_2/N_2,T).

Omitting the subscript 1,

ρ(p,q,N)=e−βPVeβμNN!e−βH(p,q,N),β=1kT\begin{align} \rho(p,q,N) = \frac{e^{-\beta PV} e^{\beta\mu N}}{N!}e^{-\beta H(p,q,N)}, \qquad \beta = \frac{1}{kT} \end{align}

In the thermodynamic limit, one allows the range of NN to be 0≤N<∞0 \le N < \infty. Here eβμN/N!e^{\beta\mu N}/N! is an additional term to the canonical distribution e−βH(p,q,N)e^{-\beta H(p,q,N)}, different from the microcanonical and canonical ensembles. In other words, even with the same energy H(p,q,N)H(p,q,N), the probability ρ(p,q,N)\rho(p,q,N) does depend on NN. However, it is very important that, independent of positive or negative μ\mu, the Gibbs factor 1/N!1/N! suppresses the probability of very large NN.

Additional to VV and TT, there is now another independent macroscopic parameter Nˉ\bar N, the average number of particles. If μ=0\mu = 0, Nˉ\bar N is not an independent macroscopic parameter, and it is fixed by VV and TT.

Question: does the energy non-conservation in the canonical ensemble lead to an additional macroscopic parameter?

Answer: no. In the canonical ensemble NN is fixed and TT is imposed by the reservoir, so the fluctuating energy is already determined by TT and the Hamiltonian, and no new independent variable appears. The extra parameter Nˉ\bar N of the grand canonical ensemble comes from allowing NN to change, not from the energy fluctuation.

To obtain thermodynamics, we keep in mind that there is now one more microscopic variable NN. As usual, we define the grand partition function

Ξ(μ,V,T)≡∑N=0∞eβμNQN(V,T)\begin{align} \Xi(\mu,V,T) \equiv \sum_{N=0}^{\infty} e^{\beta\mu N} Q_N(V,T) \end{align}

then

βPV=log⁡Ξ(μ,V,T)\begin{align} \beta P V = \log \Xi(\mu,V,T) \end{align}

with the grand potential Φ(μ,V,T)≡−kTlog⁡Ξ(μ,V,T)=−PV\Phi(\mu,V,T) \equiv -kT \log \Xi(\mu,V,T) = -PV.

This looks already like the equation of state, but μ\mu is not convenient for experimental measurements. Thus one computes the average number of particles,

Nˉ=⟨N⟩=1Ξ(μ,V,T)∑N=0∞NeβμNQN(V,T)=kT∂∂μlog⁡Ξ(μ,V,T)\begin{align} \bar N = \langle N \rangle = \frac{1}{\Xi(\mu,V,T)}\sum_{N=0}^{\infty} N e^{\beta\mu N} Q_N(V,T) = kT \frac{\partial}{\partial \mu}\log \Xi(\mu,V,T) \end{align}

therefore μ=μ(Nˉ,V,T)\mu = \mu(\bar N,V,T). In fact, such a relation may be also obtained through replacing NN by Nˉ\bar N in the definition of μ\mu.

Question: can one prove it?

Hint: the average of a quantity is equal to the most probable value.

Eliminating μ\mu between βPV=log⁡Ξ\beta PV = \log\Xi and Nˉ=kT ∂μlog⁡Ξ\bar N = kT\,\partial_\mu\log\Xi gives the real equation of state P=P(Nˉ,V,T)P = P(\bar N,V,T).

The particle number fluctuates in this ensemble, and the size of the fluctuation follows from one more derivative. Differentiating Nˉ=∂log⁡Ξ/∂(βμ)\bar N = \partial\log\Xi/\partial(\beta\mu) once more with respect to βμ\beta\mu,

⟨N2⟩−⟨N⟩2=kT∂⟨N⟩∂μ\begin{align} \langle N^2 \rangle - \langle N \rangle^2 = kT \frac{\partial \langle N \rangle}{\partial \mu} \end{align}

and therefore

⟨N2⟩−⟨N⟩2⟨N⟩2∝1⟨N⟩→0\begin{align} \frac{\langle N^2 \rangle - \langle N \rangle^2}{\langle N \rangle^2} \propto \frac{1}{\langle N \rangle} \to 0 \end{align}

so the canonical ensemble and the grand canonical ensemble are also equivalent. For the ideal gas this gives ⟨N2⟩−⟨N⟩2=Nˉ\langle N^2 \rangle - \langle N \rangle^2 = \bar N, as one verifies from the explicit relation μ(Nˉ,V,T)\mu(\bar N,V,T) computed below.

Let us keep the definition of the internal energy as the average value of the Hamiltonian. To calculate the internal energy, we denote y=eβμy = e^{\beta\mu},

U=−(∂∂βlog⁡Ξ(y,V,T))y,V,U=U(Nˉ,V,T)\begin{align} U = -\left(\frac{\partial}{\partial \beta}\log \Xi(y,V,T)\right)_{y,V}, \qquad U = U(\bar N,V,T) \end{align}

where the derivative is taken at fixed yy, so that the β\beta-dependence of μ\mu is not differentiated. Then

CV=(∂U∂T)V,NˉS=∫0TCVTdTA=U−TS\begin{align} C_V &= \left(\frac{\partial U}{\partial T}\right)_{V,\bar N}\\ S &= \int_0^T \frac{C_V}{T}\dd T\\ A &= U - TS \end{align}

Compared with the canonical ensemble, we have one more macroscopic parameter μ\mu, or Nˉ\bar N. Nˉ\bar N is more convenient for the experimental measurement than μ\mu. Once Nˉ\bar N is fixed, computations of the thermodynamic quantities are the same as in the canonical ensemble; for example, one may derive all the common ones from the free energy A(Nˉ,V,T)A(\bar N,V,T).

Please note that the dependence of the internal energy UU on Nˉ\bar N is only through μ\mu. The Hamiltonian itself does indeed rely on the number of particles, NN. But NN is a microscopic variable, and it is already summed up in the calculation of the average.

Exercise: calculate the relative fluctuation of the particle number.

The chemical potential

Thermodynamics

The chemical potential μ\mu is defined such that the free energy changes by μdNˉ\mu \dd \bar N when the number of particles changes by dNˉ\dd \bar N, at constant TT and VV. That is, μ\mu is the free energy carried by a single particle. Therefore,

dA=−PdV−SdT+μdNˉ\begin{align} \dd A = -P \dd V - S \dd T + \mu \dd \bar N \end{align}

Then, from U=A+TSU = A + TS, we may deduce a generalized form of the first law,

dU=−PdV+TdS+μdNˉ\begin{align} \dd U = -P \dd V + T \dd S + \mu \dd \bar N \end{align}

In other words, μ\mu is the energy carried by one particle, if SS and VV are kept constant: energy conservation has to take into account the energy transferred by the exchange of particles.

When μ\mu is positive, increasing Nˉ\bar N at constant TT and VV increases AA by μdNˉ>0\mu \dd\bar N > 0, so μ\mu tends to drive Nˉ\bar N to smaller values, to lower the free energy at constant TT and VV, and vice versa.

Example 1: an ideal gas.

QN=VN(2πmkT)3N/2N!\begin{align} Q_N = \frac{V^N (2\pi mkT)^{3N/2}}{N!} \end{align} A(N,V,T)=−NkT(log⁡V+32log⁡(2πmkT)−log⁡N+1)=−NkT(log⁡VN+32log⁡(2πmkT)+1)\begin{align} A(N,V,T) &= -NkT\left(\log V + \frac{3}{2}\log(2\pi mkT) - \log N + 1\right)\\ &= -NkT\left(\log\frac{V}{N} + \frac{3}{2}\log(2\pi mkT) + 1\right) \end{align}

where log⁡N!=Nlog⁡N−N\log N! = N\log N - N has been used. Then

μ=(∂A∂N)V,T=−kT(log⁡VN+32log⁡(2πmkT)+1)−NkT(−1N)=−kT(log⁡VN+32log⁡(2πmkT))\begin{align} \mu &= \left(\frac{\partial A}{\partial N}\right)_{V,T}\\ &= -kT\left(\log\frac{V}{N} + \frac{3}{2}\log(2\pi mkT) + 1\right) - NkT\left(-\frac{1}{N}\right)\\ &= -kT\left(\log\frac{V}{N} + \frac{3}{2}\log(2\pi mkT)\right) \end{align}

Here we should not forget the factor 1/N!1/N! in the partition function QNQ_N, since it solves the problem of the Gibbs paradox. Otherwise, for example, it leads to a problematic relation μ∼log⁡V\mu \sim \log V rather than μ∼log⁡(V/N)\mu \sim \log(V/N). Nor could the grand canonical ensemble be derived without it.

We may write

eβμ=NV(2πmkT)3/2\begin{align} e^{\beta\mu} = \frac{N}{V(2\pi mkT)^{3/2}} \end{align}

Therefore, μ\mu is positive or negative, depending on the temperature and the density of the gas; it vanishes when N/V=(2πmkT)3/2N/V = (2\pi mkT)^{3/2}.

In this simple case, one may directly verify that replacing NN by Nˉ\bar N just gives μ=μ(Nˉ,V,T)\mu = \mu(\bar N,V,T).

Example 2: NN identical quasi-independent particles, QN=1N!Z(β,V)NQ_N = \frac{1}{N!}Z(\beta,V)^N, where Z(β,V)Z(\beta,V) is the partition function of a single particle, and 1/N!1/N! is the Gibbs factor. Therefore

−βA=log⁡QN≈−N(log⁡N−1)+Nlog⁡Z(β,V)\begin{align} -\beta A = \log Q_N \approx -N(\log N - 1) + N\log Z(\beta,V) \end{align}

Thus

−βμ=−β∂A∂N=log⁡Z(β,V)N\begin{align} -\beta\mu = -\beta\frac{\partial A}{\partial N} = \log\frac{Z(\beta,V)}{N} \end{align}

On the other hand, from the theory of the most probable distribution, N=e−αZ(β,V)N = e^{-\alpha}Z(\beta,V), and one identifies α=−βμ\alpha = -\beta\mu.

A simple argument for the grand canonical ensemble: suppose that a large system consists of many identical quasi-independent subsystems, and each subsystem is with NN particles and described by the Hamiltonian H(p,q)H(p,q). According to the Maxwell-Boltzmann distribution, the probability distribution of finding a subsystem at (p,q,N)(p,q,N) is

ρ(p,q,N)∝e−α−βH(p,q)\begin{align} \rho(p,q,N) \propto e^{-\alpha - \beta H(p,q)} \end{align}

where α=−βμb\alpha = -\beta\mu_b, and μb\mu_b is the chemical potential of the large system. On the other hand, μb\mu_b is nothing but the free energy of the subsystem. Since the free energy is extensive, it can be written as μb=Nμ\mu_b = N\mu, with μ\mu being the chemical potential of the subsystem. Taking into account the Gibbs factor,

ρ(p,q,N)∝1N!eβμN−βH(p,q,N)\begin{align} \rho(p,q,N) \propto \frac{1}{N!}e^{\beta\mu N - \beta H(p,q,N)} \end{align}

Exercise: derive the thermodynamics of an ideal gas, i.e. the equation of state, and UU, CVC_V, SS, AA. Hint: to derive the entropy of the ideal gas, an isochoric transformation is not sufficient, and one needs also an isothermal transformation.

Chemical equilibrium

Suppose there are two kinds of particles in the grand canonical ensemble, H=H1+H2H = H_1 + H_2, and the interactions between the two kinds of particles are negligible,

Ξ=∑N1=0∞∑N2=0∞QN1QN2eβ(μ1N1+μ2N2)\begin{align} \Xi = \sum_{N_1=0}^{\infty}\sum_{N_2=0}^{\infty} Q_{N_1}Q_{N_2} e^{\beta(\mu_1 N_1 + \mu_2 N_2)} \end{align}

with

QNi=e−βAi(Ni,V,T),A=∑i=12Ai,Ai=−kTlog⁡QNi,μi=(∂Ai∂Ni)T,V,Nj≠i\begin{align} Q_{N_i} = e^{-\beta A_i(N_i,V,T)}, \qquad A = \sum_{i=1}^{2} A_i, \qquad A_i = -kT \log Q_{N_i}, \qquad \mu_i = \left(\frac{\partial A_i}{\partial N_i}\right)_{T,V,N_{j\neq i}} \end{align}

For example, in a mixture of water and ice, a molecule of water can be converted to that of ice, and vice versa.

Assume that the total number of particles is conserved, i.e. N=N1+N2N = N_1 + N_2 is a constant. In equilibrium, the free energy reaches its minimum,

0=δA=∑iδAi=∑i∂Ai∂NiδNi=∑iμiδNi\begin{align} 0 = \delta A = \sum_i \delta A_i = \sum_i \frac{\partial A_i}{\partial N_i}\delta N_i = \sum_i \mu_i \delta N_i \end{align}

From the conservation of the particle number, 0=δN=∑iδNi0 = \delta N = \sum_i \delta N_i, we obtain a condition for equilibrium,

μ1δN1+μ2δN2=μ1δN1−μ2δN1=0\begin{align} \mu_1 \delta N_1 + \mu_2 \delta N_2 = \mu_1 \delta N_1 - \mu_2 \delta N_1 = 0 \end{align}

i.e. μ1=μ2(V/N,T)\mu_1 = \mu_2(V/N,T).

In general, we may have several kinds of particles, and a reaction

ν1X1+ν2X2+⋯⇌ν1′Y1+ν2′Y2+⋯\begin{align} \nu_1 X_1 + \nu_2 X_2 + \cdots \rightleftharpoons \nu_1' Y_1 + \nu_2' Y_2 + \cdots \end{align}

We rewrite YY by XX, and ν′\nu' by ν\nu, then

∑i=1KνiXi=0\begin{align} \sum_{i=1}^{K} \nu_i X_i = 0 \end{align}

e.g. 2H2+O2⇌2H2O2H_2 + O_2 \rightleftharpoons 2H_2O with ν1=2\nu_1 = 2, ν2=1\nu_2 = 1, ν3=−2\nu_3 = -2.

Now, the conservation of the particle number is

δN1ν1=δN2ν2=⋯=δNKνK=const≡δN\begin{align} \frac{\delta N_1}{\nu_1} = \frac{\delta N_2}{\nu_2} = \cdots = \frac{\delta N_K}{\nu_K} = \text{const} \equiv \delta N \end{align}

e.g. δNH22=δNO21=δNH2O−2\frac{\delta N_{H_2}}{2} = \frac{\delta N_{O_2}}{1} = \frac{\delta N_{H_2O}}{-2}.

Note that now there is not only one equation for the conservation of the particle number. Any pair of particles forms an equation. Then, minimizing the free energy AA,

0=δA=∑i∂Ai∂NiδNi=∑iμiνiδN\begin{align} 0 = \delta A = \sum_i \frac{\partial A_i}{\partial N_i}\delta N_i = \sum_i \mu_i \nu_i \delta N \end{align}

we obtain

∑i=1Kμiνi=0\begin{align} \sum_{i=1}^{K} \mu_i \nu_i = 0 \end{align}

This is the general condition of chemical equilibrium: the chemical potentials, weighted by the stoichiometric coefficients with the sign convention above, sum to zero.

Summary

Canonical ensemble: system 1 in contact with a reservoir at temperature TT, and the reservoir is traced out. Only the energy of the system enters the distribution, through the Hamiltonian.

→ρ(p,q)∝e−βH(p,q)\rightarrow \rho(p,q) \propto e^{-\beta H(p,q)}, β=1/kT\beta = 1/kT

→QN(V,T)=1N!∫d3Npd3Nq e−βH=e−βA\rightarrow Q_N(V,T) = \frac{1}{N!}\int \dd^{3N}p \dd^{3N}q\, e^{-\beta H} = e^{-\beta A}

→A=U−TS\rightarrow A = U - TS as the characteristic function: PP, SS, UU, GG follow by differentiation, and the energy shell has disappeared from the integrals.

→\rightarrow energy fluctuation ⟨(ΔE)2⟩=kT2CV∝N\langle(\Delta E)^2\rangle = kT^2 C_V \propto N, relative fluctuation O(N−1/2)O(N^{-1/2}), so the canonical and microcanonical ensembles are equivalent.

→\rightarrow applications: equipartition 12kT\frac{1}{2}kT per quadratic term; the classical ideal gas, with the same S(V,U)S(V,U) as in the microcanonical ensemble once the Gibbs factor is included.

Ising model: the canonical ensemble on a lattice, solved in the mean-field approximation; KC=1/dK_C = 1/d, M=±3ΔK/KCM = \pm\sqrt{3\Delta K/K_C} near the transition, and the approximation is justified only for high dimensions or long-range interactions.

Grand canonical ensemble: the particle number is allowed to fluctuate, ρ∝1N!eβμN−βH\rho \propto \frac{1}{N!}e^{\beta\mu N - \beta H}.

→Ξ(μ,V,T)=∑NeβμNQN\rightarrow \Xi(\mu,V,T) = \sum_N e^{\beta\mu N}Q_N, βPV=log⁡Ξ\beta PV = \log\Xi, Φ=−PV\Phi = -PV

→Nˉ=kT ∂μlog⁡Ξ\rightarrow \bar N = kT\,\partial_\mu \log\Xi, ⟨(ΔN)2⟩=kT ∂μ⟨N⟩\langle(\Delta N)^2\rangle = kT\,\partial_\mu\langle N\rangle, again with relative fluctuation O(Nˉ−1/2)O(\bar N^{-1/2}), so this ensemble is equivalent to the canonical one.

→\rightarrow chemical potential: dA=−PdV−SdT+μdNˉ\dd A = -P\dd V - S\dd T + \mu\dd\bar N, dU=−PdV+TdS+μdNˉ\dd U = -P\dd V + T\dd S + \mu\dd\bar N; chemical equilibrium ∑iνiμi=0\sum_i \nu_i\mu_i = 0.

The drawback of the canonical ensemble is that NN must be fixed, which is why one passes to the grand canonical ensemble. The price is one more parameter μ\mu, which is not directly measured, so it is usually eliminated in favour of Nˉ\bar N.

Exercise

  • With the canonical ensemble, prove that if H(ξ→±∞)→∞H(\xi \to \pm\infty) \to \infty, then
⟨ξ∂H∂ξ⟩=kT\begin{align} \left\langle \xi \frac{\partial H}{\partial \xi} \right\rangle = kT \end{align}
  • With the mean-field approximation of the Ising model, derive ∂M/∂ΔK\partial M/\partial \Delta K, UU and CVC_V at and around KCK_C, and discuss their behavior at and around KCK_C.

  • Calculate the relative fluctuation of the particle number in the grand canonical ensemble.

  • With the grand canonical ensemble, derive the thermodynamics of an ideal gas, i.e. the equation of state, and UU, CVC_V, SS, AA.

  • Problems 7.1, 7.2 and 7.3 in the textbook.

  • Discussion: Gibbs paradox

Comment评论

添加新评论