Maxwell Relations

Some thermodynamic quantities are easy to measure and some are nearly impossible. You can measure how much a gas expands when you warm it at constant pressure — that is just thermal expansion, an afternoon in the lab. But how does the entropy of that gas change when you squeeze it at constant temperature? Entropy has no meter; there is no probe you can dip into the gas to read it off. It would seem that such a quantity is beyond direct reach. The Maxwell relations are the astonishing statement that it is not: the unmeasurable entropy change equals a perfectly measurable expansion coefficient, and the equality is exact, forced by nothing more than calculus. The mechanism is disarmingly simple. Every thermodynamic potential — UU, FF, HH, GG — is a state function, so its differential is exact, which means its mixed second partial derivatives commute: ∂2Φ/∂x ∂y=∂2Φ/∂y ∂x\partial^2\Phi/\partial x\,\partial y = \partial^2\Phi/\partial y\,\partial x. Apply this elementary theorem of calculus to each of the four potentials and out fall four identities relating derivatives of SS, TT, PP, VV to one another. That is the entire content: Maxwell relations are the commutativity of mixed partials, dressed in thermodynamic clothing. Their power lies in what they connect. Two of the four relations express derivatives of the entropy — which no instrument reads — in terms of derivatives of the pressure or volume, which any equation of state supplies. This is what makes thermodynamics predictive rather than merely descriptive: measure a few response functions, and the Maxwell relations let you compute quantities you could never measure directly, including the internal pressure that distinguishes a real gas from an ideal one and drives refrigeration by throttling. Because the four potentials are Legendre transforms of one another, the four Maxwell relations are not four independent facts about nature — they are four faces of the same fundamental relation. They also serve as a consistency check: any proposed equation of state, heat capacity, or model must satisfy them, and a violation is a guaranteed sign of a modeling error. They are the exact scaffolding that holds the whole structure of equilibrium thermodynamics rigid.

Key takeaways
  • Maxwell relations equate cross-derivatives of SS, TT, PP, VV; they follow purely from the exactness of the potentials' differentials (mixed partials commute).
  • There are four, one from each potential: UU gives (∂T/∂V)S=−(∂P/∂S)V(\partial T/\partial V)_S = -(\partial P/\partial S)_V; FF gives (∂S/∂V)T=(∂P/∂T)V(\partial S/\partial V)_T = (\partial P/\partial T)_V; HH gives (∂T/∂P)S=(∂V/∂S)P(\partial T/\partial P)_S = (\partial V/\partial S)_P; GG gives (∂S/∂P)T=−(∂V/∂T)P(\partial S/\partial P)_T = -(\partial V/\partial T)_P.
  • Two of them convert unmeasurable entropy derivatives into measurable equation-of-state derivatives.
  • A key consequence is the internal pressure (∂U/∂V)T=T(∂P/∂T)V−P(\partial U/\partial V)_T = T(\partial P/\partial T)_V - P: zero for an ideal gas, aN2/V2aN^2/V^2 for a van der Waals gas.
  • They are a consistency test: any equation of state must satisfy them.
  • Key idea: the four Maxwell relations are the four mixed-partial identities of the four thermodynamic potentials, and they convert unmeasurable entropy changes into measurable response functions.
The core insight

Because each thermodynamic potential (U,F,H,GU, F, H, G) is a state function with an exact differential, its mixed second partial derivatives commute. The four resulting Maxwell relations equate cross-derivatives of S,T,P,VS, T, P, V — crucially expressing unmeasurable entropy derivatives in terms of measurable equation-of-state derivatives, and giving the internal pressure (∂U/∂V)T=T(∂P/∂T)V−P(\partial U/\partial V)_T = T(\partial P/\partial T)_V - P.

Where this lives today

