Skip to content

Thermodynamic Potentials

Thermodynamic potentials are different coordinate descriptions of the same equilibrium thermodynamics. Each potential replaces one or more extensive variables by the intensive variables imposed by a reservoir. The replacement is a Legendre transform, and it determines both the differential identities and the equilibrium principle appropriate to the experimental controls.

For a simple one-component system, the central relations are

F=U−TS,G=U−TS+PV,ΩG=U−TS−μN.\begin{aligned} F &= U-TS, \\ G &= U-TS+PV, \\ \Omega_{\mathrm G} &= U-TS-\mu N. \end{aligned}

Their natural variables differ:

U=U(S,V,N),F=F(T,V,N),G=G(T,P,N),ΩG=ΩG(T,V,μ).\begin{aligned} U &= U(S,V,N), \\ F &= F(T,V,N), \\ G &= G(T,P,N), \\ \Omega_{\mathrm G} &= \Omega_{\mathrm G}(T,V,\mu). \end{aligned}

The subscript on ΩG\Omega_{\mathrm G} distinguishes the grand potential from symbols sometimes used for microcanonical state counts. All four quantities have units of energy.

This page is the canonical home for the thermodynamic-potential network, its Legendre transforms, natural variables, response derivatives, and stability conditions. The ensemble pages own the construction of the corresponding quantum states, while Partition Functions owns the trace and generating-function machinery. Landau Theory owns constrained or off-shell uniform order-parameter potentials and their polynomial minima.

Let H^\hat H be the quantum Hamiltonian and ρ\rho a normalized density operator. The microscopic expectation value of energy is

U=Tr⁡(ρH^).U = \operatorname{Tr}(\rho\hat H).

The von Neumann entropy, with thermodynamic units, is

S(ρ)=−kBTr⁡(ρln⁡ρ).S(\rho) = -k_{\mathrm B} \operatorname{Tr} \left( \rho\ln\rho \right).

These formulas apply to finite quantum systems. Thermodynamic potentials become thermodynamic state functions when equilibrium macrostates can be parameterized by variables such as S,V,N,T,P,S,V,N,T,P, and μ\mu. The Thermodynamic Limit page explains the scaling assumptions behind that macroscopic description.

The scaling assumptions behind “extensive” and “intensive,” including boundary corrections and failures of additivity, are developed in Extensive and Intensive Quantities.

Two distinctions matter from the beginning:

  • H^\hat H is an operator; UU is an expectation value or thermodynamic state function.
  • S(ρ)S(\rho) is defined for any density operator; thermodynamic entropy is its equilibrium use together with specified macroscopic constraints.

The thermodynamic relations below therefore require more than a formal density matrix. They assume an equilibrium family, specified controls, and enough regularity to define the stated derivatives.

For a simple compressible, one-component system,

dU=T dS−P dV+μ dN.dU = T\,dS - P\,dV + \mu\,dN.

This differential defines the intensive variables in the internal-energy representation:

T=(∂U∂S)V,N,P=−(∂U∂V)S,N,μ=(∂U∂N)S,V.\begin{aligned} T &= \left( \frac{\partial U}{\partial S} \right)_{V,N}, \\ P &= - \left( \frac{\partial U}{\partial V} \right)_{S,N}, \\ \mu &= \left( \frac{\partial U}{\partial N} \right)_{S,V}. \end{aligned}

The minus sign in the pressure term follows the convention that positive pressure does positive work when the system expands. If additional work coordinates XaX_a are present, the fundamental relation acquires terms of the form

∑aYa dXa,\sum_a Y_a\,dX_a,

with signs fixed by the work convention and by how the Hamiltonian depends on the external controls.

The entropy representation follows by solving locally for S=S(U,V,N)S=S(U,V,N):

dS=1T dU+PT dV−μT dN.dS = \frac{1}{T}\,dU + \frac{P}{T}\,dV - \frac{\mu}{T}\,dN.

Thus entropy and internal energy contain the same equilibrium equation of state when the transformation is regular. The choice between them is a choice of natural variables and equilibrium principle, not a choice of different physics.

An isolated composite system approaches equilibrium by maximizing its total entropy at fixed total energy, volume, and particle number. A subsystem coupled to a large reservoir is controlled by different variables. The reservoir fixes an intensive parameter while the conjugate extensive quantity fluctuates in the subsystem.

For a reservoir,

dSR=1TR,dUR+PRTR,dVR−μRTR,dNR.dS_{\mathrm R} = \frac{1}{T_{\mathrm R}},dU_{\mathrm R} + \frac{P_{\mathrm R}}{T_{\mathrm R}},dV_{\mathrm R} - \frac{\mu_{\mathrm R}}{T_{\mathrm R}},dN_{\mathrm R}.

Conservation across the system–reservoir boundary gives, for each exchanged extensive variable,

dUR=−dU,dVR=−dV,dNR=−dN.dU_{\mathrm R}=-dU, \qquad dV_{\mathrm R}=-dV, \qquad dN_{\mathrm R}=-dN.

To first order in the subsystem exchanges,

Stot=constant+S−UTR−PRVTR+μRNTR.S_{\mathrm{tot}} = \text{constant} + S - \frac{U}{T_{\mathrm R}} - \frac{P_{\mathrm R}V}{T_{\mathrm R}} + \frac{\mu_{\mathrm R}N}{T_{\mathrm R}}.

Maximizing StotS_{\mathrm{tot}} is therefore equivalent to minimizing the appropriate part of

U−TRS+PRV−μRN.U - T_{\mathrm R}S + P_{\mathrm R}V - \mu_{\mathrm R}N.

