Free energy & phase equilibria

Why free energy is the right potential — total-entropy reasoning, Legendre transforms, nucleation, Clausius–Clapeyron, two-state gating.

The thermodynamics chapter gives the rules of bookkeeping — the first law, the equation of state, the adiabatic relation. This chapter gives the rules of prediction: free energy is the function whose minimum identifies the equilibrium state, whose curvature identifies stability, and whose finite-temperature shape governs the rates at which the system hops between competing wells.

Why a free energy is needed — the total-entropy argument

The second law says the entropy of an isolated system never decreases. But most of the systems we care about — a bubble in water, a gating channel in a hair cell, a slab of air in a sound wave — are not isolated; they exchange heat with their surroundings. The relevant criterion shifts.

Imagine the system in thermal contact with a much-larger reservoir at fixed temperature TT. The combined “system + reservoir” is isolated, so its total entropy never decreases. The reservoir’s entropy change is fixed by the heat it absorbs: ΔSres=Qsys/T=ΔUsys/T\Delta S_\text{res} = -Q_\text{sys}/T = -\Delta U_\text{sys}/T at fixed volume (no work). The total entropy change is therefore

ΔStot  =  ΔSsys    ΔUsysT  =  1T ⁣(ΔUsysTΔSsys)  =  ΔFT,\Delta S_\text{tot} \;=\; \Delta S_\text{sys} \;-\; \frac{\Delta U_\text{sys}}{T} \;=\; -\frac{1}{T}\!\left(\Delta U_\text{sys} - T\, \Delta S_\text{sys}\right) \;=\; -\frac{\Delta F}{T},

where FUTSF \equiv U - TS. The second law ΔStot0\Delta S_\text{tot} \ge 0 is therefore equivalent to ΔF0\Delta F \le 0. The Helmholtz free energy FF is not a new physical quantity — it is the system-level bookkeeping that absorbs the reservoir contribution.

System (at T)ΔU = -2.00ΔSsys = 0.50Q = -ΔUReservoir (at T)absorbs Q = 2.00ΔSres = -ΔU/T = 2.000ΔF = ΔU − T ΔSsys= -2.500ΔStot = -ΔF/T= 2.500Allowed: ΔS_tot ≥ 0 ⇔ ΔF ≤ 0

At fixed T and V, a process is spontaneous (allowed) iff the *total* entropy of system + reservoir increases. Because the reservoir's entropy change is exactly -ΔU/T, this condition is equivalent to ΔF = ΔU − T ΔSsys ≤ 0. The Helmholtz free energy F is not a new physical quantity — it is just the system-level bookkeeping that absorbs the reservoir contribution. *That* is why we minimise F at fixed T, V.

Slide ΔU\Delta U and ΔSsys\Delta S_\text{sys}. The total-entropy verdict (“Allowed” / “Forbidden”) flips at exactly the ΔF=0\Delta F = 0 line — ΔF<0\Delta F < 0 is allowed, ΔF>0\Delta F > 0 forbidden. That is why we minimise FF at fixed TT and VV.

For a system at fixed TT and pp — the more common case for liquids and gases under atmospheric conditions — the analogous bookkeeping gives the Gibbs free energy

G    U+pVTS  =  F+pV,G \;\equiv\; U + pV - TS \;=\; F + pV,

with the criterion ΔG0\Delta G \le 0. The right potential is dictated by which variables are clamped; each is a Legendre transform of UU.

What a Legendre transform actually does

F=UTSF = U - TS and G=U+pVTSG = U + pV - TS look algebraically arbitrary until you see what they are: each is the Legendre transform of UU, swapping a “natural” variable for its conjugate. U(S,V,N)U(S, V, N) has natural variables S,V,NS, V, N; differentiating gives T=U/ST = \partial U/\partial S, p=U/Vp = -\partial U/\partial V, etc.

The Legendre transform F(T,V,N)=UTSF(T, V, N) = U - TS trades the natural variable SS for its conjugate TT. Geometrically: F(T)F(T) is the y-intercept of the tangent to U(S)U(S) with slope TT.