The Maxwell relations are among the most heavily used tools in practical thermal science, precisely because they let one build a full thermodynamic description from a handful of measurable quantities. Every real-fluid equation-of-state package — the ones inside process simulators, refrigeration-cycle design software, and the reference formulations for water (IAPWS-95) and industrial refrigerants — relies on Maxwell relations to compute entropy and enthalpy tables from measured PP–VV–TT data, since entropy is never measured directly. The design of every refrigerator and gas-liquefaction plant rests on the internal pressure (∂U/∂V)T(\partial U/\partial V)_T and the Joule–Thomson coefficient it feeds, both accessible only through these relations. Beyond gases, the same reciprocity structure generalizes to any conjugate work pair. Replacing −P dV-P\,\mathrm{d}V with B dMB\,\mathrm{d}M (magnetic) yields magnetic Maxwell relations that underpin adiabatic-demagnetization cooling to millikelvin temperatures; with E dΠ\mathcal{E}\,\mathrm{d}\Pi (electric) they describe pyroelectric and electrocaloric materials now being explored for solid-state cooling. In condensed-matter experiments, magnetocaloric entropy changes ΔS(T)\Delta S(T) — impossible to measure directly — are routinely extracted from magnetization data M(T,B)M(T,B) via the Maxwell relation (∂S/∂B)T=(∂M/∂T)B(\partial S/\partial B)_T = (\partial M/\partial T)_B, a technique central to the search for room-temperature magnetic refrigeration. Wherever entropy needs to be known but cannot be measured, a Maxwell relation is doing the work.

The physical picture

The idea behind every Maxwell relation is a single fact from multivariable calculus: for a smooth function Φ(x,y)\Phi(x,y), it does not matter whether you differentiate first by xx then by yy, or the other way around — the mixed second derivatives are equal. Thermodynamic potentials are smooth functions of state, so this applies to all of them. The "magic" of relating entropy to expansion is really just this commutativity, applied to Φ=F(T,V)\Phi = F(T,V) or Φ=G(T,P)\Phi = G(T,P). To see it concretely: from dF=−S dT−P dV\mathrm{d}F = -S\,\mathrm{d}T - P\,\mathrm{d}V (at fixed NN) we read off −S=(∂F/∂T)V-S = (\partial F/\partial T)_V and −P=(∂F/∂V)T-P = (\partial F/\partial V)_T. Differentiate the first by VV and the second by TT; commutativity of the mixed partial forces (∂S/∂V)T=(∂P/∂T)V(\partial S/\partial V)_T = (\partial P/\partial T)_V. The left side is how entropy changes when you expand at fixed temperature — unmeasurable. The right side is how pressure changes when you warm at fixed volume — trivially measurable. The equality is exact.

Figure
The thermodynamic square: read off potentials, natural variables, and Maxwell relations
The thermodynamic (Born) square F G H U V T S P corners = natural variables; edges = potentials Maxwell: opposite corners of each edge, arrows set the sign diagonals ↔ conjugate pairs (T,S) (P,V)

Once you internalize this, the Maxwell relations stop being four formulas to memorize and become one idea with four instances. The thermodynamic square above is the classic mnemonic: place S,V,T,PS, V, T, P at the corners and the potentials on the edges, and each Maxwell relation is read off directly, including its sign. The punchline plot below shows why this matters physically — the internal pressure (∂U/∂V)T(\partial U/\partial V)_T, computable only through a Maxwell relation, cleanly separates the ideal gas (a flat zero line) from real gases (a nonzero curve), and that separation is exactly what makes real gases cool on expansion.

Figure
Punchline: the internal pressure a/v² separates real gases from the ideal-gas zero line
Internal pressure (∂U/∂V)_T from a Maxwell relation (∂U/∂V)_T V → ideal gas: exactly 0 (energy depends only on T) van der Waals: aN²/V² > 0 (attraction) energy stored in intermolecular attraction ⇒ cooling on expansion (Joule–Thomson)

The core equations

Every Maxwell relation is the commutativity of mixed partials of a potential. Stating the master principle first: for any C2C^2 potential Φ(x,y)\Phi(x,y),

∂2Φ∂x ∂y=∂2Φ∂y ∂x(1)\frac{\partial^2 \Phi}{\partial x\,\partial y} = \frac{\partial^2 \Phi}{\partial y\,\partial x} \qquad (1)

