Thermodynamic Stability and Convexity Conditions
Drop a marble into a bowl and it settles at the bottom; balance it on an upturned bowl and the faintest breath sends it rolling away. Equilibrium is not one thing — it is stable or unstable, and the difference is entirely the curvature of the surface the marble sits on. Thermodynamics has exactly the same story, but the "surface" is the entropy function and the "marble" is a tiny fluctuation of energy or volume that the system is always spontaneously trying. The Second Law says an isolated system in equilibrium sits at a maximum of total entropy. A maximum is not just a place where the first derivative vanishes; it is a place where the surface curves downward in every direction. That single geometric fact — that is a concave function of its extensive variables — is the master stability condition of thermodynamics, and everything measurable follows from it. Concavity in energy forces the heat capacity to be positive: a stable system that absorbs heat must get warmer, never colder. Concavity in volume forces the isothermal compressibility to be positive: squeeze a stable system and its pressure must rise. A material that violated either would spontaneously fly apart into hot and cold regions, or collapse and rarefy — which is precisely what happens inside the unstable loop of the van der Waals gas, and precisely why a liquid and its vapour split into two phases. The free energies inherit the same discipline with the signs flipped by the Legendre transform: is convex in and concave in , is convex in and concave in . This article turns "equilibrium is a maximum" into hard inequalities — , , — and shows they are the same statement as "fluctuations don't run away."
- Equilibrium of an isolated system is a maximum of entropy, which means must be a concave function of its extensive arguments — curving downward in every direction.
- Concavity in energy gives , hence the heat capacity is positive, : absorb heat, get warmer.
- Concavity in volume gives the compressibility positive, : squeeze it, the pressure rises. A region with is mechanically unstable and phase-separates.
- Under Legendre transforms the free energies flip: is convex in , concave in ; is convex in , concave in .
- Stability is the same statement as "fluctuations are bounded": requires .
- Key idea: thermodynamic stability is the demand that the entropy Hessian be negative-definite; by Sylvester's criterion this single matrix inequality delivers and together, and its failure is the onset of phase separation.
Thermodynamic stability is the demand that equilibrium be a genuine maximum of entropy — that the Hessian matrix of be negative-definite. By Sylvester's criterion this single condition delivers positive heat capacity and positive compressibility simultaneously; where it fails, the homogeneous system is unstable and splits into coexisting phases.
Where this lives today
Stability and convexity are the working tools of every phase-diagram calculation. When materials scientists compute whether an alloy will remain a single solid solution or unmix into two crystalline phases, they are testing the convexity of the free energy versus composition — the "common tangent" construction is Gibbs's stability analysis applied to . The spinodal line, where the determinant of the stability Hessian first vanishes, separates metastable regions (where nucleation is needed to phase-separate) from unstable ones (where separation is spontaneous, spinodal decomposition), and this distinction controls the microstructure of everything from steel to polymer blends to the fat crystals in chocolate. The same mathematics reaches into soft matter and biology. Liquid–liquid phase separation inside cells — the formation of membraneless "condensates" of proteins and RNA — is now understood as a Gibbs instability of a multicomponent free energy, with the same spinodal/binodal geometry. And the divergence of at a critical point, which stability theory flags as the collapse of a curvature, is exactly the physics of critical opalescence and the starting point of the renormalization-group theory of critical phenomena. Convexity is where equilibrium thermodynamics hands the baton to the physics of phase transitions.
The physical picture
Imagine the entropy of an isolated system plotted as a hill over the plane of its extensive coordinates — energy across, volume into the page, height equal to . The Second Law puts the equilibrium state at the top of this hill. Now let one half of the system spontaneously hand a little energy to the other half — a fluctuation the microscopic dynamics is trying constantly. If the entropy hill curves downward, the two displaced sub-systems together have less entropy than the uniform state, so the fluctuation is entropically disfavoured and dies away. If the hill curved upward in some direction, the fluctuation would be rewarded, grow, and the uniform system would tear itself apart. Stability is downward curvature; instability is upward curvature.
The two curvatures have direct physical names. Curving downward in says the temperature (whose inverse is the slope ) must decrease as energy is drained — equivalently, that adding energy raises the temperature, so the heat capacity is positive. Curving downward in says the pressure rises under compression, so the compressibility is positive. These are not separate assumptions; they are two eigen-directions of the same downward-curving surface. The punchline is what happens when a material's equation of state violates stability. The van der Waals gas, plotted below, has a middle branch on each sub-critical isotherm where — squeeze it and the pressure drops. No homogeneous fluid can live there. The system escapes the forbidden region by splitting into liquid and vapour, and the flat coexistence line (Maxwell's equal-area construction) is drawn across the instability. Stability theory does not just forbid the loop; it predicts the phase transition.
The core equations
Stability begins with the requirement that equilibrium extremize entropy and that the extremum be a maximum. The first-order condition (equal temperatures, pressures, chemical potentials across sub-systems) is equilibrium; the second-order condition is stability. For a virtual transfer of energy between two halves of a system, the total entropy change to second order must be non-positive:
where: — second-order entropy change under a fluctuation; the inequality is the mathematical content of "equilibrium is a maximum." It must hold for every independent fluctuation direction, which is the requirement that the whole Hessian of be negative-definite. The energy curvature is directly the heat capacity. Using and differentiating again:
where: — heat capacity at constant volume. Since the left side must be negative (concavity) and , this forces . A negative heat capacity would mean the entropy curves the wrong way — an unstable state. The volume curvature gives the compressibility. The relevant stability condition, at fixed temperature, is convexity of the Helmholtz free energy in volume:
where: — isothermal compressibility. Convexity of in (equivalently ) forces : a stable material resists compression. Collecting the curvatures into a matrix makes the joint condition precise. The Hessian of (at fixed ) must be negative-definite:
where: the subscripts denote second partial derivatives; the right-hand pair is Sylvester's criterion for negative-definiteness. The two inequalities together are stronger than and separately — they also guarantee stability against combined energy-and-volume fluctuations. Finally, the Legendre transforms fix the convexity/concavity signs of every potential. Because a Legendre transform trades a variable for its conjugate slope, it flips curvature in the transformed variable:
where: the master rule is potentials are convex in their extensive variables and concave in their intensive variables. Concavity in is the statement , the same viewed through the free energy.
The goal is to show that the single geometric requirement — equilibrium is a maximum of total entropy, so is concave — translates into the two most-used stability inequalities of thermodynamics: positive heat capacity and positive compressibility. The strategy is to consider an isolated system split into two identical halves, let a small amount of energy (then volume) flow between them, and demand that the total entropy not increase. Because is extensive and the split is symmetric, the first-order change cancels and the second-order change is controlled by the curvature of .
Step 1. Split the system into halves A and B, each initially in the equilibrium state. Move energy from B to A at fixed total energy: A gains , B loses . The total entropy change to second order is . Why: the first-order terms cancel exactly because both halves start at the same slope — that cancellation is the equilibrium condition; only the curvature survives.
Step 2. Stability demands for this spontaneous fluctuation, so : the entropy is concave in energy. Why: if were positive the fluctuation would raise total entropy and grow without bound, splitting the system into a hot half and a cold half — a thermal runaway.
Step 3. Convert the curvature to a measurable. Since , we have . Concavity therefore requires . Why: the heat capacity is exactly the reciprocal slope , and a negative one would make positive — forbidden by Step 2.
Step 4. Repeat with a volume fluctuation at fixed energy: . Working at fixed temperature instead (the physically natural constraint for compression) this is equivalent to convexity of in , i.e. , so . Why: squeezing a stable material must raise its pressure; would let a density fluctuation feed on itself, and the homogeneous phase collapses into coexisting phases. *Verified: and checked symbolically; the van der Waals equation of state is shown to develop an unstable branch below and none above, in verify_aq-sm-thermodynamic-stability-convexity.py.*
Go deeper · Derivation B · 2 minThe negative-definite entropy Hessian (Sylvester's criterion) — the owned joint condition
This is the article's owned structural result: the two separate inequalities and are corollaries of one matrix statement — that the Hessian of is negative-definite — and the matrix condition is strictly stronger because it also rules out instabilities that appear only under combined energy-and-volume fluctuations. The goal is to state the joint condition via Sylvester's criterion and verify it on a concrete stable system. The strategy is to compute the Hessian of the Sackur–Tetrode entropy and check its two principal minors.
Step 1. For a general fluctuation moving both energy and volume, . Stability requires this quadratic form to be for all — i.e. the Hessian (negative-definite). Why: an isolated system explores energy and volume exchange simultaneously; stability must survive the worst-case mixed fluctuation, not just the two axis-aligned ones.
Step 2. By Sylvester's criterion, iff the leading minor is negative and the determinant positive: and . The determinant condition is the extra content: it can fail even when both and hold, signalling an instability in a diagonal fluctuation direction. Why: a symmetric matrix with two negative diagonal entries is still indefinite if the off-diagonal coupling is large enough — Sylvester's determinant test catches exactly that.
Step 3. Test on the ideal gas. With , compute , , and . The leading minor is negative and the determinant : both Sylvester conditions hold, so the ideal gas is unconditionally stable. Why: an ideal gas has no attractive interactions to drive condensation, so no instability appears at any — the Hessian is negative-definite everywhere.
Step 4. Contrast with an interacting fluid. When attractions are strong enough (van der Waals below ), the determinant condition fails on the middle branch and ceases to be negative-definite — the analytic signature of the impending liquid–vapour split. Why: the unstable branch is where a small density fluctuation lowers the free energy; the homogeneous phase is no longer a maximum of , and coexistence takes over. *Verified: the Sackur–Tetrode Hessian has , , , determinant , and both numerical eigenvalues negative — negative-definite; the van der Waals determinant fails below . Checked in the verify script.*
Limiting cases
The stability conditions govern several boundary regimes:
| Case | Result | Meaning |
|---|---|---|
| Marginal stability | A stability limit (spinodal): one curvature direction goes flat, or ; onset of phase separation. | |
| Critical point | and higher derivatives vanish | The spinodal and coexistence curves meet; diverges, giving critical opalescence and large density fluctuations. |
| Ideal gas | everywhere | Unconditionally stable — no attractions, no instability, no phase transition. |
| Negative heat capacity | Impossible for a stable isolated system in equilibrium; occurs for self-gravitating systems, which are never in true thermodynamic equilibrium. | |
| Le Chatelier's principle | any single response | A stable system responds to a perturbation so as to oppose it — the physical face of positive , . |
Worked examples
1 · Where does the van der Waals gas become unstable? (a real onset)
For a van der Waals gas (per mole, ), find the critical temperature and show explicitly that an isotherm just below it has a region where , i.e. mechanically unstable. Use in reduced units.
Step 1. Critical temperature. The critical point is the inflection where ; solving gives the standard result . Plugging in: .
Step 2. Pick a sub-critical isotherm, . Compute the slope and scan . At : — positive slope, mechanically unstable.
Step 3. Confirm the boundaries. At small (dense, ) and large (dilute, ) the slope is negative (stable). The unstable window lies between the two spinodal points where . Between them, a homogeneous fluid cannot exist.
Step 4. Above () the slope is negative for all : no unstable branch, no phase transition — the supercritical fluid. The stability condition alone locates the phase transition without any further input.
2 · Stability inequalities as measurable numbers (exam level)
(a) A monatomic ideal gas has ; verify it is positive and state what instability its negativity would imply. (b) Water at C has ; compute the fractional volume change when pressure rises by , and confirm the sign is stabilizing.
Step 1. Heat capacity: per mole — positive, as required. If it were negative, adding heat would lower the temperature, and any warm patch would keep absorbing heat and heating relative to its surroundings: a thermal runaway. Stability forbids it.
Step 2. Compressibility sign. By definition means : raising pressure shrinks the volume. This is the stabilizing response — Le Chatelier in action.
Step 3. Fractional volume change: , i.e. . The minus sign is the whole point: compression reduces volume, exactly as a stable material must.
Step 4. Boundary check. As (approaching a critical point) the same would produce an enormous — the material becomes infinitely "soft," which is why critical fluids scatter light strongly (critical opalescence). Positive-but-finite is the everyday stable regime.
Origins · 1 minJohannes Diderik van der Waals and how this was discovered
Van der Waals, a Dutch physicist who taught himself physics while working as a schoolteacher, gave the world the first equation of state to describe both the gas and liquid phases and the transition between them. His 1873 doctoral thesis introduced the two corrections — a finite molecular size () and an attractive intermolecular force () — that produce the famous S-shaped sub-critical isotherm whose middle branch is mechanically unstable, . It was precisely this instability that made the liquid–vapour transition thermodynamically inevitable, turning the abstract convexity conditions of Gibbs into a concrete, calculable phase diagram. Van der Waals also discovered the law of corresponding states — that all fluids, rescaled by their critical constants, obey one universal equation — an early glimpse of universality that anticipated the modern theory of critical phenomena. He received the 1910 Nobel Prize for this work. Maxwell called his thesis a landmark, remarking that van der Waals's name would "soon be among the foremost in molecular science."
Going further
References. Callen, Thermodynamics and an Introduction to Thermostatistics, 2nd ed., Chs. 8–9 (the definitive treatment of stability and convexity) · Pathria & Beale, Statistical Mechanics, 3rd ed., §3.10 · Kardar, Statistical Physics of Particles, §1.9 · Sethna, Statistical Mechanics: Entropy, Order Parameters, and Complexity, Ch. 11 · Landau & Lifshitz, Statistical Physics Part 1, §§21–22 · Gibbs, On the Equilibrium of Heterogeneous Substances (1875–78).
Provenance. The concavity of and convexity/concavity of the potentials are Callen's stability postulates (Chs. 8–9). A verifier should reproduce: hence ; hence ; the Sackur–Tetrode Hessian eigenvalues (both negative, negative-definite); and the van der Waals instability with (unstable branch below, stable above). Numerical instances (vdW in reduced units; ideal-gas J/K per mole; water at MPa) are recomputed in verify_aq-sm-thermodynamic-stability-convexity.py. (CODATA).
Builds on: Second Law of Thermodynamics and Entropy · Thermodynamic Potentials and the Fundamental Relation · Legendre Transforms · Maxwell Relations · Helmholtz Free Energy, Enthalpy, and Gibbs Free Energy. Leads to: Euler Relation and Gibbs–Duhem Equation · Response Functions · Phase Transitions and Coexistence · Fluctuation–Response Theorems.
Why is concavity of entropy the same thing as a stable equilibrium?
The Second Law says an isolated system in equilibrium maximizes its total entropy. A maximum of a smooth function is a point where the first derivatives vanish (the equilibrium conditions: equal , , ) and the second derivatives make it curve downward in every direction — that downward curvature is concavity. If the entropy surface curved upward anywhere, a spontaneous fluctuation in that direction would increase the total entropy, so the Second Law would drive the fluctuation to grow rather than decay, and the "equilibrium" would not be one. Concavity is not an extra assumption bolted onto the Second Law; it is the second-order part of "equilibrium is an entropy maximum."
How can self-gravitating systems have negative heat capacity if stability forbids it?
The stability theorem assumes the system is extensive — energy and entropy scale linearly with size, which requires short-range interactions. Gravity is long-range and unscreened, so a self-gravitating system (a star cluster, a collapsing gas cloud) is fundamentally non-extensive, and the microcanonical and canonical ensembles stop agreeing. In the microcanonical (isolated) setting such systems really do have : extract energy from a star and it contracts and heats up (the negative-specific-heat that drives stellar evolution). This is genuine physics, not a paradox — it is a flag that the assumptions behind the stability inequalities (extensivity, ensemble equivalence) have broken down. In the canonical ensemble at fixed , by contrast, is unavoidable, which is why a self-gravitating system has no proper canonical equilibrium.
What is the difference between the spinodal and the coexistence (binodal) curve?
Both appear on a phase diagram, but they mark different things. The coexistence (binodal) curve is where two phases have equal chemical potential and pressure — the true equilibrium boundary; between it and the spinodal the homogeneous phase is metastable (locally stable but globally not the lowest free energy, so it needs a nucleation event to decay). The spinodal is where the stability Hessian's determinant first hits zero — inside it the homogeneous phase is absolutely unstable and separates spontaneously (spinodal decomposition), no nucleation barrier needed. The spinodal lies inside the binodal; the two meet only at the critical point. Stability theory locates the spinodal directly; locating the binodal additionally requires the equal-chemical-potential (Maxwell) construction.
Why is (adiabatic) smaller than (isothermal)?
Both are positive by stability, but they differ because a fast (adiabatic) compression heats the gas, and the extra thermal pressure resists further compression more than an isothermal squeeze does. Quantitatively , so . Physically: hold temperature fixed and the material is "softer" (more compressible) because you let the heat of compression escape; do it adiabatically and the trapped heat stiffens it. This is exactly why the speed of sound (which depends on ) is higher than a naive isothermal estimate — the mistake Newton made and Laplace corrected.
Does stability require the entropy to be concave, or the free energy to be convex? They sound opposite.
They are the same condition seen through a Legendre transform, and the apparent sign flip is exactly what the transform does. Entropy must be concave in its extensive arguments. When you Legendre-transform from (or ) to a free energy by trading an extensive variable for its intensive conjugate slope — e.g. via — concavity in the traded variable becomes concavity in the new intensive variable, while convexity is preserved in the untraded extensive ones. The clean rule: thermodynamic potentials are convex in their extensive variables and concave in their intensive variables. So concave in and concave in and convex in are all the same physics.
Is stability a statement about a single phase or about the whole system?
About a single homogeneous phase. The convexity conditions test whether a uniform state is a local maximum of entropy against internal fluctuations. When they fail, the global maximum is no longer the homogeneous state — it is a mixture of two (or more) coexisting phases, and the true free energy is the common-tangent (convex-hull) construction lying below the unstable bump. So stability analysis tells you when a single phase is locally viable; the global phase diagram is found by then taking the convex envelope of the free energy. The unstable and metastable regions of a single-phase equation of state are precisely the parts the system avoids by phase-separating.