The Physics Travel Guide

Maxwell Relations

Prerequisites: Thermodynamics. Full path (9 pages)

Intuitive

A fixed amount of gas in equilibrium is completely described by two quantities, for example its temperature and its volume. Everything else, like the pressure, the entropy or the energy, is then fixed. This means that the energy is a function of the state, a quantity that has one definite value at every point of a two-dimensional map of states.

Think of the energy as the height of a hilly landscape drawn on this map. At each point the hill has a slope towards the east and a slope towards the north. How fast the eastward slope changes as we walk north is always equal to how fast the northward slope changes as we walk east. If we use entropy and volume as the two directions on the map, the two slopes of the energy are the temperature and the pressure (up to a sign), so this fact about hills becomes a set of equations that link the ways in which different quantities respond to changes. These are the Maxwell relations.

They are useful because they connect things that are hard to measure with things that are easy to measure. For example, how much the entropy of a gas changes when we let it expand at constant temperature is difficult to measure directly. A Maxwell relation says that it equals how much the pressure rises when we heat the gas in a closed container of fixed volume, which only needs a thermometer and a pressure gauge. Different choices of which two quantities describe the state give different relations, one for each of the thermodynamic potentials.

Concrete

Derivation

The Maxwell relations follow directly from the fact that partial derivatives commute: ∂x∂y=∂y∂x\partial_x \partial_y = \partial_y \partial_x.

If we have some function U(S,V)U(S,V) (called the internal energy) that depends on the entropy SS and the volume VV, the total change of it is given by

dU=∂U∂S∣VdS+∂U∂V∣SdV,dU = \frac{\partial U}{\partial S} \big |_V dS + \frac{\partial U}{\partial V} \big |_S dV,

where ∣V\big |_V means that we keep VV fixed.

Then, we introduce two definitions:

∂U∂S∣V≡T,−∂U∂V∣S≡P.\frac{\partial U}{\partial S} \big |_V \equiv T , \quad -\frac{\partial U}{\partial V} \big |_S \equiv P.

The minus sign here is just a convention and can be understood as follows: The internal energy usually gets smaller when we increase the volume. Thus, if we want to work with positive pressure PP in most situations, we need to include the minus sign here.

Using these definitions equation reads

dU=TdS−PdV,dU = T dS - P dV,

which is the fundamental thermodynamic relation.

Next, we use that partial derivative commute:

∂2U∂V∂S=∂2U∂S∂V\frac{\partial^2 U}{\partial V\partial S} = \frac{\partial^2 U}{\partial S\partial V}

and put in our two definitions from above:

∂T∂V∣S=−∂P∂S∣V\frac{\partial T}{\partial V} \big |_S = -\frac{\partial P}{\partial S}\big |_V

This is one of the Maxwell relations.

The other Maxwell relations follow completely analogous, but with different functions instead of the internal energy UU.

For example, if we start with the Helmholtz free energy A(T,V)A(T,V):

A=U−TSA = U -TS

and follow exactly the same steps (dA=dU−d(TS)=(TdS−PdV)−(SdT+TdS)=−SdT−PdVdA= dU-d(TS) = (TdS-PdV)-(SdT+TdS)=-SdT-PdV), we can derive

∂S∂V∣T=∂P∂T∣V\frac{\partial S}{\partial V} \big |_T = \frac{\partial P}{\partial T} \big |_V

The other Maxwell relations follow by starting with the enthalpy H(S,P)H(S,P) or the Gibbs free energy G(T,P)G(T,P).

