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

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

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


Helmholtz free energy F=E−TS

Differential (using dE=TdS−PdV+μdN and chain rule on TS):

dF=dE−TdS−SdT=−PdV+μdN−SdT

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

Maxwell relations:

(∂F∂V)N,T=−P,(∂F∂N)V,T=μ,(∂F∂T)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: ΔF≤0 — 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=−P1dV1−P2d(V−V1)=(P2−P1)dV1=0⟹P1=P2

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

Connection to partition function

From the canonical ensemble, S=⟨E⟩/T+kBln⁡Z, so:

F=−kBTln⁡Z

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

For monatomic ideal gas:

F=−NkBT(ln⁡VN+32ln⁡2πmkBTh2+1)

Checks: −(∂F∂T)V,N=S ✓ and −(∂F∂V)T,N=NkBTV=P ✓ (ideal gas law)

Spring and gas example

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

∂F∂x=∂E∂x⏟=Fpiston=−kx−T∂S∂x=Fpiston−Fgas=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+PV−TS

dG=dE+d(PV)−d(TS)=VdP−SdT+μdN

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

(∂G∂T)P,N=−S,(∂G∂P)T,N=V,(∂G∂N)P,T=μ

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


Grand free energy Ω=E−TS−μN

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