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 , , , and are state functions, their mixed second partial derivatives must agree. That single fact of calculus generates four exact, testable relations. These relations connect , , , and . 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.
- The Maxwell relations come from equating mixed partial derivatives of , , , .
- 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 and without a calorimeter.
- They feed directly into deriving thermodynamic equations of state and the pressure dependence of .
- Key idea: if a quantity is a true state function, the order of differentiation cannot matter, and that constraint is a working formula.
Because , , , and are exact differentials, the equality of mixed second partial derivatives, , converts abstract exactness into four concrete, experimentally checkable relations linking , , , .
The physical picture
Every thermodynamic potential is a function of its own natural variables. Internal energy , enthalpy , Helmholtz energy , and Gibbs energy 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 , differentiating first with respect to then gives the same answer as differentiating first with respect to then . Thermodynamic potentials, built from state functions, obey this automatically. Applying it to , , , produces the four Maxwell relations. Each one links an entropy derivative, hard to measure, to a –– 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.
The core relations
where: derived from ; both sides equal up to sign.
where: derived from ; links adiabatic temperature change to entropy-volume coupling.
where: derived from ; the most-used relation, giving entropy change from an equation of state.
where: derived from ; connects isothermal entropy change to thermal expansion.
Goal. Derive the Maxwell relation hidden inside the Helmholtz energy, , and show the general method that produces all four.
Step 1. Write the fundamental equation. Starting from for a closed system doing only work, and combining the first law with the second law , we get:
Define . Differentiating,
which collapses to the fundamental equation for the Helmholtz energy:
Step 2. Identify the natural variables and read off the coefficients. Because , its total differential is by definition
Comparing term by term with Step 1 gives two identifications:
Step 3. Impose exactness. Since is a state function, its differential is exact, so the mixed second partials must agree regardless of order:
Step 4. Substitute the Step 2 results. The left side becomes and the right side becomes :
Step 5. Cancel the sign and box the result.
The identical four-step method, applied to , , and , 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 for one mole of an ideal gas, then compute for isothermal expansion from 10.0 L to 20.0 L at 298 K. Using the Maxwell relation from Helmholtz energy,
For an ideal gas, , so at constant ,
Therefore , independent of temperature — a genuinely non-obvious result obtained without ever measuring entropy directly. Integrating at constant from to :
Plugging in numbers, with :
Sanity check: expansion increases accessible microstates, so , consistent with the sign obtained. The value also matches the standard ideal-gas formula 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
with (a small attractive correction, similar in spirit to a van der Waals term). Find and use it to estimate for isothermal expansion of the gas at K from to . Then find the corresponding , the "internal pressure."
Step 1: entropy derivative. By the Maxwell relation,
because the term is temperature-independent and drops out upon differentiating with respect to . This is the same functional form as the ideal gas, since the correction term has no explicit dependence.
Step 2: integrate for .
Interestingly, because the correction term is -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:
Compute each piece at, say, , K:
Sanity check: this equals exactly , as it must, since for this equation of state the ideal term cancels identically, leaving only the correction term. A negative (net attraction) should give a positive internal-pressure derivative reflecting extra cohesive energy cost on expansion, matching the algebra above.
Limiting cases & common traps
| Situation | What happens | Why |
|---|---|---|
| Ideal gas | exactly | has no other -dependent term |
| Incompressible solid or liquid | thermal expansion coefficient is small, so | |
| Any equation of state with -independent attractive term | entropy relation reduces to ideal-gas form | derivative with respect to kills the term |
| Using the wrong potential's natural variables | relation becomes meaningless or wrong | each 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 , 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
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 are written using , but , , , 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: , , , . These are the four potentials commonly built from Legendre transforms of for a simple closed system with 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 , on top, arranged with shared between them, and , on the sides, arranged with 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 –– 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.