where: Φ\Phi — any thermodynamic potential; x,yx, y — its two natural variables (at fixed NN). This is the Euler reciprocity condition for an exact differential dΦ=M dx+N dy\mathrm{d}\Phi = M\,\mathrm{d}x + N\,\mathrm{d}y: (∂M/∂y)x=(∂N/∂x)y(\partial M/\partial y)_x = (\partial N/\partial x)_y. Applying (1) to each of the four potentials gives the four Maxwell relations. From UU (dU=T dS−P dV\mathrm{d}U = T\,\mathrm{d}S - P\,\mathrm{d}V):

(∂T∂V)S=−(∂P∂S)V(2)\left(\frac{\partial T}{\partial V}\right)_S = -\left(\frac{\partial P}{\partial S}\right)_V \qquad (2)

From the Helmholtz free energy FF (dF=−S dT−P dV\mathrm{d}F = -S\,\mathrm{d}T - P\,\mathrm{d}V) — the workhorse relation that turns entropy into pressure:

(∂S∂V)T=(∂P∂T)V(3)\left(\frac{\partial S}{\partial V}\right)_T = \left(\frac{\partial P}{\partial T}\right)_V \qquad (3)

where: the left side is an entropy derivative (no meter), the right side an equation-of-state derivative (easy). This is the relation used most in derivations. From the enthalpy HH (dH=T dS+V dP\mathrm{d}H = T\,\mathrm{d}S + V\,\mathrm{d}P):

(∂T∂P)S=(∂V∂S)P(4)\left(\frac{\partial T}{\partial P}\right)_S = \left(\frac{\partial V}{\partial S}\right)_P \qquad (4)

From the Gibbs free energy GG (dG=−S dT+V dP\mathrm{d}G = -S\,\mathrm{d}T + V\,\mathrm{d}P) — the relation used most experimentally, since TT and PP are directly controllable:

(∂S∂P)T=−(∂V∂T)P(5)\left(\frac{\partial S}{\partial P}\right)_T = -\left(\frac{\partial V}{\partial T}\right)_P \qquad (5)

where: the right side is −Vα-V\alpha, with α=1V(∂V/∂T)P\alpha = \tfrac1V(\partial V/\partial T)_P the measurable thermal expansion coefficient. So the entropy's pressure dependence is just the expansivity. Combining relation (3) with dU=T dS−P dV\mathrm{d}U = T\,\mathrm{d}S - P\,\mathrm{d}V gives the internal pressure, the flagship consequence:

(∂U∂V)T=T(∂P∂T)V−P(6)\left(\frac{\partial U}{\partial V}\right)_T = T\left(\frac{\partial P}{\partial T}\right)_V - P \qquad (6)

where: for an ideal gas (∂P/∂T)V=P/T(\partial P/\partial T)_V = P/T makes this vanish; for a van der Waals gas it equals aN2/V2>0aN^2/V^2 > 0, the energy stored in intermolecular attraction.

Derivation AAll four Maxwell relations from the four potentials

The goal is to derive all four Maxwell relations at once, exhibiting them as the four instances of one calculus theorem — the commutativity of mixed second partials of a state function — rather than four unrelated formulas. For each potential we read off its two first derivatives from its differential, then equate the two ways of taking the mixed second derivative. Doing all four together reveals the pattern (and its sign structure, captured by the thermodynamic square) and makes clear that these are four faces of one fundamental relation, not four independent statements about nature.

Step 1. From dU=T dS−P dV\mathrm{d}U = T\,\mathrm{d}S - P\,\mathrm{d}V: T=(∂U/∂S)VT = (\partial U/\partial S)_V and −P=(∂U/∂V)S-P = (\partial U/\partial V)_S. Equating ∂2U/∂V ∂S=∂2U/∂S ∂V\partial^2 U/\partial V\,\partial S = \partial^2 U/\partial S\,\partial V gives (∂T/∂V)S=−(∂P/∂S)V(\partial T/\partial V)_S = -(\partial P/\partial S)_V — relation (2). Why: differentiating TT by VV and −P-P by SS produces the same mixed partial of UU.

