Fundamentals / Physics / Thermodynamics and statistical physics

Chemical equilibrium and reaction extent

Minimize Gibbs energy along a permitted reaction and predict a composition change when the system is compressed.

From first principles

Build the reaction quotient from chemical potentials

At fixed temperature and pressure, a closed reacting mixture equilibrates by minimizing Gibbs energy subject to conservation of its constituent elements. Let \(\nu_i\) be the balanced stoichiometric coefficient of species \(i\), positive for a product and negative for a reactant. Advancing the reaction by a small extent \(d\xi\) changes each amount by \(dn_i=\nu_i d\xi\). The free-energy change per mole of reaction is then

\[\frac{dG}{d\xi}=\sum_i\nu_i\mu_i=\Delta_rG .\]

For an interior equilibrium this derivative vanishes. Chemical potentials can be written \(\mu_i=\mu_i^\circ+RT\ln a_i\) using dimensionless activities relative to specified standard states. Collecting all the logarithms gives

\[\Delta_rG=\Delta_rG^\circ+RT\ln Q,\]
\[Q=\prod_i a_i^{\nu_i},\]
\[K=e^{-\Delta_rG^\circ/(RT)}.\]

The equilibrium composition satisfies \(Q=K\). For an ideal gas, \(a_i=p_i/p^\circ\); nonideal mixtures require activities measured or modeled for the mixture. If \(Q<K\), a small forward reaction lowers \(G\). This thermodynamic preference determines a direction near the present state while leaving the reaction timescale to kinetics.

Background · Chemical potential
\[\mu=(\partial F/\partial N)_{T,V}\]

This change in free energy per added particle controls exchange between subsystems. In a finite small system an actual finite difference may matter.

Derivation and applications

Propagate an equilibrium constant when reaction heat capacity changes the enthalpy

An equilibrium constant quoted at one temperature does not determine the equilibrium composition at another unless the energy change of the reaction is also known. Consider a reversible reaction with a dimensionless standard equilibrium constant \(K(T)\) and unchanged standard-state choices. All reaction quantities below are per mole of reaction as written. At fixed standard pressure, the Gibbs differential \(dG=-S\,dT\), together with \(G=H-TS\), gives

\[d(G/T)/dT=-H/T^2.\]

Apply this identity to the stoichiometric differences of standard molar quantities,

\[\ln K=-\frac{\Delta_rG^\circ}{RT},\]
\[\frac{d\ln K}{dT}=\frac{\Delta_rH^\circ(T)}{RT^2}.\]

If heat capacities of products and reactants differ, the enthalpy changes with temperature. Over an interval where their stoichiometric difference \(\Delta_r C_p^\circ\) can be treated as constant, integration of \(dH^\circ=C_p^\circ dT\) gives

\[\Delta_rH^\circ(T)=\Delta_rH^\circ(T_1)+\Delta_r C_p^\circ(T-T_1).\]

Insert this linear enthalpy into the derivative for \(\ln K\). The constant part integrates as \(1/T^2\); the term proportional to temperature also produces a logarithm. The two-temperature relation is

\[\ln\frac{K_2}{K_1}=\frac{\Delta_rH^\circ(T_1)}{R}\left(\frac1{T_1}-\frac1{T_2}\right)+\frac{\Delta_r C_p^\circ}{R}\left[\ln\frac{T_2}{T_1}+\frac{T_1}{T_2}-1\right].\]

Both terms vanish when the two temperatures coincide. For a small temperature interval the heat-capacity correction begins at second order, consistent with the local slope depending only on the current reaction enthalpy. Phase changes would interrupt the assumed smooth enthalpy law.

Worked example

Estimate a change in an association equilibrium

Take \(K_1=4.00\) at \(300\,\mathrm K\), \(\Delta_rH^\circ(T_1)=-20.0\,\mathrm{kJ/mol}\), and \(\Delta_rC_p^\circ=100\,\mathrm{J/(mol\,K)}\). At \(360\,\mathrm K\) the enthalpy term in \(\ln(K_2/K_1)\) is \(-1.336\) and the heat-capacity term is \(+0.188\). Thus