Which terms appear depends on which exchanges are permitted:

Environment and fixed controlsFluctuating subsystem quantityEquilibrium potential
isolated: U,V,NU,V,N fixedinternal redistributionmaximize SS
thermal: T,V,NT,V,N fixedUUminimize F=U−TSF=U-TS
thermal and mechanical: T,P,NT,P,N fixedU,VU,Vminimize G=U−TS+PVG=U-TS+PV
thermal and particle: T,V,μT,V,\mu fixedU,NU,Nminimize ΩG=U−TS−μN\Omega_{\mathrm G}=U-TS-\mu N

The word “minimize” means minimize over states or macrostates compatible with the stated controls. It does not mean that the potential decreases under every arbitrary driven or nonequilibrium protocol.

Suppose U=U(S,V,N)U=U(S,V,N) is differentiable. Replacing SS by its conjugate TT gives

F(T,V,N)=U−TS,F(T,V,N) = U-TS,

evaluated where

T=(∂U∂S)V,N.T = \left( \frac{\partial U}{\partial S} \right)_{V,N}.

The subtraction removes the old differential term T dST\,dS and introduces the new term −S dT-S\,dT. A pressure transform has a plus sign because the variable conjugate to VV is −P-P:

Hth=U+PV.H_{\mathrm{th}} = U+PV.

Here HthH_{\mathrm{th}} denotes enthalpy. The notation prevents confusion with the Hamiltonian operator H^\hat H.

Legendre-transform map connecting internal energy, enthalpy, Helmholtz and Gibbs free energies, and the grand potential

Each arrow replaces an extensive natural variable by its conjugate intensive variable. The sign of the added term follows the fundamental differential dU=T dS−P dV+μ dNdU=T\,dS-P\,dV+\mu\,dN.

For stable equilibrium, it is often safer to formulate the transform variationally:

F(T,V,N)=inf⁡S[U(S,V,N)−TS].F(T,V,N) = \inf_S \left[ U(S,V,N)-TS \right].

Likewise,

G(T,P,N)=inf⁡V[F(T,V,N)+PV],ΩG(T,V,μ)=inf⁡N[F(T,V,N)−μN].\begin{aligned} G(T,P,N) &= \inf_V \left[ F(T,V,N)+PV \right], \\ \Omega_{\mathrm G}(T,V,\mu) &= \inf_N \left[ F(T,V,N)-\mu N \right]. \end{aligned}

These are Legendre–Fenchel transforms. When the relevant function is differentiable and has the required convexity, the infimum occurs at the familiar stationary condition and the construction reduces to the ordinary Legendre transform. At a first-order transition, a range of coexisting states can share the same supporting tangent, so derivatives may be discontinuous or set-valued.

The internal energy has natural variables S,V,NS,V,N:

U=U(S,V,N),U=U(S,V,N),

with

dU=T dS−P dV+μ dN.dU = T\,dS - P\,dV + \mu\,dN.

At fixed S,V,NS,V,N, stable equilibrium minimizes UU against allowed internal variations. The equivalent entropy principle maximizes SS at fixed U,V,NU,V,N.

Enthalpy is

Hth=U+PV.H_{\mathrm{th}} = U+PV.

Its differential is

dHth=T dS+V dP+μ dN.dH_{\mathrm{th}} = T\,dS + V\,dP + \mu\,dN.

Its natural variables are S,P,NS,P,N. Enthalpy is useful for mechanically open processes at fixed pressure, even though it is less often the primary potential in quantum statistical calculations.

The Helmholtz free energy is

F=U−TS.F = U-TS.

Its differential is

dF=−S dT−P dV+μ dN.dF = -S\,dT - P\,dV + \mu\,dN.

Its natural variables are T,V,NT,V,N. It is the equilibrium potential of the canonical ensemble:

F(T,V,N)=−kBTln⁡ZN(T,V).F(T,V,N) = -k_{\mathrm B}T \ln Z_N(T,V).

At fixed T,V,NT,V,N, the equilibrium canonical state minimizes the Helmholtz free-energy functional.

The Gibbs free energy is

G=U−TS+PV=F+PV.G = U-TS+PV = F+PV.

Its differential is

dG=−S dT+V dP+μ dN.dG = -S\,dT + V\,dP + \mu\,dN.

Its natural variables are T,P,NT,P,N. At fixed temperature, pressure, and particle number, stable equilibrium minimizes GG.

The Gibbs free energy is not generally −kBTln⁡ZN-k_{\mathrm B}T\ln Z_N. That expression is the Helmholtz free energy because ZNZ_N is defined at fixed volume. A fixed-pressure ensemble requires an additional sum or integral over volumes.

The grand potential is

ΩG=U−TS−μN=F−μN.\Omega_{\mathrm G} = U-TS-\mu N = F-\mu N.

Its differential is

dΩG=−S dT−P dV−N dμ.d\Omega_{\mathrm G} = -S\,dT - P\,dV - N\,d\mu.

Its natural variables are T,V,μT,V,\mu. It is the equilibrium potential of the grand-canonical ensemble:

ΩG(T,V,μ)=−kBTln⁡Ξ(T,V,μ).\Omega_{\mathrm G}(T,V,\mu) = -k_{\mathrm B}T \ln\Xi(T,V,\mu).

At fixed T,V,μT,V,\mu, the equilibrium grand-canonical state minimizes the grand-potential functional.

Once a potential is known as a function of its natural variables, its first derivatives recover the conjugate observables.

For F(T,V,N)F(T,V,N),

