Thermodynamic equilibrium 2026-10-14
A thermodynamic system is in thermodynamic equilibrium when its macroscopic state has no spontaneous tendency to change through any exchange allowed by its constraints. For an isolated system, stable thermodynamic equilibrium maximizes entropy over the accessible states at fixed total energy and conserved material inventories. A wall can forbid an exchange, so always specify what can cross or move. Thermal, mechanical and chemical conditions answer different questions about that same constrained state. [ref]
For example, two compartments separated by a rigid, impermeable wall that transmits heat can reach thermal equilibrium while retaining different pressures and compositions. Allowing an unloaded piston to move adds a mechanical equilibrium condition. Allowing one chemical species to cross adds chemical potential equality for particle exchange; allowing a chemical reaction adds its chemical equilibrium condition. A fixed barrier can therefore support a constrained thermodynamic equilibrium that ceases to be an equilibrium when the barrier is removed.
Uniformity is not the definition of thermodynamic equilibrium. An isothermal atmosphere in hydrostatic equilibrium can have a common temperature while its pressure and mass density vary with height: the pressure gradient balances gravity. In an external field, the exchange condition must include the relevant potential energy; for charged matter this leads to the electrochemical potential. Relativistic gravitational corrections to thermal equilibrium are described separately by the Tolman temperature law.
A steady state only says that the macroscopic description is constant in time. A bar maintained between hot and cold thermal reservoirs has steady heat flux and produces entropy, so it is not in thermodynamic equilibrium. Even matching temperatures at one perfect-contact interface can coexist with heat transfer through the surrounding material; matching those two local values does not establish equilibrium of the whole apparatus. See thermal conduction for that spatial transport problem.
The useful simplification is that equilibrium conditions predict an endpoint without computing every collision or flow during relaxation. The first law of thermodynamics supplies the conserved quantities, and the Second law of thermodynamics supplies the direction of change. For a system held at fixed temperature and volume, the corresponding criterion is minimization of Helmholtz free energy; at fixed temperature and pressure, it is minimization of Gibbs free energy, with the material and exchange constraints still imposed.
Weak acid mass and charge balances 2026-10-14
Consider only neutral added to pure water, at fixed temperature, with ideal dilute thermodynamic activities, water thermodynamic activity approximated by one, and no added salts or other chemical species. Normalize every concentration by :Conservation of acid units and zero net electric charge, respectively, requireThe second equation balances positive hydronium against negative conjugate base and hydroxide. It would need all additional ions if salts or a chemical base were added. Together with acid dissociation constant and the self-ionization of water relation , these giveThis is exact within the stated ideal model, including depletion and self-ionization of water. Multiplication by yields the cubic equationFor positive , the unmultiplied left-hand side increases strictly from negative to positive values as increases from zero to infinity; its derivative is . There is therefore exactly one positive root of a polynomial. A bisection method can find it without choosing an unphysical root of a polynomial.
If , neglect hydroxide, so and the quadratic equation retaining acid depletion givesThe last form avoids subtracting nearly equal numbers. If also , neglect depletion to obtainCheck both conditions after computing: measures the fraction lost from the initial undissociated weak acid inventory, while measures the omitted hydroxide contribution to electric charge balance. A depletion criterion is a chosen tolerance, not a universal boundary. Keeping depletion does not cure the neglect of self-ionization of water. These weak acid mass and charge balances also explain why the square root estimate cannot be extended to arbitrarily dilute chemical solutions.