Skip to content

Free Energy and Thermodynamic Potentials: Trading Variables You Cannot Fix for Ones You Can

Prerequisite:The Laws of Thermodynamics: Where Temperature, Internal Energy and Entropy Come From

Raw
  • The internal energy UU is a complete thermodynamic function only when it is written as a function of (S,V,N)(S, V, N). But what a laboratory controls is not SS but the temperature TT, and not VV but the pressure pp. The operation that bridges this mismatch is the Legendre transformation.
  • For a strictly convex function the Legendre transformation is a change of variables that loses no information, and it is involutive: performing it twice returns the original function. The essential point is not the algebraic act of subtracting TSTS from UU, but the expulsion of SS from the list of independent variables in favour of TT.
  • The functions obtained in this way — the Helmholtz free energy F(T,V,N)F(T,V,N), the enthalpy H(S,p,N)H(S,p,N), the Gibbs free energy G(T,p,N)G(T,p,N) and the grand potential Ω(T,V,μ)\Omega(T,V,\mu) — are collectively called thermodynamic potentials.
  • Each potential supplies a variational principle telling us which equilibrium state is realised when a given set of variables is held fixed. At constant temperature and volume FF decreases; at constant temperature and pressure GG decreases. The work extractable in an isothermal process is bounded above by ΔF-\Delta F.
  • Because the differential of each potential is exact (mixed second partials commute), four Maxwell relations follow. They let us translate a quantity such as (S/V)T(\partial S/\partial V)_T, which is hard to measure, into (p/T)V(\partial p/\partial T)_V, which is easy.
  • As applications we determine (U/V)T(\partial U/\partial V)_T from the equation of state alone, prove CpCV=TVα2/κTC_p - C_V = TV\alpha^2/\kappa_T, and compute the inversion temperature of the Joule–Thomson coefficient, in each case carrying the calculation through to the end.

1. Motivation: why the internal energy alone is not enough

Section titled “1. Motivation: why the internal energy alone is not enough”

As we saw in The laws of thermodynamics, combining the internal energy guaranteed by the first law (existence of the internal energy(Theorem 4.2)[The Laws of Thermodynamics]) with the entropy guaranteed by the second law (existence of the entropy(Theorem 8.2)[The Laws of Thermodynamics]) yields, for quasi-static processes, the relation

dU=TdSpdV+μdN.dU = T\,dS - p\,dV + \mu\,dN .

This is the fundamental relation of thermodynamics, also called the Gibbs relation. Here UU is the internal energy, SS the entropy, VV the volume, NN the particle number, TT the absolute temperature, pp the pressure and μ\mu the chemical potential.

The equation has exactly the shape of the total differential of a function U=U(S,V,N)U = U(S, V, N). That is,

T=(US)V,N,p=(UV)S,N,μ=(UN)S,V,T = \left(\frac{\partial U}{\partial S}\right)_{V,N},\qquad p = -\left(\frac{\partial U}{\partial V}\right)_{S,N},\qquad \mu = \left(\frac{\partial U}{\partial N}\right)_{S,V},

so that from the single function U(S,V,N)U(S,V,N) the temperature, the pressure and the chemical potential all follow by differentiation. In this sense U(S,V,N)U(S,V,N) contains the entire thermodynamics of the system.

For the experimenter, however, there is a serious inconvenience here. Experiments at fixed entropy are, in most cases, impossible. Placing a test tube in an adiabatic vessel so that it exchanges no heat with its surroundings does keep SS constant (if the process is reversible), but chemical and biological experiments are normally carried out in a thermostat, at atmospheric pressure. What is under control is (T,p)(T, p), not (S,V)(S, V).

A naive proposal suggests itself: “why not simply rewrite UU as a function of (T,V,N)(T,V,N)?” This fails, and it is worth saying at once why. Given UU as a function of (T,V,N)(T,V,N), one cannot recover SS from it. Indeed, for a monatomic ideal gas U=32NkBTU = \tfrac{3}{2} N k_{\mathrm B} T, an expression in which no volume dependence appears at all; the information contained in the equation of state pV=NkBTpV = N k_{\mathrm B} T has been thrown away. Mere substitution of variables destroys information.

The method that exchanges the independent variables while keeping the lost information is the Legendre transformation. It is mathematically identical to the operation of analytical mechanics that builds a Hamiltonian H(q,p)H(q,p) out of a Lagrangian L(q,q˙)L(q,\dot q) (see Hamiltonian mechanics and the definition of the Hamiltonian(Definition 3.6)[ハミルトン形式の力学]). That the same instrument appears in thermodynamics and in mechanics is no accident: in both cases one is re-encoding a function by using the slopes of its tangent lines as the new variable.

2. Preliminaries: complete thermodynamic functions and extensivity

Section titled “2. Preliminaries: complete thermodynamic functions and extensivity”

We first fix the terminology.

Definition 2.1Complete thermodynamic function

Let Φ\Phi be a state function of a thermodynamic system and let (x1,,xn)(x_1,\dots,x_n) be a list of variables. If, once the functional form Φ=Φ(x1,,xn)\Phi = \Phi(x_1,\dots,x_n) is given, every thermodynamic quantity (T,p,μ,S,UT, p, \mu, S, U and so on) is determined by differentiation alone, then Φ\Phi is called a complete thermodynamic function (or a fundamental relation) in the variables (x1,,xn)(x_1,\dots,x_n), and (x1,,xn)(x_1,\dots,x_n) are called its natural variables.

The fundamental relation dU=TdSpdV+μdNdU = T\,dS - p\,dV + \mu\,dN asserts that the natural variables of UU are (S,V,N)(S,V,N). By contrast, UU expressed in terms of (T,V,N)(T,V,N) is not a complete thermodynamic function, since, as we saw in §1\S 1, information is lost.

A second property we shall use is extensivity. Each of U,S,V,NU, S, V, N is an extensive variable: replacing the system by λ\lambda copies of itself multiplies the quantity by λ\lambda. Hence

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

Differentiating both sides with respect to λ\lambda and then setting λ=1\lambda = 1, Euler’s theorem on homogeneous functions gives

U=TSpV+μN.U = T S - p V + \mu N .

Combining this identity with the fundamental relation produces one further relation, which we shall need later.

Proposition 2.2The Gibbs–Duhem relation

