The Maxwell Relations

No entropy meter exists. Yet you can measure how volume changes with temperature at constant pressure. You only need a ruler and a thermometer. The Maxwell relations let you trade the unmeasurable for the measurable. These four equations are not new physics. They are bookkeeping, guaranteed by the mathematics of exact differentials. This mathematics applies to the four thermodynamic potentials. Because UU, HH, AA, and GG are state functions, their mixed second partial derivatives must agree. That single fact of calculus generates four exact, testable relations. These relations connect PP, VV, TT, and SS. This article derives all four relations from the fundamental equations. You will see the general recipe for building a Maxwell relation from any potential. Then you will apply the relations to real numerical problems. Finally you will see where they lead next. They point toward equations of state and pressure dependence of the Gibbs energy.

Key takeaways
  • The Maxwell relations come from equating mixed partial derivatives of UU, HH, AA, GG.
  • Each relation trades an entropy derivative for a mechanical one you can measure directly.
  • They require only that the potential be a state function with an exact differential.
  • Applications include finding (∂S/∂V)T(\partial S/\partial V)_T and (∂S/∂P)T(\partial S/\partial P)_T without a calorimeter.
  • They feed directly into deriving thermodynamic equations of state and the pressure dependence of GG.
  • Key idea: if a quantity is a true state function, the order of differentiation cannot matter, and that constraint is a working formula.
The core insight

Because dUdU, dHdH, dAdA, and dGdG are exact differentials, the equality of mixed second partial derivatives, ∂2U/∂S∂V=∂2U/∂V∂S\partial^2 U/\partial S\partial V = \partial^2 U/\partial V\partial S, converts abstract exactness into four concrete, experimentally checkable relations linking PP, VV, TT, SS.

The physical picture

Every thermodynamic potential is a function of its own natural variables. Internal energy U(S,V)U(S,V), enthalpy H(S,P)H(S,P), Helmholtz energy A(T,V)A(T,V), and Gibbs energy G(T,P)G(T,P) each generate a fundamental equation from the first and second laws. Each fundamental equation is an exact differential: a tiny change in the potential can be split into two independent pieces, one for each natural variable, with well-defined coefficients. The deep fact of multivariable calculus is that for any well-behaved function f(x,y)f(x,y), differentiating first with respect to xx then yy gives the same answer as differentiating first with respect to yy then xx. Thermodynamic potentials, built from state functions, obey this automatically. Applying it to UU, HH, AA, GG produces the four Maxwell relations. Each one links an entropy derivative, hard to measure, to a PP–VV–TT derivative, easy to measure with standard lab equipment. The picture below shows the "thermodynamic square," a classic mnemonic. Each potential sits between the two natural variables it depends on, and each side of the square encodes one Maxwell relation.

Figure
The thermodynamic square: potentials, natural variables, and the four Maxwell relations they generate
A(T,V) G(T,P) U(S,V) H(S,P) T T P P S S V V mixed 2nd derivatives equal Example: from A(T,V), (∂S/∂V)T = (∂P/∂T)V

The core relations

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

where: derived from U(S,V)U(S,V); both sides equal ∂2U/∂S ∂V\partial^2 U/\partial S\,\partial V up to sign.

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

where: derived from H(S,P)H(S,P); links adiabatic temperature change to entropy-volume coupling.

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

where: derived from A(T,V)A(T,V); the most-used relation, giving entropy change from an equation of state.

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

where: derived from G(T,P)G(T,P); connects isothermal entropy change to thermal expansion.

Derivation ABuilding a Maxwell relation from a fundamental equation

Goal. Derive the Maxwell relation hidden inside the Helmholtz energy, A(T,V)A(T,V), and show the general method that produces all four.

Step 1. Write the fundamental equation. Starting from U=TS−PVU = TS - PV for a closed system doing only PVPV work, and combining the first law dU=δqrev−PdVdU = \delta q_{rev} - PdV with the second law δqrev=TdS\delta q_{rev} = TdS, we get:

dU=TdS−PdVdU = TdS - PdV

Define A≡U−TSA \equiv U - TS. Differentiating,

dA=dU−TdS−SdT=TdS−PdV−TdS−SdTdA = dU - TdS - SdT = TdS - PdV - TdS - SdT

which collapses to the fundamental equation for the Helmholtz energy:

dA=−SdT−PdVdA = -SdT - PdV

Step 2. Identify the natural variables and read off the coefficients. Because A=A(T,V)A = A(T,V), its total differential is by definition

dA=(∂A∂T)VdT+(∂A∂V)TdVdA = \left(\frac{\partial A}{\partial T}\right)_V dT + \left(\frac{\partial A}{\partial V}\right)_T dV

Comparing term by term with Step 1 gives two identifications:

(∂A∂T)V=−S,(∂A∂V)T=−P\left(\frac{\partial A}{\partial T}\right)_V = -S, \qquad \left(\frac{\partial A}{\partial V}\right)_T = -P

Step 3. Impose exactness. Since AA is a state function, its differential is exact, so the mixed second partials must agree regardless of order:

