Skip to content

Partition Functions and Thermodynamic Response

A source-dependent partition function generates equilibrium thermodynamics. Its first derivatives give expectation values, its second derivatives give isothermal response, and Legendre transforms exchange controlled sources for mean extensive variables. In a classical Gibbs ensemble the response is a connected covariance. In a quantum ensemble it generally involves an imaginary-time integral, even for a time-independent source. Every derivative below keeps the stated temperature, volume and other sources fixed.

Required background. Statistical Ensembles and Field Configurations defines the normalized measures used here. Helpful background. Current Sources and Generating Functionals gives the QFT source and Ward-identity framework.

One generating function, several thermodynamic potentials

Section titled “One generating function, several thermodynamic potentials”

Keep a finite volume VV and an ultraviolet regulator, and assume that the trace and derivatives below exist in the chosen source domain. For inverse temperature β>0\beta>0, chemical potentials μa\mu_a, and a real source hh coupled linearly to a Hermitian extensive observable MM, define

K=H−∑aμaQa−hM,Ξ=Tr⁡e−βK,ρ=Ξ−1e−βK.\mathcal K=H-\sum_a\mu_aQ_a-hM, \qquad \Xi=\operatorname{Tr}e^{-\beta\mathcal K}, \qquad \rho=\Xi^{-1}e^{-\beta\mathcal K}.

The operators and couplings in K\mathcal K are independent of temperature and of the source being differentiated, apart from the displayed linear dependence. Chemical potentials describe conserved charges compatible with the physical Hamiltonian at the chosen external fields; more general linear Gibbs sources obey the same derivative identities without automatically having that chemical-potential interpretation. Replacing the trace by a phase-space integral gives the classical formulas.

The Massieu function Ψ=log⁡Ξ\Psi=\log\Xi is dimensionless and the grand potential is

Ω=−Tlog⁡Ξ.\Omega=-T\log\Xi.

In a homogeneous extensive thermodynamic limit with negligible boundary work, Ω=−pV\Omega=-pV. Finite-volume pressure is instead defined by the volume derivative with its boundary conditions fixed. Differentiation at fixed β,V\beta,V, and all other sources gives

⟨Qa⟩=1β∂Ψ∂μa,⟨M⟩=1β∂Ψ∂h,⟨K⟩=−∂Ψ∂β.\langle Q_a\rangle =\frac1\beta\frac{\partial\Psi}{\partial\mu_a}, \qquad \langle M\rangle =\frac1\beta\frac{\partial\Psi}{\partial h}, \qquad \langle\mathcal K\rangle =-\frac{\partial\Psi}{\partial\beta}.

The last derivative is not ⟨H⟩\langle H\rangle when β\beta varies while μa\mu_a and hh are held fixed. Equivalently one may use dimensionless sources αa=βμa\alpha_a=\beta\mu_a; translating between the two parameterizations changes which derivative is taken.

For a canonical partition function Z(β,V)Z(\beta,V),

F=−Tlog⁡Z,S=−(∂F∂T)V,E=F+TS,p=−(∂F∂V)T.F=-T\log Z, \qquad S=-\left(\frac{\partial F}{\partial T}\right)_V, \qquad E=F+TS, \qquad p=-\left(\frac{\partial F}{\partial V}\right)_T.

These relations assume that the regulator and boundary work are held consistently while differentiating. A lattice calculation that changes the lattice spacing with temperature needs an explicit line of constant physics; differentiating bare parameters as though they were fixed physical couplings does not yield the thermodynamic energy.

Connected cumulants and susceptibility matrices

Section titled “Connected cumulants and susceptibility matrices”

One cannot differentiate a noncommuting operator exponential as an ordinary scalar exponential. At fixed β\beta, its first variation is

∂he−βK=∫0β ⁣dτ e−(β−τ)KMe−τK.\partial_h e^{-\beta\mathcal K} =\int_0^\beta\!\mathrm d\tau\, e^{-(\beta-\tau)\mathcal K}M e^{-\tau\mathcal K}.

Cyclicity of the trace makes the first derivative ∂hΨ=β⟨M⟩\partial_h\Psi=\beta\langle M\rangle. Differentiating a normalized expectation also differentiates Ξ−1\Xi^{-1}; this subtracts the disconnected product. Define the imaginary-time evolution and integrated connected correlation by

A(τ)=eτKAe−τK,δA=A−⟨A⟩,B(A,B)=∫0β ⁣dτ ⟨δA(τ)δB(0)⟩.\begin{aligned} A(\tau)&=e^{\tau\mathcal K}Ae^{-\tau\mathcal K}, &\delta A&=A-\langle A\rangle,\\ \mathcal B(A,B)&=\int_0^\beta\!\mathrm d\tau\, \langle\delta A(\tau)\delta B(0)\rangle. \end{aligned}