Step 2. From dF=−S dT−P dV\mathrm{d}F = -S\,\mathrm{d}T - P\,\mathrm{d}V: −S=(∂F/∂T)V-S = (\partial F/\partial T)_V and −P=(∂F/∂V)T-P = (\partial F/\partial V)_T. Commuting gives (∂S/∂V)T=(∂P/∂T)V(\partial S/\partial V)_T = (\partial P/\partial T)_V — relation (3), the entropy-to-pressure workhorse. Why: the same mixed partial of FF computed two ways, with the two minus signs cancelling to leave a plus.

Step 3. From dH=T dS+V dP\mathrm{d}H = T\,\mathrm{d}S + V\,\mathrm{d}P: T=(∂H/∂S)PT = (\partial H/\partial S)_P, V=(∂H/∂P)SV = (\partial H/\partial P)_S, giving (∂T/∂P)S=(∂V/∂S)P(\partial T/\partial P)_S = (\partial V/\partial S)_P — relation (4). And from dG=−S dT+V dP\mathrm{d}G = -S\,\mathrm{d}T + V\,\mathrm{d}P: −S=(∂G/∂T)P-S = (\partial G/\partial T)_P, V=(∂G/∂P)TV = (\partial G/\partial P)_T, giving (∂S/∂P)T=−(∂V/∂T)P(\partial S/\partial P)_T = -(\partial V/\partial T)_P — relation (5). Why: each potential's two first derivatives, cross-differentiated, yield one relation; the signs track which variable carries the minus in the differential.

Step 4. The sign pattern (+,−,+,−+,-,+,- across F,U/GF, U/G) is exactly encoded by the thermodynamic (Born) square: place S,VS, V on one diagonal and T,PT, P on the other, and each relation reads off with its sign from the arrows. The four are not independent — since U,F,H,GU, F, H, G are Legendre transforms of one another, they are four projections of the single fundamental relation. Why: the square is a mnemonic for the shared origin, and the shared origin is why any equation of state must satisfy all four simultaneously. *Verified: all four Maxwell relations are checked symbolically for a general C2C^2 potential and explicitly for the ideal-gas potentials (matching cross-derivatives on both sides) in verify_aq-sm-maxwell-relations.py.*

Go deeper · Derivation B · 1 minThe internal pressure and what distinguishes a real gas
Derivation BThe internal pressure and what distinguishes a real gas

The goal is to derive the "thermodynamic equation of state" (∂U/∂V)T=T(∂P/∂T)V−P(\partial U/\partial V)_T = T(\partial P/\partial T)_V - P — the internal pressure — using the Helmholtz Maxwell relation, and to show it is the single quantity that operationally separates an ideal gas from a real one. This result is not a curiosity: the internal pressure is the energy stored in intermolecular forces, and it directly determines whether a gas cools or warms on throttled expansion (the Joule–Thomson effect that runs every refrigerator).

Step 1. Write the internal energy in natural variables (T,V)(T,V): dU=(∂U/∂T)V dT+(∂U/∂V)T dV\mathrm{d}U = (\partial U/\partial T)_V\,\mathrm{d}T + (\partial U/\partial V)_T\,\mathrm{d}V. We want the second coefficient, the internal pressure. Why: it measures how energy changes with volume at fixed temperature — zero only if energy is volume-independent.

Step 2. From dU=T dS−P dV\mathrm{d}U = T\,\mathrm{d}S - P\,\mathrm{d}V at fixed TT: (∂U/∂V)T=T(∂S/∂V)T−P(\partial U/\partial V)_T = T(\partial S/\partial V)_T - P. The entropy derivative is unmeasurable — but the Helmholtz Maxwell relation (3) rescues us: (∂S/∂V)T=(∂P/∂T)V(\partial S/\partial V)_T = (\partial P/\partial T)_V. Why: this is the whole point of the Maxwell relation — it swaps the unmeasurable (∂S/∂V)T(\partial S/\partial V)_T for the measurable (∂P/∂T)V(\partial P/\partial T)_V.