S=−(∂F∂T)V,N,P=−(∂F∂V)T,N,μ=(∂F∂N)T,V.\begin{aligned} S &= - \left( \frac{\partial F}{\partial T} \right)_{V,N}, \\ P &= - \left( \frac{\partial F}{\partial V} \right)_{T,N}, \\ \mu &= \left( \frac{\partial F}{\partial N} \right)_{T,V}. \end{aligned}

For G(T,P,N)G(T,P,N),

S=−(∂G∂T)P,N,V=(∂G∂P)T,N,μ=(∂G∂N)T,P.\begin{aligned} S &= - \left( \frac{\partial G}{\partial T} \right)_{P,N}, \\ V &= \left( \frac{\partial G}{\partial P} \right)_{T,N}, \\ \mu &= \left( \frac{\partial G}{\partial N} \right)_{T,P}. \end{aligned}

For ΩG(T,V,μ)\Omega_{\mathrm G}(T,V,\mu),

S=−(∂ΩG∂T)V,μ,P=−(∂ΩG∂V)T,μ,N=−(∂ΩG∂μ)T,V.\begin{aligned} S &= - \left( \frac{\partial\Omega_{\mathrm G}}{\partial T} \right)_{V,\mu}, \\ P &= - \left( \frac{\partial\Omega_{\mathrm G}}{\partial V} \right)_{T,\mu}, \\ N &= - \left( \frac{\partial\Omega_{\mathrm G}}{\partial\mu} \right)_{T,V}. \end{aligned}

Every derivative must state what is held fixed. For example, differentiating with respect to TT at fixed μ\mu is not the same operation as differentiating at fixed fugacity z=eβμz=e^{\beta\mu}.

For a fixed-NN Hilbert space HN\mathcal H_N,

ZN(β,V)=Tr⁡HNe−βH^N(V).Z_N(\beta,V) = \operatorname{Tr}_{\mathcal H_N} e^{-\beta\hat H_N(V)}.

The canonical state is

ρN,β=e−βH^NZN,\rho_{N,\beta} = \frac{e^{-\beta\hat H_N}}{Z_N},

and

F=−1βln⁡ZN.F = -\frac{1}{\beta} \ln Z_N.

For a temperature-independent Hamiltonian,

U=−(∂ln⁡ZN∂β)V,N.U = - \left( \frac{\partial\ln Z_N}{\partial\beta} \right)_{V,N}.

Using F=U−TSF=U-TS gives

S=kB(ln⁡ZN+βU).S = k_{\mathrm B} \left( \ln Z_N+\beta U \right).

The Canonical Ensemble page develops the state, energy fluctuations, and fixed-NN examples in detail.

For a number-conserving Hamiltonian on Fock space,

Ξ(β,V,μ)=Tr⁡Fe−β(H^−μN^).\Xi(\beta,V,\mu) = \operatorname{Tr}_{\mathcal F} e^{-\beta(\hat H-\mu\hat N)}.

Then

ΩG=−1βln⁡Ξ,\Omega_{\mathrm G} = -\frac{1}{\beta} \ln\Xi,

and

N=1β(∂ln⁡Ξ∂μ)β,V,U=−(∂ln⁡Ξ∂β)μ,V+μN.\begin{aligned} N &= \frac{1}{\beta} \left( \frac{\partial\ln\Xi}{\partial\mu} \right)_{\beta,V}, \\ U &= - \left( \frac{\partial\ln\Xi}{\partial\beta} \right)_{\mu,V} + \mu N. \end{aligned}

The β\beta derivative produces ⟨H^−μN^⟩\langle\hat H-\mu\hat N\rangle, so the μN\mu N term is required to recover the internal energy. The Grand-Canonical Ensemble page owns the Fock-space construction, fugacity, and number fluctuations.

A formal isothermal–isobaric partition function for fixed NN is

ΔN(β,P)=1V0∫0∞dV e−βPVZN(β,V),\Delta_N(\beta,P) = \frac{1}{V_0} \int_0^\infty dV\, e^{-\beta PV} Z_N(\beta,V),

where V0V_0 is a reference volume required to make the integral dimensionless. With this convention,

GΔ=−kBTln⁡ΔN,G_\Delta = -k_{\mathrm B}T \ln\Delta_N,

and

(∂GΔ∂P)T,N=⟨V⟩.\left( \frac{\partial G_\Delta}{\partial P} \right)_{T,N} = \langle V\rangle.

Changing V0V_0 changes GΔG_\Delta by a finite additive convention. For a macroscopic system, the convention is subextensive and the saddle point yields the thermodynamic Gibbs free energy. For confined quantum systems, changing VV also changes the Hilbert space or boundary conditions, so the family H^(V)\hat H(V) must be specified.

Logarithms of partition functions are dimensionless thermodynamic potentials:

ln⁡ZN=−βF,ln⁡Ξ=−βΩG.\begin{aligned} \ln Z_N &= -\beta F, \\ \ln\Xi &= -\beta\Omega_{\mathrm G}. \end{aligned}

These are often called Massieu functions or Massieu–Planck potentials. They are especially convenient because derivatives with respect to dimensionless sources generate cumulants directly. Their generating role is developed on Partition Functions.

Define the quantum relative entropy

D(ρ∥σ)=Tr⁡[ρ(ln⁡ρ−ln⁡σ)].D(\rho\Vert\sigma) = \operatorname{Tr} \left[ \rho \left( \ln\rho- \ln\sigma \right) \right].

For the canonical Gibbs state ρN,β\rho_{N,\beta},