∂∂V(∂A∂T)V∣T=∂∂T(∂A∂V)T∣V\frac{\partial}{\partial V}\left(\frac{\partial A}{\partial T}\right)_V\bigg|_T = \frac{\partial}{\partial T}\left(\frac{\partial A}{\partial V}\right)_T\bigg|_V

Step 4. Substitute the Step 2 results. The left side becomes −(∂S/∂V)T-\left(\partial S/\partial V\right)_T and the right side becomes −(∂P/∂T)V-\left(\partial P/\partial T\right)_V:

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

Step 5. Cancel the sign and box the result.

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

The identical four-step method, applied to U(S,V)U(S,V), H(S,P)H(S,P), and G(T,P)G(T,P), produces the other three relations listed above. Only the starting fundamental equation and the sign bookkeeping change.

Worked examples

Example 1 — Entropy change of an ideal gas on isothermal expansion. Find (∂S/∂V)T(\partial S/\partial V)_T for one mole of an ideal gas, then compute ΔS\Delta S for isothermal expansion from 10.0 L to 20.0 L at 298 K. Using the Maxwell relation from Helmholtz energy,

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

For an ideal gas, P=RT/VP = RT/V, so at constant VV,

(∂P∂T)V=RV\left(\frac{\partial P}{\partial T}\right)_V = \frac{R}{V}

Therefore (∂S/∂V)T=R/V(\partial S/\partial V)_T = R/V, independent of temperature — a genuinely non-obvious result obtained without ever measuring entropy directly. Integrating at constant TT from V1V_1 to V2V_2:

ΔS=∫V1V2RV dV=Rln⁡V2V1\Delta S = \int_{V_1}^{V_2} \frac{R}{V}\,dV = R\ln\frac{V_2}{V_1}

Plugging in numbers, with R=8.314 J K−1mol−1R = 8.314\ \text{J K}^{-1}\text{mol}^{-1}:

ΔS=8.314 J K−1mol−1×ln⁡(20.010.0)=8.314×0.6931=5.76 J K−1mol−1\Delta S = 8.314\ \text{J K}^{-1}\text{mol}^{-1} \times \ln\left(\frac{20.0}{10.0}\right) = 8.314 \times 0.6931 = 5.76\ \text{J K}^{-1}\text{mol}^{-1}

Sanity check: expansion increases accessible microstates, so ΔS>0\Delta S > 0, consistent with the sign obtained. The value also matches the standard ideal-gas formula ΔS=nRln⁡(V2/V1)\Delta S = nR\ln(V_2/V_1) derived independently from statistical mechanics, confirming the Maxwell-relation route.

Example 2 — Isothermal entropy and internal-energy change of a real gas from its equation of state. A gas obeys the truncated virial-type equation of state

P=RTVm+aVm2P = \frac{RT}{V_m} + \frac{a}{V_m^2}

with a=−0.220 Pa m6mol−2a = -0.220\ \text{Pa m}^6\text{mol}^{-2} (a small attractive correction, similar in spirit to a van der Waals term). Find (∂S/∂Vm)T(\partial S/\partial V_m)_T and use it to estimate ΔSm\Delta S_m for isothermal expansion of the gas at T=350T = 350 K from Vm,1=5.00×10−4 m3mol−1V_{m,1} = 5.00\times10^{-4}\ \text{m}^3\text{mol}^{-1} to Vm,2=1.00×10−3 m3mol−1V_{m,2} = 1.00\times10^{-3}\ \text{m}^3\text{mol}^{-1}. Then find the corresponding (∂Um/∂Vm)T(\partial U_m/\partial V_m)_T, the "internal pressure."

Step 1: entropy derivative. By the Maxwell relation,

(∂Sm∂Vm)T=(∂P∂T)Vm=RVm\left(\frac{\partial S_m}{\partial V_m}\right)_T = \left(\frac{\partial P}{\partial T}\right)_{V_m} = \frac{R}{V_m}

because the a/Vm2a/V_m^2 term is temperature-independent and drops out upon differentiating with respect to TT. This is the same functional form as the ideal gas, since the correction term has no explicit TT dependence.

Step 2: integrate for ΔSm\Delta S_m.

ΔSm=Rln⁡Vm,2Vm,1=8.314 J K−1mol−1×ln⁡(2.00)=8.314×0.6931=5.76 J K−1mol−1\Delta S_m = R\ln\frac{V_{m,2}}{V_{m,1}} = 8.314\ \text{J K}^{-1}\text{mol}^{-1}\times\ln(2.00) = 8.314\times0.6931 = 5.76\ \text{J K}^{-1}\text{mol}^{-1}

Interestingly, because the correction term is TT-independent, the entropy change is identical to the ideal-gas value from Example 1, even though the gas is non-ideal.

Step 3: internal pressure from the thermodynamic equation of state. A standard result (itself derived from the same Maxwell relation, foreshadowing the thermodynamic-equation-of-state topic) states:

(∂Um∂Vm)T=T(∂P∂T)Vm−P\left(\frac{\partial U_m}{\partial V_m}\right)_T = T\left(\frac{\partial P}{\partial T}\right)_{V_m} - P