Step 3. Substitute to get (∂U/∂V)T=T(∂P/∂T)V−P(\partial U/\partial V)_T = T(\partial P/\partial T)_V - P, Equation (6). For an ideal gas P=NkBT/VP = Nk_BT/V, so (∂P/∂T)V=NkB/V=P/T(\partial P/\partial T)_V = Nk_B/V = P/T, and the internal pressure is T⋅P/T−P=0T\cdot P/T - P = 0: ideal-gas energy depends only on temperature. Why: with no intermolecular forces there is no energy stored in the spacing of molecules, so expanding at fixed TT costs no energy.

Step 4. For a van der Waals gas P=NkBTV−Nb−aN2V2P = \tfrac{Nk_BT}{V - Nb} - \tfrac{aN^2}{V^2}: (∂P/∂T)V=NkBV−Nb(\partial P/\partial T)_V = \tfrac{Nk_B}{V - Nb}, and (∂U/∂V)T=NkBTV−Nb−P=aN2V2>0(\partial U/\partial V)_T = \tfrac{Nk_BT}{V-Nb} - P = \tfrac{aN^2}{V^2} > 0. Attractive interactions store energy as the gas expands, so pulling the molecules apart requires energy drawn from the thermal motion — the gas cools. Why: this positive internal pressure, computed purely from a Maxwell relation, is the microscopic origin of Joule–Thomson cooling and hence of gas liquefaction. *Verified: the van der Waals internal pressure (∂U/∂V)T=aN2/V2(\partial U/\partial V)_T = aN^2/V^2 and the ideal-gas result of zero are checked symbolically in the verify script.*

Limiting cases

Where the Maxwell relations bite hardest:

CaseResultMeaning
Ideal gas, relation (3)(∂S/∂V)T=(∂P/∂T)V=NkB/V(\partial S/\partial V)_T = (\partial P/\partial T)_V = Nk_B/VBoth sides NkB/VNk_B/V; entropy rises on expansion.
Internal pressure, ideal(∂U/∂V)T=0(\partial U/\partial V)_T = 0Energy depends only on TT — Joule's free-expansion result.
Internal pressure, van der Waals(∂U/∂V)T=aN2/V2(\partial U/\partial V)_T = aN^2/V^2Attraction stores energy; drives Joule–Thomson cooling.
Relation (5) via expansivity(∂S/∂P)T=−Vα(\partial S/\partial P)_T = -V\alphaEntropy's pressure dependence = thermal expansion; usually negative.
Incompressible solid (α→0\alpha \to 0)(∂S/∂P)T→0(\partial S/\partial P)_T \to 0Squeezing a rigid solid barely changes its entropy.
Negative expansion (water below 4°C)(∂S/∂P)T>0(\partial S/\partial P)_T > 0Anomalous: entropy rises with pressure where α<0\alpha < 0.

Worked examples

1 · Turning an unmeasurable entropy change into a measured one (confidence builder)

One mole of an ideal gas at T=300 KT = 300\ \mathrm{K}, V=22.4 LV = 22.4\ \mathrm{L} is expanded isothermally to 2V2V. Use the Maxwell relation (3) to compute the entropy change without ever "measuring" entropy — then check against the known ΔS=Rln⁡2\Delta S = R\ln 2.

Step 1. The Maxwell relation (3) gives (∂S/∂V)T=(∂P/∂T)V(\partial S/\partial V)_T = (\partial P/\partial T)_V. For an ideal gas P=RT/VP = RT/V (per mole), so (∂P/∂T)V=R/V=371 Pa/K(\partial P/\partial T)_V = R/V = \mathbf{371\ Pa/K} at V=22.4 LV = 22.4\ \mathrm{L} (since R/V=8.314/0.0224R/V = 8.314/0.0224). The unmeasurable entropy slope equals this measured pressure slope.

Step 2. Integrate at fixed TT: ΔS=∫V2V(∂S/∂V)T dV′=∫V2VRV′ dV′=Rln⁡2VV=Rln⁡2\Delta S = \int_V^{2V}(\partial S/\partial V)_T\,\mathrm{d}V' = \int_V^{2V}\frac{R}{V'}\,\mathrm{d}V' = R\ln\frac{2V}{V} = R\ln 2.