FT[ρ]=Tr⁡(ρH^N)−TS(ρ)\mathcal F_T[\rho] = \operatorname{Tr}(\rho\hat H_N) - T S(\rho)

satisfies

FT[ρ]−F=kBTD(ρ∥ρN,β)≥0.\mathcal F_T[\rho]-F = k_{\mathrm B}T D(\rho\Vert\rho_{N,\beta}) \geq 0.

Thus the Gibbs state is the unique minimizer when the relative entropy is finite and the equilibrium state has full support on the relevant space.

In the grand-canonical setting, define

WT,μ[ρ]=Tr⁡[ρ(H^−μN^)]−TS(ρ).\mathcal W_{T,\mu}[\rho] = \operatorname{Tr} \left[ \rho (\hat H-\mu\hat N) \right] - T S(\rho).

Then

WT,μ[ρ]−ΩG=kBTD(ρ∥ρβ,μ)≥0.\mathcal W_{T,\mu}[\rho] - \Omega_{\mathrm G} = k_{\mathrm B}T D(\rho\Vert\rho_{\beta,\mu}) \geq 0.

This identity is the microscopic quantum form of the thermodynamic minimum principle. Relative Entropy owns the mathematical properties of D(ρ∥σ)D(\rho\Vert\sigma).

Pressure is the generalized force conjugate to volume. In the canonical representation,

P=−(∂F∂V)T,N.P = - \left( \frac{\partial F}{\partial V} \right)_{T,N}.

If the Hamiltonian depends smoothly on a geometric parameter VV, the parameter-derivative identity gives

(∂F∂V)T,N=⟨∂H^∂V⟩,\left( \frac{\partial F}{\partial V} \right)_{T,N} = \left\langle \frac{\partial\hat H}{\partial V} \right\rangle,

so

P=−⟨∂H^∂V⟩.P = - \left\langle \frac{\partial\hat H}{\partial V} \right\rangle.

This compact formula hides geometric choices. One must specify how the boundary, metric, couplings, and ultraviolet regulator change with VV. In a lattice system, for example, changing the number of sites is not an infinitesimal deformation of a fixed Hilbert space.

In the grand-canonical representation,

P=−(∂ΩG∂V)T,μ.P = - \left( \frac{\partial\Omega_{\mathrm G}}{\partial V} \right)_{T,\mu}.

For a homogeneous extensive phase in the thermodynamic limit,

ΩG=−PV.\Omega_{\mathrm G} = -PV.

Surface terms, traps, interfaces, long-range interactions, and finite-size corrections can invalidate the simple identity even though the derivative definition remains meaningful.

The chemical potential is conjugate to particle number:

μ=(∂U∂N)S,V=(∂F∂N)T,V=(∂G∂N)T,P.\mu = \left( \frac{\partial U}{\partial N} \right)_{S,V} = \left( \frac{\partial F}{\partial N} \right)_{T,V} = \left( \frac{\partial G}{\partial N} \right)_{T,P}.

In a finite quantum system, NN is integer-valued. Addition and removal chemical potentials are then finite differences:

μ+(N)=FN+1−FN,μ−(N)=FN−FN−1.\begin{aligned} \mu_+(N) &= F_{N+1}-F_N, \\ \mu_-(N) &= F_N-F_{N-1}. \end{aligned}

They can differ across a finite-size or many-body gap. A smooth derivative emerges after an interpolation or in an appropriate thermodynamic limit.

In the grand-canonical ensemble, μ\mu is a reservoir parameter and Lagrange multiplier. It controls the probability distribution over exact number sectors; it is not generally equal to a one-particle energy. Chemical Potential owns its finite-system, fermionic, bosonic, electrochemical, and sign-convention subtleties.

For canonical equilibrium,

S=−(∂F∂T)V,N=U−FT.S = - \left( \frac{\partial F}{\partial T} \right)_{V,N} = \frac{U-F}{T}.

For grand-canonical equilibrium,

S=−(∂ΩG∂T)V,μ=U−μN−ΩGT.S = - \left( \frac{\partial\Omega_{\mathrm G}}{\partial T} \right)_{V,\mu} = \frac{ U-\mu N- \Omega_{\mathrm G} }{T}.

For a microcanonical equilibrium family, entropy is primary and determines the intensive variables through

1T=(∂S∂U)V,N.\frac{1}{T} = \left( \frac{\partial S}{\partial U} \right)_{V,N}.

The Microcanonical Ensemble owns energy-shell definitions and finite-system entropy conventions. Entropy Overview distinguishes von Neumann entropy from purity and classical uncertainty. Entropy in Quantum Statistical Mechanics owns the systematic comparison among thermal, microcanonical, entanglement, and coarse-grained entropies.

Suppose the internal energy is first-order homogeneous in its extensive variables:

U(λS,λV,λN)=λU(S,V,N).U(\lambda S,\lambda V,\lambda N) = \lambda U(S,V,N).

Euler’s theorem then gives

U=TS−PV+μN.U = TS - PV + \mu N.

Consequently,

F=−PV+μN,G=μN,ΩG=−PV.\begin{aligned} F &= -PV+\mu N, \\ G &= \mu N, \\ \Omega_{\mathrm G} &= -PV. \end{aligned}

These are Euler relations for a homogeneous, one-component, extensive phase. They are not definitions valid for every finite or inhomogeneous system.

For several conserved species,

dU=T dS−P dV+∑aμa dNa,dU = T\,dS - P\,dV + \sum_a \mu_a\,dN_a,

and extensivity gives

U=TS−PV+∑aμaNa.U = TS-PV + \sum_a \mu_a N_a.

Therefore

G=∑aμaNa.G = \sum_a \mu_aN_a.

