physics2u
Depth
PU-203 / L09 · lecture

Thermodynamic Potentials and Legendre Transforms

~8 min read · Tier toggle changes depth (T1 plain · T2 standard · T3 rigour)

BEFORE YOU START

You must be comfortable with the first law of thermodynamics, the definition of entropy, and the concept of exact differentials in multivariable calculus. Familiarity with the notation for partial derivatives holding other variables constant is essential.

Why this matters

Thermodynamic potentials allow us to predict equilibrium states under specific experimental constraints without tracking every microscopic detail.

In laboratory settings, we rarely hold entropy or volume fixed. Instead, we typically control temperature and pressure. The internal energy \( U \) is the fundamental potential, but its natural variables are \( S \) and \( V \). To describe systems where \( T \) and \( P \) are the independent variables, we require new state functions. These are generated through Legendre transforms, a mathematical procedure that swaps extensive variables for their conjugate intensive variables. This lecture establishes the four primary potentials: internal energy, enthalpy, Helmholtz free energy, and Gibbs free energy, and demonstrates how they are interconnected.

The Logic of Variable Exchange

Imagine you have a function defined in terms of position and velocity. If you want to describe the system in terms of position and momentum, you do not discard the original function; you transform it. Thermodynamics works similarly. The internal energy \( U \) is defined by its differential \( \mathrm{d}U = T\mathrm{d}S - P\mathrm{d}V \). Here, \( S \) and \( V \) are the independent variables. However, in a beaker on a bench, the temperature \( T \) is set by the room, and the pressure \( P \) is set by the atmosphere. We need a potential whose natural variables are \( T \) and \( P \). A Legendre transform achieves this by subtracting the product of the variable we want to remove and its conjugate. For example, to remove \( V \) and replace it with \( P \), we add \( PV \) to \( U \). To remove \( S \) and replace it with \( T \), we subtract \( TS \). This is not an approximation; it is an exact mathematical identity that preserves all thermodynamic information while changing the perspective to match the experimental conditions.

Constructing the Four Potentials

Starting from the fundamental relation for a simple compressible system, we derive the other potentials by successive Legendre transforms. The internal energy \( U(S,V) \) is the starting point. To obtain the enthalpy \( H \), which is useful for constant pressure processes, we transform out \( V \). The definition is \( H = U + PV \). Taking the differential, we use the product rule \( \mathrm{d}(PV) = P\mathrm{d}V + V\mathrm{d}P \):

\[ \mathrm{d}H = \mathrm{d}U + P\mathrm{d}V + V\mathrm{d}P \]

Substituting \( \mathrm{d}U = T\mathrm{d}S - P\mathrm{d}V \), the \( P\mathrm{d}V \) terms cancel, leaving \( \mathrm{d}H = T\mathrm{d}S + V\mathrm{d}P \). The natural variables for \( H \) are now \( S \) and \( P \). Next, to obtain the Helmholtz free energy \( F \), which is useful for constant temperature processes, we transform out \( S \) from \( U \). The definition is \( F = U - TS \). The differential is:

\[ \mathrm{d}F = \mathrm{d}U - T\mathrm{d}S - S\mathrm{d}T \]

Substituting \( \mathrm{d}U \) again, the \( T\mathrm{d}S \) terms cancel, yielding \( \mathrm{d}F = -S\mathrm{d}T - P\mathrm{d}V \). The natural variables are \( T \) and \( V \). Finally, the Gibbs free energy \( G \) is constructed by transforming out both \( S \) and \( V \) from \( U \), or equivalently from \( H \) or \( F \). The definition is \( G = U - TS + PV \). Its differential is:

\[ \mathrm{d}G = -S\mathrm{d}T + V\mathrm{d}P \]

The natural variables are \( T \) and \( P \). This set of four potentials covers all combinations of the two pairs of conjugate variables \( (S,T) \) and \( (V,P) \).

Interrelations and Maxwell Relations

Because these potentials are derived from the same fundamental relation, they are not independent. They are linked by algebraic identities. For instance, since \( H = U + PV \) and \( F = U - TS \), we can relate \( H \) and \( F \) via \( G \). The most common relation is \( G = H - TS = F + PV \). These identities allow us to switch between potentials when solving problems. More profoundly, because \( U, H, F, \) and \( G \) are all state functions, their second mixed partial derivatives must be equal. This mathematical requirement generates the Maxwell relations. For example, from \( \mathrm{d}F = -S\mathrm{d}T - P\mathrm{d}V \), we identify \( \left(\frac{\partial S}{\partial V}\right)_T = \left(\frac{\partial P}{\partial T}\right)_V \) (the two minus signs in \( \mathrm{d}F \) cancel). This relation allows us to calculate entropy changes, which are difficult to measure directly, using pressure, volume, and temperature data, which are easy to measure. Each potential yields a different Maxwell relation, providing a powerful toolkit for thermodynamic analysis.

Physical Interpretation of the Potentials