Step 3. Evaluate: ΔS=(8.314)(0.693)=5.76 J/K\Delta S = (8.314)(0.693) = \mathbf{5.76\ J/K}. Positive, as expected — the gas gains entropy on expansion.

Step 4. Cross-check: the direct statistical result for isothermal expansion is exactly ΔS=NkBln⁡(Vf/Vi)=Rln⁡2=5.76 J/K\Delta S = Nk_B\ln(V_f/V_i) = R\ln 2 = 5.76\ \mathrm{J/K}. The Maxwell route, using only the measurable equation-of-state derivative (∂P/∂T)V(\partial P/\partial T)_V, reproduces the entropy change — the promise of the relations made concrete.

2 · Internal pressure and energy of expansion for CO₂ (exam level)

Using relation (6), find the internal pressure of a van der Waals gas and compute the energy required to isothermally expand 1 mol1\ \mathrm{mol} of CO2_2 (a=0.364 Pa m6/mol2a = 0.364\ \mathrm{Pa\,m^6/mol^2}) from 1 L1\ \mathrm{L} to ∞\infty (fully separating the molecules).

Step 1. Internal pressure: (∂U/∂V)T=T(∂P/∂T)V−P(\partial U/\partial V)_T = T(\partial P/\partial T)_V - P. For van der Waals, (∂P/∂T)V=RV−b(\partial P/\partial T)_V = \tfrac{R}{V - b} (per mole), so (∂U/∂V)T=RTV−b−(RTV−b−aV2)=aV2(\partial U/\partial V)_T = \tfrac{RT}{V-b} - \big(\tfrac{RT}{V-b} - \tfrac{a}{V^2}\big) = \mathbf{\tfrac{a}{V^2}}. Purely the attraction term.

Step 2. Energy to expand isothermally: ΔU=∫V0∞(∂U/∂V)T dV=∫V0∞aV2 dV=aV0\Delta U = \int_{V_0}^{\infty}(\partial U/\partial V)_T\,\mathrm{d}V = \int_{V_0}^{\infty}\frac{a}{V^2}\,\mathrm{d}V = \frac{a}{V_0}.

Step 3. Evaluate for CO2_2 at V0=1×10−3 m3/molV_0 = 1\times10^{-3}\ \mathrm{m^3/mol}: ΔU=0.364/10−3=364 J/mol\Delta U = 0.364/10^{-3} = \mathbf{364\ J/mol}. This is the energy stored in intermolecular attraction, released as the gas is compressed and required back to pull it apart.

Step 4. Physical consequence: because expanding CO2_2 against its own attraction costs energy, an adiabatic throttled expansion (no heat in) draws that energy from thermal motion, so the gas cools by roughly ΔU/CV∼364/28≈13 K\Delta U/C_V \sim 364/28 \approx 13\ \mathrm{K} per full expansion — the Joule–Thomson effect. A single Maxwell relation predicted the cooling that liquefies gases; without it, (∂U/∂V)T(\partial U/\partial V)_T would be inaccessible.

Origins · 1 minmaxwell relations and how this was discovered
MR
maxwell relations
concept · exact differentials of the potentials

The relations are named for James Clerk Maxwell, who presented them in his 1871 textbook Theory of Heat, deriving them from the geometry of the thermodynamic surface that Gibbs would soon formalize. What Maxwell recognized — and what makes the relations timeless — is that they require no assumptions about the substance: they are consequences of a thermodynamic potential being a well-behaved function of state, so that its differential is exact and its mixed partial derivatives commute. The compact mnemonic now taught (the "thermodynamic square" or "Born square") was popularized by Max Born in 1929 and by the physicist Koenig; it arranges the natural variables S,V,T,PS, V, T, P at the corners of a square with the potentials on the edges, letting one read off every Maxwell relation, including its sign, by inspection. The relations remain one of the most-used tools in all of thermal physics, precisely because they convert quantities you cannot measure into ones you can.