If UU is homogeneous of degree 11 in (S,V,N)(S,V,N) and satisfies the fundamental relation dU=TdSpdV+μdNdU = T\,dS - p\,dV + \mu\,dN, then

SdTVdp+Ndμ=0.S\,dT - V\,dp + N\,d\mu = 0 .

In other words the intensive variables T,p,μT, p, \mu are not independent: fixing two of them determines the third.

Proof(Proposition 2.2)

Taking the total differential of both sides of the Euler relation U=TSpV+μNU = TS - pV + \mu N gives

dU=TdS+SdTpdVVdp+μdN+Ndμ.dU = T\,dS + S\,dT - p\,dV - V\,dp + \mu\,dN + N\,d\mu .

Subtracting the fundamental relation dU=TdSpdV+μdNdU = T\,dS - p\,dV + \mu\,dN term by term, the contributions TdST\,dS, pdV-p\,dV and μdN\mu\,dN cancel, and what remains is

0=SdTVdp+Ndμ.0 = S\,dT - V\,dp + N\,d\mu .

Consider a strictly convex function f(x)f(x) of one variable. Each point of its graph carries a tangent line, and since the slope p=f(x)p = f'(x) is strictly increasing, slopes and points of tangency correspond one to one. We may therefore describe the curve as a family of tangent lines instead of a set of points. Specifying a tangent line requires its slope pp together with its yy-intercept — and that yy-intercept is precisely the value of the Legendre transform.

f(x)xslope p = f’(x)g(p) = f(x) - p xy
The geometry of the Legendre transformation: to a tangent line of slope p, assign its y-intercept g(p)

Definition 3.1Legendre transformation

Let IRI \subset \mathbb{R} be an open interval and let f:IRf: I \to \mathbb{R} be of class C2C^2 with f(x)>0f''(x) > 0 for every xIx \in I (strict convexity). Put J:=f(I)J := f'(I). Since ff' is strictly increasing, f:IJf' : I \to J is a bijection; write its inverse as x():JIx(\cdot) : J \to I. The function on JJ defined by

g(p):=f(x(p))px(p)g(p) := f\bigl(x(p)\bigr) - p\, x(p)

is called the Legendre transform of ff.

The point of the Legendre transformation is that the content of the function survives the change of variables: the inverse transformation returns the original function.

Theorem 3.2Involutivity of the Legendre transformation

Under the hypotheses and notation of Definition 3.1, the following hold.

  1. gg is of class C2C^2 on JJ, with g(p)=x(p)g'(p) = -x(p) and g(p)=1/f(x(p))<0g''(p) = -1/f''\bigl(x(p)\bigr) < 0. In particular gg is strictly concave.
  2. Form from gg the correspondence pxp \mapsto x given by x=g(p)x = -g'(p) (strictly monotone, hence bijective, because g<0g'' < 0), write its inverse as p()p(\cdot), and set f~(x):=g(p(x))+p(x)x\tilde f(x) := g\bigl(p(x)\bigr) + p(x)\, x. Then f~=f\tilde f = f on II.
Proof(Theorem 3.2)

(1) Since ff' is of class C1C^1 with (f)=f>0(f')' = f'' > 0, the inverse function theorem shows that x()x(\cdot) is of class C1C^1 on JJ with x(p)=1/f(x(p))x'(p) = 1/f''(x(p)). Hence g(p)=f(x(p))px(p)g(p) = f(x(p)) - p\,x(p) is of class C1C^1, and the chain rule gives

g(p)=f(x(p))x(p)x(p)px(p).g'(p) = f'\bigl(x(p)\bigr)\,x'(p) - x(p) - p\,x'(p).

By the definition of x(p)x(p) we have f(x(p))=pf'(x(p)) = p, so the first and third terms cancel and

g(p)=x(p)g'(p) = -x(p)

remains. This cancellation is the envelope theorem, and it is the core reason the Legendre transformation is easy to work with. Differentiating once more gives g(p)=x(p)=1/f(x(p))g''(p) = -x'(p) = -1/f''(x(p)), which is negative because f>0f'' > 0. Since ff'' is continuous, so is gg'', and therefore gg is of class C2C^2.

(2) By (1) we have g(p)=x(p)-g'(p) = x(p), so the correspondence x=g(p)x = -g'(p) is nothing but x()x(\cdot), whose inverse is ff'. That is, p(x)=f(x)p(x) = f'(x). Substituting,