Differentiate the Euler relation:

dU=T dS+S dT−P dV−V dP+μ dN+N dμ.\begin{aligned} dU &= T\,dS + S\,dT - P\,dV - V\,dP \\ &\quad + \mu\,dN + N\,d\mu. \end{aligned}

Subtracting the fundamental relation leaves

S dT−V dP+N dμ=0.S\,dT - V\,dP + N\,d\mu = 0.

This is the Gibbs–Duhem relation. It shows that T,P,T,P, and μ\mu are not independent for a homogeneous one-component equilibrium phase.

Writing entropy and volume per particle as

s=SN,v=VN,s=\frac{S}{N}, \qquad v=\frac{V}{N},

gives

dμ=−s dT+v dP.d\mu = -s\,dT + v\,dP.

For multiple species,

S dT−V dP+∑aNa dμa=0.S\,dT - V\,dP + \sum_a N_a\,d\mu_a = 0.

Mixed partial derivatives of a smooth thermodynamic potential commute. From

dF=−S dT−P dV+μ dN,dF = -S\,dT-P\,dV+\mu\,dN,

one obtains

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

and

(∂P∂N)T,V=−(∂μ∂V)T,N.\left( \frac{\partial P}{\partial N} \right)_{T,V} = - \left( \frac{\partial\mu}{\partial V} \right)_{T,N}.

From G(T,P,N)G(T,P,N),

(∂S∂P)T,N=−(∂V∂T)P,N.\left( \frac{\partial S}{\partial P} \right)_{T,N} = - \left( \frac{\partial V}{\partial T} \right)_{P,N}.

From ΩG(T,V,μ)\Omega_{\mathrm G}(T,V,\mu),

(∂S∂μ)T,V=(∂N∂T)V,μ,\left( \frac{\partial S}{\partial\mu} \right)_{T,V} = \left( \frac{\partial N}{\partial T} \right)_{V,\mu},

and

(∂P∂μ)T,V=(∂N∂V)T,μ.\left( \frac{\partial P}{\partial\mu} \right)_{T,V} = \left( \frac{\partial N}{\partial V} \right)_{T,\mu}.

Maxwell relations are consistency conditions and computational tools. They are valid only where the potential is differentiable and the same variables are held fixed on both sides.

Thermodynamic stability constrains second derivatives. At fixed V,NV,N,

(∂2F∂T2)V,N=−CV,NT≤0,\left( \frac{\partial^2F}{\partial T^2} \right)_{V,N} = - \frac{C_{V,N}}{T} \leq 0,

where

CV,N=T(∂S∂T)V,N.C_{V,N} = T \left( \frac{\partial S}{\partial T} \right)_{V,N}.

Thus FF is concave in temperature for a stable canonical system.

The isothermal compressibility is

κT=−1V(∂V∂P)T,N.\kappa_T = - \frac{1}{V} \left( \frac{\partial V}{\partial P} \right)_{T,N}.

Mechanical stability requires κT≥0\kappa_T\geq0, so

(∂2F∂V2)T,N=−(∂P∂V)T,N=1VκT≥0.\left( \frac{\partial^2F}{\partial V^2} \right)_{T,N} = - \left( \frac{\partial P}{\partial V} \right)_{T,N} = \frac{1}{V\kappa_T} \geq 0.

Particle-number stability similarly requires

(∂μ∂N)T,V≥0\left( \frac{\partial\mu}{\partial N} \right)_{T,V} \geq 0

in a stable single phase.

Grand-canonically,

(∂2ΩG∂μ2)T,V=−(∂N∂μ)T,V=−βVar⁡(N^)≤0.\left( \frac{\partial^2\Omega_{\mathrm G}} {\partial\mu^2} \right)_{T,V} = - \left( \frac{\partial N}{\partial\mu} \right)_{T,V} = -\beta \operatorname{Var}(\hat N) \leq 0.

The final equality assumes [H^,N^]=0[\hat H,\hat N]=0. It links thermodynamic concavity to a nonnegative quantum fluctuation. More general sources require the Kubo–Mori treatment developed in Fluctuations and Susceptibilities.

A potential can be concave in some natural variables and convex in others. Saying simply that “free energy is convex” is incomplete unless the variables are named.

For a homogeneous one-component phase,

G=μN.G=\mu N.

Two phases aa and bb coexist when their chemical potentials are equal at the same TT and PP:

μa(T,P)=μb(T,P).\mu_a(T,P) = \mu_b(T,P).

For each phase,

dμ=−s dT+v dP.d\mu = -s\,dT + v\,dP.

Differentiating the coexistence condition along the coexistence curve gives the Clapeyron equation:

dPdT=sb−savb−va=LT(vb−va),\frac{dP}{dT} = \frac{s_b-s_a}{v_b-v_a} = \frac{L}{T(v_b-v_a)},

where L=T(sb−sa)L=T(s_b-s_a) is the latent heat per particle. The relation fails at points where the simple two-phase description or the required derivatives cease to apply.

At finite size, partition functions are typically analytic and the transition is rounded. Nondifferentiable thermodynamic potentials emerge only after an appropriate large-system limit. Finite-Temperature Phase Transitions develops this nonanalytic limit, the distinction between first-order and continuous transitions, and the finite-size evidence for each.

Consider a two-level magnetic moment with

H^(B)=−mB σz.\hat H(B) = -mB\,\sigma_z.

The energies are −mB-mB and +mB+mB, so

Z=2cosh⁡(βmB).Z = 2\cosh(\beta mB).

The Helmholtz free energy is