History
1859
— Maxwell derives the velocity distribution, sharpening the statistical foundation of thermodynamics.
1865
— Clausius states dU = T dS − P dV, the exact differential from which the relations flow.
1871
— Maxwell presents the reciprocity relations in Theory of Heat.
1873
— Gibbs's thermodynamic surface makes the "exact differential ⇒ commuting partials" structure geometric.
1875
— Gibbs's potentials give the four differentials that generate all four relations.
1929
— Born popularizes the thermodynamic-square mnemonic for reading off the relations and signs.

Going further

References. Callen, Thermodynamics and an Introduction to Thermostatistics, 2nd ed., ch. 7 (Maxwell relations and the thermodynamic square) · Pathria & Beale, Statistical Mechanics, 3rd ed., ch. 1 · Reif, Fundamentals of Statistical and Thermal Physics, §5.6 · Kardar, Statistical Physics of Particles, ch. 1 · Landau & Lifshitz, Statistical Physics Part 1, §16 · Maxwell, Theory of Heat (1871), the original derivation.

Provenance. The four Maxwell relations (2)–(5) follow from equating mixed partials of U,F,H,GU, F, H, G (Callen ch. 7; Reif §5.6). The internal pressure (∂U/∂V)T=T(∂P/∂T)V−P(\partial U/\partial V)_T = T(\partial P/\partial T)_V - P gives 00 for an ideal gas and aN2/V2aN^2/V^2 for van der Waals — both checked symbolically. Numerical instances: (∂P/∂T)V=R/V=371 Pa/K(\partial P/\partial T)_V = R/V = 371\ \mathrm{Pa/K} and ΔS=Rln⁡2=5.76 J/K\Delta S = R\ln 2 = 5.76\ \mathrm{J/K} for isothermal doubling; CO2_2 internal energy of expansion ΔU=a/V0=364 J/mol\Delta U = a/V_0 = 364\ \mathrm{J/mol} (a=0.364 Pa m6/mol2a = 0.364\ \mathrm{Pa\,m^6/mol^2}). All in verify_aq-sm-maxwell-relations.py. R=8.314 J mol−1K−1R = 8.314\ \mathrm{J\,mol^{-1}K^{-1}}.

Builds on: Thermodynamic Potentials and the Fundamental Relation · Legendre Transforms · Work, Heat, and Inexact Differentials · Second Law of Thermodynamics and Entropy. Leads to: Helmholtz Free Energy, Enthalpy, and Gibbs Free Energy · Euler Relation and Gibbs–Duhem Equation · Temperature, Pressure, and Chemical Potential as Entropy Derivatives.

How do I remember the four Maxwell relations without memorizing them?

Use the thermodynamic (Born) square, or just re-derive them — each takes three lines. To re-derive: pick the potential whose two natural variables you want (FF for (T,V)(T,V), GG for (T,P)(T,P), etc.), write its differential (e.g. dF=−S dT−P dV\mathrm{d}F = -S\,\mathrm{d}T - P\,\mathrm{d}V), read off the two first derivatives, and set the mixed second partials equal. The signs come from the signs in the differential. For the square: draw a box with V,TV, T on top corners and S,PS, P on bottom, label the edges FF (top), GG (right), HH (bottom), UU (left); each Maxwell relation connects the two variables not on a given edge, with a sign set by whether the arrows point together. Deriving beats memorizing because you will never mis-recall a sign.

Why can two of the Maxwell relations "measure" entropy but the other two can't?

Look at what each relates. Relations (3) and (5) — from FF and GG — have an entropy derivative on one side and a pressure/volume derivative on the other: (∂S/∂V)T=(∂P/∂T)V(\partial S/\partial V)_T = (\partial P/\partial T)_V and (∂S/∂P)T=−(∂V/∂T)P(\partial S/\partial P)_T = -(\partial V/\partial T)_P. Since PP–VV–TT derivatives are directly measurable from an equation of state, these two let you compute entropy changes you could never measure with an instrument. Relations (2) and (4) — from UU and HH — hold entropy fixed (they are derivatives at constant SS), so they relate quantities on adiabats and are less immediately useful for extracting entropy, though they are essential in adiabatic processes and for the speed of sound. The "useful for entropy" pair is exactly the pair whose natural variables are TT (not SS), because those are the potentials you use when temperature is controlled.