\[K_2=4.00e^{-1.148}=1.27.\]

The association remains exothermic throughout the interval, although its magnitude declines on heating.

Second application

Infer enthalpy from equilibrium measurements

For a different reaction \(K\) rises from \(0.500\) at \(290\,\mathrm K\) to \(0.900\) at \(310\,\mathrm K\). If the reaction heat-capacity difference is negligible here, inversion gives

\[\Delta_rH^\circ=R\ln(0.900/0.500)/(1/290-1/310)=22.0\,\mathrm{kJ/mol}.\]

The positive sign is consistent with the increased equilibrium constant on heating. At \(300\,\mathrm K\) the same enthalpy predicts a local logarithmic slope of \(0.0293\,\mathrm{K^{-1}}\), testable with a more closely spaced measurement.

Try it · Vanthoff

Vary the physical parameters in the derived relation. Use the units and assumptions in the readout to connect the curves to the two worked examples. A parameter study can test the forward prediction; the same relation can then be inverted to infer a parameter from a measurement.

A reaction has one constrained direction

A closed vessel can change particle species while conserving the total number of atoms of each element. At fixed temperature and pressure the equilibrium state minimizes Gibbs energy. Introduce a reaction extent \(\xi\) in moles and stoichiometric coefficients \(\nu_i\), negative for reactants and positive for products. A small reaction advance changes amounts by \(dn_i=\nu_i\,d\xi\). The Gibbs differential at fixed \(T,p\) therefore gives

\[dG=\sum_i\mu_i\,dn_i=\Delta_r G\,d\xi,\]
\[\Delta_rG=\sum_i\nu_i\mu_i .\]

An interior minimum satisfies \(\Delta_rG=0\). A negative value means that a small positive advance lowers \(G\). Reversibility of the microscopic chemistry is assumed for equilibrium to be accessible. Thermodynamic preference alone does not provide the time needed to reach it.

Activities and the equilibrium constant

For ideal gases \(\mu_i=\mu_i^\circ(T)+RT\ln(p_i/p^\circ)\). The activity is the dimensionless ratio \(a_i=p_i/p^\circ\). Inserting this expression into the reaction Gibbs energy gives

\[\Delta_rG=\Delta_rG^\circ+RT\ln Q,\]

with \(Q=\prod_i a_i^{\nu_i}\). The equilibrium value of \(Q\) is \(K=\exp[-\Delta_rG^\circ/(RT)]\). Standard pressure supplies the reference that makes the logarithm and the equilibrium constant dimensionless even when the total molecular count changes.

For the dimerization \(2A\rightleftharpoons A_2\), begin with one mole of monomer units and define \(\alpha\) as the fraction of units bound into dimers. Then \(n_A=1-\alpha\), \(n_{A_2}=\alpha/2\) and total gas amount is \(1-\alpha/2\) moles on this basis. Partial pressures follow from mole fractions times total pressure. Substitution into the reaction quotient gives

\[Q=\frac{\alpha(2-\alpha)}{4(1-\alpha)^2}\frac{p^\circ}{p}.\]

The ratio of activities is determined by both composition and total pressure. Compression at the original equilibrium composition immediately lowers \(Q\), making the forward reaction favourable. The subsequent association reduces the number of gas particles while conserving monomer units.

A pressure change at fixed temperature

Suppose \(K=0.750\) at the chosen temperature. Let \(y=1-\alpha\). Because \(\alpha(2-\alpha)=1-y^2\), solving \(Q=K\) gives

\[y=[1+4Kp/p^\circ]^{-1/2}.\]

At \(p=p^\circ\) this gives \(\alpha=0.500\), with one half of all units bound and only one third of gas particles being dimers. At \(p=4p^\circ\) the bound-unit fraction is

\[1-1/\sqrt{13}=0.723.\]

The distinction between fractions of conserved units and fractions of gas molecules matters for interpreting a spectroscopic composition measurement.

A temperature change can also move equilibrium. Differentiating \(\ln K=-\Delta_rG^\circ/(RT)\) and using the Gibbs–Helmholtz relation gives

\[d\ln K/dT=\Delta_rH^\circ/(RT^2).\]