F(T,B)=−kBTln⁡[2cosh⁡(βmB)].F(T,B) = -k_{\mathrm B}T \ln \left[ 2\cosh(\beta mB) \right].

The magnetic moment conjugate to BB is

M=−(∂F∂B)T=mtanh⁡(βmB).M = - \left( \frac{\partial F}{\partial B} \right)_T = m\tanh(\beta mB).

The internal energy is

U=−mBtanh⁡(βmB),U = -mB \tanh(\beta mB),

and the entropy is

S=kB[ln⁡(2cosh⁡x)−xtanh⁡x],x=βmB.S = k_{\mathrm B} \left[ \ln \left( 2\cosh x \right) - x\tanh x \right], \qquad x=\beta mB.

At B=0B=0, both levels are equally populated and S=kBln⁡2S=k_{\mathrm B}\ln2. At fixed nonzero BB, the limit T→0+T\to0^+ selects the lower level and S→0S\to0.

The isothermal susceptibility is a curvature of the free energy:

χT=(∂M∂B)T=βm2sech⁡2(βmB)≥0.\chi_T = \left( \frac{\partial M}{\partial B} \right)_T = \beta m^2 \operatorname{sech}^2(\beta mB) \geq 0.

This is the generalized-coordinate version of the relations between compressibility, number susceptibility, and potential curvature.

Thermodynamic Legendre transforms often arise as large-system limits of exact Laplace transforms.

The grand partition function is exactly

Ξ(β,μ)=∑N=0∞exp⁡[−β(FN−μN)].\Xi(\beta,\mu) = \sum_{N=0}^{\infty} \exp \left[ -\beta \left( F_N-\mu N \right) \right].

Therefore

ΩG=−kBTln⁡∑Ne−β(FN−μN).\Omega_{\mathrm G} = -k_{\mathrm B}T \ln \sum_N e^{-\beta(F_N-\mu N)}.

For a macroscopic system, the logarithm is often dominated by a narrow range of NN, giving

ΩG≃inf⁡N(FN−μN)\Omega_{\mathrm G} \simeq \inf_N \left( F_N-\mu N \right)

up to subextensive corrections. At finite size, the log-sum-exp is smooth and need not equal the minimum.

Similarly, using a density of states g(E)g(E),

Z(β)=∫dE g(E)e−βEZ(\beta) = \int dE\, g(E)e^{-\beta E}

becomes, when g(E)g(E) has exponential thermodynamic scaling,

Z(β)∼∫dE exp⁡[S(E)kB−βE].Z(\beta) \sim \int dE\, \exp \left[ \frac{S(E)}{k_{\mathrm B}} - \beta E \right].

The saddle point then gives

F(T)≃inf⁡E[E−TS(E)].F(T) \simeq \inf_E \left[ E-TS(E) \right].

If the entropy is not concave, the canonical transform can recover only its concave envelope. This is one route to ensemble nonequivalence in systems with long-range interactions or other failures of ordinary additivity. Such statements concern thermodynamic limits; they should not be inferred from a finite analytic partition function alone. Ensemble Equivalence owns the supporting-line and large-deviation criteria.

Let the Hamiltonian depend on a control parameter λ\lambda:

H^=H^(λ).\hat H=\hat H(\lambda).

For a canonical Gibbs state,

(∂F∂λ)T=⟨∂H^∂λ⟩.\left( \frac{\partial F}{\partial\lambda} \right)_T = \left\langle \frac{\partial\hat H}{\partial\lambda} \right\rangle.

If the generalized force is defined by

Xλ=−∂H^∂λ,X_\lambda = - \frac{\partial\hat H}{\partial\lambda},

then

⟨Xλ⟩=−(∂F∂λ)T.\langle X_\lambda\rangle = - \left( \frac{\partial F}{\partial\lambda} \right)_T.

Examples include magnetization conjugate to magnetic field, polarization conjugate to electric field, and stress conjugate to strain. Electromagnetic and elastic work conventions differ across subfields, so the Hamiltonian coupling should determine the sign.

For a new equilibrium problem:

  1. List the exchanges. Decide whether energy, volume, particles, or another extensive quantity crosses the system boundary.
  2. Identify the controls. Record which of T,P,V,N,μ,T,P,V,N,\mu, and external fields are fixed.
  3. Choose the natural potential. Match the controls to S,U,F,G,S,U,F,G, or ΩG\Omega_{\mathrm G}.
  4. Specify the trace space. Use a fixed-NN Hilbert space for ZNZ_N and Fock space for Ξ\Xi.
  5. Write the potential from the partition function. Keep F=−kBTln⁡ZNF=-k_{\mathrm B}T\ln Z_N distinct from ΩG=−kBTln⁡Ξ\Omega_{\mathrm G}=-k_{\mathrm B}T\ln\Xi.
  6. Differentiate at fixed natural variables. State every held-fixed condition.
  7. Check stability. Test heat capacity, compressibility, number susceptibility, or the appropriate Hessian.
  8. Check scaling. Use Euler relations such as ΩG=−PV\Omega_{\mathrm G}=-PV only after verifying extensivity and homogeneity.
  9. Check finite-size conventions. Replace smooth NN derivatives by finite differences when necessary, and retain surface terms when they matter.

This page owns:

  • the systematic relation among U,S,Hth,F,G,U,S,H_{\mathrm{th}},F,G, and ΩG\Omega_{\mathrm G};
  • natural variables and Legendre transforms;
  • the reservoir logic selecting a potential;
  • Euler, Gibbs–Duhem, Maxwell, and curvature identities;
  • the distinction between exact finite-system sums and thermodynamic Legendre transforms.

