van der Waals gas — Maxwell construction
Reduced units: P̄=P/P_c, v̄=v/v_c,
T̄=T/T_c, with vdW isotherm
P̄ = 8T̄/(3v̄−1) − 3/v̄².
Panel (a) is drawn on a fixed axis; panels (b) and (c) zoom onto the loop.
Pressure line P̄₀ = — · coexistence P̄_co = — · lower area A₋ = —, upper area A₊ = —
Roots (all panels): ● liquid □ unstable ▲ gas
(a) P̄–v̄ isotherm
Fixed axis, so the loop visibly shrinks to an inflection as T̄→1. Green line = selected pressure; dashed purple = coexistence. Drag vertically to move the line.
(b) Gibbs free energy ḡ(P̄)
ḡ = ∫ v̄ dP̄ along the isotherm. The self-intersection (purple) is where ḡliq = ḡgas — the coexistence pressure.
(c) Equal-area construction (zoom)
Shaded lobes between the line and the loop. They are equal only when the line sits at the coexistence pressure.
(d) Phase diagram (T̄–v̄)
Binodal (coexistence) and spinodal domes, traced by the construction at every T̄. The tie-line marks the current temperature; between the curves is metastable, inside the spinodal is unstable.
What am I looking at?
For T̄ < 1 the vdW isotherm is non-monotonic: a horizontal pressure line can cut it in three places — a dense liquid root, a middle mechanically unstable root (∂P̄/∂v̄ > 0), and a dilute gas root. As T̄→1 the minimum and maximum merge into a single inflection at (1, 1); above T̄ = 1 the isotherm is monotonic and there is no loop and no coexistence.
Travelling along the isotherm, the Gibbs energy per particle ḡ = ∫v̄ dP̄ traces the triangular "swallowtail" in panel (b). Its crossing point marks the single pressure at which the liquid and gas have equal ḡ and therefore coexist.
That same condition is the Maxwell equal-area rule in panel (c): ∫(P̄ − P̄₀) dv̄ = 0 between the liquid and gas roots, i.e. the lower and upper lobes have equal area. Use "Snap to coexistence" to land on it.