State Functions & Thermodynamic Potentials
Enthalpy, Helmholtz, Gibbs, Maxwell relations, and the Gibbs-Duhem equation
Historical Context
The concept of thermodynamic potentials was developed in the latter half of the 19th century. Josiah Willard Gibbs, in his landmark 1876 paper "On the Equilibrium of Heterogeneous Substances," introduced the chemical potential and the Gibbs free energy, unifying thermodynamics with chemistry. Hermann von Helmholtz independently developed the free energy concept that bears his name, while James Clerk Maxwell derived the elegant relations connecting partial derivatives of state functions.
The power of thermodynamic potentials lies in their ability to predict equilibrium conditions under different constraints. Each potential is the "natural" function for a specific set of independent variables, and its minimum (or maximum) determines equilibrium.
Key contributors: J. Willard Gibbs (1876), Hermann von Helmholtz (1882), James Clerk Maxwell (1871), Pierre Duhem (1886), Leonhard Euler (1740s).
Derivation 1: Enthalpy H = U + PV
Enthalpy arises naturally when considering processes at constant pressure, which is the most common laboratory condition. Starting from the first law:
At constant pressure, rearranging:
Thus we define the enthalpy:
Natural variables: $H = H(S, P)$ with $dH = T\,dS + V\,dP$
The significance: at constant pressure, the heat exchanged equals the enthalpy change. This makes H the natural potential for isobaric processes:
From $dH = TdS + VdP$, we read off: $T = (\partial H / \partial S)_P$ and$V = (\partial H / \partial P)_S$.
Derivation 2: Helmholtz Free Energy A = U - TS
The Helmholtz free energy is the natural potential for isothermal, isochoric processes. It represents the maximum work extractable from a system at constant temperature.
We perform a Legendre transform on U, replacing S with its conjugate variable T:
Natural variables: $A = A(T, V)$ with $dA = -S\,dT - P\,dV$
Derivation of the fundamental relation:
From this we extract: $S = -(\partial A / \partial T)_V$ and$P = -(\partial A / \partial V)_T$.
At constant T and V, $dA \leq 0$ for any spontaneous process. Equilibrium corresponds to the minimum of A. This makes the Helmholtz energy central to statistical mechanics, where$A = -k_B T \ln Z$ connects to the partition function Z.
Derivation 3: Gibbs Free Energy G = H - TS
The Gibbs free energy is the most important potential in chemistry because most reactions occur at constant temperature and pressure.
Natural variables: $G = G(T, P)$ with $dG = -S\,dT + V\,dP$
The derivation follows from Legendre transforming H:
The equilibrium criterion at constant T and P:
This is the criterion that determines chemical equilibrium, phase transitions, and the direction of all processes occurring at constant temperature and pressure.
Derivation 4: Maxwell Relations
The Maxwell relations are a set of equalities among second partial derivatives of thermodynamic potentials. They follow from the exactness of differentials (equality of mixed partial derivatives).
For any state function $\Phi(x, y)$ with$d\Phi = M\,dx + N\,dy$, the exactness condition requires:
The Four Maxwell Relations
From U(S,V): dU = TdS - PdV
From H(S,P): dH = TdS + VdP
From A(T,V): dA = -SdT - PdV
From G(T,P): dG = -SdT + VdP
Mnemonic: The "thermodynamic square" arranges S, T, P, V on corners with potentials U, H, A, G on the sides. Maxwell relations connect opposite corners through each potential.
Derivation 5: Euler Relation & Gibbs-Duhem Equation
For multi-component systems, the internal energy is a homogeneous function of degree one in its extensive variables (S, V, n_i). By Euler's theorem on homogeneous functions:
Euler Relation
Taking the total differential and comparing with the fundamental relation$dU = TdS - PdV + \sum_i \mu_i dn_i$:
Subtracting the fundamental relation from this total differential:
Gibbs-Duhem Equation
At constant T and P, this simplifies to:
The Gibbs-Duhem equation constrains the chemical potentials: they cannot all vary independently. For a binary system, knowing $\mu_1(x_1)$ completely determines $\mu_2(x_1)$. This is the basis for thermodynamic consistency tests of experimental data.
Applications
Calorimetry
Enthalpy H enables direct measurement of heat in constant-pressure experiments. Hess's law (enthalpy is a state function) allows indirect calculation of reaction enthalpies from formation data.
Statistical Mechanics
The Helmholtz free energy $A = -k_BT \ln Z$ connects macroscopic thermodynamics to microscopic partition functions, bridging the gap between the two descriptions of matter.
Chemical Engineering
The Gibbs-Duhem equation is used in thermodynamic consistency tests for vapor-liquid equilibrium data. The Margules, van Laar, and Wilson equations must satisfy this constraint.
Materials Science
Maxwell relations enable the calculation of hard-to-measure quantities (like entropy changes) from easily measured ones (like thermal expansion and compressibility).
Simulation: Thermodynamic Potentials & Maxwell Relations
This simulation visualizes all four thermodynamic potentials for an ideal monatomic gas, plots isotherms, maps the entropy surface S(T,V), and numerically verifies a Maxwell relation.
Thermodynamic Potentials and Maxwell Relations
PythonClick Run to execute the Python code
Code will be executed with Python 3 on the server
Simulation: Gibbs-Duhem Equation Verification
This simulation uses the Margules model for a binary solution to compute activity coefficients, excess chemical potentials, and excess Gibbs energy. It then numerically verifies that the Gibbs-Duhem equation is satisfied.
Gibbs-Duhem Equation for Binary Solutions
PythonClick Run to execute the Python code
Code will be executed with Python 3 on the server
Chapter Summary
• Enthalpy: $H = U + PV$, natural for constant-P processes. $Q_P = \Delta H$.
• Helmholtz: $A = U - TS$, minimum at equilibrium for constant T, V.
• Gibbs: $G = H - TS$, the central potential in chemistry at constant T, P.
• Maxwell relations: Four equalities linking second derivatives of thermodynamic potentials.
• Gibbs-Duhem: $SdT - VdP + \sum n_i d\mu_i = 0$, constraining intensive variables.