Maxwell relations

You cannot put a probe into a beaker and read off its entropy. There is no "entropy-meter" the way there is a thermometer or a pressure gauge. Yet chemists routinely quote ΔS\Delta S for a compression, a reaction, or a phase change. How? Because thermodynamic potentials such as U,H,A,GU, H, A, G are state functions with exact differentials, and exactness forces a hidden symmetry between their mixed partial derivatives. That symmetry — the Maxwell relations — is a translation dictionary: it converts an unmeasurable entropy derivative like (∂S/∂V)T(\partial S/\partial V)_T into an ordinary, measurable PP–VV–TT derivative like (∂P/∂T)V(\partial P/\partial T)_V, obtainable from an equation of state or a simple experiment. This article derives all four Maxwell relations from a single mathematical fact, shows how to generate any of them on demand rather than memorising a table, and uses them to derive the general thermodynamic equation of state and to compute a real ΔS\Delta S for an isothermal gas compression — setting up the real-gas (van der Waals) treatment that follows.

The core insight

Exactness of the differentials of U,H,A,GU, H, A, G forces equalities between mixed partial derivatives, and these four Maxwell relations let you replace an unmeasurable entropy derivative with a measurable PP–VV–TT derivative.

The core idea

Exactness is the engine. If f(x,y)f(x,y) is a state function with df=M dx+N dydf = M\,dx + N\,dy, path-independence of ff requires the mixed second partials to match:

(∂M∂y)x=(∂N∂x)y\left(\frac{\partial M}{\partial y}\right)_x = \left(\frac{\partial N}{\partial x}\right)_y

where MM and NN are the coefficients of dxdx and dydy in the exact differential. Apply this once to each of the four thermodynamic potentials, in their own natural variables, and you get four relations for free.

The four relations. From dU=TdS−PdVdU = TdS - PdV, dH=TdS+VdPdH = TdS + VdP, dA=−SdT−PdVdA = -SdT - PdV, dG=−SdT+VdPdG = -SdT + VdP:

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

where SS = entropy, VV = volume, PP = pressure, TT = temperature. These are the complete set; no fifth independent relation exists among U,H,A,GU,H,A,G built this way.

Generate, don't memorise. CY11001 expects you to reconstruct any relation from scratch: write the potential's differential in its natural variables, read off MM and NN as the coefficients of the two differentials, and equate the cross partials. This is faster and safer than recalling a table under exam pressure, and it is the only reliable way to avoid sign errors.

Why they matter. The left-hand sides above involve entropy, which has no direct instrument. The right-hand sides are ordinary PP–VV–TT derivatives — the thermal expansion coefficient (∂V/∂T)P(\partial V/\partial T)_P or its pressure analogue (∂P/∂T)V(\partial P/\partial T)_V — read straight off an equation of state or a simple dilatometry/manometry experiment. Maxwell relations are the bridge that lets ΔS\Delta S, and through it ΔU\Delta U, ΔH\Delta H, ΔG\Delta G, be computed for real, non-ideal systems purely from measurable mechanical data.

Figure
Four boxes show each potential differential feeding its Maxwell relation through the exactness condition
Exactness turns each potential into one Maxwell relation dU = TdS - PdV natural vars S,V dH = TdS + VdP natural vars S,P dA = -SdT - PdV natural vars T,V dG = -SdT + VdP natural vars T,P (dT/dV)_S = -(dP/dS)_V (dT/dP)_S = (dV/dS)_P (dS/dV)_T = (dP/dT)_V (dS/dP)_T = -(dV/dT)_P green boxes are the two relations used in this article's worked examples
Derivation AFrom dA to the thermodynamic equation of state

Derive the Maxwell relation hidden in dA=−SdT−PdVdA = -SdT - PdV from the exactness condition alone, then combine it with the fundamental relation dU=TdS−PdVdU = TdS - PdV to obtain the general thermodynamic equation of state (∂U/∂V)T=T(∂P/∂T)V−P(\partial U/\partial V)_T = T(\partial P/\partial T)_V - P, and finally show that this expression collapses to exactly zero for an ideal gas, recovering Joule's law as a derived result rather than an assumed postulate.

Step 1. Write the Helmholtz differential as dA=−SdT−PdV=M dT+N dVdA = -SdT - PdV = M\,dT + N\,dV, so M=−SM = -S and N=−PN = -P, with T,VT,V as the natural variable pair.

Step 2. Apply exactness, (∂M/∂V)T=(∂N/∂T)V(\partial M/\partial V)_T = (\partial N/\partial T)_V:

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

This is Maxwell relation 3, obtained purely from the exact-differential structure of AA, with no physical assumption about the substance.

Step 3. Take dU=TdS−PdVdU = TdS - PdV and divide through by dVdV at constant TT to isolate the "internal pressure":

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

Step 4. Substitute the Maxwell relation from Step 2 for (∂S/∂V)T(\partial S/\partial V)_T:

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

This is the general thermodynamic equation of state, valid for any substance, ideal or real.