This is the integrated Kubo–Mori correlation; no extra factor of β\beta is included in its definition. For na=⟨Qa⟩/Vn_a=\langle Q_a\rangle/V the responses are

∂h2Ψ=β B(M,M),χab=(∂na∂μb)T,V,h,μc≠b=1VB(Qa,Qb).\begin{aligned} \partial_h^2\Psi&=\beta\,\mathcal B(M,M),\\ \chi_{ab} &=\left(\frac{\partial n_a}{\partial\mu_b}\right)_{T,V,h,\mu_{c\ne b}} =\frac{1}{V}\mathcal B(Q_a,Q_b). \end{aligned}

These are isothermal equilibrium derivatives: the state is allowed to re-equilibrate at the same temperature. They need not equal the zero-frequency retarded response of an isolated system with conserved, nonrelaxing components. The operator-exponential expansion and this distinction appear in Kubo 1957, § 3, pp. 576–577, Eqs. (3.15)–(3.21).

For a classical Gibbs measure, or for a quantum observable commuting with the full K\mathcal K, the integrand is independent of τ\tau. In that case

∂h2Ψ=β2⟨(δM)2⟩,χab=βV⟨δQaδQb⟩\partial_h^2\Psi=\beta^2\langle(\delta M)^2\rangle, \qquad \chi_{ab}=\frac{\beta}{V}\langle\delta Q_a\delta Q_b\rangle

for the corresponding commuting observables. Commutation of the charges with one another alone is not enough: their commutation with the actual Gibbs generator matters. Higher source derivatives likewise generate connected imaginary-time integrals in the quantum case, rather than unrestricted equal-time moments.

The response matrix is positive semidefinite for Hermitian linear sources in a positive Gibbs state, including the noncommuting case. To see this, take a real linear combination A=∑auaQaA=\sum_a u_aQ_a and diagonalize K\mathcal K, with eigenvalues ϵi\epsilon_i and probabilities pi=e−βϵi/Ξp_i=e^{-\beta\epsilon_i}/\Xi. Then