Each potential has a distinct physical meaning related to the maximum useful work obtainable from a system under specific constraints. The internal energy \( U \) represents the total energy of the system. The enthalpy \( H \) is not a stored "heat content", but the change in enthalpy \( \Delta H \) equals the heat exchanged in a constant pressure process. The Helmholtz free energy \( F \) represents the maximum work that can be extracted from a system at constant temperature and volume. The Gibbs free energy \( G \) represents the maximum non-expansion work that can be extracted from a system at constant temperature and pressure. In chemical reactions, which typically occur at constant \( T \) and \( P \), the change in Gibbs free energy \( \Delta G \) determines spontaneity. If \( \Delta G < 0 \), the process is spontaneous. If \( \Delta G > 0 \), the process is non-spontaneous. If \( \Delta G = 0 \), the system is at equilibrium. This makes \( G \) the most frequently used potential in chemistry and materials science.

The derivations

◆ DERIVATION EMBED · D-151 · not re-derived here

Thermodynamic Potentials via Legendre Transforms

Starting from the fundamental relation for the internal energy in its natural variables, dU = TdS − PdV, we perform Legendre transformations that exchange one or both of the extensive variables (S, V) for their conjugate intensive variables (T, P). This generates the enthalpy H = U + PV, the Helmholtz free energy F = U − TS, and the Gibbs free energy G = U − TS + PV, each with its exact differential and its own set of natural variables.

dU = TdS − PdV  (S,V)
dH = TdS + VdP  (S,P),  H = U + PV
dF = −SdT − PdV  (T,V),  F = U − TS
dG = −SdT + VdP  (T,P),  G = U − TS + PV
Open full derivation →
◆ DERIVATION EMBED · D-152 · not re-derived here

Equilibrium as Free-Energy Minimization

For a system exchanging heat with a reservoir at fixed temperature T0 and doing work only against a fixed external pressure p0, the Clausius inequality forces the availability A = U − T0S + p0V to decrease in every spontaneous process, dA ≤ 0, so that at equilibrium the thermodynamic potential appropriate to the imposed constraints is stationary and minimal: entropy S is maximised at fixed (U,V,N); internal energy U at fixed (S,V,N); Helmholtz F = U − TS at fixed (T,V,N); and Gibbs G = U − TS + pV at fixed (T,p,N).

dA = dU − T0 dS + p0 dV ≤ 0   ⇒   δΦ = 0,   δ2Φ > 0  at equilibrium
Open full derivation →
Tier 3 · watch out

A common misconception is that the Legendre transform is a physical change in the system. It is not. The system remains the same; only the mathematical description changes. The potentials \( U, H, F, \) and \( G \) are all valid descriptions of the same equilibrium state. Choosing the wrong potential for the constraints does not make the physics wrong, but it makes the calculation of equilibrium conditions incorrect. For example, minimizing \( U \) is only valid if \( S \) and \( V \) are fixed. If \( T \) and \( P \) are fixed, you must minimise \( G \). Confusing the natural variables leads to incorrect predictions of equilibrium. C

Worked example

Problem. For melting ice, \(\Delta H_{\mathrm{fus}} = 6010\ \mathrm{J\,mol^{-1}}\) and the transition is in equilibrium at 273.15 K and 1 atm. Treating \(\Delta H\) and \(\Delta S\) as constant over a few kelvin, use \(G = H - TS\) to find \(\Delta G\) for melting at 263.15 K and at 283.15 K, and say which way each process goes.

  1. At equilibrium \(\Delta G = 0\), so \(\Delta S_{\mathrm{fus}} = \Delta H_{\mathrm{fus}}/T_m = 6010/273.15 = 22.00\ \mathrm{J\,K^{-1}\,mol^{-1}}\).
  2. At constant \(T\) and \(P\): \(\Delta G = \Delta H - T\Delta S\).
  3. At 263.15 K: \(\Delta G = 6010 - 263.15 \times 22.00 = 6010 - 5790 = +220\ \mathrm{J\,mol^{-1}}\). Melting is not spontaneous; water would freeze.
  4. At 283.15 K: \(\Delta G = 6010 - 283.15 \times 22.00 = 6010 - 6230 = -220\ \mathrm{J\,mol^{-1}}\). Melting is spontaneous.
  5. In general \(\Delta G \approx \Delta S_{\mathrm{fus}}(T_m - T)\): the Legendre-transformed potential turns "which phase is stable?" into a sign check at the temperature and pressure the experimenter controls.
\[ \Delta G(263.15\ \mathrm{K}) \approx +220\ \mathrm{J\,mol^{-1}}, \qquad \Delta G(283.15\ \mathrm{K}) \approx -220\ \mathrm{J\,mol^{-1}} \]

Units check. \(\mathrm{K} \times \mathrm{J\,K^{-1}\,mol^{-1}} = \mathrm{J\,mol^{-1}}\), the same units as \(\Delta H\).

CHECK YOURSELF

Three quick tests

  1. What are the natural variables of the Gibbs free energy?
    AnswerTemperature \( T \) and Pressure \( P \).
  2. Write the differential of the Helmholtz free energy.
    Answer\( \mathrm{d}F = -S\mathrm{d}T - P\mathrm{d}V \).
  3. Which potential is minimized at equilibrium for a system at constant temperature and pressure?
    AnswerGibbs free energy \( G \).
PROBLEMS

Problem set for PU-203 →

Each derivation in this unit ends with five graded problems with full solutions.

NOTES

Lecture notes checked line by line by the editor; every number in the worked example was recomputed.

Derivations cited: D-151 · D-152 · Threads: energy, matter, chance