(These notions appear, since:


For a great explanation, why the Maxwell relations are "just a sneaky way of saying that the mixed partial derivatives of the function U commute". see https://johncarlosbaez.wordpress.com/2012/01/19/classical-mechanics-versus-thermodynamics-part-1/

(The fact that partial derivatives commute is known as Schwarz' theorem (see https://en.wikipedia.org/wiki/Maxwell_relations . Schwarz' theorem is simply a way of stating "the fact that a function S doesn’t change when we go around a parallelogram" Classical Mechanics versus Thermodynamics (Part 2) | Azimuth)

Abstract

For a simple system with fixed particle number, the equilibrium states form a two-dimensional manifold Σ\Sigma, and SS, VV, TT, PP are smooth functions on it. The first law in the form dU=T dS−P dVdU = T\,dS - P\,dV is a statement about one-forms on Σ\Sigma. Taking the exterior derivative and using d2=0d^2 = 0 gives

0=d(dU)=dT∧dS−dP∧dV,that isdT∧dS=dP∧dV.0 = d(dU) = dT\wedge dS - dP\wedge dV, \qquad\text{that is}\qquad dT\wedge dS = dP\wedge dV.

This single equation of two-forms contains all four Maxwell relations. On a two-dimensional manifold every two-form is a multiple of dx∧dydx\wedge dy for any local coordinates (x,y)(x,y), and the equation reads

∂(T,S)∂(x,y)=∂(P,V)∂(x,y)\frac{\partial(T,S)}{\partial(x,y)} = \frac{\partial(P,V)}{\partial(x,y)}

in terms of Jacobians. Choosing (x,y)(x,y) to be one of the pairs (S,V)(S,V), (T,V)(T,V), (S,P)(S,P), (T,P)(T,P) gives the four relations. For example, with (x,y)=(T,V)(x,y) = (T,V) we have dT∧dS=(∂S/∂V)T dT∧dVdT\wedge dS = (\partial S/\partial V)_T\, dT\wedge dV and dP∧dV=(∂P/∂T)V dT∧dVdP\wedge dV = (\partial P/\partial T)_V\, dT\wedge dV, hence (∂S/∂V)T=(∂P/∂T)V(\partial S/\partial V)_T = (\partial P/\partial T)_V. The same equation also says that the map (T,S)↦(P,V)(T,S)\mapsto(P,V) preserves oriented area, so any reversible cycle encloses the same area in the TT-SS plane and in the PP-VV plane (the net heat absorbed equals the net work done).

A more global way to state this uses contact geometry. On the five-dimensional space with coordinates (U,S,V,T,P)(U, S, V, T, P) take the contact form

θ=dU−T dS+P dV.\theta = dU - T\,dS + P\,dV.

The equilibrium states of a given substance form a two-dimensional Legendre submanifold LL, meaning θ∣L=0\theta|_L = 0. Projecting out UU, the form ω=dT∧dS−dP∧dV\omega = dT\wedge dS - dP\wedge dV is a symplectic form on the four-dimensional space (T,S,P,V)(T,S,P,V), and θ∣L=0\theta|_L = 0 implies ω∣L=−dθ∣L=0\omega|_L = -d\theta|_L = 0, so the projection of LL is a Lagrangian submanifold. The Maxwell relations are the statement that the state space is Lagrangian. The thermodynamic potentials U(S,V)U(S,V), A(T,V)=U−TSA(T,V) = U - TS, H(S,P)=U+PVH(S,P) = U + PV, G(T,P)=U−TS+PVG(T,P) = U - TS + PV are generating functions of the same Lagrangian submanifold in different coordinate charts, related by Legendre transformations. This is the same structure as in Hamiltonian mechanics, where ω=dp∧dq\omega = dp\wedge dq and generating functions of canonical transformations play the role of the potentials. With more variables, for example particle number NN and chemical potential μ\mu with dU=T dS−P dV+μ dNdU = T\,dS - P\,dV + \mu\,dN, the symplectic form acquires the term dμ∧dNd\mu\wedge dN and the same argument gives the additional Maxwell relations.

Why is it interesting?

The Maxwell relations encode useful relationships between notions of thermodynamics.

Path to this page

  1. Calculus
  2. Linear Algebra
  3. Newton's Second Law
  4. Statistics
  5. Vector Calculus
  6. Entropy
  7. Newtonian Mechanics
  8. Energy
  9. Thermodynamics