-2-101201234SU(S), F(T)U(S*)F(T) = 0.28slope = T
T (slope)1.20
S* = T1.20
U(S*)1.720
F(T) = U(S*) − T·S*0.280

The Legendre transform F(T) is the y-intercept of the tangent to U(S) with slope T. As you slide T, the tangent point S* moves along the curve, and F(T) = U(S*) − T·S* traces out a new function — the same information as U(S), but indexed by T instead of S. This is why F depends on T but not on S: choosing T fixes S* automatically by dU/dS = T.

Slide TT — the slope of the tangent line. The tangent point on U(S)U(S) moves, and the tangent’s y-intercept is F(T)=U(S)TSF(T) = U(S^*) - T\,S^*. This is the same information as U(S)U(S), repackaged. The “obvious” reason we use FF instead of UU is that at fixed temperature, TT is the natural control variable — exactly what the experimenter fixes — and the Legendre transform makes the math reflect that.

In differential form,

dF  =  SdTpdV,dG  =  SdT+Vdp.dF \;=\; -S\, dT - p\, dV, \qquad dG \;=\; -S\, dT + V\, dp.

Reading off natural derivatives,

S  =   ⁣(FT)V  =   ⁣(GT)p,p  =   ⁣(FV)T,V  =  (Gp)T.S \;=\; -\!\left(\frac{\partial F}{\partial T}\right)_V \;=\; -\!\left(\frac{\partial G}{\partial T}\right)_p, \qquad p \;=\; -\!\left(\frac{\partial F}{\partial V}\right)_T, \qquad V \;=\; \left(\frac{\partial G}{\partial p}\right)_T.

Equilibrium = minimum, stability = curvature

The equilibrium criterion dF0dF \le 0 (or dG0dG \le 0) means the system relaxes toward a minimum of the free energy, parametrised by whatever internal variable is free to adjust — a bubble radius, a magnetisation, a chemical concentration, an order parameter xx. The position of the minimum identifies the equilibrium state. The curvature of the free energy at that point identifies its stability:

2Fx2eq>0stable.\frac{\partial^2 F}{\partial x^2}\bigg|_\text{eq} > 0 \quad\Longleftrightarrow\quad \text{stable}.

When the curvature vanishes — the spinodal — small perturbations no longer have a restoring tendency, and the homogeneous state ceases to exist; the system spontaneously demixes or phase-separates.

Two competing wells: nucleation

When two phases — say liquid and vapour — coexist, the free energy has two minima, each describing one phase, separated by a barrier representing the high-energy intermediate state (a microscopic bubble, a microscopic crystal). The barrier height ΔG\Delta G^* controls the rate of spontaneous phase change: by the kinetic theory of activated processes, the rate is proportional to the Boltzmann factor eΔG/kBTe^{-\Delta G^*/k_B T}.

For a spherical bubble of radius RR nucleating inside a liquid under tension, two contributions to GG compete:

ΔG(R)  =  43πR3Δp  +  4πR2σ.\Delta G(R) \;=\; -\tfrac43 \pi R^3 \cdot \Delta p \;+\; 4\pi R^2 \sigma.

The cubic term dominates at large RR, the quadratic at small RR, producing a barrier at the critical radius R=2σ/ΔpR^* = 2\sigma/\Delta p with height

ΔG  =  16πσ33(Δp)2.\Delta G^* \;=\; \frac{16\pi \sigma^3}{3 (\Delta p)^2}.
0.012.525.037.550.0bubble radius R (nm)05266105331579921066ΔG / kTR* = 14.21 nmΔG* = 15047 kTdriving pressureΔp = 100.0 atmp_v − p_∞barrier height15046.8 kTnucleation rate~ 0events / mL / sverdict
barrier too high — homogeneous nucleation negligible

