4.1 Why free energy: system and reservoir

The thermodynamics chapter gave the rules of bookkeeping; this one gives the rule of prediction. The second law says an isolated system moves toward maximum entropy — but the systems we usually care about are not isolated. A reaction in a beaker, a crystal in contact with its melt, a magnet in a thermostat all exchange heat with their surroundings. For these the quantity that is extremised is not the entropy but a free energy.

The total-entropy argument

Put the system in thermal contact with a much larger reservoir at fixed temperature TT. The combination “system + reservoir” is isolated, so its total entropy can only increase. The reservoir is so large that it stays at TT; the entropy it gains is the heat it absorbs divided by TT, and at fixed system volume that heat is ΔUsys-\Delta U_\text{sys}. So

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

where FUTSF \equiv U - TS is the Helmholtz free energy. The second law ΔStot0\Delta S_\text{tot}\ge 0 is therefore exactly equivalent to ΔF0\Delta F \le 0. The free energy is the system-level bookkeeping that has already absorbed the reservoir’s entropy change, so that a statement about the universe becomes a statement about the system alone.

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” or “forbidden” — flips exactly at the ΔF=0\Delta F = 0 line: a change with ΔF<0\Delta F < 0 is allowed, one with ΔF>0\Delta F > 0 is forbidden. That is why a system at fixed TT and VV relaxes toward the minimum of FF.

For a system held at fixed temperature and pressure — the usual case under the atmosphere — the same argument, now allowing the reservoir to do pressure work, 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. Which free energy to minimise is set entirely by which variables the surroundings hold fixed.

Free energies as Legendre transforms

The definitions F=UTSF = U - TS and G=U+pVTSG = U + pV - TS are not arbitrary: each is the Legendre transform of the internal energy, trading a natural variable for its conjugate. U(S,V)U(S,V) has natural variables SS and VV, with T=(U/S)VT = (\partial U/\partial S)_V and p=(U/V)S-p = (\partial U/\partial V)_S. The transform F(T,V)=UTSF(T,V) = U - TS swaps the entropy SS for the temperature TT — geometrically, FF is the intercept of the tangent to U(S)U(S) whose slope is 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 point of tangency on U(S)U(S) moves, and the tangent’s intercept is F(T)=U(S)TSF(T) = U(S^*) - T S^*. The transform carries exactly the same information as U(S)U(S), repackaged so that the control variable is the temperature the experimenter actually fixes. Differentiating the definitions gives the working forms

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

from which the entropy, pressure, and volume are read off as first derivatives — the machinery the rest of the chapter uses to locate equilibrium.