Other pages own:

FF is natural at fixed T,V,NT,V,N; GG is natural at fixed T,P,NT,P,N; ΩG\Omega_{\mathrm G} is natural at fixed T,V,μT,V,\mu. A derivative taken while holding the wrong variables fixed computes a different response.

Calling every free energy the Gibbs free energy

Section titled “Calling every free energy the Gibbs free energy”

−kBTln⁡ZN-k_{\mathrm B}T\ln Z_N is the Helmholtz free energy. Gibbs free energy requires fixed pressure and includes PVPV.

The fundamental relation contains −P dV-P\,dV, so P=−∂F/∂VP=-\partial F/\partial V. Enthalpy and Gibbs free energy contain +PV+PV.

Both are often denoted HH. Here H^\hat H is the quantum Hamiltonian and Hth=U+PVH_{\mathrm{th}}=U+PV is enthalpy.

The identity requires a homogeneous extensive phase in the thermodynamic limit. Traps, surfaces, interfaces, and long-range interactions can add corrections.

Treating finite particle number as continuous

Section titled “Treating finite particle number as continuous”

For finite NN, chemical potentials are naturally addition and removal differences. A smooth derivative is a macroscopic approximation or interpolation.

Replacing a finite log-sum-exp by a minimum

Section titled “Replacing a finite log-sum-exp by a minimum”

The grand potential is exactly a logarithm of a sum over sectors. The Legendre minimum is a dominant-sector approximation in an appropriate large-system limit.

Assuming all curvatures have the same sign

Section titled “Assuming all curvatures have the same sign”

FF is concave in TT but convex in stable mechanical extensive variables such as VV. Curvature statements must name the variable.

Imposing equilibrium monotonicity on a driven process

Section titled “Imposing equilibrium monotonicity on a driven process”

Minimum principles compare equilibrium candidates under fixed reservoir controls. Nonequilibrium work protocols require additional definitions and inequalities.

Starting from

dU=T dS−P dV+μ dN,dU = T\,dS-P\,dV+\mu\,dN,

derive the differentials of HthH_{\mathrm{th}}, FF, GG, and ΩG\Omega_{\mathrm G}. Identify the natural variables of each potential.

Solution

For enthalpy,

Hth=U+PV,H_{\mathrm{th}} = U+PV,

so

dHth=dU+P dV+V dP=T dS+V dP+μ dN.\begin{aligned} dH_{\mathrm{th}} &= dU+P\,dV+V\,dP \\ &= T\,dS+V\,dP+\mu\,dN. \end{aligned}

Its natural variables are S,P,NS,P,N.

For Helmholtz free energy,

F=U−TS,F=U-TS,

and therefore

dF=−S dT−P dV+μ dN.dF = -S\,dT-P\,dV+\mu\,dN.

Its natural variables are T,V,NT,V,N.

For Gibbs free energy,

G=U−TS+PV,G=U-TS+PV,

which gives

dG=−S dT+V dP+μ dN.dG = -S\,dT+V\,dP+\mu\,dN.

Its natural variables are T,P,NT,P,N.

Finally,

ΩG=U−TS−μN,\Omega_{\mathrm G} = U-TS-\mu N,

so

dΩG=−S dT−P dV−N dμ.d\Omega_{\mathrm G} = -S\,dT-P\,dV-N\,d\mu.

Its natural variables are T,V,μT,V,\mu.

Let

ρβ=e−βH^Z.\rho_\beta = \frac{e^{-\beta\hat H}}{Z}.

Show that

Tr⁡(ρH^)−TS(ρ)−F=kBTD(ρ∥ρβ).\operatorname{Tr}(\rho\hat H) - TS(\rho) - F = k_{\mathrm B}T D(\rho\Vert\rho_\beta).
Solution

The Gibbs state satisfies

ln⁡ρβ=−βH^−ln⁡Z.\ln\rho_\beta = -\beta\hat H- \ln Z.

Hence

D(ρ∥ρβ)=Tr⁡(ρln⁡ρ)−Tr⁡(ρln⁡ρβ)=Tr⁡(ρln⁡ρ)+βTr⁡(ρH^)+ln⁡Z.\begin{aligned} D(\rho\Vert\rho_\beta) &= \operatorname{Tr}(\rho\ln\rho) - \operatorname{Tr}(\rho\ln\rho_\beta) \\ &= \operatorname{Tr}(\rho\ln\rho) + \beta\operatorname{Tr}(\rho\hat H) + \ln Z. \end{aligned}

Multiply by kBT=1/βk_{\mathrm B}T=1/\beta and use

S(ρ)=−kBTr⁡(ρln⁡ρ)S(\rho) = -k_{\mathrm B} \operatorname{Tr}(\rho\ln\rho)

and

F=−kBTln⁡Z.F = -k_{\mathrm B}T\ln Z.

This gives

kBTD(ρ∥ρβ)=Tr⁡(ρH^)−TS(ρ)−F.k_{\mathrm B}T D(\rho\Vert\rho_\beta) = \operatorname{Tr}(\rho\hat H) - TS(\rho) - F.

Since relative entropy is nonnegative, ρβ\rho_\beta minimizes the free-energy functional.

For

H^=−mBσz,\hat H=-mB\sigma_z,

derive FF, MM, and χT\chi_T. Check the limits B→0B\to0 and T→0+T\to0^+.

Solution

The two energies are ∓mB\mp mB, so

Z=eβmB+e−βmB=2cosh⁡(βmB).Z = e^{\beta mB} + e^{-\beta mB} = 2\cosh(\beta mB).