A vapour bubble of radius R in a liquid under tension Δp = p_v − p_∞ has Gibbs free energy ΔG(R) = −(4/3)πR³Δp + 4πR²σ. The first term (volume × pressure difference) drives growth; the second (surface area × surface tension) opposes it. ΔG peaks at the critical radius R* = 2σ/Δp with barrier height ΔG* = 16πσ³/(3Δp²). Above R* the bubble grows spontaneously; below R* it collapses. Thermal fluctuations cross the barrier at a rate J = J₀ exp(−ΔG*/kT) — exponentially sensitive to the barrier. For pure water at room temperature, the barrier is below 100 kT only when Δp exceeds ~1000 atm, recovering the homogeneous tensile-strength estimate of Lesson 1.2. The barrier is far too high at modest tensions to explain why real water tears at 0.1 atm — the resolution is heterogeneous nucleation, next lesson.

Slide σ\sigma and the driving tension; the volume curve (cubic, growing downward) and surface curve (quadratic, growing upward) sum to a barrier whose height ΔG\Delta G^* is read off directly. The Boltzmann factor eΔG/kBTe^{-\Delta G^*/k_BT} at the bottom shows how astronomically suppressed homogeneous nucleation is: for pure water at room temperature the barrier is hundreds to thousands of kBTk_BT, putting the rate so far below any observable level that real cavitation has to nucleate at impurities (the Cavitation Ch 2.2 heterogeneous story).

A general landscape with a tunable driving force

The bubble-nucleation case is one instance of a universal structure. Any system with two competing states has a free-energy landscape

G(x)  =  Gwells(x)    Fx,G(x) \;=\; G_\text{wells}(x) \;-\; F\, x,

where GwellsG_\text{wells} has two minima at x=0x = 0 (phase A) and x=1x = 1 (phase B), and FF is a driving “field” — a pressure difference, a voltage bias, a mechanical force — that tilts the landscape.

-0.15-0.10-0.050.000.0500.250.50.751order parameter xG(x)ABΔG*A→B
ΔG*A→B0.0625
ΔG*B→A0.0625
e−ΔG*/kBT (A→B)9.39e-1
e−ΔG*/kBT (B→A)9.39e-1

At F = 0 the wells are symmetric and the barrier is ΔG*0 = 1/16 ≈ 0.0625. Pushing F positive tilts the landscape, dropping the B-well, lowering the A→B barrier, and raising the B→A barrier. Beyond F ≈ 0.192 the barrier vanishes entirely — a *spinodal*. The thermal-activation rate goes as Arrhenius's exp(−ΔG*/kBT): doubling the barrier *squares* the rate.

Slide FF from zero. The landscape tilts; the A→B barrier shrinks; the B→A barrier grows. Beyond a critical FF the A-well disappears altogether — a spinodal. Slide TT to see the Boltzmann rate factor eΔG/kBTe^{-\Delta G^*/k_B T} change: at low TT the barrier is essentially uncrossable; at high TT the two wells equilibrate freely.

Phase equilibrium and the Clausius–Clapeyron equation

At coexistence between two phases — say liquid (l) and vapour (v) — the Gibbs free energies per unit mass are equal: gl(p,T)=gv(p,T)g_l(p, T) = g_v(p, T). As you move along the coexistence curve in the ppTT plane, the two free energies must change together:

Deriving the Clausius–Clapeyron equation

From dg=sdT+vdpdg = -s\,dT + v\,dp for each phase and equating along the coexistence line:

dpdT  =  svslvvvl  =  ΔsΔv.\frac{dp}{dT} \;=\; \frac{s_v - s_l}{v_v - v_l} \;=\; \frac{\Delta s}{\Delta v}.

The entropy change across the transition is the latent heat per mass divided by temperature, Δs=L/T\Delta s = L/T. Substituting,

dpdT  =  LTΔv.\frac{dp}{dT} \;=\; \frac{L}{T\, \Delta v}.

For a liquid–vapour transition where vvvlv_v \gg v_l and the vapour can be treated as an ideal gas (vv=RT/Mpv_v = RT/Mp),

dpdT    LMpRT2,\frac{dp}{dT} \;\approx\; \frac{L M p}{R T^2},

a separable ODE with solution lnp=LM/(RT)+const\ln p = -L M/(R T) + \text{const}. The vapour pressure rises exponentially with temperature.

280300320340360380102103104105106T (K)pv (Pa)20 °C37 °C (body)100 °C (boiling)
L (latent heat)2.45 MJ/kg
L M / R5304 K
pv(20°C)2094 Pa
pv(100°C)101.3 kPa