Compute each piece at, say, Vm,1=5.00×10−4 m3mol−1V_{m,1} = 5.00\times10^{-4}\ \text{m}^3\text{mol}^{-1}, T=350T=350 K:

T(∂P∂T)Vm=T⋅RVm=350×8.3145.00×10−4=350×16,628=5.820×106 PaT\left(\frac{\partial P}{\partial T}\right)_{V_m} = T\cdot\frac{R}{V_m} = 350 \times \frac{8.314}{5.00\times10^{-4}} = 350\times16{,}628 = 5.820\times10^{6}\ \text{Pa}
P=RTVm+aVm2=8.314×3505.00×10−4+−0.220(5.00×10−4)2P = \frac{RT}{V_m} + \frac{a}{V_m^2} = \frac{8.314\times350}{5.00\times10^{-4}} + \frac{-0.220}{(5.00\times10^{-4})^2}
P=5.820×106+(−8.80×105)=4.940×106 PaP = 5.820\times10^{6} + (-8.80\times10^{5}) = 4.940\times10^{6}\ \text{Pa}
(∂Um∂Vm)T=5.820×106−4.940×106=8.80×105 Pa=0.880 MPa\left(\frac{\partial U_m}{\partial V_m}\right)_T = 5.820\times10^{6} - 4.940\times10^{6} = 8.80\times10^{5}\ \text{Pa} = 0.880\ \text{MPa}

Sanity check: this equals exactly −a/Vm2-a/V_m^2, as it must, since for this equation of state the ideal term cancels identically, leaving only the correction term. A negative aa (net attraction) should give a positive internal-pressure derivative reflecting extra cohesive energy cost on expansion, matching the algebra above.

Limiting cases & common traps

SituationWhat happensWhy
Ideal gas(∂S/∂V)T=R/V(\partial S/\partial V)_T = R/V exactlyP=nRT/VP=nRT/V has no other TT-dependent term
Incompressible solid or liquid(∂V/∂T)P≈0(\partial V/\partial T)_P \approx 0thermal expansion coefficient is small, so (∂S/∂P)T≈0(\partial S/\partial P)_T \approx 0
Any equation of state with TT-independent attractive termentropy relation reduces to ideal-gas formderivative with respect to TT kills the term
Using the wrong potential's natural variablesrelation becomes meaningless or wrongeach relation only holds when the derivatives use that potential's own natural variable pair

The chemist behind it

James Clerk Maxwell is remembered mostly as a physicist for electromagnetism, but his 1871 textbook "Theory of Heat" introduced these thermodynamic identities using an elegant geometric argument based on the properties of a thermodynamic surface. Maxwell recognized that the reciprocity of partial derivatives, ordinary multivariable calculus, was hiding genuine experimental content: quantities nobody could measure directly, like (∂S/∂V)T(\partial S/\partial V)_T, could be replaced by quantities anyone could measure with a thermometer, a manometer, and patience. This insight became foundational for chemical thermodynamics because entropy and Gibbs energy calculations for real reacting systems depend on exactly these substitutions.

Origins · 1 minJames Clerk Maxwell and how this was discovered
JC
James Clerk Maxwell
1831–1879 · Scottish physicist who derived these relations from the geometry of the thermodynamic surface, better known for electromagnetic theory

Ask the tutor: Want to see how the internal-pressure formula itself is derived, and how it leads into the thermodynamic equation of state?

Do the Maxwell relations require reversibility?

The fundamental equations like dU=TdS−PdVdU = TdS - PdV are written using δqrev=TdS\delta q_{rev} = TdS, but UU, HH, AA, GG are state functions. Their differentials connect initial and final states regardless of the actual path taken. So the relations apply to any process, reversible or not, as long as you are comparing equilibrium states. Reversibility enters only in how the fundamental equation was originally derived, not in the domain where the resulting relation applies.

Why are there exactly four Maxwell relations and not more?

Each relation comes from one thermodynamic potential expressed in its own natural variables: U(S,V)U(S,V), H(S,P)H(S,P), A(T,V)A(T,V), G(T,P)G(T,P). These are the four potentials commonly built from Legendre transforms of UU for a simple closed system with PVPV work. Additional potentials exist for open systems or systems with extra work terms, like chemical potential terms, and each of those generates its own additional Maxwell-type relation.

How do I remember all four relations quickly?

Use the thermodynamic square mnemonic shown in the figure. Write AA, GG on top, arranged with TT shared between them, and UU, HH on the sides, arranged with SS shared between them. Each potential sits between its two natural variables. Reading around the square with a consistent sign convention regenerates all four relations without memorizing them individually.

Are the Maxwell relations useful for real, non-ideal substances?

Yes, arguably they matter most there. For a real gas or liquid, you rarely have direct entropy data, but you often have precise PP–VV–TT data, from an equation of state or from measured thermal expansion and compressibility coefficients. The Maxwell relations turn that mechanical data into entropy and internal-energy information, which is exactly how the thermodynamic equation of state and pressure-dependence of Gibbs energy are derived next.

Before this