f~(x)=g(f(x))+f(x)x=[f(x)f(x)x]+f(x)x=f(x),\tilde f(x) = g\bigl(f'(x)\bigr) + f'(x)\,x = \Bigl[f(x) - f'(x)\,x\Bigr] + f'(x)\,x = f(x) ,

where in the first equality we inserted p=f(x)p = f'(x) and x(p)=xx(p) = x into the definition of gg.

Example 3.3Legendre transform of a quadratic

Take f(x)=12kx2f(x) = \tfrac{1}{2}k x^2 with k>0k > 0 and I=RI = \mathbb{R}. Since f=k>0f'' = k > 0, the hypotheses hold. From p=f(x)=kxp = f'(x) = kx we get x(p)=p/kx(p) = p/k and J=RJ = \mathbb{R}. Substituting into the definition,

g(p)=12k(pk)2ppk=p22kp2k=p22k.g(p) = \frac{1}{2}k\left(\frac{p}{k}\right)^2 - p\cdot\frac{p}{k} = \frac{p^2}{2k} - \frac{p^2}{k} = -\frac{p^2}{2k}.

Indeed g=1/k=1/fg'' = -1/k = -1/f'', in agreement with Theorem 3.2 (1). Checking the inverse transformation, g(p)=p/k=x-g'(p) = p/k = x and f~(x)=g(kx)+kxx=12kx2+kx2=12kx2=f(x)\tilde f(x) = g(kx) + kx\cdot x = -\tfrac{1}{2}kx^2 + kx^2 = \tfrac{1}{2}kx^2 = f(x), so (2) holds as well.

Remark 3.4

Regarding UU in thermodynamics as a function of SS, we have (2U/S2)V=(T/S)V=T/CV\left(\partial^2 U/\partial S^2\right)_V = \left(\partial T/\partial S\right)_V = T/C_V. For a stable system, whose heat capacity at constant volume satisfies 0<CV<0 < C_V < \infty, this is positive, so UU is strictly convex in SS and the hypotheses of Definition 3.1 are met. Convexity is not a mathematical convenience: it is thermodynamic stability (see the remark following Proposition 7.2 and the Appendix).

Definition 4.1Thermodynamic potentials

For the internal energy U(S,V,N)U(S,V,N) define

F:=UTS(Helmholtz free energy)H:=U+pV(enthalpy)G:=UTS+pV=F+pV=HTS(Gibbs free energy)Ω:=UTSμN=FμN(grand potential)\begin{aligned} F &:= U - TS &&\text{(Helmholtz free energy)}\\ H &:= U + pV &&\text{(enthalpy)}\\ G &:= U - TS + pV = F + pV = H - TS &&\text{(Gibbs free energy)}\\ \Omega &:= U - TS - \mu N = F - \mu N &&\text{(grand potential)} \end{aligned}

where T=(U/S)V,NT = (\partial U/\partial S)_{V,N}, p=(U/V)S,Np = -(\partial U/\partial V)_{S,N} and μ=(U/N)S,V\mu = (\partial U/\partial N)_{S,V}.

Here FF is the Legendre transform in STS \mapsto T, and HH the Legendre transform in VpV \mapsto -p (note that UU is convex in VV and that the conjugate variable is p-p); GG performs both at once, and Ω\Omega transforms NμN \mapsto \mu in addition.

flowchart LR
U["U(S, V, N)"] -->|"S → T"| F["F(T, V, N)"]
U -->|"V → -p"| H["H(S, p, N)"]
F -->|"V → -p"| G["G(T, p, N)"]
H -->|"S → T"| G
F -->|"N → μ"| W["Ω(T, V, μ)"]
The thermodynamic potentials linked by Legendre transformations

Proposition 4.2Differentials and natural variables of the thermodynamic potentials

Given the fundamental relation dU=TdSpdV+μdNdU = T\,dS - p\,dV + \mu\,dN, the quantities of Definition 4.1 satisfy

dF=SdTpdV+μdN,F=F(T,V,N),dH=TdS+Vdp+μdN,H=H(S,p,N),dG=SdT+Vdp+μdN,G=G(T,p,N),dΩ=SdTpdVNdμ,Ω=Ω(T,V,μ).\begin{aligned} dF &= -S\,dT - p\,dV + \mu\,dN, &\quad& F = F(T,V,N),\\ dH &= T\,dS + V\,dp + \mu\,dN, &\quad& H = H(S,p,N),\\ dG &= -S\,dT + V\,dp + \mu\,dN, &\quad& G = G(T,p,N),\\ d\Omega &= -S\,dT - p\,dV - N\,d\mu, &\quad& \Omega = \Omega(T,V,\mu). \end{aligned}

Moreover, extensivity gives G=μNG = \mu N and Ω=pV\Omega = -pV.

Proof(Proposition 4.2)

Taking the total differential of F=UTSF = U - TS gives dF=dUTdSSdTdF = dU - T\,dS - S\,dT. Inserting the fundamental relation,

dF=(TdSpdV+μdN)TdSSdT=SdTpdV+μdN,dF = (T\,dS - p\,dV + \mu\,dN) - T\,dS - S\,dT = -S\,dT - p\,dV + \mu\,dN ,

so that TdST\,dS cancels. This cancellation is the same computation as g=xg' = -x in Theorem 3.2 (1). Only the differentials dT,dV,dNdT, dV, dN appear on the right-hand side, so the natural variables of FF are (T,V,N)(T,V,N).

For H=U+pVH = U + pV we get dH=dU+pdV+Vdp=TdS+Vdp+μdNdH = dU + p\,dV + V\,dp = T\,dS + V\,dp + \mu\,dN, with pdVp\,dV cancelling. Applying the same operation to G=HTSG = H - TS gives dG=dHTdSSdT=SdT+Vdp+μdNdG = dH - T\,dS - S\,dT = -S\,dT + V\,dp + \mu\,dN. For Ω=FμN\Omega = F - \mu N we get dΩ=dFμdNNdμ=SdTpdVNdμd\Omega = dF - \mu\,dN - N\,d\mu = -S\,dT - p\,dV - N\,d\mu.

Finally, using the Euler relation U=TSpV+μNU = TS - pV + \mu N from §2\S 2, we obtain at once G=UTS+pV=μNG = U - TS + pV = \mu N and Ω=UTSμN=pV\Omega = U - TS - \mu N = -pV.

The proposition supplies a rule for reading off derivatives. If, for instance, F(T,V,N)F(T,V,N) is known, then

S=(FT)V,N,p=(FV)T,N,μ=(FN)T,V,S = -\left(\frac{\partial F}{\partial T}\right)_{V,N},\quad p = -\left(\frac{\partial F}{\partial V}\right)_{T,N},\quad \mu = \left(\frac{\partial F}{\partial N}\right)_{T,V},

and the internal energy is recovered as U=F+TS=FT(F/T)V,NU = F + TS = F - T\left(\partial F/\partial T\right)_{V,N}. This last identity can also be written U=T2[(F/T)/T]V,NU = -T^2 \bigl[\partial (F/T)/\partial T\bigr]_{V,N}, known as the Gibbs–Helmholtz equation (Exercise 8.2). This is exactly what the claim of Definition 2.1 means when we say that FF is a complete thermodynamic function.

Example 4.3Reconstructing everything from the free energy of an ideal gas

Statistical mechanics (the canonical ensemble) gives, for the Helmholtz free energy of a monatomic ideal gas,

F(T,V,N)=NkBT[lnVNλ(T)3+1],λ(T)=h2πmkBTF(T,V,N) = -N k_{\mathrm B} T\left[\ln\frac{V}{N\lambda(T)^3} + 1\right], \qquad \lambda(T) = \frac{h}{\sqrt{2\pi m k_{\mathrm B} T}}

where λ\lambda is the thermal de Broglie wavelength. Let us compute every other quantity from it.

Pressure. Since λ\lambda does not depend on VV,

p=(FV)T,N=NkBTVlnV=NkBTV.p = -\left(\frac{\partial F}{\partial V}\right)_{T,N} = N k_{\mathrm B} T \frac{\partial}{\partial V}\ln V = \frac{N k_{\mathrm B} T}{V}.

The equation of state has appeared.

Entropy. From λT1/2\lambda \propto T^{-1/2} we get lnλ3=32lnT+const\ln \lambda^{3} = -\tfrac{3}{2}\ln T + \text{const}, so writing the bracket as A(T,V,N):=ln(V/(Nλ3))+1A(T,V,N) := \ln\bigl(V/(N\lambda^3)\bigr) + 1 we have A/T=32T\partial A/\partial T = \tfrac{3}{2T}. Hence

S=(FT)V,N=NkBA+NkBT32T=NkB[lnVNλ3+52].S = -\left(\frac{\partial F}{\partial T}\right)_{V,N} = N k_{\mathrm B} A + N k_{\mathrm B} T \cdot \frac{3}{2T} = N k_{\mathrm B}\left[\ln\frac{V}{N\lambda^3} + \frac{5}{2}\right].

This is the Sackur–Tetrode equation (derived from the microcanonical ensemble(Theorem 5.1)[ミクロカノニカル集団]).

Internal energy. U=F+TS=NkBTA+NkBT(A+32)=32NkBTU = F + TS = -N k_{\mathrm B}T A + N k_{\mathrm B} T\bigl(A + \tfrac{3}{2}\bigr) = \tfrac{3}{2}N k_{\mathrm B} T.

Gibbs free energy and chemical potential. G=F+pV=NkBTA+NkBT=NkBTlnVNλ3G = F + pV = -N k_{\mathrm B} T A + N k_{\mathrm B} T = -N k_{\mathrm B} T \ln\dfrac{V}{N\lambda^3}, and from G=μNG = \mu N in Proposition 4.2,

μ=kBTlnVNλ3=kBTln(nλ3),n:=N/V.\mu = -k_{\mathrm B}T \ln\frac{V}{N\lambda^{3}} = k_{\mathrm B} T \ln\bigl(n \lambda^{3}\bigr), \qquad n := N/V .

The chemical potential grows with the density and with decreasing temperature (larger λ\lambda). The classical approximation breaks down when nλ31n\lambda^3 \sim 1, and quantum statistics becomes necessary.

Note that p,S,U,G,μp, S, U, G, \mu all came out of the single function FF. That is the power of a complete thermodynamic function.

5. Equilibrium conditions and maximum work

Section titled “5. Equilibrium conditions and maximum work”

The other role of the thermodynamic potentials is to decide which state is realised as the equilibrium one. For an isolated system the criterion was maximum entropy (The laws of thermodynamics). For a system in contact with a heat bath it is replaced by minimum free energy.

Theorem 5.1Decrease of the free energy in an isothermal isochoric process

Suppose a system exchanges heat only with a heat bath at temperature T0T_0, that its volume VV and particle number NN are fixed, and that it performs no work other than through volume change. If the system is in equilibrium at temperature T0T_0 both in the initial state ii and in the final state ff, then F:=UT0SF := U - T_0 S satisfies

FfFi0,F_f - F_i \le 0 ,

with equality if and only if the process is reversible.

Proof(Theorem 5.1)

Since the volume is fixed and no other work is done, the work performed by the system is W=0W = 0. The first law gives ΔU=Q\Delta U = Q, where QQ is the heat received from the bath. On the other hand, the Clausius inequality(Theorem 8.1)[The Laws of Thermodynamics] applied to exchange with a bath at temperature T0T_0 gives

ΔS  QT0,\Delta S \ \ge\ \frac{Q}{T_0} ,

with equality only for a reversible process. Therefore

ΔF=ΔUT0ΔS=QT0ΔSQQ=0.\Delta F = \Delta U - T_0 \Delta S = Q - T_0\Delta S \le Q - Q = 0 .

The second equality used ΔU=Q\Delta U = Q, and the inequality used the Clausius inequality.

Consequently, if a system is left alone with T,V,NT, V, N fixed, FF keeps decreasing and the system comes to rest at the state where FF is minimal. Running the same argument for a process at constant external pressure p0p_0, in which the system performs work p0ΔVp_0\,\Delta V on its surroundings, we have W=p0ΔVW = p_0 \Delta V and hence ΔU=Qp0ΔV\Delta U = Q - p_0\Delta V, from which ΔG=ΔU+p0ΔVT0ΔS0\Delta G = \Delta U + p_0 \Delta V - T_0 \Delta S \le 0 follows in the same way. Judging the spontaneity of a chemical reaction by the sign of ΔG\Delta G is a direct consequence of this theorem.

Corollary 5.2Maximum work in an isothermal process

Suppose a system is in contact with a heat bath at temperature T0T_0 and is in equilibrium at temperature T0T_0 both initially and finally. Then the work WW performed by the system on its surroundings during the process satisfies

WΔF,W \le -\Delta F ,

with equality if and only if the process is reversible.

Proof(Corollary 5.2)

The first law ΔU=QW\Delta U = Q - W gives W=QΔUW = Q - \Delta U. Substituting the Clausius inequality QT0ΔSQ \le T_0 \Delta S,

WT0ΔSΔU=(ΔUT0ΔS)=ΔF.W \le T_0\Delta S - \Delta U = -\bigl(\Delta U - T_0 \Delta S\bigr) = -\Delta F .

The condition for equality is that of the Clausius inequality, namely reversibility.

This is where the name “free energy” comes from. Of the change ΔU-\Delta U in internal energy, the part that can be freely extracted as work is bounded by ΔF=ΔU+T0ΔS-\Delta F = -\Delta U + T_0\Delta S; the difference T0ΔST_0 \Delta S is the “bound” part that must be surrendered to the bath as heat.

Theorem 6.1Maxwell relations

Consider a simple system with fixed particle number NN, and suppose that on the region under consideration U,H,F,GU, H, F, G are of class C2C^2 in their respective natural variables. Then

(TV)S=(pS)V(from U),(Tp)S=(VS)p(from H),(SV)T=(pT)V(from F),(Sp)T=(VT)p(from G).\begin{aligned} \left(\frac{\partial T}{\partial V}\right)_{S} &= -\left(\frac{\partial p}{\partial S}\right)_{V} &\quad&(\text{from}\ U),\\ \left(\frac{\partial T}{\partial p}\right)_{S} &= \phantom{-}\left(\frac{\partial V}{\partial S}\right)_{p} &\quad&(\text{from}\ H),\\ \left(\frac{\partial S}{\partial V}\right)_{T} &= \phantom{-}\left(\frac{\partial p}{\partial T}\right)_{V} &\quad&(\text{from}\ F),\\ \left(\frac{\partial S}{\partial p}\right)_{T} &= -\left(\frac{\partial V}{\partial T}\right)_{p} &\quad&(\text{from}\ G). \end{aligned}
Proof(Theorem 6.1)

All four work in the same way, so we write out in detail the one coming from FF. By Proposition 4.2 we have F=F(T,V)F = F(T,V) (suppressing the fixed NN) with

S=(FT)V,p=(FV)T.S = -\left(\frac{\partial F}{\partial T}\right)_{V}, \qquad p = -\left(\frac{\partial F}{\partial V}\right)_{T}.

Since FF is of class C2C^2 by hypothesis, Schwarz’s theorem on the commutation of second partial derivatives applies:

2FVT=2FTV.\frac{\partial^2 F}{\partial V \partial T} = \frac{\partial^2 F}{\partial T \partial V}.

The left-hand side is V(FT)V=(SV)T\dfrac{\partial}{\partial V}\left(\dfrac{\partial F}{\partial T}\right)_V = -\left(\dfrac{\partial S}{\partial V}\right)_T and the right-hand side is T(FV)T=(pT)V\dfrac{\partial}{\partial T}\left(\dfrac{\partial F}{\partial V}\right)_T = -\left(\dfrac{\partial p}{\partial T}\right)_V. Cancelling the factor 1-1 on both sides gives (S/V)T=(p/T)V\left(\partial S/\partial V\right)_T = \left(\partial p/\partial T\right)_V.

For G(T,p)G(T,p) we have S=(G/T)pS = -\left(\partial G/\partial T\right)_p and V=(G/p)TV = \left(\partial G/\partial p\right)_T, so Schwarz’s theorem gives (S/p)T=(V/T)p-\left(\partial S/\partial p\right)_T = \left(\partial V/\partial T\right)_p, which is the fourth identity.

For U(S,V)U(S,V) we have T=(U/S)VT = \left(\partial U/\partial S\right)_V and p=(U/V)S-p = \left(\partial U/\partial V\right)_S, whence (T/V)S=(p/S)V\left(\partial T/\partial V\right)_S = -\left(\partial p/\partial S\right)_V; for H(S,p)H(S,p) we have T=(H/S)pT = \left(\partial H/\partial S\right)_p and V=(H/p)SV = \left(\partial H/\partial p\right)_S, whence (T/p)S=(V/S)p\left(\partial T/\partial p\right)_S = \left(\partial V/\partial S\right)_p.

Remark 6.2

There is no need to memorise the signs. Redo, each time, the procedure “write down the differential of the potential and cross-differentiate its coefficients”, using the table in Proposition 4.2; the correct sign always comes out. Put the other way round, the Maxwell relations are nothing but a restatement of the fact that dFdF and its companions are exact differentials, that is, that FF is a state function.

What makes the Maxwell relations useful in practice is that a derivative of the entropy, which cannot be measured directly, stands on the left, while a quantity readable off the equation of state stands on the right. The next proposition is the typical case.

Proposition 6.3The energy equation

For a simple system with fixed particle number, on any region where FF is of class C2C^2,

(UV)T=T(pT)Vp.\left(\frac{\partial U}{\partial V}\right)_{T} = T\left(\frac{\partial p}{\partial T}\right)_{V} - p .

That is, the volume dependence of the internal energy is fixed by the equation of state p=p(T,V)p = p(T,V) alone.

Proof(Proposition 6.3)

Differentiating U=F+TSU = F + TS with respect to VV at constant TT,

(UV)T=(FV)T+T(SV)T.\left(\frac{\partial U}{\partial V}\right)_T = \left(\frac{\partial F}{\partial V}\right)_T + T\left(\frac{\partial S}{\partial V}\right)_T .

The first term equals p-p by Proposition 4.2. To the second term we apply the third identity of Theorem 6.1, (S/V)T=(p/T)V\left(\partial S/\partial V\right)_T = \left(\partial p/\partial T\right)_V. Together these give the stated formula.

Example 6.4Internal energy of a van der Waals gas

For nn moles of a van der Waals gas the equation of state is

(p+an2V2)(Vnb)=nRT,that isp=nRTVnban2V2.\left(p + \frac{a n^2}{V^2}\right)(V - nb) = nRT, \qquad\text{that is}\qquad p = \frac{nRT}{V - nb} - \frac{an^2}{V^2}.

The second term on the right does not depend on TT, so

(pT)V=nRVnb,T(pT)Vp=nRTVnb(nRTVnban2V2)=an2V2.\left(\frac{\partial p}{\partial T}\right)_V = \frac{nR}{V-nb}, \qquad T\left(\frac{\partial p}{\partial T}\right)_V - p = \frac{nRT}{V-nb} - \left(\frac{nRT}{V-nb} - \frac{an^2}{V^2}\right) = \frac{an^2}{V^2}.

By Proposition 6.3 we have (U/V)T=an2/V2\left(\partial U/\partial V\right)_T = an^2/V^2, so integrating in VV at fixed TT gives

U(T,V)=an2V+ϕ(T)U(T,V) = -\frac{a n^2}{V} + \phi(T)

where ϕ\phi is a function of TT alone, namely the internal energy of the ideal gas reached in the dilute limit VV \to \infty (for instance 32nRT\tfrac{3}{2}nRT for a monatomic gas). When an intermolecular attraction aa is present, merely enlarging the volume increases the internal energy. For an ideal gas (a=0a=0) we get (U/V)T=0\left(\partial U/\partial V\right)_T = 0, so Joule’s law — that UU is a function of temperature alone — follows from the equation of state by itself.

The quantities normally measured in experiments are the following three kinds of response function.

Definition 7.1Response functions

For a system with fixed particle number, the quantities

CV:=T(ST)V,Cp:=T(ST)p,α:=1V(VT)p,κT:=1V(Vp)TC_V := T\left(\frac{\partial S}{\partial T}\right)_{V},\qquad C_p := T\left(\frac{\partial S}{\partial T}\right)_{p},\qquad \alpha := \frac{1}{V}\left(\frac{\partial V}{\partial T}\right)_{p},\qquad \kappa_T := -\frac{1}{V}\left(\frac{\partial V}{\partial p}\right)_{T}

are called respectively the heat capacity at constant volume, the heat capacity at constant pressure, the coefficient of thermal expansion and the isothermal compressibility.

Proposition 7.2Difference of the heat capacities at constant pressure and constant volume

On any region where (V/p)T0\left(\partial V/\partial p\right)_T \ne 0,

CpCV=T(pT)V(VT)p=TVα2κT.C_p - C_V = T\left(\frac{\partial p}{\partial T}\right)_V\left(\frac{\partial V}{\partial T}\right)_p = \frac{T V \alpha^2}{\kappa_T} .

In particular, if κT>0\kappa_T > 0 then CpCVC_p \ge C_V.

Proof(Proposition 7.2)

Regard SS as a function of (T,V)(T,V). Moving TT at constant pp moves VV as well, so the chain rule gives

(ST)p=(ST)V+(SV)T(VT)p.\left(\frac{\partial S}{\partial T}\right)_p = \left(\frac{\partial S}{\partial T}\right)_V + \left(\frac{\partial S}{\partial V}\right)_T\left(\frac{\partial V}{\partial T}\right)_p .

Multiplying both sides by TT and using the definitions in Definition 7.1,

Cp=CV+T(SV)T(VT)p.C_p = C_V + T\left(\frac{\partial S}{\partial V}\right)_T\left(\frac{\partial V}{\partial T}\right)_p .

Replacing (S/V)T\left(\partial S/\partial V\right)_T by (p/T)V\left(\partial p/\partial T\right)_V using the third identity of Theorem 6.1 yields the first equality.

Next we convert (p/T)V\left(\partial p/\partial T\right)_V into measurable quantities. Setting dV=0dV = 0 in the total differential dV=(V/T)pdT+(V/p)TdpdV = \left(\partial V/\partial T\right)_p dT + \left(\partial V/\partial p\right)_T dp of V=V(T,p)V = V(T,p) gives

(pT)V=(V/T)p(V/p)T=VαVκT=ακT\left(\frac{\partial p}{\partial T}\right)_V = -\frac{\left(\partial V/\partial T\right)_p}{\left(\partial V/\partial p\right)_T} = -\frac{V\alpha}{-V\kappa_T} = \frac{\alpha}{\kappa_T}

(the triple product rule). Substituting this together with (V/T)p=Vα\left(\partial V/\partial T\right)_p = V\alpha,

CpCV=TακTVα=TVα2κT.C_p - C_V = T\cdot\frac{\alpha}{\kappa_T}\cdot V\alpha = \frac{TV\alpha^2}{\kappa_T} .

Since T>0T > 0, V>0V > 0 and α20\alpha^2 \ge 0, the right-hand side is non-negative whenever κT>0\kappa_T > 0.

The condition κT>0\kappa_T > 0 is the mechanical stability requirement that a body contracts when pushed; if it fails, the system undergoes phase separation (see the Appendix). Hence for any stable substance CpCVC_p \ge C_V. At a point where α=0\alpha = 0 — near 4C4\,^\circ\mathrm{C} for water — the two coincide.

Example 7.3Checking the ideal gas

For an ideal gas pV=nRTpV = nRT we have (V/T)p=nR/p\left(\partial V/\partial T\right)_p = nR/p, hence α=nR/(pV)=1/T\alpha = nR/(pV) = 1/T, and (V/p)T=nRT/p2\left(\partial V/\partial p\right)_T = -nRT/p^2, hence κT=nRT/(p2V)=1/p\kappa_T = nRT/(p^2 V) = 1/p. Substituting into Proposition 7.2,

CpCV=TVα2κT=TVT2p1=pVT=nR,C_p - C_V = \frac{TV\alpha^2}{\kappa_T} = \frac{T V \cdot T^{-2}}{p^{-1}} = \frac{pV}{T} = nR ,

which reproduces Mayer's relation(Example 4.5)[The Laws of Thermodynamics].

Example 7.4The Joule–Thomson effect and the inversion temperature

When a gas is passed slowly through a porous plug from the high-pressure side to the low-pressure side, the enthalpy is conserved. The associated rate of temperature change,

μJT:=(Tp)H,\mu_{\mathrm{JT}} := \left(\frac{\partial T}{\partial p}\right)_H ,

is called the Joule–Thomson coefficient. The triple product rule gives first

μJT=(H/p)T(H/T)p=1Cp(Hp)T\mu_{\mathrm{JT}} = -\frac{\left(\partial H/\partial p\right)_T}{\left(\partial H/\partial T\right)_p} = -\frac{1}{C_p}\left(\frac{\partial H}{\partial p}\right)_T

(here (H/T)p=T(S/T)p=Cp\left(\partial H/\partial T\right)_p = T\left(\partial S/\partial T\right)_p = C_p follows from dH=TdS+VdpdH = T\,dS + V\,dp in Proposition 4.2). Dividing the same differential by dpdp at constant TT,

(Hp)T=T(Sp)T+V=T(VT)p+V,\left(\frac{\partial H}{\partial p}\right)_T = T\left(\frac{\partial S}{\partial p}\right)_T + V = -T\left(\frac{\partial V}{\partial T}\right)_p + V ,

where the second equality used the fourth identity of Theorem 6.1. Therefore

μJT=1Cp[T(VT)pV]=VCp(Tα1).\mu_{\mathrm{JT}} = \frac{1}{C_p}\left[T\left(\frac{\partial V}{\partial T}\right)_p - V\right] = \frac{V}{C_p}\left(T\alpha - 1\right).

For an ideal gas α=1/T\alpha = 1/T, so μJT=0\mu_{\mathrm{JT}} = 0 and the temperature does not change.

Let us evaluate the coefficient for a van der Waals gas (one mole, molar volume vv) to first order in aa and bb. Expanding the equation of state (p+a/v2)(vb)=RT\left(p + a/v^2\right)(v-b) = RT, dropping the term ab/v2ab/v^2, and substituting vRT/pv \simeq RT/p into the small terms on the right,

pv=RT+pbavRT+pbapRTvRTp+baRT.pv = RT + pb - \frac{a}{v} \simeq RT + pb - \frac{ap}{RT} \quad\Longrightarrow\quad v \simeq \frac{RT}{p} + b - \frac{a}{RT}.

Differentiating with respect to TT gives T(v/T)p=RT/p+a/(RT)T\left(\partial v/\partial T\right)_p = RT/p + a/(RT), so

T(vT)pv(RTp+aRT)(RTp+baRT)=2aRTb.T\left(\frac{\partial v}{\partial T}\right)_p - v \simeq \left(\frac{RT}{p} + \frac{a}{RT}\right) - \left(\frac{RT}{p} + b - \frac{a}{RT}\right) = \frac{2a}{RT} - b .

Hence μJT>0\mu_{\mathrm{JT}} > 0 — cooling upon expansion — holds when T<Tinv:=2a/(Rb)T < T_{\mathrm{inv}} := 2a/(Rb). This TinvT_{\mathrm{inv}} is called the inversion temperature. Nitrogen at room temperature lies below its inversion temperature, so throttling cools it and it can be liquefied. Hydrogen and helium have inversion temperatures far below room temperature, so throttling them directly warms them instead, and they must be pre-cooled. The formula displays the structure clearly: the intermolecular attraction aa produces cooling, the excluded volume bb produces heating.

Exercise 8.1Easy

For an ideal gas pV=nRTpV = nRT, compute (S/p)T\left(\partial S/\partial p\right)_T. Then find the entropy change when the pressure is changed from p1p_1 to p2p_2 at constant temperature.

Solution

By the fourth identity of Theorem 6.1, (S/p)T=(V/T)p\left(\partial S/\partial p\right)_T = -\left(\partial V/\partial T\right)_p. Differentiating V=nRT/pV = nRT/p with respect to TT at constant pp gives (V/T)p=nR/p\left(\partial V/\partial T\right)_p = nR/p, so

(Sp)T=nRp.\left(\frac{\partial S}{\partial p}\right)_T = -\frac{nR}{p}.

Integrating this from p1p_1 to p2p_2 at constant TT,

ΔS=nRp1p2dpp=nRlnp2p1=nRlnp1p2.\Delta S = -nR\int_{p_1}^{p_2}\frac{dp}{p} = -nR\ln\frac{p_2}{p_1} = nR \ln\frac{p_1}{p_2}.

Under compression (p2>p1p_2 > p_1) the entropy decreases. The process is isothermal, so ΔU=0\Delta U = 0, and the system therefore discards to the bath a quantity of heat equal to TΔS (>0)-T\Delta S\ (>0).

Exercise 8.2Standard

Given F(T,V,N)F(T,V,N), show that

U=T2[T(FT)]V,NU = -T^2\left[\frac{\partial}{\partial T}\left(\frac{F}{T}\right)\right]_{V,N}

(the Gibbs–Helmholtz equation). Then apply it to the FF of Example 4.3 and verify that U=32NkBTU = \tfrac{3}{2}Nk_{\mathrm B}T.

Solution

By the quotient rule,

[T(FT)]V,N=1T(FT)V,NFT2=1T2[T(FT)V,NF].\left[\frac{\partial}{\partial T}\left(\frac{F}{T}\right)\right]_{V,N} = \frac{1}{T}\left(\frac{\partial F}{\partial T}\right)_{V,N} - \frac{F}{T^2} = \frac{1}{T^2}\left[T\left(\frac{\partial F}{\partial T}\right)_{V,N} - F\right].

Multiplying both sides by T2-T^2 gives T(F/T)V,N+F-T\left(\partial F/\partial T\right)_{V,N} + F. Since (F/T)V,N=S\left(\partial F/\partial T\right)_{V,N} = -S by Proposition 4.2, this equals TS+F=UTS + F = U, which proves the claim.

For the ideal gas, F/T=NkB[ln(V/(Nλ3))+1]F/T = -Nk_{\mathrm B}\bigl[\ln\bigl(V/(N\lambda^3)\bigr)+1\bigr], whose only TT dependence sits in 3lnλ=32lnT+const-3\ln\lambda = \tfrac{3}{2}\ln T + \text{const}. Hence

[T(FT)]V,N=NkB32T,U=T2(3NkB2T)=32NkBT,\left[\frac{\partial}{\partial T}\left(\frac{F}{T}\right)\right]_{V,N} = -Nk_{\mathrm B}\cdot\frac{3}{2T}, \qquad U = -T^2\cdot\left(-\frac{3Nk_{\mathrm B}}{2T}\right) = \frac{3}{2}Nk_{\mathrm B}T ,

in agreement with the result of Example 4.3.

Exercise 8.3Standard

A van der Waals gas of nn moles, with ϕ(T)=ncVT\phi(T) = nc_V T for a constant cVc_V, expands adiabatically and freely into vacuum from volume V1V_1 to volume V2V_2. Find the change in temperature.

Solution

In a free expansion the system does no work on its surroundings (W=0W=0), and the expansion is adiabatic (Q=0Q=0), so the first law gives ΔU=0\Delta U = 0. By Example 6.4,

U=an2V+ncVT,U = -\frac{an^2}{V} + n c_V T ,

so the condition that UU be unchanged reads

an2V1+ncVT1=an2V2+ncVT2.-\frac{an^2}{V_1} + nc_V T_1 = -\frac{an^2}{V_2} + n c_V T_2 .

Solving for T2T_2,

T2T1=ancV(1V11V2)<0(V2>V1, a>0).T_2 - T_1 = -\frac{a n}{c_V}\left(\frac{1}{V_1} - \frac{1}{V_2}\right) < 0 \qquad (V_2 > V_1,\ a > 0).

The gas cools upon expansion: work must be done against the attraction to pull the molecules apart, and the corresponding kinetic energy is lost. If a=0a = 0 (ideal gas) the temperature does not change, in agreement with the result of Joule’s experiment.

Exercise 8.4Hard

For a liquid film of surface area AA, the quasi-static work is dˉW=σdA\bar{d}W = -\sigma\,dA (where σ\sigma is the surface tension, so that the work done on the system is σdA\sigma\,dA), and the fundamental relation becomes dU=TdS+σdAdU = T\,dS + \sigma\,dA.

  1. Write the differential of the potential F=UTSF = U - TS appropriate to this system, and derive the corresponding Maxwell relation.
  2. Suppose the surface tension is measured to be σ(T)=σ0(1T/Tc)\sigma(T) = \sigma_0\bigl(1 - T/T_c\bigr) with σ0>0\sigma_0 > 0 and TcT_c constant. Find the heat QQ absorbed from the bath and the increase ΔU\Delta U in internal energy when the area is increased by AA isothermally.
Solution

1. From F=UTSF = U - TS we get dF=dUTdSSdT=SdT+σdAdF = dU - T\,dS - S\,dT = -S\,dT + \sigma\,dA. The natural variables are therefore (T,A)(T,A), with S=(F/T)AS = -\left(\partial F/\partial T\right)_A and σ=(F/A)T\sigma = \left(\partial F/\partial A\right)_T. If FF is of class C2C^2, Schwarz’s theorem gives 2F/AT=2F/TA\partial^2 F/\partial A\,\partial T = \partial^2 F/\partial T\,\partial A, that is,

(SA)T=(σT)A(SA)T=dσdT.-\left(\frac{\partial S}{\partial A}\right)_T = \left(\frac{\partial \sigma}{\partial T}\right)_A \qquad\Longleftrightarrow\qquad \left(\frac{\partial S}{\partial A}\right)_T = -\frac{d\sigma}{dT}.

This is the third identity of Theorem 6.1 read with the replacement (p,V)(σ,A)(-p, V) \to (\sigma, A).

2. Since dσ/dT=σ0/Tcd\sigma/dT = -\sigma_0/T_c, we have (S/A)T=σ0/Tc>0\left(\partial S/\partial A\right)_T = \sigma_0/T_c > 0. For an isothermal reversible process Q=TΔSQ = T\Delta S, and ΔS=(σ0/Tc)A\Delta S = (\sigma_0/T_c)A, so

Q=σ0TTcA.Q = \frac{\sigma_0 T}{T_c}A .

Stretching the film absorbs heat. For the internal energy, the same computation as in Proposition 6.3 (with the replacements pσ-p \to \sigma and VAV \to A) gives

(UA)T=T(SA)T+σ=σ0TTc+σ0(1TTc)=σ0,\left(\frac{\partial U}{\partial A}\right)_T = T\left(\frac{\partial S}{\partial A}\right)_T + \sigma = \frac{\sigma_0 T}{T_c} + \sigma_0\left(1 - \frac{T}{T_c}\right) = \sigma_0 ,

which is independent of TT. Hence ΔU=σ0A\Delta U = \sigma_0 A. The work done on the system, σA=σ0(1T/Tc)A\sigma A = \sigma_0(1 - T/T_c)A, plus the absorbed heat Q=σ0TA/TcQ = \sigma_0 T A/T_c, is exactly σ0A\sigma_0 A, consistent with the first law.

  • H. B. Callen, Thermodynamics and an Introduction to Thermostatistics, 2nd ed., Wiley, 1985 — Chapter 5 (Legendre transformations and the several potentials), Chapter 7 (Maxwell relations), Chapter 8 (stability). The organisation of this article is closest to the style of this book.
  • Tasaki Hal, Netsurikigaku — Gendaiteki na Shiten kara (Thermodynamics: From a Modern Point of View), Baifukan, 2000 (in Japanese) — Chapter 8 (free energy). An axiomatic and lucid treatment that defines the free energy from the maximum work of an isothermal process.
  • Kubo Ryogo (ed.), Daigaku Enshū: Netsugaku・Tōkei Rikigaku (University Exercises: Heat and Statistical Mechanics), Shokabo, 1961 (in Japanese) — Chapter 2. Rich in exercises on the Maxwell relations and the response functions.
  • L. D. Landau and E. M. Lifshitz, Statistical Physics, Part 1, 3rd ed., Pergamon Press, 1980 — Chapter II (thermodynamic quantities). A concise treatment of the Joule–Thomson effect and of the relations among heat capacities.
  • R. T. Rockafellar, Convex Analysis, Princeton University Press, 1970 — Chapter 12. The general theory of the Legendre transformation (convex conjugation); the standard reference when differentiability cannot be assumed.

Appendix: Convexity, concavity and thermodynamic stability

Section titled “Appendix: Convexity, concavity and thermodynamic stability”

The convexity type of each potential. Part (1) of Theorem 3.2 asserted that the Legendre transform of a strictly convex function is strictly concave. Translated into thermodynamics, this yields the rule: concave in the transformed variables, convex in the untransformed ones. Organised into a table:

PotentialConvex inConcave in
U(S,V)U(S,V)SS, VV
F(T,V)F(T,V)VVTT
H(S,p)H(S,p)SSpp
G(T,p)G(T,p)TT, pp

Why this is stability. That FF is concave in TT says

(2FT2)V=(ST)V=CVT0,\left(\frac{\partial^2 F}{\partial T^2}\right)_V = -\left(\frac{\partial S}{\partial T}\right)_V = -\frac{C_V}{T} \le 0,

which is equivalent to CV0C_V \ge 0. Were CV<0C_V < 0, a region that received heat would drop in temperature, drawing in still more heat, and an infinitesimal temperature fluctuation would grow without bound. Likewise, that FF is convex in VV says

(2FV2)T=(pV)T=1VκT0,\left(\frac{\partial^2 F}{\partial V^2}\right)_T = -\left(\frac{\partial p}{\partial V}\right)_T = \frac{1}{V\kappa_T} \ge 0,

which is equivalent to κT0\kappa_T \ge 0. If this fails, a slightly compressed region drops in pressure and is compressed further, and the system cannot remain uniform. The isotherms of a van der Waals gas do in fact contain intervals on which (p/V)T>0\left(\partial p/\partial V\right)_T > 0. Such an interval is not physically realised; it is replaced by liquid–gas coexistence (phase separation) according to Maxwell’s equal-area rule. The thermodynamic view of a phase transition is that the concavity of G(T,p)G(T,p) expresses this replacement as the operation of taking a concave hull.

Relation to the variational principle. Theorem 5.1 stated that FF decreases at constant T,V,NT, V, N. What guarantees that a stationary point is a minimum is precisely the convexity just discussed. Conversely, in a region where convexity fails, the stationary point ceases to be a minimum and the system settles into a different state, namely a phase-separated one. It is worth remembering that the first derivatives of the potentials govern the Maxwell relations, while the second derivatives govern stability and phase transitions.

Report an error in this article ・Operated by: Mugen Giken LLCPricingTermsLegal notice

© 2026 夢現技研合同会社 ・Feeding the text to an LLM is welcome. Code samples are MIT licensed.