Equilibrium Conditions Between Subsystems
Put a hot brick against a cold one and wait: their temperatures equalize. Connect two gas chambers with a piston: their pressures equalize. Join two solutions through a membrane: their concentrations — more precisely, their chemical potentials — equalize. Three different equilibrations, three different intensive variables coming to a common value. It is no coincidence that these look alike. They are three instances of a single principle: an isolated composite system reaches equilibrium at the state that maximizes its total entropy, and maximizing entropy under each kind of exchange forces the matching intensive variable to be equal across the parts. This is the master theorem of equilibrium thermodynamics. Take two subsystems that can exchange a conserved quantity — energy, volume, or particles — at fixed total. The second law says the total entropy climbs to a maximum, and the first-order condition for that maximum equalizes the corresponding entropy derivative: (giving equal temperature), (equal pressure at equal ), or (equal chemical potential). One entropy-maximum principle generates all three equilibrium conditions at once. But being an extremum is not enough — equilibrium must be a stable maximum, or the smallest fluctuation would tip the system away. This is where the second-order conditions come in, and they carry real physical content. Requiring the total entropy to be concave (its second derivatives negative-definite) forces three inequalities: the heat capacity , the isothermal compressibility , and a mixed condition. These are not decorative — they say that adding heat raises temperature and squeezing raises pressure, and their violation marks the onset of instability, where a homogeneous phase spontaneously separates into two. So the full structure of equilibrium is captured by first and second derivatives of one function. The first derivatives give the three equalities — the conditions for equilibrium. The second derivatives give the three inequalities — the conditions for that equilibrium to be stable. This is the complete first-and-second-order theory, and it is the bridge from the abstract entropy-maximum postulate to the concrete, observable facts that hot flows to cold, that stable matter resists compression, and that phase transitions occur exactly where stability fails.
- An isolated composite system reaches equilibrium by maximizing total entropy under the exchange of conserved quantities between its parts.
- First-order conditions (the maximum): exchanging energy gives , exchanging volume gives , exchanging particles gives .
- All three equilibrium conditions come from one principle — maximizing equalizes the matching entropy derivative.
- Second-order conditions (stability): requiring the maximum to be stable forces , , and a mixed Hessian condition — entropy must be concave.
- Where stability fails (concavity breaks), the homogeneous phase is unstable and phase separation occurs — the link to phase transitions.
- Key idea: entropy maximization under exchange gives three first-order equalities (equal , , ) and three second-order stability inequalities (), the complete conditions for stable equilibrium.
An isolated composite system maximizes its total entropy under exchange of conserved quantities. The first-order conditions equalize the intensive variables — (energy exchange), (volume), (particles) — while the second-order conditions (concavity of ) give the stability inequalities and , whose failure signals phase separation.
Where this lives today
The entropy-maximum principle and its stability analysis are the working foundation of any field that computes equilibrium states. In computational thermodynamics and materials science, the CALPHAD method finds the equilibrium phases of a multicomponent alloy by minimizing the total Gibbs free energy (equivalently maximizing entropy) subject to mass conservation, then checks the second-order (convexity) conditions to determine which regions are stable, metastable, or unstable — the spinodal and binodal curves that this article's stability conditions define. Spinodal decomposition, the spontaneous phase separation that occurs when a material is quenched into the unstable region, is a central process in metallurgy, polymer science, and the microstructure of everything from stainless steel to battery electrodes. In geophysics and planetary science, the same equilibrium conditions (, , equal across phase boundaries) determine the mineral assemblages stable at each depth in a planet's interior, turning a rock into a barometer and thermometer for conditions hundreds of kilometers down. In chemical engineering, phase-equilibrium calculations — which distillation columns, extraction processes, and reactor designs all depend on — are exactly the solution of for every component across every phase, with stability analysis flagging where a mixture will spontaneously split. And conceptually, the stability conditions are the rigorous statement of Le Chatelier's principle and the reason ordinary matter is robust: a stable phase resists being pushed, and the study of where that resistance fails — critical points, spinodals, instabilities — is the entire modern theory of phase transitions.
The physical picture
Consider an isolated box divided into two parts by an internal wall. If the wall conducts heat but is rigid and impermeable, the two parts can exchange energy but nothing else. The total energy is fixed, and the second law says the total entropy will rise to its maximum. Sliding energy from part 2 to part 1 changes the total by , which keeps rising until the two energy-slopes match. That common slope is , so the equilibrium condition is : thermal equilibrium is equal temperature. Now make the wall movable as well: it can also exchange volume. Maximizing entropy over the volume split adds a second condition, , which (at the equal temperature already established) is : mechanical equilibrium is equal pressure. Make the wall permeable, and a third condition appears, equalizing , i.e. : diffusive equilibrium is equal chemical potential. One principle — maximize total entropy — generates all three, each triggered by the kind of exchange the wall permits.
But an extremum could be a maximum, a minimum, or a saddle. For equilibrium to be stable, the total entropy must be a genuine maximum — its second derivatives must be negative, making concave. This has teeth. Concavity in energy is exactly (adding heat raises temperature); concavity in volume is exactly (squeezing raises pressure). If either failed, a tiny fluctuation would grow: a slightly hotter region would draw more heat and run away, or a slightly denser region would collapse. The plot below shows what stability looks like — a concave entropy surface with a single stable peak, versus a non-concave one whose "equilibrium" is unstable and where the system phase-separates instead.
The core equations
The equilibrium of an isolated composite system is the maximum of its total entropy. For two subsystems exchanging energy at fixed total , the first-order condition is:
where: — subsystem entropies; the equalized energy-slope is , so thermal equilibrium is equal temperature (the zeroth law, derived from entropy maximization). Allowing volume exchange at fixed total adds a second condition, which at equal temperature gives equal pressure:
where: the equalized volume-slope is ; combined with , mechanical equilibrium is equal pressure. Allowing particle exchange adds a third condition — equal chemical potential:
where: the equalized particle-slope is ; diffusive equilibrium is equal chemical potential. Particles flow from high to low until they match. Stability requires the extremum to be a maximum — the total entropy must be concave, so its second derivative is negative. For energy exchange:
where: — heat capacity at constant volume; thermal stability means adding heat raises temperature. Similarly, mechanical stability requires , i.e. (compressibility positive). The full stability condition is that the Hessian matrix of second derivatives of be negative-definite:
where: the three inequalities together guarantee a genuine, jointly stable maximum; the mixed (determinant) condition couples thermal and mechanical stability. Their failure marks the spinodal — the boundary of instability where a phase separates.
The goal is to derive all three equilibrium conditions — equal temperature, pressure, and chemical potential — as first-order conditions of a single variational principle: maximizing the total entropy of an isolated composite system under the exchange of the corresponding conserved quantity. This unification is the article's owned result: it shows the three equilibria are not three separate laws but three faces of the second law. We carry it through for all three exchanges and verify the stationarity conditions symbolically.
Step 1. Two subsystems with entropies can exchange energy, volume, and particles, subject to fixed totals , , . The total entropy is , and equilibrium is its maximum over the allowed splits. Why: the composite is isolated, so the second law dictates that the total entropy is maximized at equilibrium — the single governing principle.
Step 2. Energy exchange: (since ), giving , i.e. , hence . Why: energy removed from one subsystem is added to the other, so the two slopes appear with opposite signs, and the maximum equalizes them.
Step 3. Volume and particle exchange, by the identical argument: gives , so at equal ; and gives , so . Why: each independent conserved exchange gives one independent stationarity condition, and each equalizes the matching intensive variable — the same logic three times.
Step 4. Verify on ideal gases: with (thermal), maximizing gives , i.e. energy shared in proportion to — equal energy per particle, hence equal temperature. The volume split similarly gives equal pressure. Why: the ideal-gas check confirms the abstract conditions reduce to the familiar equalizations, and shows energy/volume are shared in proportion to particle number. *Verified: the thermal condition , the mechanical condition , and the ideal-gas equal-energy-per-particle split are all checked symbolically in verify_aq-sm-equilibrium-conditions-subsystems.py.*
Go deeper · Derivation B · 2 minStability: the second-order conditions and the birth of phase separation
The goal is to derive the stability conditions — the second-order requirements that turn an entropy extremum into a stable maximum — and to show that they are exactly , , and a mixed Hessian condition, whose violation is the onset of phase separation. This completes the equilibrium theory: the first derivatives locate equilibrium, the second derivatives decide whether it can exist. We derive the conditions from the negative-definiteness of the entropy Hessian and verify the signs symbolically.
Step 1. For the entropy maximum to be stable, moving a bit of energy (or volume) from one subsystem to the other must decrease the total entropy — otherwise the fluctuation would grow. Expanding to second order, this requires . Why: a negative second derivative means the entropy curves downward away from the peak, so any fluctuation lowers and is suppressed — the definition of stability.
Step 2. For a single homogeneous phase this becomes the condition that each subsystem's entropy is concave in energy: . Using and , this is exactly . Why: thermal stability is the physically obvious statement that adding heat raises temperature; a negative would mean adding heat cools the system, which runs away.
Step 3. The analogous volume condition gives , equivalent to the isothermal compressibility — squeezing raises pressure. Why: mechanical stability means a denser region pushes back harder; negative would let a density fluctuation collapse, causing phase separation.
Step 4. Jointly, the full Hessian of must be negative-definite: , , and . For the Sackur–Tetrode entropy all three hold, confirming the ideal gas is stable. Where they fail — inside the spinodal of a van der Waals fluid — the homogeneous phase is unstable and separates into liquid and vapor; the boundary is the spinodal curve. Why: the mixed determinant condition couples thermal and mechanical stability, and its vanishing is precisely where a phase transition begins — the deep link between stability and phase transitions. *Verified: (thermal stability, ), (mechanical, ), and the negative-definite Hessian (, , ) for the Sackur–Tetrode entropy are all checked symbolically in the verify script.*
Limiting cases
How the equilibrium and stability conditions specialize:
| Case | Result | Meaning |
|---|---|---|
| Heat-conducting rigid wall | Thermal equilibrium only; , can differ. | |
| Movable wall | , | Mechanical equilibrium added. |
| Permeable wall | , , | Full equilibrium. |
| Thermal stability | Adding heat raises temperature. | |
| Mechanical stability | Squeezing raises pressure. | |
| Stability failure (spinodal) | Onset of phase separation. |
Worked examples
1 · Two blocks share energy and reach a common temperature (confidence builder)
Two blocks with entropies and (ideal-gas-like, ) share fixed total energy . Find the equilibrium split, verify it is a stable maximum, and interpret.
Step 1. Maximize : set , giving , i.e. — equal energy per particle.
Step 2. Since , the condition is exactly . The blocks reach a common temperature, sharing energy in proportion to their particle numbers.
Step 3. Numerical case: equal blocks (), . Then — energy splits evenly, equal temperatures. Unequal blocks (, block 1 has twice the particles), : solving gives , — block 1 holds twice the energy, so and .
Step 4. Stability: everywhere — the extremum is a genuine maximum, so the equilibrium is stable (). The blocks equilibrate to a common temperature and stay there; a fluctuation that made one block hotter would be suppressed because it would lower the total entropy.
2 · Testing the stability of an ideal gas (exam level)
Verify that the Sackur–Tetrode entropy satisfies all three stability conditions, confirming the ideal gas is a stable phase, and identify what would change near a phase transition.
Step 1. From , compute the thermal second derivative: . Thermal stability holds: . ✓
Step 2. Mechanical: . Mechanical stability holds: . ✓ Squeezing the gas raises its pressure, as it must for a stable substance.
Step 3. Mixed condition: (the Sackur–Tetrode entropy separates in and ), so the Hessian determinant is . ✓ The full Hessian is negative-definite: the ideal gas is jointly stable in energy and volume.
Step 4. Near a phase transition (a real gas, van der Waals): inside the spinodal the mechanical condition fails, (the isotherm has a region where ), so and the Hessian is no longer negative-definite. There the homogeneous phase is unstable and separates into liquid and vapor. The ideal gas never does this — it has no attractive interactions to drive condensation — which is exactly why it is stable at all densities. Stability analysis distinguishes a gas that can condense from one that cannot.
Origins · 1 minequilibrium and how this was discovered
The concept of thermodynamic equilibrium as the state of maximum entropy — and the systematic derivation of the equilibrium and stability conditions from it — is due above all to Josiah Willard Gibbs, whose 1875–78 On the Equilibrium of Heterogeneous Substances laid out the complete variational theory: equilibrium as the maximum of entropy (or minimum of the appropriate free energy) subject to constraints, with the equalities of temperature, pressure, and chemical potential as first-order conditions and the convexity/concavity requirements as stability conditions. Herbert Callen, in his influential 1960 textbook, recast this as a clean axiomatic structure built on the entropy-maximum postulate and its extremum principle, making the "maximize entropy, then check the Hessian" procedure the modern standard. The stability conditions connect directly to Le Chatelier's principle (1884): a stable system responds to a perturbation in the direction that opposes it, which is precisely what and encode. Equilibrium is thus not a static concept but a variational one — the summit of the entropy landscape — and its stability is the curvature at that summit.
Going further
References. Callen, Thermodynamics and an Introduction to Thermostatistics, 2nd ed., chs. 2–3 (equilibrium conditions) and chs. 8–9 (stability) · Pathria & Beale, Statistical Mechanics, 3rd ed., ch. 1 · Reif, Fundamentals of Statistical and Thermal Physics, ch. 3 · Kardar, Statistical Physics of Particles, ch. 1 · Landau & Lifshitz, Statistical Physics Part 1, §§21–24 (stability) · Gibbs, On the Equilibrium of Heterogeneous Substances (1875–78).
Provenance. The equilibrium conditions (, , equal, from maximizing total entropy under exchange) and the stability conditions (, , negative-definite Hessian) are standard (Callen chs. 2–3, 8–9; Reif ch. 3). A verifier should confirm the first-order conditions , , and the second-order signs , , for the Sackur–Tetrode entropy. Numerical instances: equal blocks split ; unequal () split , (energy proportional to , equal ). All in verify_aq-sm-equilibrium-conditions-subsystems.py.
Builds on: Temperature, Pressure, and Chemical Potential as Entropy Derivatives · Second Law of Thermodynamics and Entropy · The Microcanonical Ensemble and the Postulate of Equal a Priori Probabilities · Thermodynamic Potentials and the Fundamental Relation. Leads to: Thermodynamic Stability and Convexity Conditions · Canonical Ensemble · Equivalence of Ensembles.
Why does maximizing entropy give the equilibrium, rather than minimizing energy?
It depends on what is held fixed, and for an isolated system it is entropy maximization. An isolated composite system has fixed total energy, volume, and particle number — it cannot lower its energy (energy is conserved), so the only thing that can change is how the fixed quantities are distributed among its parts, and the second law says that distribution evolves to maximize total entropy. That is the entropy-maximum principle. The energy-minimum principle is the equivalent statement in the energy representation, where you fix the entropy instead and minimize energy — appropriate for a system in contact with an entropy reservoir. And for systems in contact with a thermal (or thermal+pressure) bath, the equilibrium minimizes the appropriate free energy ( or ), which is entropy maximization of system-plus-bath in disguise. So there is one underlying principle (maximize total entropy of the isolated whole), and "minimize energy" or "minimize free energy" are its forms under different constraints. For an isolated system, entropy maximization is the direct statement.
Why does each type of exchange (energy, volume, particles) equalize a different intensive variable?
Because each intensive variable is defined as the entropy slope with respect to the corresponding conserved quantity. Temperature is , so equalizing (which is what energy exchange does at the entropy maximum) equalizes and hence . Pressure enters through , so volume exchange equalizes (and thus at equal ). Chemical potential enters through , so particle exchange equalizes . The pattern is exact and universal: for every conserved quantity a system can exchange, there is a conjugate intensive variable (its entropy slope), and the entropy-maximum condition equalizes exactly that slope. This is why the three equilibria look so similar — they are the same variational condition applied to three different conserved quantities, and it generalizes to any additional conserved quantity (magnetization, charge) with its own conjugate field.
What physically goes wrong if the heat capacity C_V were negative?
A negative heat capacity means adding energy to a system lowers its temperature — and this leads to a runaway instability for a system in thermal contact with others. Suppose a small region fluctuates to slightly higher energy. With it would become colder, so heat would flow into it from its warmer surroundings, making it even more energetic and even colder, and the fluctuation would grow without bound — the homogeneous state is unstable. This is exactly why the stability condition (equivalently ) is required for a stable equilibrium: it ensures a hot fluctuation loses heat and returns to equilibrium. Remarkably, systems with long-range interactions — most famously self-gravitating ones like star clusters — genuinely can have negative heat capacity (a star that loses energy gets hotter), and precisely because of this they do not have stable homogeneous equilibria and require a completely different, non-extensive thermodynamic treatment. Negative is the signature of a system that violates the ordinary stability conditions.
How does the stability analysis connect to phase transitions?
Intimately — phase transitions are exactly where stability fails. As long as the entropy is strictly concave (the Hessian negative-definite, , ), a single homogeneous phase is stable. But if you compress a gas below its critical temperature, you eventually enter a region where the mechanical stability condition fails: , meaning the isotherm has a stretch where pressure would increase as you expand (). No homogeneous phase can exist there — the system spontaneously separates into a dense (liquid) and dilute (vapor) phase. The boundary of this unstable region, where the Hessian determinant first vanishes, is the spinodal curve. The broader coexistence region (the binodal) is set by the equal-chemical-potential condition () via the common-tangent/Maxwell construction. So the equilibrium conditions ( equal) locate the coexistence, and the stability conditions (Hessian sign) locate the instability — together they are the complete framework of first-order phase transitions.
Do these conditions still hold if the two subsystems are very different sizes?
Yes — the equilibrium conditions (, , equal) hold regardless of the relative sizes of the subsystems, because they come from equalizing intensive (size-independent) quantities. What changes with size is how much of the conserved quantity each subsystem ends up with, not the equilibrium condition itself. If one subsystem is enormous compared to the other (a "reservoir"), it barely changes its own intensive variables while imposing them on the small system: the small system simply takes on the reservoir's temperature, pressure, and chemical potential. This is exactly the setup that defines the canonical ensemble (large thermal reservoir fixes ) and the grand canonical ensemble (large reservoir fixes and ). So the size-asymmetric limit is not an exception — it is the physically most important case, where the large subsystem acts as a bath that clamps the intensive variables of the small one. The equilibrium conditions of this article are precisely what justify treating a reservoir as fixing , , or .
Why must the equilibrium be a maximum of entropy specifically — could it be a minimum or a saddle?
The direction of the second law forces it to be a maximum. The second law says the entropy of an isolated system increases until it can increase no more, so equilibrium is where entropy stops rising — the top of the entropy landscape, a maximum. A minimum would be the opposite: the system would spontaneously move away from it (entropy would rise by leaving), so a minimum is not an equilibrium at all but a point of maximal instability. A saddle is intermediate — stable against some perturbations, unstable against others — and any fluctuation along the unstable direction grows, so a saddle is also not a true equilibrium. This is exactly why the first-order condition (zero gradient, which just says "extremum") is not sufficient: you must also check the second-order condition (negative-definite Hessian) to confirm you have a maximum rather than a saddle or minimum. Physically: at a genuine maximum, every possible fluctuation lowers the entropy and is therefore suppressed by the second law, so the state is stable. That is what "stable equilibrium" means, and it is why the concavity conditions (, ) are indispensable — they are the mathematical guarantee that you are at the summit, not on a slope or in a valley.