Therefore

F=−kBTln⁡[2cosh⁡(βmB)].F = -k_{\mathrm B}T \ln \left[ 2\cosh(\beta mB) \right].

The conjugate magnetic moment is

M=−(∂F∂B)T=mtanh⁡(βmB).M = - \left( \frac{\partial F}{\partial B} \right)_T = m\tanh(\beta mB).

Differentiating again,

χT=(∂M∂B)T=βm2sech⁡2(βmB).\chi_T = \left( \frac{\partial M}{\partial B} \right)_T = \beta m^2 \operatorname{sech}^2(\beta mB).

For weak field,

M≃βm2B,M \simeq \beta m^2B,

which is the Curie-law response of one independent moment. At fixed nonzero BB and T→0+T\to0^+,

M→m sgn⁡(B),M \to m\,\operatorname{sgn}(B),

while χT→0\chi_T\to0 away from B=0B=0 because the ground state is saturated.

Use G(T,P,N)G(T,P,N) to prove

(∂S∂P)T,N=−(∂V∂T)P,N.\left( \frac{\partial S}{\partial P} \right)_{T,N} = - \left( \frac{\partial V}{\partial T} \right)_{P,N}.

Express the right-hand side using the thermal expansion coefficient

αP=1V(∂V∂T)P,N.\alpha_P = \frac{1}{V} \left( \frac{\partial V}{\partial T} \right)_{P,N}.
Solution

From

dG=−S dT+V dP+μ dN,dG = -S\,dT+V\,dP+\mu\,dN,

we have

S=−(∂G∂T)P,N,V=(∂G∂P)T,N.S = - \left( \frac{\partial G}{\partial T} \right)_{P,N}, \qquad V = \left( \frac{\partial G}{\partial P} \right)_{T,N}.

Commuting the mixed derivatives gives

(∂S∂P)T,N=−∂2G∂P ∂T=−(∂V∂T)P,N.\begin{aligned} \left( \frac{\partial S}{\partial P} \right)_{T,N} &= - \frac{\partial^2G} {\partial P\,\partial T} \\ &= - \left( \frac{\partial V}{\partial T} \right)_{P,N}. \end{aligned}

Therefore

(∂S∂P)T,N=−VαP.\left( \frac{\partial S}{\partial P} \right)_{T,N} = -V\alpha_P.

A material that expands on heating at fixed pressure has entropy that decreases with increasing pressure at fixed temperature.

Assume U(S,V,N)U(S,V,N) is first-order homogeneous. Derive the Gibbs–Duhem relation and then derive the Clapeyron equation for coexistence between phases aa and bb.

Solution

Euler’s theorem gives

U=TS−PV+μN.U = TS-PV+\mu N.

Differentiating,

dU=T dS−P dV+μ dN+S dT−V dP+N dμ.\begin{aligned} dU &= T\,dS-P\,dV+\mu\,dN \\ &\quad + S\,dT-V\,dP+N\,d\mu. \end{aligned}

Comparison with the fundamental relation leaves

S dT−V dP+N dμ=0.S\,dT-V\,dP+N\,d\mu = 0.

Dividing by NN gives

dμ=−s dT+v dP.d\mu = -s\,dT+v\,dP.

Along coexistence,

μa(T,P)=μb(T,P).\mu_a(T,P) = \mu_b(T,P).

Their differentials must also agree:

−sa dT+va dP=−sb dT+vb dP.-s_a\,dT+v_a\,dP = -s_b\,dT+v_b\,dP.

Rearranging gives

dPdT=sb−savb−va.\frac{dP}{dT} = \frac{s_b-s_a}{v_b-v_a}.

Since the latent heat per particle is

L=T(sb−sa),L = T(s_b-s_a),

the result is

dPdT=LT(vb−va).\frac{dP}{dT} = \frac{L}{T(v_b-v_a)}.

Suppose only the sectors N=0N=0 and N=1N=1 are available, with

F0=0,F1=ϵ.F_0=0, \qquad F_1=\epsilon.

Compute Ξ\Xi, ΩG\Omega_{\mathrm G}, and ⟨N⟩\langle N\rangle. Compare the exact grand potential with the Legendre minimum of FN−μNF_N-\mu N.

Solution

The sector sum is

Ξ=1+e−β(ϵ−μ).\Xi = 1 + e^{-\beta(\epsilon-\mu)}.

Therefore

ΩG=−kBTln⁡[1+e−β(ϵ−μ)].\Omega_{\mathrm G} = -k_{\mathrm B}T \ln \left[ 1+e^{-\beta(\epsilon-\mu)} \right].

The mean occupation is

⟨N⟩=1β∂ln⁡Ξ∂μ=1eβ(ϵ−μ)+1.\langle N\rangle = \frac{1}{\beta} \frac{\partial\ln\Xi}{\partial\mu} = \frac{1}{e^{\beta(\epsilon-\mu)}+1}.

The two values of FN−μNF_N-\mu N are

0andϵ−μ.0 \qquad\text{and}\qquad \epsilon-\mu.

Their minimum is

min⁡(0,ϵ−μ).\min \left( 0, \epsilon-\mu \right).

At finite temperature, the exact ΩG\Omega_{\mathrm G} is a smooth log-sum-exp and lies below or equal to this minimum. In the limit T→0+T\to0^+,

ΩG→min⁡(0,ϵ−μ),\Omega_{\mathrm G} \to \min \left( 0, \epsilon-\mu \right),

while ⟨N⟩\langle N\rangle approaches a step function, with a degeneracy at μ=ϵ\mu=\epsilon.