The curve is exponential in 1/T; on log-y vs linear-T it looks like a steep S. The Clausius-Clapeyron form ln p = -LM/(RT) + const captures the bare exponential; the measured water data sit on it to high accuracy. Lowering L flattens the curve; the latent heat is what makes vapour pressure so sensitive to temperature.

The exponential dependence on 1/T1/T is steep: water’s vapour pressure rises from 0.6 kPa at 0°C to 100 kPa at 100°C — a factor of 165 across a 100 K range. Slide the latent heat to see how the curvature depends on LL.

The same formula governs the vapour pressure inside the bubble of Cavitation 3.2; the body-temperature value (37°C, 6.3 kPa) sets the operating point for cavitation in biological fluids.

Two-state free-energy gating

A clean instance of free-energy reasoning: a channel that switches between an open (O) and closed (C) state, with free-energy difference ΔG=GOGC\Delta G = G_O - G_C that depends linearly on some external bias FF:

ΔG(F)  =  ΔG0    αF.\Delta G(F) \;=\; \Delta G_0 \;-\; \alpha F.

Treating the two states as Boltzmann-weighted, the open probability is

Popen(F)  =  11+e(ΔG0αF)/kBT.P_\text{open}(F) \;=\; \frac{1}{1 + e^{(\Delta G_0 - \alpha F)/k_B T}}.

This is the Fermi function in FF — sigmoidal, centred at F=ΔG0/αF = \Delta G_0/\alpha, with width set by kBT/αk_B T/\alpha.

-3-2-101230.000.250.500.751.00bias FPopenF1/2
F (bias)0.00
Popen(F)26.9%
F1/2 = ΔG₀/α0.50
width kBT/α0.50

The Fermi-function sigmoid is the equilibrium occupancy of a two-state system with energy gap ΔG(F) = ΔG₀ − αF. The midpoint sits at F1/2 = ΔG₀/α, and the width (in F) is set by kBT/α. Cool the bath (lower T) and the transition sharpens toward a step. This is the operative model for ion-channel gating, MET-channel mechanotransduction, and any other two-level system in thermal contact with a bath.

Slide the bias FF: the channel opens as FF crosses the midpoint. Lower TT: the transition sharpens; in the T0T \to 0 limit it becomes a step. Raise α\alpha (stronger coupling): the transition steepens at fixed TT. The dimensionless ratio (ΔG0αF)/kBT(\Delta G_0 - \alpha F)/k_BT — not any of those quantities alone — determines the open probability.

This is the operative model of mechanotransduction in the inner ear’s hair cells, of voltage-gated ion channels (where FF is the membrane voltage), and of any thermodynamic two-state system with a linear external bias.

The history — Helmholtz, Gibbs, and the invention of free energy

Hermann von Helmholtz coined freie Energie in 1882 in a paper on the thermodynamics of chemical processes; he showed that UTSU - TS is the maximum work extractable from a system in contact with a heat bath at fixed temperature. Josiah Willard Gibbs, in his 1873–1878 monograph On the Equilibrium of Heterogeneous Substances, independently developed the same machinery for the constant-T,pT,p case, introducing U+pVTSU + pV - TS that now bears his name.

Gibbs’s monograph — published in three instalments in the obscure Transactions of the Connecticut Academy of Arts and Sciences — laid out essentially the entire modern thermodynamics of phase equilibria, the chemical potential, the phase rule, and the analysis of multiphase systems. It was so far ahead of its time that it went largely unread for two decades, until Wilhelm Ostwald translated it into German in 1892. The Gibbs free energy and the Gibbs phase rule are direct descendants.

The Clausius–Clapeyron equation predates both: it was first written by Émile Clapeyron in 1834 and given a clean derivation by Clausius in 1850. It is the historical bridge between the empirical observations of latent heat and the modern thermodynamic potentials.

For the cross-book applications — Cavitation’s homogeneous and heterogeneous nucleation, the MET-channel Fermi function in the cochlea, vapour pressure inside an oscillating bubble — see the key examples sub-page.