For an exothermic association increasing temperature decreases \(K\) locally. Pressure changes at fixed temperature leave \(K\) itself fixed under the same standard-state convention. It is the composition-dependent quotient that adjusts to the imposed mechanical conditions.

The distinction between a chemical potential per mole and one per particle is essential in this derivation. Here partial pressures were combined with \(R\) because the extent was measured in moles. Molecular statistical mechanics instead uses \(k_B\) with energies per molecule, but both conventions give the same dimensionless ratio of equilibrium activities. A useful numerical check is to scale every initial amount and the container volume by the same factor at fixed temperature. Mole fractions and partial pressures stay fixed, so the equilibrium fraction is unchanged even though twice as many molecules may react.

Use a membrane to turn chemical equilibrium into pressure

Equality of chemical potential can constrain a species even when other species cannot move. Separate pure solvent at pressure \(p\) from a dilute ideal solution at pressure \(p+\Pi\) by a membrane permeable only to solvent. Hold temperature fixed and assume a nearly incompressible solvent with approximately constant partial molar volume \(\bar v_w\). The solvent can exchange across the membrane; solute cannot. Its equilibrium condition is therefore equality of solvent chemical potentials, even though total pressures and solute concentrations differ.

For an ideal solution the solvent chemical potential relative to pure solvent at the same pressure changes by \(RT\ln x_w\), where \(x_w\) is the solvent mole fraction. Increasing pressure by \(\Pi\) raises the solvent chemical potential by \(\int_p^{p+\Pi}\bar v_w\,dp'\simeq\bar v_w\Pi\). Equating the two sides gives

\[\Pi=-\frac{RT}{\bar v_w}\ln x_w\simeq \frac{RT}{\bar v_w}x_s\simeq RT c_s .\]

The last approximation assumes a small solute mole fraction \(x_s\) and solution volume close to the solvent volume, with \(c_s\) in moles of independently dissolved particles per cubic metre. The pressure difference is positive because mixing lowers the chemical potential of solvent. If pressure is released, solvent flows into the solution, modifying its concentration until a new balance is attained.

Estimate a hydrostatic head and a molar mass

At 298 K dissolve 2.00 g/L of a nonvolatile solute with molar mass 0.200 kg/mol. The mass concentration is 2.00 kg/m³, so \(c_s=10.0\) mol/m³. Predicted osmotic pressure is \(8.314\times298\times10.0=24.8\) kPa. With solution density approximated by \(1000\) kg/m³, an open-column experiment would need height difference \(\Pi/(\rho g)=2.53\) m to balance it. The final concentration must be measured after the column rises, since transferred solvent can appreciably dilute a small sample.

Conversely, for the same 2.00 g/L preparation a pressure reading of 12.4 kPa would imply an apparent molar mass \(RT(2.00)/12400=0.400\) kg/mol. Association of two formula units into one particle is one possible explanation if the chemical analysis gives 0.200 kg/mol. Nonideal activities, leakage and concentration calibration can also change the inferred particle count. Repeating at lower concentrations tests whether \(\Pi/c_s\) approaches the ideal-gas constant times temperature. In the pure-solvent limit \(x_w\to1\) the chemical-potential difference vanishes so no osmotic pressure is required, despite the membrane still being present.

Concentration units can be a major source of error in this example. One mole per litre is a thousand moles per cubic metre, so the gas constant in joules per mole kelvin gives a pressure in pascals only after this conversion. For fully dissociated dilute electrolytes there may also be more than one independently mobile particle per formula unit. Conversely strong ion pairing or aggregation can reduce the count. Measuring a nonvolatile neutral reference solute of known molar mass in the same apparatus provides a way to test both the pressure scale and the effectiveness of the membrane.

Study the full derivation

Pair correlations, the virial gas and a pressure measurement · Statistical mechanics from microscopic counting to material response

A dilute nonideal gas can display almost ideal pressure while its particles strongly avoid one another at short distance. Connect a two-particle interaction to pressure, internal energy and a measurable pair correlation. Then use the resulting integral equations to ask which features of a potential can actually be inferred from a limited set of pressure readings.