B(A,A)=∑i,jwij∣(δA)ij∣2,wij={pi−pjϵj−ϵi,ϵi≠ϵj,βpi,ϵi=ϵj.\mathcal B(A,A) =\sum_{i,j} w_{ij}\lvert(\delta A)_{ij}\rvert^2, \qquad w_{ij}=\begin{cases} \dfrac{p_i-p_j}{\epsilon_j-\epsilon_i},&\epsilon_i\ne\epsilon_j,\\[3pt] \beta p_i,&\epsilon_i=\epsilon_j. \end{cases}

Every weight is nonnegative, since the Gibbs probability decreases with energy. Thus uaχabub≥0u_a\chi_{ab}u_b\ge0; symmetry follows also from the commuting derivatives of Ψ\Psi. A negative eigenvalue cannot describe this exact finite-volume equilibrium Hessian. It can arise from an unstable approximate branch, a different constraint or an incorrectly assembled response.

In the canonical ensemble, the heat capacity at fixed volume is a variance because the energy commutes with its Gibbs generator:

CV=(∂E∂T)V=⟨(ΔH)2⟩T2,C_V=\left(\frac{\partial E}{\partial T}\right)_V =\frac{\langle(\Delta H)^2\rangle}{T^2},

provided HH has no explicit temperature dependence. Effective Hamiltonians with temperature-dependent matched coefficients require derivative terms from those coefficients.

The source hh and mean m=⟨M⟩/Vm=\langle M\rangle/V are conjugate. In a differentiable finite-volume system one may define

g(h)=−TVlog⁡Ξ(h),f(m)=g(h)+hm,m=−∂g∂h.g(h)=-\frac{T}{V}\log\Xi(h), \qquad f(m)=g(h)+hm, \qquad m=-\frac{\partial g}{\partial h}.

Then ∂f/∂m=h\partial f/\partial m=h and

∂m∂h=−(∂2g∂h2)=1VB(M,M)≥0.\frac{\partial m}{\partial h} =-\left(\frac{\partial^2 g}{\partial h^2}\right) =\frac{1}{V}\mathcal B(M,M)\ge0.

Where this susceptibility is strictly positive the local inverse exists and f′′(m)=1/χf''(m)=1/\chi. A zero response requires a constrained or generalized inverse. At phase coexistence the infinite-volume function may not be differentiable. The correct transform is Legendre–Fenchel, and the inverse map can become set-valued. A metastable nonconvex effective potential can remain useful as a coarse-grained approximation, but it is not the exact convex thermodynamic Legendre transform.

Let H=Δσz/2H=\Delta\sigma_z/2, M=σxM=\sigma_x and Δ>0\Delta>0, with no chemical potential. The source-dependent energies are ±R\pm R, where R=Δ2/4+h2R=\sqrt{\Delta^2/4+h^2}. Direct diagonalization gives

Ξ(h)=2cosh⁡(βR),⟨M⟩h=hRtanh⁡(βR),∂h⟨M⟩h∣h=0=2Δtanh⁡βΔ2.\Xi(h)=2\cosh(\beta R), \qquad \langle M\rangle_h=\frac{h}{R}\tanh(\beta R), \qquad \left.\partial_h\langle M\rangle_h\right|_{h=0} =\frac{2}{\Delta}\tanh\frac{\beta\Delta}{2}.

At zero source ⟨M⟩=0\langle M\rangle=0 and M2=1M^2=1, so the naive equal-time expression would instead give β\beta. The two agree to leading order at high temperature, βΔ≪1\beta\Delta\ll1, but not generally. The two off-diagonal terms in the spectral sum for B(M,M)\mathcal B(M,M) give exactly 2tanh⁡(βΔ/2)/Δ2\tanh(\beta\Delta/2)/\Delta. This checks both the imaginary-time integration and its normalization.

For independent bosonic modes of frequencies ωk\omega_{\mathbf k},

log⁡Z=−∑klog⁡(1−e−βωk)\log Z=-\sum_{\mathbf k}\log\left(1-e^{-\beta\omega_{\mathbf k}}\right)

after subtracting the temperature-independent vacuum energy, so that ZZ here contains only thermal excitations. Their energy is

E=∑kωknB(ωk),nB(ω)=1eβω−1.E=\sum_{\mathbf k}\omega_{\mathbf k}n_B(\omega_{\mathbf k}), \qquad n_B(\omega)=\frac1{e^{\beta\omega}-1}.

Differentiating once more gives a positive heat capacity mode by mode. The same answer follows from the variance of occupation number, ⟨(Δn)2⟩=nB(1+nB)\langle(\Delta n)^2\rangle=n_B(1+n_B), independently checking the sign and the use of log⁡Z\log Z rather than ZZ as the cumulant generator.

Unstated held-fixed data. ∂β\partial_\beta at fixed μ\mu differs from ∂β\partial_\beta at fixed βμ\beta\mu. Declare the source coordinates before differentiating.

Intensive–extensive mismatch. A charge variance is extensive away from criticality. Divide by VV before comparing it with an intensive susceptibility.

Contact terms omitted. A source can enter both the state and the operator or action explicitly. Second derivatives then contain contact or diamagnetic terms; the connected two-point function alone is not always the complete response.

The shared convention and limit table records which finite-volume definitions and limit statements must remain separate. Spatial correlator representations of the susceptibility continue on Correlations, Susceptibilities, and Correlation Lengths.

The schematic below organizes the relationships used on this page. Inspect it with this question in mind: How do ensembles, partition functions, response derivatives, Legendre transforms, and phase probabilities connect?

The finite-volume partition function generates response, Legendre transforms change controlled variables, and large-deviation rate functions encode phase weights only after the thermodynamic-limit order is declared.

The finite-volume partition function generates response, Legendre transforms change controlled variables, and large-deviation rate functions encode phase weights only after the thermodynamic-limit order is declared. Solid connections show the primary relation; dashed outlines or arrows mark qualifications and failure boundaries. The diagram is schematic and not to scale.

The surrounding discussion supplies the relevant equations and checks in text form; the figure is a navigational summary.

Show that the grand-canonical number susceptibility of one bosonic mode is ∂μ⟨n⟩=βn(1+n)\partial_\mu\langle n\rangle=\beta n(1+n) for μ<ω\mu<\omega.

Solution

With n=[eβ(ω−μ)−1]−1n=[e^{\beta(\omega-\mu)}-1]^{-1}, differentiation gives ∂μn=βeβ(ω−μ)/[eβ(ω−μ)−1]2=βn(1+n)\partial_\mu n=\beta e^{\beta(\omega-\mu)}/[e^{\beta(\omega-\mu)}-1]^2=\beta n(1+n). The divergence as μ→ω−\mu\to\omega^- signals loss of stability of the uncondensed single-mode description.

  • Kubo, Ryogo. “Statistical-Mechanical Theory of Irreversible Processes. I. General Theory and Simple Applications to Magnetic and Conduction Problems.” Journal of the Physical Society of Japan 12, no. 6 (1957): 570–586. doi:10.1143/JPSJ.12.570; Open PDF.
  • Callen, Herbert B. Thermodynamics and an Introduction to Thermostatistics. 2nd ed. New York: Wiley, 1985.
  • Kardar, Mehran. Statistical Physics of Particles. Cambridge: Cambridge University Press, 2007. doi:10.1017/CBO9780511815898.

Original QFT.org content:CC BY 4.0, unless an item supplies different terms. Third-party material retains its own terms.