Four thermodynamic potentials, each natural for a different set of held-fixed variables:

Potential Definition Natural variables
Helmholtz F ETS T,V,N
Enthalpy H E+PV S,P,N
Gibbs G E+PVTS T,P,N
Grand Ω ETSμN T,V,μ

See Euler equation and Gibbs-Duhem for the underlying structure.


Helmholtz free energy F=ETS

Differential (using dE=TdSPdV+μdN and chain rule on TS):

dF=dETdSSdT=PdV+μdNSdT

dS drops out — F=F(V,N,T). This is the Legendre transform replacing S with T.

Maxwell relations:

(FV)N,T=P,(FN)V,T=μ,(FT)V,N=S

Why it's useful: V,N,T are easily measurable. Contrast with E(S,V,N) and S(E,V,N) where entropy is hard to measure directly.

Free energy and work

For an isolated system at constant T and V, interacting with surroundings only by heat exchange — see Helmholtz work inequality derivation:

WΔF

equality iff reversible. Free energy is literally the energy free to do work.

When W=0: ΔF0 — Helmholtz free energy never increases at constant T,V.

Equilibrium = state of minimum F (for isolated system at constant T,V).

Example — two gases separated by a partition at constant T, minimising F:

dF=P1dV1P2d(VV1)=(P2P1)dV1=0P1=P2

Same result as maximising total entropy — the two are equivalent.

Connection to partition function

From the canonical ensemble, S=E/T+kBlnZ, so:

F=kBTlnZ

Equivalently: eβF=Z=eβE — free energy equals energy when there is only one microstate.

For monatomic ideal gas:

F=NkBT(lnVN+32ln2πmkBTh2+1)

Checks: (FT)V,N=S ✓ and (FV)T,N=NkBTV=P ✓ (ideal gas law)

Spring and gas example

See Spring-gas equilibrium derivation. Piston+gas system in heat bath — equilibrium via Fx=0:

Fx=Ex=Fpiston=kxTSx=FpistonFgas=0

Minimising F is equivalent to balancing forces.

Energy (non)-minimisation

Total energy is conserved — it never minimises. What minimises is free energy:

F=T[Ssys+ET]=T[Ssys+Ssurr]

Minimising F = maximising total entropy = 2nd law. "Energy minimisation" (ball rolling downhill, spring with friction) is always free energy minimisation driven entirely by entropy.

Free energy is a property of the ensemble, not of a single microstate. F=Fextsystem only — minimise the system's F, ignore the bath. Use F for constant T,V; use G for constant T,P.


Gibbs free energy G=E+PVTS

dG=dE+d(PV)d(TS)=VdPSdT+μdN

G=G(P,N,T). Maxwell relations:

(GT)P,N=S,(GP)T,N=V,(GN)P,T=μ

Natural potential for chemistry and biology: reactions at constant T,P are spontaneous iff ΔG0.


Grand free energy Ω=ETSμN

Natural for the grand canonical ensemble (constant T,V,μ; N fluctuates).