Step 5. For an ideal gas, PV=nRT⇒P=nRT/V⇒(∂P/∂T)V=nR/VPV = nRT \Rightarrow P = nRT/V \Rightarrow (\partial P/\partial T)_V = nR/V. Substituting into Step 4:

(∂U∂V)T=T⋅nRV−P=nRTV−P=P−P=0\left(\frac{\partial U}{\partial V}\right)_T = T\cdot\frac{nR}{V} - P = \frac{nRT}{V} - P = P - P = 0

So an ideal gas's internal energy depends on TT only, never on VV — Joule's law, here derived rather than postulated. For a real gas (treated in the next article via the van der Waals equation) this quantity is generally nonzero, reflecting intermolecular attraction or repulsion.

Worked example

Use Maxwell relation 4, (∂S/∂P)T=−(∂V/∂T)P(\partial S/\partial P)_T = -(\partial V/\partial T)_P, to find ΔS\Delta S when 1 mol of an ideal gas is compressed isothermally from 1 bar to 5 bar at 298 K.

Step 1. For an ideal gas, V=nRT/PV = nRT/P, so (∂V/∂T)P=nR/P(\partial V/\partial T)_P = nR/P. By Maxwell relation 4:

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

Step 2. Integrate at constant T=298T = 298 K from P1=1P_1 = 1 bar to P2=5P_2 = 5 bar, with n=1n = 1 mol:

ΔS=∫P1P2(∂S∂P)TdP=−nR∫15dPP=−nRln⁡P2P1=−(1)(8.314)ln⁡(5)\Delta S = \int_{P_1}^{P_2}\left(\frac{\partial S}{\partial P}\right)_T dP = -nR\int_{1}^{5}\frac{dP}{P} = -nR\ln\frac{P_2}{P_1} = -(1)(8.314)\ln(5)

Step 3. Evaluate: ln⁡5=1.6094\ln 5 = 1.6094, so

ΔS=−8.314×1.6094=−13.38 J K−1\Delta S = -8.314 \times 1.6094 = \mathbf{-13.38\ J\,K^{-1}}

This matches the direct Clausius-integral formula ΔS=−nRln⁡(P2/P1)\Delta S = -nR\ln(P_2/P_1) exactly, as it must — both routes describe the same state function. The negative sign is physically expected: isothermal compression to higher pressure and lower volume reduces the number of accessible microstates.

Competitive stretch

If instead the gas expanded isothermally from 5 bar to 1 bar, the same formula gives ΔS=−(1)(8.314)ln⁡(1/5)=+13.38 J K−1\Delta S = -(1)(8.314)\ln(1/5) = +13.38\ \text{J K}^{-1} — the identical magnitude with the sign flipped, since expansion increases accessible microstates. Recognising this symmetry avoids re-deriving the integral for the reverse process.

Common traps

  • Mixing up which relation carries a minus sign — relations 1 and 4 do, relations 2 and 3 do not; re-deriving from the potential's own differential (rather than recalling a table) avoids this.
  • Pulling a derivative from the wrong potential's natural variables — e.g. trying to get (∂S/∂V)T(\partial S/\partial V)_T from dG=−SdT+VdPdG = -SdT + VdP (natural variables T,PT,P) instead of the correct source dA=−SdT−PdVdA = -SdT - PdV (natural variables T,VT,V).
  • Forgetting that Maxwell relations are exact identities for any substance; the ideal-gas equation of state is plugged in only at the last step to evaluate the measurable right-hand side, not baked into the relation itself.
  • Treating (∂U/∂V)T=0(\partial U/\partial V)_T = 0 as a universal law rather than an ideal-gas-specific consequence of the thermodynamic equation of state — real gases give a nonzero value here.

Ask the tutor: If the four relations keep blurring together, ask the AI tutor to quiz you by naming a random potential and having you derive its Maxwell relation from scratch until it becomes automatic.

Why can't we just measure entropy directly with an instrument

Entropy is not a mechanical quantity like pressure or volume that a gauge can sense; it is a statistical measure of accessible microstates, defined through heat exchanged reversibly divided by temperature. There is no "entropy probe." Maxwell relations sidestep this by rewriting any entropy derivative as an equivalent PP–VV–TT derivative, which an equation of state or a simple experiment can supply directly.

Do I need to memorise all four Maxwell relations for exams

No — CY11001 rewards the ability to regenerate any relation on demand rather than recall. Write the differential of the relevant potential in its natural variables, label the coefficients MM and NN, and apply the exactness condition. This method is more exam-safe than memorising a table, since a single misremembered sign in a memorised relation is a common, hard-to-catch error.

Why does the same Maxwell relation appear in both the derivation and the worked example

It does not — the derivation block uses relation 3 (from dAdA) to build the general thermodynamic equation of state, while the worked example uses relation 4 (from dGdG) to compute an entropy change with pressure as the swept variable. Seeing both in one article shows how the same exactness idea produces different, complementary tools depending on which variable you need to eliminate.

Before this

Where this leads