Do Maxwell relations only apply to gases?

Not at all — they apply to any system with an exact-differential potential, which is essentially every equilibrium system. The general structure is one Maxwell relation per pair of conjugate variables. Replace the mechanical work term −P dV-P\,\mathrm{d}V with a magnetic term B dMB\,\mathrm{d}M, an electric term E dΠ\mathcal{E}\,\mathrm{d}\Pi, a surface term γ dA\gamma\,\mathrm{d}A, or an elastic-stress term, and you get magnetic, electric, surface, or elastic Maxwell relations. The magnetic one, (∂S/∂B)T=(∂M/∂T)B(\partial S/\partial B)_T = (\partial M/\partial T)_B, is the basis of magnetocaloric cooling and is how experimentalists extract entropy changes from magnetization data. So the relations are a completely general feature of thermodynamics, not a property of gases; gases are just the simplest place to meet them.

Is the internal pressure the same thing as the ordinary pressure?

No — they are different quantities with different meanings. The ordinary pressure PP is the force per area the gas exerts on its walls (mechanical). The internal pressure πT=(∂U/∂V)T\pi_T = (\partial U/\partial V)_T is how the internal energy changes with volume at fixed temperature, and it measures the energy stored in intermolecular forces. For an ideal gas πT=0\pi_T = 0 even though P≠0P \ne 0: the molecules push on the walls but store no energy in their mutual spacing. For a real gas πT=aN2/V2>0\pi_T = aN^2/V^2 > 0 because attractive forces do store energy as the molecules separate. The two are related through the thermodynamic equation of state πT=T(∂P/∂T)V−P\pi_T = T(\partial P/\partial T)_V - P — a Maxwell-relation consequence — but conceptually one is a wall force and the other is an interaction-energy density.

What role do Maxwell relations play in deriving other thermodynamic identities?

They are the universal joints of thermodynamic algebra. Almost every nontrivial identity connecting response functions — the difference CP−CV=TVα2/κTC_P - C_V = TV\alpha^2/\kappa_T, the internal pressure, the Joule–Thomson coefficient, the ratio γ=CP/CV=κT/κS\gamma = C_P/C_V = \kappa_T/\kappa_S — is derived by taking a derivative you cannot measure, using a Maxwell relation to swap it for one you can, and simplifying. The general strategy is: express the target quantity in terms of derivatives of a potential, hit any entropy derivative with the appropriate Maxwell relation to convert it to a PP–VV–TT derivative, and reduce to measurable response functions (CPC_P, α\alpha, κT\kappa_T). Learning to deploy the four relations fluently is what turns thermodynamics from a set of formulas into a calculational method.

Why does the sign differ between the four relations — two have a minus sign and two don't?

The sign is inherited directly from the differential of the potential. In dU=T dS−P dV\mathrm{d}U = T\,\mathrm{d}S - P\,\mathrm{d}V the pressure term carries a minus, so the UU-relation (∂T/∂V)S=−(∂P/∂S)V(\partial T/\partial V)_S = -(\partial P/\partial S)_V picks it up; the same happens for GG (where −S dT-S\,\mathrm{d}T contributes the minus), giving (∂S/∂P)T=−(∂V/∂T)P(\partial S/\partial P)_T = -(\partial V/\partial T)_P. In dF=−S dT−P dV\mathrm{d}F = -S\,\mathrm{d}T - P\,\mathrm{d}V both first derivatives (−S-S and −P-P) carry a minus, and the two minus signs cancel when you commute the mixed partial, leaving the plus relation (∂S/∂V)T=(∂P/∂T)V(\partial S/\partial V)_T = (\partial P/\partial T)_V; likewise for HH. The thermodynamic square encodes exactly this by the direction of its arrows. So the signs are not arbitrary — they are bookkeeping of the minus signs in each potential's differential, which is why re-deriving is safer than memorizing.

Before this

Where this leads