Properties, equilibrium and phase change
Predict the sign of a response from a potential, then track what a measured fraction or coexistence curve says about the state of the material.
- Equations of state and response functions
- Heat, work and the limits of a cycle
- Thermodynamic potentials and phase boundaries
- Indistinguishable particles and quantum gases
- Chemical equilibrium and reaction extent
- How a pair potential changes the gas pressure
- Why two coexisting phases share a tangent
- When does a polar crystal change its preferred state?
- Counting, absolute entropy and the entropy of mixing
- Ensembles, thermodynamic potentials and measurable curvature
- Pair correlations, the virial gas and a pressure measurement
- Rotational and vibrational populations in a molecular gas
- Phase nucleation, metastability and waiting-time statistics
Equations of state and response functions
Thermodynamics and statistical physics
Use compressibility and thermal expansion to predict what a pressure gauge will record when a material is heated in a closed vessel.
From first principles
Derive ideal-gas pressure from impacts on a wall
Pressure is the normal force on a wall per unit area. Consider \(N\) classical molecules of mass \(m\) in a cubic box of side \(L\). Neglect intermolecular forces and molecular volume. For an elastic collision at a wall perpendicular to the \(x\) axis, a molecule transfers normal momentum \(2m|v_x|\). It visits the same wall once in a round trip of duration \(2L/|v_x|\). Its time-averaged force there is
Sum all contributions and divide by the wall area \(L^2\). With \(V=L^3\), equilibrium isotropy gives
Classical thermal equilibrium assigns mean energy \(k_BT/2\) to each quadratic velocity component. These inputs give
This equation of state connects three directly measurable quantities at fixed particle number. The kinetic calculation also identifies where a real gas can differ: intermolecular forces transfer momentum, and dense molecules occupy an appreciable fraction of the volume.
Derivation and applications
Connect a sound-speed measurement to two compressibilities
A slowly compressed sample has time to exchange heat with its surroundings. A small sound pulse usually compresses a fluid element faster than heat can diffuse across a wavelength. The elastic response relevant to sound is then nearly adiabatic. Consider a homogeneous single-phase fluid at equilibrium and a small-amplitude pulse. Assume negligible viscosity and thermal diffusion over one oscillation, so the specific entropy of a moving element remains constant.
Let \(v\) be volume per unit mass, \(c_p\) the specific heat at constant pressure, \(\alpha=v^{-1}(\partial v/\partial T)_p\), and \(\kappa_T=-v^{-1}(\partial v/\partial p)_T\). From the specific Gibbs differential \(dg=-s\,dT+v\,dp\), equality of mixed derivatives gives
The entropy differential determines a fluid element’s temperature change under isentropic compression,
Insert this derivative into the volume response \(dv/v=\alpha\,dT-\kappa_T\,dp\). The resulting isentropic compressibility is
The last step uses the heat-capacity difference for a simple compressible material. For \(\rho=1/v\), a density perturbation gives
Linear momentum balance and continuity then combine into a wave equation with speed \(c\),
Adiabatic heating adds a pressure response on compression for an ordinary expanding fluid. The two compressibilities coincide where thermal expansion vanishes.
Worked example
Predict the speed in an ideal gas
Change the inputs and investigate this derivation.
For dry model air at \(p=1.00\times10^5\,\mathrm{Pa}\), take \(\rho=1.20\,\mathrm{kg/m^3}\) and \(c_p/c_v=1.40\). Since \(\kappa_T=1/p\), sound propagates at \(\sqrt{1.40p/\rho}=342\,\mathrm{m/s}\). An isothermal model gives \(289\,\mathrm{m/s}\). Comparing the two speeds measures the square root of the heat-capacity ratio under these gas assumptions.
Second application
Infer a heat-capacity ratio for a liquid
Change the inputs and investigate this derivation.
An ultrasonic pulse travels at \(1480\,\mathrm{m/s}\) through a liquid of density \(998\,\mathrm{kg/m^3}\). It gives
A slow isothermal experiment gives \(4.65\times10^{-10}\,\mathrm{Pa^{-1}}\). Their ratio yields \(c_p/c_v=1.017\), which explains why the choice of compressibility produces a much smaller acoustic correction for this liquid.
Try it · Sound compressibility
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.
Decide which variables specify a state
An equilibrium sample of one simple phase and fixed composition can be described by pressure, volume and temperature related by an equation of state. A piston experiment can prescribe pressure while changing volume; a sealed rigid vessel instead fixes volume. The distinction matters because the same temperature change can lead to expansion in one apparatus and a large pressure increase in the other. Assume quasistatic measurements so that a single pressure and temperature describe the sample.
An equation of state is a constitutive statement. The ideal-gas relation \(pV=nRT\) treats particles as dilute enough for their mutual interactions to have negligible effect on the measured pressure. An incompressible-liquid approximation often gives an adequate volume balance at a chosen pressure but can make a constrained heating problem ill posed if applied literally. Both small thermal expansion and small but finite compressibility may be needed to compute the pressure response.
Describe a neighbourhood of equilibrium
Treat volume as a differentiable function \(V(T,p)\) near a reference state. Its total differential contains the two independent slopes \((\partial V/\partial T)_p\) and \((\partial V/\partial p)_T\). Define the two responses at their respective fixed controls,
Ordinary mechanically stable material contracts when pressure increases, which gives positive isothermal compressibility. Inserting both definitions into the volume differential gives
Both terms are dimensionless. Expansion has units of inverse kelvin, while compressibility has units of inverse pascal. For fixed volume the pressure slope is
This relation is a consequence of using the same volume differential. It does not assume a particular molecular model and it remains informative for a liquid for which the ideal-gas equation would give a poor answer.
For an ideal gas at fixed amount, differentiating \(V=nRT/p\) gives
Their ratio is \(p/T\), as follows independently from \(p=nRT/V\). At 300 K and 100 kPa, warming a sealed ideal gas by 3.0 K raises the pressure by 1.0 kPa. At fixed pressure instead the relative volume increase is one percent.
Background · Why do slow compression tests and sound measure different moduli?
For a sealed ideal gas in thermal contact with a bath, a sufficiently slow compression allows heat to escape and fixes \(T\). Then \(pV\) is constant. During a short, nearly reversible acoustic oscillation in the bulk there can be too little time for heat to leave the compressed fluid element. For this adiabatic limit \(pV^\gamma\) is constant. Differentiate at the same initial pressure.
At one bar and \(\gamma=1.4\) the moduli are 100 and 140 kPa. Each measures the response at the same equilibrium state, under a different thermal constraint. In a narrow tube heat can diffuse to the wall during a cycle. The appropriate limit depends on whether the thermal diffusion length is small or large compared with the tube radius.
Separate intensive, extensive and measured responses
Doubling the amount of material at the same temperature and pressure doubles volume but leaves the two normalised coefficients unchanged. Such intensive coefficients can be compared across samples. A vessel’s own volume, however, can respond to both pressure and temperature. If its expansion coefficients are appreciable, the measured pressure slope describes the coupled sample and vessel. One cannot simply substitute the unconstrained expansion of the sample into a rigid-vessel formula.
To see this, let the vessel’s fractional volume response be \(\alpha_v\,dT+C_v^{\rm vessel}dp\), where its mechanical compliance is positive for an internal pressure increase. Equal fractional changes of vessel and sample give
A compliant wall reduces the pressure rise, and a vessel that expands just as much as the sample can nearly cancel the temperature signal. Here the symbol for vessel compliance denotes a mechanical quantity and has different units from heat capacity.
Compare liquid and container data
Take a representative liquid with \(\alpha=2.5\times10^{-4}\) K⁻¹ and \(\kappa_T=5.0\times10^{-10}\) Pa⁻¹ near its operating point. In an ideally rigid container, a 2.0 K increase gives \(\Delta p\simeq1.0\) MPa. The unconstrained volume change at fixed pressure would be only 0.050%. This combination explains how a small fractional expansion can produce a significant pressure response when the fluid is only weakly compressible.
If the container has \(\alpha_v=5.0\times10^{-5}\) K⁻¹ and \(C_v^{\rm vessel}=3.0\times10^{-10}\) Pa⁻¹, the same warming gives about 0.50 MPa. Inverting a measured slope without the vessel data could thus give a misleading estimate of compressibility. These are local linear predictions. Over a broad pressure or temperature range the coefficients must be evaluated along the path, and crossing a phase boundary can invalidate the single-phase differential altogether.
Convert an isobaric calorimeter reading into an isochoric one
A sample can absorb different amounts of heat per kelvin depending on which variable is held fixed. For a fixed amount of a simple, single-phase material in equilibrium,
Apply the chain rule to \(S(T,V)\) along the constant-pressure path. Subtracting the two derivatives leaves the effect of expansion. From \(dF=-S\,dT-p\,dV\) equality of mixed derivatives gives
Therefore
Here \(\alpha\) is the volume expansion coefficient and \(\kappa_T\) the isothermal compressibility. The last equality uses \(dV/V=\alpha dT-\kappa_Tdp\). For a mechanically stable material \(\kappa_T>0\), so the difference is nonnegative even for a material that contracts when warmed. For one mole of ideal gas, inserting \(\alpha=1/T\), \(\kappa_T=1/p\) and \(pV=RT\) gives
At 300 K a solid has molar volume \(1.20\times10^{-5}\) m³/mol, volumetric expansion coefficient \(6.00\times10^{-5}\) K⁻¹ and bulk modulus \(B_T=1/\kappa_T=100\) GPa. The molar difference is \(TV_m B_T\alpha^2=1.30\) J/(mol K). A constant-pressure measurement of 25.0 J/(mol K) thus implies \(C_{V,m}=23.7\) J/(mol K). For a cubic solid the linear expansion coefficient is approximately one third the volume coefficient. Using it directly in this formula would underestimate the correction ninefold. This conversion matters when comparing a tabulated calorimetric result with a vibrational model calculated at fixed volume.
Predict the temperature change of a throttled gas
Some pressure changes take place in flowing rather than closed matter. Consider a well-insulated porous plug that sustains a pressure difference between two steady streams of the same single-phase gas. There is no shaft work and inlet and outlet speeds and heights have negligible differences in kinetic and gravitational energy. Flow work at each end is already included in the molar enthalpy \(h=u+pv\). The steady energy balance then gives
A pressure drop through the restriction can nevertheless change temperature if the gas is nonideal.
From \(dh=T\,ds+v\,dp\) and the Maxwell relation \((\partial s/\partial p)_T=-(\partial v/\partial T)_p\), write the enthalpy differential in terms of \(T,p\). The coefficient of \(dT\) at fixed pressure is the molar heat capacity \(c_p\). Setting \(dh=0\) gives the Joule–Thomson coefficient
For an ideal gas \(\alpha=1/T\), so an isenthalpic throttle produces no temperature change. Isentropic expansion in a turbine is a different process. A throttle's pressure drop is irreversible; constant enthalpy follows here from the steady energy balance and does not imply constant entropy.
Estimate a small temperature drop from gas data
Near a chosen operating point let the low-pressure molar volume be \(v=RT/p+B(T)\), retaining a second virial coefficient \(B=b-a/(RT)\). Here \(a\) and \(b\) characterize an approximate real-gas equation of state. The ideal-volume term cancels in \(T(\partial v/\partial T)_p-v\). The remaining numerator is \(TB'-B=2a/(RT)-b\). At fixed local heat capacity, attractions and excluded volume therefore compete in determining the sign of the temperature response.
Take \(a=0.140\) Pa m⁶/mol², \(b=4.00\times10^{-5}\) m³/mol, \(T=300\) K and \(c_p=29.0\) J/(mol K). Then \(2a/(RT)=1.12\times10^{-4}\) m³/mol and \(\mu_{\rm JT}=2.49\times10^{-6}\) K/Pa, or 0.249 K/bar. A pressure change of \(-2.0\) bar predicts temperature change \(-0.50\) K if the properties remain close to these values. The leading model changes sign at \(T=2a/(Rb)=842\) K. This inversion estimate should not be extrapolated into a dense or multiphase region. A proper finite pressure drop integrates the measured local coefficient along an isenthalp. Recording both enthalpy balance and inlet-to-outlet entropy increase offers an independent test of whether unwanted heat transfer through the apparatus affected the result.
The entropy change of the throttled stream can be checked without a calorimeter. Along an isenthalp the Gibbs relation gives
Since molar volume and temperature are positive, any pressure decrease raises the molar entropy. Even when an ideal gas shows zero temperature change, its pressure decrease leaves a positive entropy difference. This reveals precisely why absence of observed cooling is insufficient evidence for thermodynamic reversibility. A pressure reading, inlet temperature and appropriate volume data together supply a sign test independently of the small temperature slope used to estimate the Joule–Thomson coefficient.
An independent heat-leak estimate is particularly important near inversion, where a small parasitic heat flow can dominate the intrinsic temperature change.
Find the mechanically unstable part of an isotherm
Use the reduced van der Waals equation \(p=8t/(3v-1)-3/v^2\). At fixed temperature a stable homogeneous phase must have positive isothermal compressibility, which requires a negative slope on this graph. Locate any interval in which the model reverses that slope.

Try it · Vdw
Change the inputs and compare the recalculated curves with the preceding derivation and baseline figure. The axes give the units; the numerical readout states the model assumptions and any limiting cases. Reset the inputs to return to the reference setting.
Read values from the plot
| Molar volume / critical volume | T/Tc = 0.9 | T/Tc = 1 | T/Tc = 1.1 |
|---|---|---|---|
| 0.53 | 1.5234 | 2.8794 | 4.2353 |
| 1.3997 | 0.71936 | 0.96944 | 1.2195 |
| 2.2693 | 0.65713 | 0.79487 | 0.93261 |
| 3.1303 | 0.55191 | 0.64725 | 0.74259 |
| 4 | 0.46705 | 0.53977 | 0.6125 |
Heat, work and the limits of a cycle
Thermodynamics and statistical physics
Track changes of internal energy around a gas cycle and derive the temperature bound on the efficiency of a reversible engine.
From first principles
Derive the reversible engine efficiency from two balances
A working substance in a cyclic engine returns to its initial state. Its internal energy is a state function, so the energy gained from a hot reservoir must equal the useful work plus the heat delivered to a cold reservoir. Let \(Q_h,Q_c\) be positive heat magnitudes and \(W\) positive work delivered by the engine. Energy conservation gives
To determine the smallest possible heat rejection, apply the second law. Reservoirs at constant absolute temperatures \(T_h>T_c\) lose entropy \(Q_h/T_h\) and gain entropy \(Q_c/T_c\) respectively. The engine itself returns to its original entropy. The total entropy production is therefore
A reversible cycle attains equality. Friction or heat transfer across finite temperature differences produces entropy and reduces efficiency at fixed reservoir temperatures. The ratio uses absolute temperatures because reservoir entropy changes are defined by reversible heat divided by thermodynamic temperature.
Derivation and applications
Derive the efficiency of an idealized four-stroke gas cycle
A compression ratio predicts an efficiency for a model cycle only after the heat-transfer paths are specified. Consider a fixed amount of ideal gas with constant molar heat capacities and \(\gamma=C_p/C_V>1\). In the Otto model the gas undergoes reversible adiabatic compression from state 1 to 2, heat addition at fixed volume from 2 to 3, reversible adiabatic expansion from 3 to 4, then heat rejection at fixed volume back to 1. Use positive magnitudes \(Q_h,Q_c\) for the absorbed and rejected heat.
For either adiabat the first law gives
Separation and integration give
Introducing \(r=V_1/V_2=V_4/V_3>1\) sets both adiabatic temperature ratios,
The two fixed-volume steps do no boundary work. Their respective heats are internal energy changes, and cyclic energy conservation converts the heat ratio to efficiency,
Substitute \(T_3=r^{\gamma-1}T_4\) and \(T_2=r^{\gamma-1}T_1\). Both temperature differences contain the same factor \(T_4-T_1\), which cancels and leaves
The gas absorbs and rejects heat over intervals of temperature. Its efficiency therefore depends on the chosen paths even with reversible adiabatic strokes. At \(r=1\) the pressure-volume loop collapses and produces no net work. Increasing the compression ratio also raises the temperature reached before heat addition, which can invalidate a constant-\(\gamma\) model.
Worked example
Close a cycle with measured endpoint temperatures
Change the inputs and investigate this derivation.
For one mole with \(r=8.00\), \(\gamma=1.40\), \(T_1=300\,\mathrm K\) and \(T_3=1600\,\mathrm K\), the adiabatic factor is 2.297. Hence \(T_2=689\,\mathrm K\), \(T_4=696\,\mathrm K\), and \(C_V=R/0.40=20.8\,\mathrm{J/(mol\,K)}\). The gas absorbs \(18.9\,\mathrm{kJ}\) and rejects \(8.24\,\mathrm{kJ}\), yielding \(10.7\,\mathrm{kJ}\) of work and efficiency \(0.565\).
Second application
Infer a compression ratio for a different working gas
Change the inputs and investigate this derivation.
A model monatomic gas has \(\gamma=5/3\). Achieving efficiency \(0.600\) requires
Starting at \(280\,\mathrm K\), its temperature at the end of compression is
A cycle whose hottest temperature were \(650\,\mathrm K\) could not realize the specified heat-addition stroke with this initial state.
Try it · Otto
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.
Put signs on a physical boundary
Enclose a gas inside a movable cylinder. When the gas expands, it can raise an external weight. When heated at fixed volume, it can increase its temperature while doing no boundary work. To fix signs, take heat \(Q\) into the gas as positive and work \(W\) done by the gas as positive. The first law is
Internal energy is a state property; the other two quantities describe transfer during a process. A cyclic device returns to its initial state, so its net work equals its net heat input.
For a quasistatic expansion, a piston moving distance \(dx\) under external pressure \(p_{\rm ext}\) receives work \(p_{\rm ext}A\,dx=p_{\rm ext}dV\). In mechanical equilibrium \(p_{\rm ext}\) approaches the gas pressure, giving the usual area under a pressure–volume curve. A suddenly expanding gas is not generally uniform or in mechanical equilibrium. Extending the equilibrium pressure formula to an unconstrained free expansion would predict work when no piston or other boundary force actually receives it.
Follow an ideal gas along two paths
For a calorically ideal gas, \(dU=nC_{V,m}dT\) with constant molar heat capacity. Reversible isothermal expansion from \(V_1\) to \(V_2\) therefore gives zero internal energy change and \(Q=W=nRT\ln(V_2/V_1)\). Revise the process so that the gas is thermally insulated but still expands reversibly. Then \(nC_{V,m}dT=-p\,dV=-nRT\,dV/V\). Integrating and introducing \(\gamma=C_{p,m}/C_{V,m}=1+R/C_{V,m}\) gives
Temperature now falls because the gas supplies work from its energy store.
The two paths can pass through a common starting state but they generally end at different pressures and temperatures for a given final volume. If one wants to compare work between identical endpoints one must specify a connecting step as well. This prevents a common misreading of a pressure–volume plot: an isotherm and an adiabat through the same point have different slopes and cannot serve as alternate paths to the same later point without additional processes.
Construct a reversible two-reservoir cycle
Let the gas expand isothermally at \(T_h\), then expand adiabatically down to \(T_c\), compress isothermally there and return adiabatically to the original state. If the first isotherm changes volume by a factor \(r\), the two adiabatic relations force the cold compression to change volume by the reciprocal factor. The hot heat input is \(Q_h=nRT_h\ln r\). The magnitude of heat expelled during cold compression is \(Q_c=nRT_c\ln r\). Thus
The working gas provides one explicit construction. More generally a reversible cycle exchanges entropy \(Q_h/T_h\) with the hot reservoir and returns exactly that entropy to the cold one. For an irreversible cyclic engine between the same two reservoirs, the reservoir entropy change \(Q_c/T_c-Q_h/T_h\) is nonnegative. This gives the same expression as an upper bound on efficiency. The temperatures must be absolute and must refer to the reservoirs actually exchanging heat.
Test a proposed engine
An engine receives 1.50 kJ per cycle from a 450 K reservoir and rejects heat to a 300 K sink. Reversibility permits at most 0.500 kJ of useful work. A measured cycle delivering 0.360 kJ must reject 1.140 kJ by the first law. The working fluid’s entropy returns to its original value, while the two reservoirs together gain \(1140/300-1500/450=0.467\) J/K per cycle.
The energy and entropy balances answer different design questions. Energy accounting gives the amount of rejected heat. Entropy generation explains why some of the available work has been lost relative to the reversible limit. Raising the running frequency can increase power even at lower efficiency, since power depends on work per unit time. The reversible limit describes a thermodynamic bound, and achieving a useful power output additionally depends on finite rates of heat transfer and mechanical motion.
Extract work from two finite heat reservoirs
The usual Carnot limit assumes two fixed reservoir temperatures. Two finite bodies instead change temperature as a reversible engine transfers energy between them. Consider insulated hot and cold blocks with constant heat capacities \(C_h,C_c\). A cyclic engine operating between them can deliver work to an external mechanical store. The block temperatures vary slowly relative to internal equilibration, and the reversible engine draws and rejects each small amount of heat at its corresponding instantaneous block temperature.
If an infinitesimal amount of entropy passes through the engine reversibly, the hot block loses exactly the amount gained by the cold block. Integrating until both reach a common final temperature \(T_f\) yields
The logarithms contain temperature ratios, so the product expression is dimensionally a temperature. Once temperatures coincide a cyclic engine has no thermal difference left from which to extract work. Conservation of energy gives
Any irreversible entropy production raises the attainable common temperature relative to the reversible result at the same initial conditions, leaving more energy in the blocks and less exported as work.
Compare a reversible engine with passive contact
Let \(C_h=C_c=1.00\) kJ/K, \(T_{h,0}=400\) K and \(T_{c,0}=300\) K. The reversible common temperature is the geometric mean \(\sqrt{400\times300}=346.41\) K. The engine receives 53.59 kJ from the hot block and transfers 46.41 kJ to the cold block; their difference is 7.18 kJ of work. The overall work fraction of extracted hot-side heat is 0.134. At the beginning the instantaneous reversible efficiency is \(1-300/400=0.250\), falling to zero at the end. Applying that initial efficiency throughout would overestimate the work.
Now put the same blocks directly in thermal contact without an engine. Energy conservation gives the arithmetic mean of 350 K and zero work. The positive entropy produced is
The final temperature exceeds the reversible result by 3.59 K for each block, precisely accounting for 7.18 kJ retained as thermal energy. In the limit of a very small initial temperature difference the geometric and arithmetic means coincide to first order. Recoverable work thus starts at second order in the initial difference even though the heat passed between the blocks is first order, explaining why small temperature contrasts are poor resources for mechanical work.
The arithmetic and geometric means also reveal how sensitive the possible work is to initial temperature calibration. For equal heat capacities, write initial temperatures as \(T_m+\delta\) and \(T_m-\delta\). The reversible common value is
Multiplying the difference from the arithmetic mean by the combined heat capacity gives
Thus a small absolute error in a temperature difference can have a doubled relative effect on the predicted maximum work. Measuring both blocks with matched instruments matters more here than obtaining many digits for the mean temperature alone.
Thermodynamic potentials and phase boundaries
Thermodynamics and statistical physics
Select the appropriate potential for a controlled experiment and infer the slope of a coexistence line from latent heat and volume change.
From first principles
Derive a coexistence slope from equality of chemical potentials
At fixed temperature and pressure a closed single-component system lowers its Gibbs energy when matter moves into a phase with lower molar chemical potential. Transfer an infinitesimal amount \(dn\) from phase 1 to phase 2. Along the coexistence line, either direction is possible in equilibrium, so
Moving along the line must preserve that equality. The Gibbs differential for one mole gives
with molar entropy \(s_m\) and volume \(v_m\). Equating the differentials of the two phases leaves
The latent heat per mole for reversible conversion \(1\to2\) is \(L_m=T(s_{m,2}-s_{m,1})\). Therefore the slope is \(dp/dT=L_m/[T(v_{m,2}-v_{m,1})]\) for a nonzero volume jump. Its sign depends on both latent heat and volume change. This relation requires measured or modeled properties of the two phases at the same coexistence point.
Background · Helmholtz free energy
At fixed particle number and temperature, differentiating with respect to volume yields minus the pressure. The ensemble specifies which variables to hold fixed.
Derivation and applications
Calculate how a curved interface changes the equilibrium vapour pressure
A small liquid droplet in its own vapour reaches equilibrium at a different vapour pressure from a flat liquid surface. Consider a spherical droplet of radius \(r\) at uniform temperature \(T\), with surface tension \(\gamma\) independent of size. Let \(p_v\) and \(p_l\) be the exterior vapour and interior liquid pressures. A virtual change of radius changes area and volume by \(dA=8\pi r\,dr\) and \(dV=4\pi r^2dr\). Balancing the pressure work against the surface free energy gives
Use a flat interface at the same temperature as a chemical-potential reference. Both phases there have pressure \(p_\infty\). The difference of their chemical potentials is zero for the flat reference and for the equilibrium droplet. Integrating \(d\mu=v_m\,dp\) along an isotherm for each phase then gives, for ideal vapour and nearly incompressible liquid of molar volume \(v_l\),
For a dilute vapour the molar volume greatly exceeds the liquid value. When \(p_v-p_\infty\) is also small compared with the curvature-induced pressure jump, its contribution on the right is negligible. The Kelvin relation follows,
A convex liquid surface raises the required equilibrium vapour pressure. The result tends continuously to flat coexistence at large radius. At molecular radii the continuum description, including the assumption of a bulk surface tension, requires independent justification.
Worked example
Estimate the supersaturation over a droplet
Change the inputs and investigate this derivation.
For water-like material at \(298\,\mathrm K\) take \(\gamma=0.0720\,\mathrm{N/m}\), \(v_l=18.0\times10^{-6}\,\mathrm{m^3/mol}\), and \(r=20.0\,\mathrm{nm}\). The exponent is \(0.0523\), giving \(p_v/p_\infty=1.054\). The mechanical pressure jump is \(7.20\,\mathrm{MPa}\). Even with \(p_\infty=3.17\,\mathrm{kPa}\), the exterior pressure increase is only about \(170\,\mathrm{Pa}\), verifying the term dropped in obtaining the Kelvin relation.
Second application
Infer the radius that can coexist with a given vapour
Change the inputs and investigate this derivation.
A different liquid has \(\gamma=0.0250\,\mathrm{N/m}\) and \(v_l=100\times10^{-6}\,\mathrm{m^3/mol}\) at \(300\,\mathrm K\). A chamber stabilized at \(p_v/p_\infty=1.020\) matches radius \(r=2\gamma v_l/[RT\ln(1.020)]=101\,\mathrm{nm}\). A smaller droplet has a higher required vapour pressure and tends to evaporate in that chamber. A larger one tends to grow, so matching the pressure selects an unstable balance if the vapour pressure is held fixed.
Try it · Kelvin droplet
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.
Change which variables are controlled
Consider a closed simple compressible system that can exchange heat with a reservoir and work by moving a boundary. In equilibrium its fundamental energy differential for fixed amount is \(dU=T\,dS-p\,dV\). This expression makes entropy and volume natural independent variables, yet laboratory experiments more frequently control temperature and pressure. A change of thermodynamic potential exchanges one independent variable for its conjugate without losing any equilibrium information.
For the Helmholtz free energy \(F=U-TS\), differentiation gives
Its slope with respect to volume at fixed temperature is minus the pressure. For the Gibbs free energy \(G=U+pV-TS\), the differential is \(dG=-S\,dT+V\,dp\). At fixed temperature and pressure a spontaneous change in a closed sample with only pressure–volume work tends to lower its total \(G\). The external reservoir can exchange heat during that change, so a fall in sample energy by itself would not be the correct selection criterion.
Extract a measurable cross derivative
The entropy of a gas is harder to measure directly than its thermal expansion. Since \(G(T,p)\) is a state function with commuting mixed derivatives inside a smooth single phase,
This is one Maxwell relation. It converts an entropy response to a derivative accessible from volume measurements. The equality applies to the same material and the same choice of fixed variables on both sides.
For one mole of ideal gas \((\partial V/\partial T)_p=R/p\). Compressing isothermally therefore changes its entropy by \(\Delta S=-R\ln(p_2/p_1)\). Doubling pressure gives \(-5.76\) J/(mol·K), in agreement with an independent reversible-heat calculation. The Maxwell relation obtains the state difference without requiring the actual compression process to be reversible. Only an equilibrium path used to evaluate it has to connect well-defined states.
Derive a coexistence-line slope
For one pure substance the molar Gibbs energy is the chemical potential. At two-phase equilibrium both phases must have the same chemical potential; otherwise transferring matter to the phase of lower value decreases total \(G\). Label the phases 1 and 2. Along their coexistence curve a small change in \(T\) and \(p\) changes their chemical potentials equally. Substituting \(d\mu=-s_m dT+v_m dp\) for each yields
Here \(L_m\) is the molar latent heat for the transition from phase 1 to 2. The slope can be negative for melting when the liquid has smaller molar volume than the solid. For vaporisation the volume difference is usually positive and large at modest pressure. A pressure reading and a thermometer together can therefore constrain a latent heat through measurements of the slope and molar volumes.
Background · How can pressure favour melting?
At coexistence the molar Gibbs free energies of solid and liquid agree. Increasing pressure at fixed temperature increases each free energy by its molar volume times the pressure increment. The phase with the smaller molar volume gains the thermodynamic advantage. For ordinary ice near its melting point, melting reduces the molar volume by about \(1.6\) cm³/mol and requires about 6.0 kJ/mol of heat.
A 1 MPa increase lowers the equilibrium melting temperature by about 0.073 K near 273 K. This is a local prediction along the coexistence curve. Extrapolating it to hundreds of megapascals would require the pressure dependence of the volumes and latent heat and the possible appearance of another solid phase.
Estimate a boiling temperature near atmospheric pressure
For vaporising water near 373 K use \(L_m=40.7\) kJ/mol, a vapour volume of 0.0306 m³/mol and a much smaller liquid volume. The coexistence slope is approximately \(40700/[373(0.0306)]=3.57\) kPa/K. An increase of pressure by 10 kPa therefore raises the boiling temperature by roughly 2.8 K over this limited interval. The dimensional check is J/(m³·K), equivalent to Pa/K.
Over a larger interval, approximate the vapour as ideal, neglect the liquid volume and treat \(L_m\) as constant. The slope becomes \(d\ln p/dT=L_m/(RT^2)\), giving \(\ln(p_2/p_1)=-(L_m/R)(1/T_2-1/T_1)\). This form clarifies why a straight line may appear on a logarithmic-pressure versus reciprocal-temperature plot. Curvature in measured data can carry information about temperature-dependent latent heat and departures from ideal-gas behaviour. Close to a critical point the assumptions behind the simple integrated expression cease to be reliable.
For a substance whose solid is less dense than its liquid, melting can have a negative coexistence slope even though the latent heat of melting is positive. In the Clapeyron relation the sign then comes from the volume difference. Increasing pressure at fixed temperature favours the phase taking less volume. This sign check connects the derivative calculation to an independently measurable density contrast.
Choose the equilibrium pressure inside a two-phase region
A nonmonotone model isotherm can predict several volumes at one pressure below the critical temperature. The middle segment with \((\partial p/\partial v)_T>0\) is mechanically unstable. Removing that segment alone does not identify the two coexisting phases. At the coexistence pressure \(p_*\) both endpoints have equal molar chemical potential. Write molar Gibbs energy as \(\mu=f+p_*v\), where \(f\) is molar Helmholtz energy on this isotherm. Since \(df=-p(v)\,dv\) at fixed temperature, equality of endpoint values implies
Geometrically, the areas above and below the horizontal line \(p_*\) cancel. The same condition makes that line's negative slope the common tangent of \(f(v)\) at \(v_l\) and \(v_g\). Between these endpoint volumes the equilibrium material changes the relative amounts of liquid and gas at fixed pressure.
As a local model take \(p=p_0+A(x-x^3)\) with \(x=(v-v_0)/b\), \(A>0\), \(v_0=2.00\times10^{-4}\) and \(b=3.00\times10^{-5}\) m³/mol. At \(p=p_0\), the outer roots \(x=\pm1\) have negative slopes, and the excess pressure is odd in \(x\), verifying equal areas exactly. The stable molar volumes are \(1.70\times10^{-4}\) and \(2.30\times10^{-4}\) m³/mol. At average volume \(2.12\times10^{-4}\) m³/mol, conservation of volume gives a gas mole fraction \((2.12-1.70)/(2.30-1.70)=0.700\). The spinodals, where the original slope vanishes, instead occur at \(x=\pm1/\sqrt3\). They delimit local stability. They are not the coexistence volumes. This cubic is a local representation of the loop and should not be extrapolated to very large or negative volumes.
Why a phase can persist beyond the coexistence line
Equality of bulk chemical potentials determines coexistence, yet a sample can remain liquid below its equilibrium freezing temperature. Forming a small solid nucleus introduces an interface whose free-energy cost can initially outweigh the bulk driving force. Consider a spherical nucleus of radius \(r\) in a pure, uniformly undercooled liquid. Assume an isotropic solid–liquid interfacial energy \(\gamma>0\) and a positive bulk free-energy advantage per volume \(\Delta g_v\) for the solid. Ignore elastic accommodation, walls, impurities and curvature dependence of \(\gamma\).
The gain in stable bulk material is proportional to the volume while the cost is proportional to area. Relative to uniform liquid the work is
Differentiating gives the nonzero stationary size \(r_*=2\gamma/\Delta g_v\). The second derivative there is negative, so the critical nucleus lies at a barrier rather than at a stable droplet size. Smaller nuclei reduce their free energy by shrinking, and larger ones reduce it by growing. Substituting the radius into the original expression gives
Near coexistence, the difference of the two bulk free energies changes as the entropy-of-fusion difference times undercooling. With latent heat per unit volume \(L_v\), use \(\Delta g_v\simeq L_v(T_m-T)/T_m\) for a small fractional undercooling.
Determine how an undercooling changes the barrier
For an illustrative melt take \(T_m=400\) K, \(T=380\) K, \(L_v=3.00\times10^8\) J/m³ and \(\gamma=0.0300\) J/m². The bulk drive is \(1.50\times10^7\) J/m³. Critical radius is \(4.00\) nm and the barrier is approximately \(2.01\times10^{-18}\) J. Since \(k_BT=5.25\times10^{-21}\) J at 380 K, this is roughly 383 thermal energy units, a formidable homogeneous nucleation barrier. This comparison alone is insufficient for an exact waiting time, which also requires a kinetic prefactor and the sample volume.
Doubling undercooling to 40 K doubles the approximate bulk drive, halves the critical radius to 2.00 nm and reduces the energy barrier by four. The nucleation probability per attempt can thus vary by many orders of magnitude while the equilibrium transition temperature remains fixed. As undercooling tends to zero, both critical radius and barrier diverge in this ideal capillarity model. A container wall or an impurity can reduce the interface area needed and initiate crystallization much earlier. This distinction between the coexistence curve and observed onset explains why reducing the cooling rate or changing surface preparation can change a freezing record.
The spherical calculation exposes a distinction between a critical nucleus and a nucleus for which the total formation work has already become negative. Set the formation work itself, rather than its derivative, to zero. Apart from zero radius this gives \(r=3\gamma/\Delta g_v\), larger than the critical radius by a factor of one and a half. A cluster just above the critical radius can still have positive total formation work relative to the uniform liquid, yet growth reduces its free energy. Using the zero-work radius as a kinetic threshold would therefore overestimate the size needed for downhill growth.
Estimate the boiling temperature under reduced pressure
Anchor a liquid’s saturation curve at 373.15 K and 101.325 kPa. For a dilute ideal vapour, negligible liquid volume and approximately constant molar heat of vaporisation, integrate \(d\ln p/dT=L/(RT^2)\). The three curves test sensitivity to the assumed latent heat.

Try it · Clausius
Change the inputs and compare the recalculated curves with the preceding derivation and baseline figure. The axes give the units; the numerical readout states the model assumptions and any limiting cases. Reset the inputs to return to the reference setting.
Read values from the plot
| Temperature (K) | Latent heat 38 kJ/mol | Latent heat 40.7 kJ/mol | Latent heat 43 kJ/mol |
|---|---|---|---|
| 330 | 20.426 | 18.229 | 16.545 |
| 346.5 | 39.501 | 36.943 | 34.896 |
| 363 | 71.942 | 70.213 | 68.772 |
| 379.5 | 124.37 | 126.2 | 127.77 |
| 396 | 205.42 | 216 | 225.44 |
Indistinguishable particles and quantum gases
Thermodynamics and statistical physics
Use single-state occupancy to derive Fermi–Dirac and Bose–Einstein distributions and estimate when classical gas statistics cease to apply.
From first principles
Derive the mean population of one quantum state
Consider a single-particle state of energy \(\epsilon\) exchanging particles and energy with a large reservoir at temperature \(T\) and chemical potential \(\mu\). In a noninteracting gas, occupation \(n\) of this state changes \(E-\mu N\) by \(n(\epsilon-\mu)\). Its statistical weight is \(q^n\), where \(q=e^{-(\epsilon-\mu)/(k_BT)}\). For one specified state including its spin label, fermions allow occupations 0 and 1. Bosons allow every nonnegative integer,
The Bose sum requires \(q<1\). Differentiating a weight with respect to \(q\) brings down its occupancy, so the normalized average is \(q\,\partial_q\ln Z\). Applying this to the two sums gives
For \(q\ll1\), both means approach \(q\); visits by additional particles to the same state are then rare. The difference between the distributions follows entirely from which occupation numbers the quantum statistics allow.
Derivation and applications
Derive the first exchange correction to ideal-gas pressure
Before quantum degeneracy becomes strong, exchange statistics already affect the relation between pressure and density. Consider noninteracting particles of mass \(m\) in a large three-dimensional box. All \(g\) internal states have the same energy and chemical potential. Introduce fugacity \(z=e^{\mu/(k_BT)}\), thermal wavelength \(\lambda_T=h/\sqrt{2\pi m k_BT}\), and a sign \(s=+1\) for bosons or \(-1\) for fermions. At small fugacity the occupation of a one-particle energy \(\epsilon\) is a geometric expansion,
Integrating the first term over momentum gives \(g/\lambda_T^3\) times \(z\). In the second term, doubling the inverse temperature narrows each Cartesian Gaussian by \(\sqrt2\). The density integral therefore gains a factor \(2^{-3/2}\). At fixed temperature the Gibbs–Duhem relation \(dp=n\,d\mu\) gives
Integration from the empty-gas limit gives the pressure series,
Experiments often fix density. Put \(y=n\lambda_T^3/g\) and invert the density series once to get
Substituting into the pressure eliminates the unmeasured chemical potential,
At fixed density exchange raises the pressure of fermions and lowers that of bosons. The magnitude grows on cooling because the thermal wavelength increases. Real interactions can also alter the pressure, and the truncated expansion requires small \(y\).
Worked example
Estimate a pressure excess for a dilute Fermi gas
Change the inputs and investigate this derivation.
A spin-balanced ideal Fermi gas has \(g=2\), \(n=2.00\times10^{18}\,\mathrm{m^{-3}}\) and \(\lambda_T=400\,\mathrm{nm}\). It has \(y=0.0640\) and \(p/(nk_BT)\simeq1.0113\). A measured classical pressure scale \(nk_BT=20.0\,\mathrm{pPa}\) would therefore acquire an exchange correction of about \(0.226\,\mathrm{pPa}\).
Second application
Recover density from a bosonic pressure deficit
Change the inputs and investigate this derivation.
A single-state Bose gas at known \(\lambda_T=500\,\mathrm{nm}\) gives
To leading order the deficit fixes \(y=0.0050\times2^{5/2}=0.0283\). The inferred density is
At unchanged temperature halving this density halves the fractional pressure deficit, whereas the absolute pressure correction falls by a factor of four.
Try it · Quantum virial
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.
Decide which exchanges leave the state unchanged
An ideal classical gas can often be treated with Maxwell–Boltzmann statistics. Cooling the gas or increasing its density eventually makes wave packets overlap appreciably. For indistinguishable quantum particles, merely assigning names to exchanged particles must not create extra states. In an ideal gas one can instead specify the occupation of each single-particle state. Identical fermions occupy a given quantum state at most once, including its spin label. Identical bosons can accumulate in the same state.
Use a reservoir that exchanges both energy and particles with the system. Its temperature \(T\) and chemical potential \(\mu\) are fixed. A microstate with energy \(E\) and particle number \(N\) has grand-canonical weight proportional to \(\exp[-\beta(E-\mu N)]\). This follows by applying the thermodynamic entropy differential to a reservoir that loses both \(E\) and \(N\). The chemical potential sets the mean particle number through these statistical weights.
Sum the allowed occupancies of one state
For a single-particle state of energy \(\epsilon\), define \(z_\epsilon=\exp[-\beta(\epsilon-\mu)]\). An occupancy of \(n\) contributes weight \(z_\epsilon^n\). For fermions the single-state grand partition sum is \(1+z_\epsilon\), so the mean occupancy is \(z_\epsilon/(1+z_\epsilon)\). For bosons the sum runs over all nonnegative integers and equals \(1/(1-z_\epsilon)\), provided \(z_\epsilon<1\). Differentiating the logarithm of each sum with respect to \(\ln z_\epsilon\) gives
These expressions describe one state, not the total population within an energy interval. To get the latter, multiply by the density of states and integrate. If the exponential is large then both occupancies reduce to \(e^{-\beta(\epsilon-\mu)}\). The upper sign suppresses double occupancy while the lower sign enhances occupation near the lowest available energy.
Count the occupied sphere of a cold electron gas
In a large cubic volume \(V\) with periodic boundaries, allowed wave vectors fill reciprocal space with one state per volume \((2\pi)^3/V\) for each spin. At zero temperature the noninteracting electron gas fills all states inside a sphere of radius \(k_F\) and leaves higher ones empty. Including two spin states per wave vector gives \(N=2V(4\pi k_F^3/3)/(2\pi)^3\), so \(k_F=(3\pi^2N/V)^{1/3}\). For electrons of mass \(m_e\), the Fermi energy is \(\hbar^2k_F^2/(2m_e)\).
With density \(n=8.0\times10^{28}\) m⁻³, \(k_F=1.33\times10^{10}\) m⁻¹ and \(E_F\simeq6.77\) eV. The associated temperature \(T_F=E_F/k_B\) is approximately \(7.9\times10^4\) K. At room temperature \(k_BT\) is small compared with this energy, so only a narrow region around the Fermi surface changes occupation noticeably. A classical equipartition estimate of the electron contribution to heat capacity would ignore this restriction.
Test the dilute limit with a cold atomic gas
A useful scale for translational wave packets is the thermal wavelength \(\lambda_T=h/\sqrt{2\pi m k_BT}\). For a single internal state the dimensionless product \(n\lambda_T^3\) compares the volume per particle with the thermal wave volume. Small values support the dilute classical approximation. Near unity the occupancy of low-energy states can become appreciable and the statistics of indistinguishability matter.
For particles of mass \(6.6\times10^{-27}\) kg at 1.0 K the thermal wavelength is approximately 0.88 nm. At density \(10^{25}\) m⁻³, \(n\lambda_T^3\simeq0.0068\). Reducing temperature to 0.040 K at unchanged density multiplies that product by \(25^{3/2}=125\), giving about 0.85. This is a degeneracy estimate, not a prediction of the phase of a real interacting gas. Once quantum statistics matter, particle interactions, dimensionality and confinement can also affect which phase the experiment actually finds.
Internal degeneracy enters these comparisons through the density per available internal state. Suppose the same total particle density is spread equally across two spin states with identical spatial dispersion. Each can fill the same momentum levels independently. In a cold ideal Fermi gas the Fermi wavevector at fixed total density is then smaller than in a fully spin-polarized gas. A measured pressure change after altering spin populations can therefore contain a statistical contribution even if the mass, volume and total particle count remain fixed.
Determine the capacity of excited Bose states
Ideal bosons can accumulate macroscopically in one spatial state. Consider a uniform three-dimensional noninteracting gas of identical spinless particles with fixed particle number in a large box. Set the lowest energy to zero. The excited-state occupation at energy \(\epsilon\) is \(1/[\exp((\epsilon-\mu)/(k_BT))-1]\) and requires \(\mu\le0\). In the thermodynamic limit, counting momentum states in a sphere gives an excited-state density per volume proportional to \(\sqrt\epsilon\). Consequently, as the density rises, taking \(\mu\) toward zero from below can increase the excited population only up to a finite value.
Explicitly integrate \(d^3p/(2\pi\hbar)^3\) over positive energies \(\epsilon=p^2/(2m)\). At \(\mu=0\), setting \(x=\epsilon/(k_BT)\) reduces the integral to \(\int_0^\infty x^{1/2}/(e^x-1)dx=\Gamma(3/2)\zeta(3/2)\). The result is
Below the temperature where this capacity equals the total density, additional particles occupy the lowest state. Solving gives
The state count explains why a high phase-space density matters. Reaching this regime does not require individual particles to lose their identity at a sharply defined minimum separation.
Estimate the onset temperature in a box
Take \(n=1.00\times10^{20}\) m⁻³ and particle mass \(1.44\times10^{-25}\) kg. At the ideal transition the thermal wavelength is
Inverting its definition gives \(T_c=h^2/(2\pi m k_B\lambda_T^2)=0.398\) μK. At \(T=0.250\) μK, the excited fraction is \((0.250/0.398)^{3/2}=0.498\) and the condensate fraction is approximately 0.502. Doubling the density raises \(T_c\) by \(2^{2/3}=1.59\) at fixed particle mass.
The predicted fraction tends to zero continuously as \(T\) approaches \(T_c\) from below, and tends to one as temperature approaches zero for the ideal gas. A harmonic trapping potential has a different density of states and hence a different temperature exponent from a uniform box. Finite size smooths the mathematical onset; interactions and inaccurate thermometry can shift its inferred location. Comparing the number in the narrow lowest-momentum component with the thermal-cloud population requires that the analysis resolve these two contributions rather than simply count all particles near the centre of a spatial image.
The dimensionality of the gas is as essential as Bose exchange itself. In a uniform two-dimensional ideal box the single-particle density of states tends to a constant at low energy. At chemical potential approaching zero, Bose occupation varies as \(k_BT/\epsilon\) there. Its energy integral consequently diverges logarithmically rather than approaching a finite excited-state capacity. The three-dimensional derivation of a nonzero transition temperature cannot then be carried across unchanged. A finite box, a confining trap or interparticle interactions can all alter the observed low-energy behaviour and must be identified when comparing different experimental geometries.
Repeat the counting in a harmonic trap
A harmonic trap changes the number of available excited states even for particles with the same mass and statistics. For three oscillator frequencies \(\omega_x,\omega_y,\omega_z\), measure energy above the lowest level and suppose \(k_BT\) greatly exceeds each \(\hbar\omega_i\). The quantum labels \(n_i\) are nonnegative integers with energy \(\sum_i\hbar\omega_i n_i\). The count below energy \(E\) is approximately the volume of the positive-coordinate tetrahedron bounded by this plane, namely \(E^3/(6\hbar^3\omega_x\omega_y\omega_z)\). Differentiating gives an energy density of states proportional to \(E^2\).
At the onset of condensation integrate this density against \(1/(e^{E/k_BT}-1)\). The identity \(\int_0^\infty x^2/(e^x-1)\,dx=2\zeta(3)\) then gives
For \(N=1.00\times10^5\) particles in an isotropic 100 Hz trap, \(\hbar\bar\omega/k_B=4.80\) nK and \([N/\zeta(3)]^{1/3}=43.7\), so the predicted transition temperature is \(0.210\) μK. At \(0.150\) μK the condensate fraction is
An analysis using the uniform-box exponent at the same temperature ratio would instead give 0.396. The difference comes entirely from the confinement-dependent state count.
Reducing all three trap frequencies at fixed particle number lowers the onset temperature in direct proportion. This differs from enlarging a uniform box at fixed mean density, which leaves its bulk critical temperature unchanged. Specifying how particle number, volume and external confinement are controlled is therefore essential when interpreting a measured condensate fraction.
Chemical equilibrium and reaction extent
Thermodynamics and statistical physics
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
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
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
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
Apply this identity to the stoichiometric differences of standard molar quantities,
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
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
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
Change the inputs and investigate this derivation.
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
The association remains exothermic throughout the interval, although its magnitude declines on heating.
Second application
Infer enthalpy from equilibrium measurements
Change the inputs and investigate this derivation.
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
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
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
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
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
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
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
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
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.
How a pair potential changes the gas pressure
Thermodynamics and statistical physics
A low-density gas can measure its own intermolecular forces. At a prescribed temperature the first deviation from ideal behaviour is a volume. Its sign tells us whether overlap exclusion or attraction makes the larger contribution.
Separate independent pairs from correlated pairs
Let \(N\) classical particles occupy volume \(V\), with a total potential energy equal to a sum of short-range pair potentials \(u(r_{ij})\). Momentum integrals give the ideal-gas factors. In the remaining positional integral write each pair's Boltzmann weight as \(e^{-\beta u}=1+f(r)\). The auxiliary function \(f=e^{-\beta u}-1\) vanishes where particles do not interact. In a large vessel the positional integral with one \(f\) is \(V^{N-1}\int f(\boldsymbol r)\,d^3r\). One particle of the pair may be placed anywhere and its neighbour's relative coordinate is sampled against \(f\). There are \(N(N-1)/2\) possible unordered pairs.
In the low-density expansion of \(\ln Z\), independent repetitions of separate pairs cancel against products from the logarithm. The first connected correction is \(N(N-1)\int f/(2V)\). This is a density expansion of the free energy per particle. The total correction need not be small for a macroscopic sample. Differentiating with \(p=k_BT(\partial\ln Z/\partial V)_{T,N}\) supplies a minus sign from the reciprocal volume. In the thermodynamic limit with number density \(\rho=N/V\),
An impenetrable core gives \(f=-1\). An attractive annulus gives \(f>0\). The sign of \(B_2\) follows from their integrated volumes, including the spherical shell factor \(r^2\).
Integrate a square well
Set \(u=\infty\) for \(r<d\), \(u=-\epsilon\) for \(d<r<\lambda d\), and \(u=0\) outside. The two nonzero contributions are constants integrated over spherical volumes. With \(B_{\rm core}=2\pi d^3/3\), obtain
A sphere of diameter \(d\) has actual volume \(\pi d^3/6\). The hard-core coefficient is four times that volume. The forbidden positions concern the centre of a second particle, and the factor of one half avoids counting an interacting pair twice. For \(\lambda=1.5\) and \(k_BT/\epsilon=2\), the ratio \(B_2/B_{\rm core}=1-2.375(e^{0.5}-1)\simeq-0.541\). A dilute sample with \(\rho B_{\rm core}=0.02\) consequently has \(p/(\rho k_BT)\simeq0.9892\) at this order.
Locate the temperature at which the slope vanishes
Set \(B_2=0\) and solve for the Boyle temperature. The result is \(k_BT_B/\epsilon=1/\ln[1+1/(\lambda^3-1)]\), or 2.846 for the preceding range. Vary the width of the well. A larger attraction volume can offset the hard core even when the temperature is high. At \(T_B\) the pressure curve has zero first density correction. Three-particle contributions can still produce curvature. At very low temperatures pair binding can become strong enough that even a superficially low density fails to justify truncation.
Tutorial on inferring the range
In a square-well model the measured Boyle temperature is
Determine \(\lambda\), then predict the sign of the pressure correction when the temperature is doubled.
Work through the solution
Rearrangement gives \(\lambda^3=1+1/(e^{1/2}-1)=2.5415\), hence \(\lambda\simeq1.365\). Doubling the temperature decreases the attractive Boltzmann factor and leaves the hard-core term fixed. Substitution at reduced temperature 4 gives
At sufficiently low density the pressure exceeds the ideal prediction.
Can a negative \(B_2\) at one temperature fix how much of the molecular attraction comes from its depth and how much from its range?
Work through the solution
The coefficient in the square-well model depends on the product \((\lambda^3-1)[e^{\epsilon/k_BT}-1]\). Many combinations of width and depth give the same product. Measurements at two temperatures can constrain both parameters if the core diameter is independently known and the model is appropriate. Additional temperatures expose inadequacies in the assumed well shape.
Take two measured compressibility factors \(Z=0.9950,0.9900\) at \(\rho B_{\rm core}=0.010,0.020\) at the same temperature. Estimate \(B_2/B_{\rm core}\) and check consistency of the truncation with these two measurements.
Work through the solution
The slopes from the ideal limit are \((Z-1)/(\rho B_{\rm core})=-0.50\) for both points. Their common value agrees with a leading pair correction and shows no detectable curvature at the stated precision. It provides no bound on higher-order terms outside that measured density interval.
Further reading · Cambridge statistical physics, classical gases and the cluster expansion.
Why two coexisting phases share a tangent
Thermodynamics and statistical physics
A material prepared with an intermediate composition can separate into two regions of different compositions. Its total composition is conserved. How can a free-energy graph predict both final compositions and the amount of each phase?
Minimise the free energy of a mixture
Work at fixed temperature and volume with a constant density of equivalent sites. Let \(f(c)\) be the Helmholtz free energy per site of a spatially uniform state with fraction \(c\) of species B. If the two regions have compositions \(c_1,c_2\) and the second contains fraction \(x\) of all sites, conservation requires
Neglect interface energy per site in the macroscopic limit. The mixture free energy per site is then the weighted sum of the two \(f\)'s, a point on the chord joining them.
Introduce a multiplier \(\mu\) and minimise \((1-x)f(c_1)+xf(c_2)-\mu[(1-x)c_1+xc_2-\bar c]\). Varying \(c_1,c_2\) when both regions are present gives
This derivative measures the chemical work to replace an A particle by B. Varying \(x\) supplies the missing condition,
The common slope therefore equals the slope of the connecting chord. A straight line must touch the free energy at both endpoints and lie below competing homogeneous states. Equivalently \(\int_{c_1}^{c_2}[f'(c)-\mu]\,dc=0\). This equal-area condition is the composition version of Maxwell's construction. For liquids plotted as pressure versus specific volume, the conjugate slope acquires the sign from \(p=-\partial F/\partial V\).
Find the coexistence and stability boundaries separately
Take \(f(c)=A[(c-m)^2-d^2]^2+\mu_0c\), with \(A>0\), \(m=0.5\) and \(0<d<0.5\). Subtracting the linear term tilts all trial chords by the same amount. At \(c=m\pm d\) the remaining term vanishes with zero derivative. Hence the common tangent is \(\mu_0 c\), and the coexistence compositions are \(m-d,m+d\). At \(d=0.30\) a sample of average composition 0.45 separates into 0.20 and 0.80 regions. Conservation gives \(x=(0.45-0.20)/(0.80-0.20)=5/12\) for the B-rich region.
Now perturb a uniform state into two equal parts at \(c\pm\eta\). Their average energy differs from the uniform energy by \(f''(c)\eta^2/2+O(\eta^4)\). Here \(f''=4A[3(c-m)^2-d^2]\). Between \(m-d/\sqrt3\) and \(m+d/\sqrt3\) infinitesimal fluctuations reduce the energy. Between either of these limits and the nearest coexistence endpoint a uniform state resists small fluctuations but a sufficiently large rearrangement can still lower the energy. This accounts for metastability and for the distinction between spinodal and coexistence boundaries. The uniform model does not predict a nucleation time because interfaces carry no energy in this construction.
Get a phase fraction from a graph
The display subtracts \(\mu_0c\) and measures energies in \(A\). Move the mean composition across the whole interval. Outside the coexistence window the stable composition is homogeneous. Inside, the endpoints stay put while the rich-region fraction changes linearly. Compare \(c=0.45\) to \(c=0.55\) for the same gap. Reflection symmetry exchanges the two phase fractions and leaves the free-energy saving unchanged.
Tutorial on a composition quench
A homogeneous sample is prepared at \(c=0.26\) with \(d=0.30\). Does an infinitesimal composition fluctuation lower its energy? What fraction of the final mixture occupies the B-rich phase in equilibrium?
Work through the solution
The lower spinodal lies at \(0.5-0.3/\sqrt3=0.327\), so the prepared state lies below it and has positive curvature. Nevertheless 0.26 lies between 0.20 and 0.80. Its equilibrium rich fraction is
Local stability and the global free-energy minimum answer different experimental questions.
For \(m=0.50\), \(d=0.30\), compare free-energy gains of demixing at mean compositions 0.20 and 0.50 after subtracting the tilt. Report the gain in units of \(A\).
Work through the solution
At a coexistence endpoint the pure homogeneous material already lies on the common tangent and has zero gain. At the midpoint the homogeneous energy exceeds the tangent by \(d^4 A=0.0081A\) per site. The equilibrium mixture uses equal amounts of the two compositions. The gain tends continuously to zero at either endpoint.
Would adding \(b+mc\) to the free energy change the two selected compositions or spinodals? What would change in the tangent construction?
Work through the solution
Conservation fixes the mean composition, so the new term contributes \(b+m\bar c\) to every candidate mixture at that mean. The minimiser is unchanged. Second derivatives are unchanged, preserving spinodals. Both endpoint tangent slopes, and thus the chemical-potential difference assigned to coexistence, shift by \(m\).
Further reading · Cambridge statistical physics, phase equilibrium and Maxwell construction.
When does a polar crystal change its preferred state?
Fields and the response of matter
Derive stable and unstable dielectric responses from a free-energy landscape. Separate a reversible small-signal capacitance from a switching experiment.
Why one voltage can support several measured polarisations
Some insulating crystals develop a spontaneous electric polarisation as temperature is lowered. The high-temperature phase may be symmetric under inversion so that states with polarisation \(+P\) and \(-P\) are equivalent in zero field. Near a continuous transition, treat one component of polarisation as an order parameter. A local free-energy density compatible with the symmetry is \(f(P)=a(T-T_c)P^2/2+bP^4/4\) with \(a,b>0\). The omitted terms limit how far in temperature or field this truncated expansion is reliable. The positive quartic term keeps the energy bounded when the quadratic coefficient is negative.
For a device whose applied electric field \(E\) is controlled, the appropriate potential in this simple model is \(g(P;E)=f(P)-EP\). The linear term records external work; changing what is held fixed changes the energy to minimise. Differentiation gives the constitutive equation \(E=a(T-T_c)P+bP^3\). An algebraic root is an equilibrium candidate. A stable local response also requires positive second derivative \(a(T-T_c)+3bP^2\). A very accurate rootfinder can return an unstable stationary point if this second test is omitted.
Find the equilibrium branches and their response
Introduce scaled polarisation \(p\), field \(e\) and temperature parameter \(s\) such that \(g=p^4/4+sp^2/2-ep\). Then \(e=p^3+sp\). For \(s>0\), the slope \(3p^2+s\) stays positive. Each field has one stable solution. At \(e=0\), \(p=0\) and the small-signal susceptibility \(dp/de=1/s\) increases when approaching the ideal critical point from above.
For \(s=-1,\ e=0\), stationary values are \(-1,0,+1\). The middle root has curvature −1 and is a local maximum. Each outer root has curvature 2 and is a minimum. The susceptibility about a selected outer state is \(1/2\) in the scaled units. The fact that the two domains can carry opposite zero-field polarisation does not make the harmonic response negative. The mere existence of a negative-slope segment in the cubic constitutive curve is insufficient to infer a stable isolated small-signal device with that differential response.
Derive the limit of a metastable homogeneous state
Imagine preparing the negative-polarisation state at \(s=-1\), then increasing the applied field slowly. A positive field lowers the energy of the positive state. The negative state can persist locally behind a barrier even after it ceases to be the global minimum. A model of perfectly homogeneous evolution without early nucleation follows this metastable branch until the curvature vanishes. Solve \(3p^2-1=0\), choose \(p=-1/\sqrt3\), and insert it into \(e=p^3-p\). The positive limiting field is
At the opposite spinodal the signs reverse.
This is a limit of the particular energy model. Real switching can occur earlier through domain walls, nucleation, defects or thermally activated barrier crossing. Observing a smaller coercive field in a specimen is not evidence that the cubic equation was solved inaccurately. To compare an actual hysteresis loop with a calculation, state the sweep rate, boundary circuit, sample preparation and a dynamical or nucleation model in addition to equilibrium free energy.
Read a landscape rather than tracing an unlabelled loop
Set \(s=-1\). At zero applied field, locate the two equal wells. Increase positive \(e\) gradually and watch the negative well become shallower. The browser locates real stationary points of the cubic, classifies them by curvature and reports their positions. Its plotted potential shows the energy barrier separating basins. Choose \(s>0\) and repeat to see why fitting the same S-shaped hysteresis loop above a continuous transition would be inappropriate.
A below-transition sample can also form spatially varying domains. Adding a positive gradient term \(K(\nabla P)^2/2\) penalises interfaces, while depolarising fields can favour a mixture with reduced net surface charge. This competition sets new length scales absent from the homogeneous model. An electrode measuring total charge can return near-zero mean polarisation from oppositely oriented domains even though each domain is strongly polarised. A local probe and a bulk capacitance measurement therefore constrain different parts of the model.
Turn a capacitance measurement into a consistency test
For a small harmonic voltage imposed about a prepared local minimum, the differential response is \(\delta P/\delta E=1/[a(T-T_c)+3bP^2]\), provided the driving frequency is slow enough for this local variable to respond and the amplitude is small enough to stay in the same well. Add the vacuum and fast polarisation terms when converting to total displacement \(D\). In a parallel-plate geometry capacitance per area then follows from \(\delta D/\delta E\) divided by thickness.
A large-signal charge–voltage measurement crosses different branches and may dissipate work around a loop. The energy per volume over a closed polarisation cycle is \(\oint E\,dP\) with the sign convention for electrical work. A single equilibrium graph of \(f(P)\) returns to its initial state with no prescribed loop area. Measured hysteresis thus carries dynamical information that a polynomial fit to one reversible branch cannot uniquely reconstruct.
Tutorial
For \(s=-4\) in the scaled model, find zero-field minima and the positive homogeneous spinodal field.
Work through the solution
Zero-field minima lie at \(p=\pm2\). The negative spinodal is
Substitution gives positive field \(16/(3\sqrt3)\simeq3.08\). The \( |s|^{3/2}\) dependence follows from the cubic.
A Newton solver initialised at \(p=0\) reports exact convergence for \(s=-1,e=0\). What additional observation rejects that result as the prepared stable state?
Work through the solution
Its residual is exactly zero but the curvature \(3p^2+s=-1\) is negative. A small perturbation lowers the potential. Check a measured weak-field slope or the relaxation after a perturbation, and compare the energy of the two minima.
Why can the homogeneous coercive field be much larger than the measured coercive field?
Work through the solution
The calculation removes a local barrier only when a spatially uniform state ceases to exist. A real material can switch by creating a small favourable domain and moving a wall; electrodes and defects can lower the needed activation energy. The relevant material and time scales differ.
Compare material descriptions
Use MIT's ferroelectrics and polarisation material to distinguish a microscopic source of displacement from the macroscopic free-energy model used here.
Counting, absolute entropy and the entropy of mixing
Statistical mechanics from microscopic counting to material response
An ideal gas expands into an evacuated bulb and its temperature can remain essentially unchanged. What changed if a thermometer reports the same value? Begin by specifying a microscopic count, recover the pressure and temperature of the gas, and test the meaning of distinguishability by removing a partition between two samples. The calculation also explains why the classical formula for absolute entropy needs a microscopic action scale.
Describe a count before taking its logarithm
A macrostate specifies only outcomes resolved by a chosen preparation and measurement, for example particle number, energy within a narrow interval and container volume. A microstate specifies detailed positions and momenta consistent with those outcomes, or a quantum state in the corresponding energy shell. The multiplicity is the number of allowed states under the stated resolution and constraints. The logarithm makes multiplicities of statistically independent systems additive, because the number of joint possibilities is their product. Boltzmann entropy is
Before computing a gas, inspect an easier count. If eight distinguishable sites each have a variable taking values zero or one and exactly three sites are occupied, there are \({8\choose3}=56\) configurations. Revealing which sites are occupied reduces the compatible set to one. This change of conditional information need not involve an actual heat flow in the original system. Thermodynamic entropy requires a physical specification of allowed states and operations; it cannot be inferred solely from how surprised a particular observer feels.
In equilibrium, equal a priori weighting in a narrow isolated energy shell is a postulate about the appropriate ensemble. It does not state that a finite trajectory visits every conceivable state in any chosen observation time. Long-lived constraints, such as a closed partition or a conserved component of angular momentum, change the accessible shell. A gas that has not exchanged particles between remote compartments can be assigned a separate particle number in each. Removing a constraint can enlarge the equilibrium count even while the volume of an exact fine-grained Hamiltonian distribution is preserved by microscopic dynamics. The thermodynamic description refers to a macroscopic resolved equilibrium state.
Count the spatial and momentum volumes of a monatomic gas
Take \(N\) indistinguishable noninteracting particles of mass \(m\) in volume \(V\), with total kinetic energy at most \(E\). Integrating over positions produces \(V^N\). Allowed momenta lie inside a sphere in \(3N\) dimensions of radius \(\sqrt{2mE}\). Its volume follows from computing a multidimensional Gaussian integral both in Cartesian and radial coordinates. Divide by a microscopic cell \(h^{3N}\) to make the state count dimensionless and by \(N!\) to prevent a permutation of indistinguishable particles from creating another physical state. The cumulative count is
Using the shell count \(\partial_E\Phi\,\delta E\) instead changes subextensive terms for a conventional narrow shell that still contains many states. The cumulative formula is especially convenient for this gas. Equalities at finite small \(N\) depend on which entropy is chosen, so state that choice before claiming an exact finite-size temperature. The usual bulk relations follow from either in the thermodynamic limit for this unbounded, regular system.
For large \(N\), use \(\log N!\simeq N\log N-N\) and the analogous gamma-function asymptotics. After collecting the terms,
Doubling \(E,V,N\) at fixed ratios doubles the leading expression. Omitting \(N!\) would leave a term growing like \(N\log N\), violating this extensivity. The phase-space cell influences the entropy per particle and the chemical potential but drops out of classical fixed-particle derivatives for pressure and temperature. Quantum mechanics fixes the natural cell scale through state counting. It does not require physical particles to carry serial numbers while remaining otherwise identical.
Read temperature, pressure and chemical potential from one function
Write the entropy differential as \(dS=dE/T+(p/T)dV-(\mu/T)dN\). Differentiating the count at fixed remaining variables gives
Thus an energy exchange measurement and a force on a moving wall follow from derivatives of the same count. The thermal wavelength \(\lambda_T=h/\sqrt{2\pi mk_BT}\) lets us rewrite the entropy and chemical potential as
The chemical potential uses the same single-particle energy zero as the energy expression. Shifting every particle energy by a constant shifts \(\mu\) by that constant, leaving equilibrium criteria involving consistent references unchanged. An unresolved internal ground-state degeneracy \(g\) would multiply the state count by \(g^N\) in the classical dilute limit and replace \(n\lambda_T^3\) by \(n\lambda_T^3/g\). Real molecules and atoms can have internal states and additional degrees of freedom; never assign monatomic entropy to a molecular gas without justifying its internal contribution.
For ideal monatomic argon at 300 K and 1.00 bar, using \(m=39.948\) unified atomic mass units, \(\lambda_T=15.95\) pm and \(n\lambda_T^3=9.79\times10^{-8}\). The result is approximately 154.97 J per mole kelvin. Its small degeneracy parameter supports the dilute classical approximation. Compressing isothermally by a factor of ten increases chemical potential by \(k_BT\log10\) and decreases entropy by \(Nk_B\log10\). Extending the classical formula down to zero temperature at fixed density would eventually give a negative unbounded entropy, signalling the breakdown of the classical state occupation assumptions.
Why a partition between identical samples is different
Take two ideal gases initially separated at equal temperature and pressure. Their volumes are proportional to their particle numbers. For two distinguishable species each component expands to the full volume after the partition is removed. The internal kinetic energies are unchanged in the ideal model. Summing the two entropy increases and writing mole fractions \(x_i=N_i/N\) gives
One mole containing fractions 0.30 and 0.70 gains 5.08 J/K upon ideal mixing from the pure components. At 300 K a reversible isothermal separation needs minimum work \(T\Delta S_{\rm mix}=1.52\) kJ for this mole if the ideal components and reference states are restored. The free expansion itself need not deliver that work. It is available in a reversible mixing path using selective barriers or equivalent controlled separation operations.
If both compartments initially contain identical gas at equal density, the final macrostate has the same density and same single species throughout. Combining two extensive entropies gives the final entropy to leading bulk order. There is no extensive mixing increment \(Nk_B\log2\). Introducing artificial labels for the former left and right particles changes the physical question only if a real degree of freedom can be prepared, distinguished and selectively processed. A dye, isotope or internal spin state can serve as such a label under suitable experimental operations. Merely drawing colours on a computer representation of identical classical particles does not establish a membrane that could sort those labels.
A tempting argument says that making two different gases more and more similar must continuously reduce their ideal mixing entropy. In the ideal model the species occupation labels are either distinct or identical; the description does not specify a continuously degrading separation instrument. A model of partially distinguishable internal states or a noisy finite-resolution sorter is a different experiment. Its accessible work depends on the physical state preparation and measurement operations. Distinguish the mathematical idealisation from an actual membrane having imperfect chemical selectivity.
Check an entropy change using a reversible reference route
In an isolated free expansion of a dilute gas into a vacuum the external pressure vanishes and boundary work is zero. With negligible heat flow energy remains constant and for an ideal gas so does temperature. To compute the state-function entropy change choose a hypothetical reversible isothermal expansion between the same endpoints. Reversible heat input is \(\int p\,dV=Nk_BT\log(V_f/V_i)\), giving \(Nk_B\log(V_f/V_i)\). This reference heat is not a claim that heat actually crossed the boundary during free expansion.
For a more exact real-gas experiment, first check that the initial and final temperatures are indeed the same. Internal energy may depend on volume. From the fundamental differential and a Maxwell relation one obtains
A temperature change during an isolated free expansion thus carries information about intermolecular interactions. Measuring only final pressure and assuming constant temperature could misattribute an interaction-induced energy change to the ideal state count.
Use the existing energy-sharing experiment to see how multiplicity changes with a constraint
Recover the entropy cost of a number fluctuation
A gas can lose an extensive mixing entropy when a physically selective partition is imposed, yet the finite-size cost of constraining only a particle count is much smaller. To see this, divide a box into two equal geometric halves with an imaginary plane and let all particles travel freely. At fixed total particle number each classical ideal particle has probability one half to be on either side. The probability of exactly \(k\) particles on the left is \({N\choose k}/2^N\), independently of whether the particles have names in a bookkeeping algorithm. The binomial coefficient counts the spatial arrangements compatible with that number. The resulting variance of the left count is \(N/4\).
The chance of exactly the mean count for even \(N\) is approximately \(\sqrt{2/(\pi N)}\), from Stirling's formula. If a protocol constrains the left count to precisely \(N/2\), the entropy difference between allowing all counts and that constrained ensemble is therefore about \((k_B/2)\log(\pi N/2)\). It grows only logarithmically with total size. In contrast, if the constraint identifies which half contains every member of two distinguishable species, the mixing entropy is extensive. The physical variables that the partition controls decide which count is appropriate.
For \(N=100\) the probability of exactly fifty on the left is about 0.0796. The associated entropy cost of conditioning is \(2.53k_B\). A macroscopic observer resolving the fraction only to a few percent can count a whole interval of nearby values as the same macrostate. As \(N\) grows the relative width shrinks like \(1/\sqrt N\), placing almost all of the probability inside any fixed nonzero fractional interval about one half. This is how an apparently precise macroscopic density can coexist with an enormous number of fluctuating microscopic arrangements.
The far tails reveal a stronger distinction. For a fixed fraction \(x=k/N\) away from one half, applying Stirling to the binomial gives probability proportional to \(\exp[-N I(x)]/\sqrt{2\pi Nx(1-x)}\), with
This rate function is nonnegative, vanishes at one half and starts quadratically there. At \(x=0.7\) it is about 0.0823, so the leading exponential cost for a thousand particles is \(e^{-82.3}\). A Gaussian near the peak gives a similar rough scale here but fails to capture the exact tail or the hard limits \(0\leq k\leq N\). A useful numerical exercise calculates binomial coefficients using log factorials, compares the central Gaussian approximation with the full rate function and checks that the probabilities sum to one. Evaluating the three factorials directly can overflow while the final probability is perfectly representable.
A reversible separation engine and a deliberately imperfect measurement
Imagine two ideal distinguishable gases separated initially at equal pressure and temperature. To obtain work while mixing, use species-selective membranes and allow reversible isothermal expansion of each partial gas against an appropriate pressure. The membrane traversed by one component must not transmit that component to the wrong side, and every infinitesimal motion must occur at negligible pressure imbalance for the component doing the work. The sum of the recoverable works is the sum of each component's ideal expansion work. Reversing the device separates the mixture at the same thermodynamic cost when dissipation can be made negligible.
For a one-mole mixture containing 0.20 mole of one species and 0.80 of another at 300 K, the work contribution of the minority component is \(-0.20RT\log0.20=0.803\) kJ and that of the majority is \(-0.80RT\log0.80=0.445\) kJ. Although the minority has fewer particles, each expands across a larger volume ratio and its work contribution is larger. The total is 1.25 kJ. A bulk piston doing no selective separation sees equal total initial pressures and no obvious macroscopic pressure difference. The selective mechanical operation matters to the interpretation of free energy.
A useful idealised sorter determines a binary label with symmetric error probability \(e\), with equal prior fractions. The fraction of correctly sorted particles is \(1-e\), yet that single number by itself says little about its thermodynamic performance unless both output compositions are measured. For the specified symmetric device the posterior composition in each equal outlet is \((1-e,e)\) in opposite order. The increase in mixing free energy relative to one unseparated equimolar reservoir at the same total temperature, density and amounts is
This is a state-function comparison of outlet compositions, not an assertion that the actual apparatus consumes this amount or that measuring a label is free. At \(e=0.10\) the bracket is 0.368, about 53 percent of the complete separation value. At \(e=0.5\) it vanishes even though a nominal label was printed for every particle. If one outlet loses particles or the two error probabilities differ, compute actual outlet fractions and chemical potentials from a material balance instead of using this symmetric formula.
An experiment can close that balance without seeing individual molecular trajectories. Measure both outlet amounts, composition, pressure and temperature, and account separately for work or heat supplied to the sorter. Compare the Gibbs free-energy change at controlled pressure with the actual electrical work. A device consuming several times the reversible minimum can still separate effectively. Conversely, apparent work below the calculated minimum suggests an omitted material stream, a different final pressure, an energy supplied by an uncounted reservoir or uncertainty in composition. The mixing formula is only as meaningful as the thermodynamic endpoints used.
Follow isotope and quantum effects to the edge of the classical formula
The appearance of \(h\) in a classical-looking entropy sometimes suggests that the Sackur–Tetrode expression already describes any temperature so long as gas interactions are weak. These are two different approximations. Diluteness relative to the interaction range controls the importance of forces. Diluteness in phase space, measured by \(n\lambda_T^3\), controls whether quantum exchange changes occupation weights. Atoms can interact weakly while exhibiting strong exchange statistics. Lowering temperature makes the thermal wavelength grow as inverse square root of temperature, quickly invalidating the classical count at a fixed density.
Consider two isotopes with one-particle masses in the ratio four to three, neglecting internal degeneracy differences and comparing at the same density and temperature. Their wavelengths have ratio \(\sqrt{3/4}\). The heavier isotope has a translational molar entropy greater by \((3R/2)\log(4/3)=3.59\) J per mole kelvin. This does not contradict the mass independence of the ideal mixing increment. The former compares two absolute entropy values of different substances; the latter is a change in each substance's accessible translational volume while its mass remains fixed.
The same mass scaling influences onset of quantum degeneracy. At fixed \(n\), the temperature for a chosen value of \(n\lambda_T^3\) varies inversely with mass. A heavier isotope reaches that value at a lower temperature. If the nuclei also have different spin degeneracies, distinguish the dimensionless density per internal component from the total density. Two isotopes can even have different Bose or Fermi exchange statistics, so a high-temperature entropy comparison need not extrapolate into similar low-temperature heat capacities.
A calorimetric consistency test illustrates the limits. Suppose an idealised solid has a measured low-temperature molar \(C_p=AT^3\) up to 5 K, with \(A=0.20\) mJ per mole per kelvin to the fourth. Its entropy increment there is \(AT^3/3=0.00833\) J per mole kelvin. Missing that contribution hardly changes a room-temperature entropy tabulated to a few tenths of a joule per mole kelvin. In contrast, omitting a latent heat of 1.0 kJ/mol at a transition near 100 K misses 10 J per mole kelvin. The low-temperature extrapolation and the phase transition enter the same entropy integral but can carry very different experimental leverage.
A finite thermometer measures a ratio of multiplicities
Temperature from an entropy derivative presupposes sufficiently smooth variation with energy. In a small discrete environment a two-level probe of gap \(\Delta\) can instead measure an exact finite difference. If the whole isolated system has total energy \(E\) and the two probe states have equal degeneracy, their equilibrium odds are \(\Omega_R(E-\Delta)/\Omega_R(E)\). Write the logarithm as \([S_R(E-\Delta)-S_R(E)]/k_B\). Interpreting it as \(-\Delta/(k_BT_{\rm probe})\) defines an operational inverse temperature averaged over an interval of width \(\Delta\).
For a reservoir whose cumulative multiplicity is proportional to \(E^\alpha\), this gives \(\beta_{\rm probe}=\alpha\log[E/(E-\Delta)]/\Delta\), while the local slope at \(E\) gives \(\alpha/E\). With \(\Delta/E=0.10\), the finite-gap value exceeds the endpoint slope by 5.36 percent. A second probe with one fifth that fractional gap reports only about a one-percent excess. Two well-calibrated probes can therefore disagree in a finite reservoir while each correctly reports its specified probability ratio.
The distinction vanishes for a macroscopically large heat bath whose entropy is locally almost linear over both gaps. It is experimentally testable in numerical energy-sharing models without calibrating a mechanical pressure. Count both occupancy ratios, establish whether the probe appreciably changes the reservoir's allowed states and compare against the exact discrete multiplicities before invoking a smooth temperature. If repeated measurements perturb the environment, the measured distribution is a sequence of new preparations and the equilibrium interpretation needs an explicit readout model.
Construct a thermodynamic cycle that isolates mixing entropy
The chemical-potential formula suggests a pressure measurement for testing mixing free energy. Let one side of a movable membrane transmit a solvent species freely and block a second dilute gas species, with common temperature maintained. In the ideal-gas case the permeable species equilibrates its partial pressure across the membrane. If on one side it is pure at pressure \(p_A\), while on the other side it has mole fraction \(x\) at total pressure \(p_{\rm mix}\), equality gives
The remaining pressure load on the membrane is the partial pressure of the blocked species. This is a mechanical consequence of equality of the permeable component's chemical potential.
For an ideal mixture with \(x=0.80\) and total pressure 1.00 bar, the pure compartment must reach 0.80 bar for zero net flow of the permeable species. A square centimetre membrane then supports a net pressure difference of 0.20 bar, corresponding to 2.0 N, before any additional elastic support forces. A membrane sensitive only to the total pressure might move and alter the volumes until mechanical and chemical constraints are both fulfilled. The quoted force is a held-geometry measurement, not a prediction that a freely moving unsupported membrane can remain at that position.
A particularly important control switches the membrane for a nonselective porous partition. Both species can then flow and equilibrate their own chemical potentials; at final full equilibrium there is no maintained composition difference across these gas reservoirs. A pressure reading alone cannot establish whether selectivity, partial blockage, a small temperature difference or an external pump generated the observed imbalance. Measure both compositions and isolate slow leaks over the relevant time. An apparently stable jump on a short trace can be a long-lived transient.
The same thought experiment gives a check on how gas-phase mixing connects to osmotic pressure in dilute solutions. The permeable solvent's chemical potential is lowered by mixing at fixed total pressure; applying enough pressure to the solution can restore equality across a solvent-selective membrane. The ideal dilute result has a form proportional to solute number density times thermal energy, although a liquid solution requires its own solvent partial molar volume model. Equal-looking formulas arise from a chemical-potential balance, not because dissolved solute molecules necessarily act as an ideal gas physically bouncing against every membrane.
Finally, a cyclic device must restore membrane positions, reservoir compositions and temperatures as well as a piston reading. Ignoring the work to regenerate selectivity or restore separated gas streams can turn a one-use release of stored mixing free energy into an apparent heat engine operating on one bath. Write the mole count of each component in every reservoir at start and finish and integrate mechanical and chemical work consistently. The criterion for a true thermodynamic cycle is return of the complete controlled system to its initial state.
A final microscopic check concerns the dimensions of the count. If one changed the formal classical cell size from \(h^3\) to \(a h^3\) per particle, the gas entropy would shift by \(-Nk_B\log a\) at every fixed state. Pressure, temperature and the entropy change of a fixed-\(N\) expansion would be unaffected. Chemical potential would shift by \(k_BT\log a\), and absolute comparisons between different particle species or chemical reactions would require a consistently calibrated microscopic count. This is why a piston experiment alone could never determine the natural action cell. Combining calorimetry with quantum level counting or fixed-reference chemical equilibria supplies information absent from fixed-\(N\) mechanical derivatives. The same bookkeeping distinction applies to any unobserved constant internal degeneracy: it can contribute entropy without producing a heat-capacity anomaly.
Connect ideal mixing to a separation-work measurement
Vary the mixture composition and the reservoir temperature. Compare the entropy with reversible work for separately identifiable ideal components.
Tutorial · Measure an entropy difference by two routes
A 0.50 mol sample of ideal monatomic gas expands from 2.0 to 5.0 litres in a thermally insulated free expansion. Calculate entropy change and change of chemical potential at 290 K. Now identify what changes if the gas instead expands reversibly and adiabatically between the same volumes.
Hold the state variables appropriate to each route
For free expansion temperature stays at 290 K and entropy increases by \(0.50R\log(2.5)=3.81\) J/K. At fixed temperature \(\mu_f-\mu_i=k_BT\log(n_f/n_i)=-k_BT\log2.5\), or minus 2.21 kJ/mol. The chemical-potential difference is a single-particle or molar quantity, while the entropy answer refers to the entire sample. Dividing or multiplying by the sample amount twice produces an inconsistent unit.
In a reversible adiabatic expansion \(\Delta S=0\) and the gas does boundary work. The final temperature becomes \(290(2/5)^{2/3}\simeq157\) K. These are not the same endpoints as in the free expansion, despite identical start and end volumes. Substituting the free-expansion entropy into an adiabatic isentropic relation would falsely equate insulation with reversibility.
Tutorial · An isotope mixture and a finite-size count
Two equal amounts of isotopically distinct ideal monatomic gases at the same temperature and density are mixed. Explain why their masses enter absolute chemical potentials but cancel from each component's ideal isothermal mixing increment. For just ten sites individually occupied at random by one of two distinguishable isotope labels, compare the exact number of arrangements with five of each label to the leading extensive entropy.
Cancel fixed internal terms and keep the finite combinatorics
Each component's thermal wavelength is unchanged between its own initial and final states. Taking the difference of its entropy therefore removes the mass and internal factors. Both species expand by a factor of two and the large-sample increase is \(Nk_B\log2\). This conclusion assumes independently identifiable species and an ideal mixture, and does not state that their absolute entropies are identical.
For ten sites with five labels of each kind there are \({10\choose5}=252\) arrangements. Their logarithm is 5.529 in units of \(k_B\), versus \(10\log2=6.931\) from an extensive approximation neglecting the composition constraint's subextensive term. Summing over all possible label counts gives \(2^{10}\), recovering the latter count for an ensemble in which the composition itself fluctuates. A small-system discrepancy is an opportunity to ask which constraint the count imposes.
Tutorial · Infer what a calorimetric entropy determination misses
A crystal's heat capacity is measured from a low reference temperature up to a temperature above a reversible melting transition. How could this measurement be used to estimate entropy, and which missing physical contributions could spoil an apparent comparison with a dilute gas entropy?
Include the low-temperature reference and all phase changes
Along a constant-pressure reversible route add \(\int C_p(T)dT/T\) in each phase and add latent heat divided by transition temperature at every first-order change. To compare with gas one must also traverse vaporisation or another controlled path to the desired gas state and pressure. Missing a transition silently omits its finite entropy even if the heat capacities in both adjacent phases were measured perfectly.
Below the lowest measured temperature extrapolate using a physically justified low-temperature model and add any residual ground-state entropy consistent with the sample preparation. A unique ordered ground state has zero thermodynamic entropy in the ideal third-law limit. A crystal retaining configurational disorder on laboratory timescales can carry residual entropy associated with its accessible arrangements. Unknown isotopic composition or low-lying internal levels likewise change the absolute comparison. A discrepancy between a calorimetric integral and a monatomic ideal expression should first be traced to these explicit reference states and model assumptions.
Cambridge Statistical Physics · foundational postulates, entropy and statistical ensembles
Fließbach, Statistische Physik · statistical foundations, the ideal gas and entropy
Ensembles, thermodynamic potentials and measurable curvature
Statistical mechanics from microscopic counting to material response
A sample sealed inside an insulated container, a sample weakly coupled to a temperature bath and a surface exchanging particles with a reservoir need different probability laws. Derive the three laws from one composite-system count. Then use the curvature of their generating functions to predict noise, response and parameter uncertainty without assuming that microscopic quantities take their mean values in every run.
Expand the reservoir count rather than postulating a probability
Let a small system occupy a microstate \(i\) of energy \(E_i\) while a weakly coupled reservoir holds the remainder of a fixed total energy. The composite system is isolated. Conditional on \(i\), the number of compatible reservoir states is \(\Omega_R(E_{\rm total}-E_i)\). This weight is the same for degenerate system microstates of equal energy. For a macroscopic reservoir, expand its entropy about an appropriate reference energy. The first derivative is \(1/T\), and its second derivative at fixed other extensive parameters is \(-1/(T^2 C_R)\).
Exponentiating and taking the limit where the quadratic and further corrections are negligible yields \(p_i=e^{-\beta E_i}/Z\), \(\beta=1/(k_BT)\), and \(Z=\sum_i e^{-\beta E_i}\). A constant shift in all system energies multiplies both numerator and partition sum by the same factor. Relative probabilities are therefore independent of energy-zero convention. If a calculation sums over energy values rather than microstates, insert their degeneracies explicitly. These two equivalent ways of counting should never be applied simultaneously.
The derivation assumes weak coupling so that assigning energies separately makes sense, and a reservoir whose temperature does not respond significantly to typical exchanges. A small heat capacity in the bath can suppress sample fluctuations even at the same mean temperature. The relevant test concerns excursions explored by the sample, not simply whether the bath contains more particles. Near a transition or in an engineered small reservoir a canonical distribution may need a measurable correction.
Compare sample-energy fluctuations for finite and effectively infinite heat reservoirs
Differentiate the normalisation to obtain energy and its variance
Differentiate \(\log Z\) with respect to \(\beta\) at fixed energy levels. The first derivative yields minus mean energy. A second derivative gives the mean square minus the squared mean. Changing differentiation from \(\beta\) to temperature gives the equilibrium heat capacity:
This proves nonnegative canonical heat capacity for a temperature-independent Hamiltonian. If the model Hamiltonian contains parameters that themselves vary with temperature after other degrees of freedom have been eliminated, the derivative also acts on those parameters. Inserting measured effective levels into the simple identity without that dependence need not reproduce the calorimetric capacity.
A two-level system has energies zero and \(\Delta\), with upper probability \(p=1/(1+e^{\beta\Delta})\) for equal degeneracies. Its variance is \(\Delta^2p(1-p)\) and \(C/k_B=(\beta\Delta)^2p(1-p)\). At \(\Delta/k_BT=2\), \(p=0.1192\) and \(C=0.420k_B\). In one thousand independent copies the expected upper count is 119 and its standard deviation about 10.2. An actual count of 130 is unremarkable. An experiment resolving only one sample at one time cannot identify the variance from its energy alone.
Higher derivatives of \(\log Z\) generate cumulants. A Gaussian approximation discards cumulants beyond the second. For a small two-level population near low occupancy the histogram is skewed and the approximation can yield artificial negative occupancies. An exactly binomial count or a direct discrete partition sum handles this elementary case without assuming that the central-limit regime has arrived. Sample-to-sample correlations can also prevent variances from scaling as the sum of independent variances.
Why the Helmholtz free energy knows the same equilibrium as entropy
Group the canonical sum by energy. A shell with entropy \(S(E)\) has weight proportional to \(e^{S(E)/k_B-\beta E}\). For a macroscopic system with a dominant smooth interior maximum this exponent is stationary at \((\partial S/\partial E)_{V,N}=1/T\). The leading free energy \(-k_BT\log Z\) is then the minimum of \(E-TS(E)\); the width of the peak gives the energy fluctuations. The exact finite-system integral is a Laplace transform. Replacing it by its stationary contribution is an approximation, often called the Legendre-transform limit.
An equivalent variational argument works for finite discrete states without a saddle point. Choose arbitrary trial probabilities \(q_i\), their mean energy \(U[q]\) and Shannon entropy \(S[q]=-k_B\sum_iq_i\log q_i\). Subtract the canonical free energy and insert the canonical weights. Algebra gives
The final inequality follows from convexity of the logarithmic divergence and becomes an equality only for the canonical distribution on the permitted support. For an isolated system one instead maximises entropy subject to its prepared energy constraint. Helmholtz free-energy minimisation at fixed temperature is thus a consequence of reservoir exchange and normalisation, not an additional force sending every microstate to the lowest energy. At finite temperature high-multiplicity excited states can dominate the equilibrium probability.
Now include volume work in the fundamental differential \(dU=TdS-pdV+\mu dN\). Product differentiation gives \(dF=-SdT-pdV+\mu dN\), \(dG=-SdT+Vdp+\mu dN\), and \(d\Omega=-SdT-pdV-Nd\mu\) for \(\Omega=F-\mu N\). A potential's natural variables specify which gradient directly returns an observable. From \(F(T,V,N)\) one obtains
their cross derivatives agree if the potential is smooth. At phase boundaries use phase branches and appropriate coexistence conditions instead of differentiating through a kink as if it were smooth.
Let the reservoir exchange particles as well as energy
With both exchanges allowed, expand reservoir entropy in \(E\) and \(N\). Its differential includes \(-\mu_R dN_R/T\). A system microstate with \(E,N\) therefore acquires weight \(e^{-\beta(E-\mu N)}\). Summing normalises the grand canonical distribution. At fixed temperature and volume, derivatives with respect to \(\beta\mu\) give mean particle number and number variance. In a homogeneous equilibrium region with suitable thermodynamic limit, \(\Omega=-pV\).
A surface of \(M\) independent adsorption sites, each empty or holding one particle with binding energy \(-\epsilon\), has \(\Xi=[1+e^{\beta(\mu+\epsilon)}]^M\). Its occupancy fraction is logistic and its variance \(Mf(1-f)\). At \(M=400\) and half coverage, the mean occupancy is 200 with standard deviation 10. The slope with respect to chemical potential is largest there. Near saturation, a small number variance and an apparently quiet detector indicate poor sensitivity to further increases of \(\mu\), not necessarily high precision in inferring \(\mu\).
Compare the adsorption response slope with the independently predicted number variance
The grand formula links number fluctuations to isothermal compressibility in a bulk one-component fluid. Write \(n=\langle N\rangle/V\) and use \(dp=n\,d\mu\) at constant \(T\). Then \((\partial n/\partial\mu)_T=n^2\kappa_T\) and \(\operatorname{var}N/\langle N\rangle=n k_BT\kappa_T\). A dilute classical ideal gas gives unity. These fluctuations refer to a region exchanging particles. If an observer counts all particles of a strictly sealed closed box, the number variance is zero even though its compressibility is not. The boundary condition of the measurement is part of the formula.
Infer a temperature and explain when it is identifiable
The logarithm of a measured population ratio is linear in \(\beta\) for nondegenerate known levels. With enough independent samples one can estimate temperature either from this ratio or by matching measured energy to its canonical expectation. If all observed states have nearly the same energy, changing \(\beta\) barely changes their probabilities. The available temperature information then becomes small, regardless of detector precision.
For independent canonical draws, differentiating a single log probability gives
Its squared expectation is energy variance, the Fisher information per observation about inverse temperature. At \(n_s\) independent draws information adds. Equality between response and noise reappears as a statistical bound on temperature estimation. A long record with correlation time comparable to its length may contain few independent draws despite a large sample count. Recording more frequently without extending the observation window need not improve a temperature estimate.
A pressure reservoir selects enthalpy-weighted volume fluctuations
An isothermal piston in contact with a pressure reservoir supplies a fourth ensemble closely related to the first three. A configuration at volume \(V\) costs external work \(p_{\rm ext}V\) in addition to its microscopic system energy. At fixed \(T,N,p_{\rm ext}\), integrate the canonical configurational partition over possible piston positions with weighting \(e^{-\beta p_{\rm ext}V}\). For an ideal gas in a cylinder of fixed cross-sectional area the piston coordinate is proportional to \(V\), so its geometric measure is a constant times \(dV\). Mechanical kinetic factors independent of \(V\) cancel from its normalised distribution.
For \(Z_N(V)\propto V^N\), the probability density for volume is proportional to \(V^N e^{-\beta p_{\rm ext}V}\) on the positive real axis. Normalisation uses \(\int_0^\infty V^Ne^{-aV}dV=N!/a^{N+1}\). The maximum, mean and variance are
The finite-\(N\) offset between mode and mean comes from the skewed piston-volume distribution. The most likely volume obeys the usual ideal gas law evaluated using \(N\), while the exact mean differs in this simple piston model. At \(N=99\) the difference is about one percent and relative volume fluctuations are ten percent. At thermodynamic sizes the fractional difference vanishes. When calibrating nanoscale pressure from a histogram, a mean, a peak and a mean of reciprocal volume should therefore not be treated as interchangeable.
Check the force equilibrium directly. The instantaneous gas pressure conditional on \(V\) is \(Nk_BT/V\). The gamma distribution has \(\langle1/V\rangle=\beta p_{\rm ext}/N\), so its mean gas pressure equals the imposed external pressure exactly. Substituting the mean volume into the nonlinear pressure formula instead gives \(N p_{\rm ext}/(N+1)\). This calculation illustrates a general statistical rule: mechanical balance concerns the mean actual force, not necessarily that force evaluated at the mean position.
If the piston lies horizontally and dry static friction is appreciable, configurations can remain stuck with nonzero force imbalance. A distribution fitted to the equilibrium piston formula would then return apparent biases in pressure or particle number. Reverse the pressure change and vary waiting times to expose hysteresis, or remove the mechanical sticking before interpreting volume fluctuations as an equilibrium susceptibility.
A matrix of fluctuations controls coupled responses
Many experiments permit exchange of more than one extensive quantity. Write a general ensemble with natural control parameters \(\theta_a\) and weights proportional to \(e^{\sum_a\theta_a X_a}\), with a fixed set of microscopic state values \(X_a\). The first derivatives of the log normalisation give their means and the second derivatives give the full covariance matrix. Off-diagonal entries describe coupled responses. For the grand canonical ensemble choose \(\theta_1=-\beta\), \(\theta_2=\beta\mu\), \(X_1=E\), \(X_2=N\). One must keep the other natural parameter fixed while taking a partial derivative in this form.
A covariance matrix is positive semidefinite because the variance of any linear combination of the \(X_a\) is nonnegative. Consequently \({\rm var}(E){\rm var}(N)\geq{\rm cov}(E,N)^2\). A measured matrix violating this inequality cannot describe these two observables on the same equilibrium sample space. Possible causes include mixing variances and covariances from different sample preparations, subtracting a poorly estimated instrumental background or an inconsistent energy reference when counting particles.
Suppose a volume exchanges particles each carrying a fixed energy \(e_0\) plus other thermal energy. If the system energy reference shifts by \(a\) per particle, new energy is
Its covariance with \(N\) changes by \(a\,{\rm var}(N)\), although no physical heat changed. A useful combination for isolating fluctuations uncorrelated with particle transport is \(E-bN\), with \(b={\rm cov}(E,N)/{\rm var}(N)\). Minimising the variance with respect to \(b\) gives residual variance \({\rm var}(E)-{\rm cov}(E,N)^2/{\rm var}(N)\), invariant under this reference shift. In a general nonlinear conditional distribution that residual is a best linear prediction variance, not automatically the exact variance conditional on a fixed integer \(N\).
For a unit-normalised example, suppose energy variance is \(25\epsilon^2\), number variance is 4 and their covariance is \(8\epsilon\). The best linear energy increment per exchanged particle is \(2\epsilon\), and the residual energy variance is \(9\epsilon^2\). Replacing energy by \(E-3\epsilon N\) changes the covariance to \(-4\epsilon\), but recalculating the residual returns the same value. A data-analysis code can use this reference-invariance as a check on both numerical units and susceptibility derivatives.
The same covariance structure controls simultaneous inference. If two state observables are nearly proportional over all sampled configurations, the log-likelihood curvature has a nearly zero eigenvalue. The individual fields conjugate to them are then hard to determine even if one linear combination is tightly constrained. Preparing the system in a region with different accessible states or adding an independent observable can resolve the degeneracy. Increasing the sampling rate on exactly the same narrow manifold cannot create a missing independent direction.
When the maximum-probability replacement loses a phase
The passage from a Laplace transform to a Legendre transform assumes one dominant smooth contribution or handles multiple branches explicitly. Near a first-order transition two energy ranges can have comparable canonical weights. Replacing the energy distribution by a single Gaussian around its mean then produces a state that may be relatively improbable, lying in the trough between two peaks. The finite partition sum remains smooth, but its derivatives can vary rapidly over a narrowing range of temperature.
In a simple two-phase approximation take branch partition contributions proportional to \(e^{-\beta F_1(T)}\) and \(e^{-\beta F_2(T)}\). Their ratio is \(e^{-\beta(F_2-F_1)}\). At coexistence the leading bulk free-energy densities agree. If their entropy densities differ, then a small temperature change produces an extensive branch free-energy difference proportional to volume times that temperature shift. The equal-weight finite-size window therefore narrows inversely with volume in this simplest picture. Interfacial states, boundaries and phase degeneracy can shift detailed crossing locations.
Consider an energy histogram with equal phase probabilities and sharply peaked branch energies differing by total \(\Delta E\). The mixture variance includes \(p(1-p)(\Delta E)^2=(\Delta E)^2/4\) in addition to within-phase fluctuations. As \(\Delta E\) is extensive this gives an extensive heat-capacity peak per particle in a finite coexistence window, much larger than the smooth single-phase contribution. This does not imply an infinite heat capacity throughout an interval of bulk temperature. The peak becomes higher and narrower and encodes latent heat in the thermodynamic limit.
An experimental or simulated time series can undersample one branch when interfacial barriers make switching rare. Estimating the variance from one branch then yields a completely different apparent heat capacity from a record containing a few switches. Compare heating and cooling preparations, identify branch-specific energy distributions and establish a reproducible equilibrium weight ratio before treating the union as a canonical histogram. In a macroscopic sample, calorimetric latent heat often provides a more reliable bulk quantity than a noisy attempt to observe whole-sample switching.
Use one equilibrium histogram to predict a nearby temperature
If a canonical run at inverse temperature \(\beta_0\) samples energies \(E_i\), a nearby expectation at \(\beta_1\) can be expressed as a ratio of weighted averages with factors \(w_i=e^{-(\beta_1-\beta_0)E_i}\). Multiplying numerator and denominator by the same constant allows one to subtract a reference energy to maintain numerical precision. Mathematically the ratio is exact when the original distribution covers every important configuration. Finite data can render an exact identity practically useless outside its overlap window.
For an approximately Gaussian energy histogram of standard deviation \(\sigma_E\), reweighting shifts its influential energy region by roughly \(-(\beta_1-\beta_0)\sigma_E^2\). Expressed in original standard deviations the shift is \(|\beta_1-\beta_0|\sigma_E\). A value of 0.3 stays near the observed centre; a value of five asks for configurations five original widths away. At the latter value a smooth computed curve can be governed almost entirely by one observation at the extreme edge of the histogram.
Inspect the effective weight count \((\sum_i w_i)^2/\sum_iw_i^2\) alongside the raw record length. This statistic does not account for time correlation or prove that missing configurations are irrelevant, but a collapse to a handful of weights is a clear failure of overlap. Simulate or measure directly at a second temperature displaced toward the target and compare its actual histogram with the reweighted prediction. This connects the formal equivalence of ensemble descriptions to a concrete question of measurement coverage and uncertainty.
A finite-spin thermodynamic cycle tests mixed derivatives
Consider independent two-state magnetic moments with energies \(\mp\mu B\) in a prescribed induction \(B\). Ignore interactions and orbital response. Per moment the canonical sum is \(2\cosh x\), \(x=\mu B/(k_BT)\). Its Helmholtz free energy is \(-k_BT\log(2\cosh x)\) and the average magnetic moment is
The entropy follows from \(-\partial F/\partial T\), yielding \(S/k_B=\log(2\cosh x)-x\tanh x\). These component equations define an exactly soluble controlled system in which thermal and magnetic responses are coupled.
Equality of the mixed free-energy derivatives predicts
Both are negative for positive field in this model. Increasing field at fixed temperature aligns spins and reduces their entropy. If the spin system is instead isolated reversibly, its entropy is constant, which requires \(x\) constant away from singular limiting cases. Reducing field then reduces temperature in proportion to field. This is the ideal paramagnetic demagnetisation argument, derived here from the canonical weights rather than an empirical cooling rule.
For an idealised system prepared at 3.0 K and 1.5 T, reducing the field quasistatically to 0.50 T under thermally isolated conditions gives 1.0 K. Its mean alignment fraction stays constant even as the Zeeman gap shrinks. A real specimen includes lattice heat capacity, residual interactions and inevitable heat leakage. If the lattice remains equilibrated with the moments, the total entropy includes both subsystems and the simple proportional temperature drop is modified. If spin–lattice exchange is too slow, a single temperature may fail to describe both during the field ramp.
A numerical test can use a rectangular loop in the \(T,B\) plane. Evaluate the change in \(F\) along one path using the integral of \(-S\,dT-m\,dB\), then return along the other path. At successively finer quadrature the closed integral should approach zero. By contrast heat and magnetic work evaluated separately generally have nonzero loop integrals and cancel only in their appropriate state-function combination. A nonzero free-energy residual that does not shrink under refinement points toward a sign error, an inconsistent field-energy convention or different energy references on the two paths.
Finally use the weak-field limit to estimate experimental sensitivity. There \(m\simeq\mu^2B/(k_BT)\), so a thermometer inferred from magnetisation is sensitive to both the magnetic-field scale and the independent number of active moments. Saturation measurements can calibrate their total number, while a field reversal removes a constant magnetometer offset. A mixed-derivative test based on independently measured calorimetry and magnetisation is more discriminating than fitting a temperature parameter to a single magnetic trace that already assumed the predicted population law.
The spin example also gives a direct thermal-noise measurement of susceptibility. For one moment the variance of its projection is \(\mu^2[1-\tanh^2x]\), and differentiating mean moment with respect to induction gives exactly this variance divided by thermal energy. At \(x=1\), magnetisation is 0.762 of saturation and variance is \(0.420\mu^2\). For a thousand independent moments the total rms fluctuation is about \(20.5\mu\), even though their mean total moment is about \(762\mu\). An instrument averaging over many reversals may see the mean accurately and suppress the variance; replaying the same averaging operation on a simulated equilibrium time series makes the comparison meaningful. A direct susceptibility inferred from a very large field modulation would instead sample the curved magnetisation over a finite interval. Use a small symmetric modulation and verify its amplitude scaling to compare with the local fluctuation slope.
Count the configurations of two finite reservoirs
Change the reservoir size and compare the observed energy histogram with a canonical ensemble at the same mean.
Tutorial · Can a finite bath explain unusually quiet energy data?
A sample has canonical heat capacity \(60k_B\) at the mean temperature. Contact with a small reservoir reduces the measured equilibrium energy variance to three quarters of its canonical value. Approximate both entropies quadratically near their common equilibrium and infer the bath heat capacity. What other measurement could mimic the reduction?
Add the two inverse susceptibilities and check the observation
The joint log probability has curvature \(-[1/C_s+1/C_R]/(k_BT^2)\). Hence the effective variance is \(k_BT^2 C_sC_R/(C_s+C_R)\). Dividing by \(k_BT^2C_s\) and setting the ratio to \(3/4\) gives
The temperature at maximum probability still agrees for bath and sample at leading order. The suppressed fluctuations reflect their shared total-energy constraint.
Finite temporal averaging of a fast energy signal can also suppress measured variance. Vary detector bandwidth and check convergence of the measured area, then repeat with a different independently estimated reservoir capacity. A corrected variance scaling with the harmonic combination supports the finite-bath interpretation. A single reduced number cannot distinguish thermodynamic curvature from the detector response.
Tutorial · Determine a volume response from temperature data
For a fixed amount of a smooth single-phase material near one operating point, the thermal expansion coefficient is \(\alpha\), the isothermal compressibility is \(\kappa_T\) and the volume is \(V\). Derive \(C_p-C_V\) from a Maxwell relation. Evaluate it for \(T=300\) K, molar volume \(1.0\times10^{-5}\) cubic metres, \(\alpha=6.0\times10^{-5}\) per kelvin and \(\kappa_T=1.0\times10^{-11}\) per pascal.
Eliminate the unmeasured mixed entropy derivative
Write \(dS=(C_V/T)dT+(\partial p/\partial T)_VdV\), using the Helmholtz mixed derivative. On the constant-pressure path \(dV=\alpha VdT\). Holding volume fixed in \(dV/V=\alpha dT-\kappa_Tdp\) gives
Therefore \(C_p-C_V=TV\alpha^2/\kappa_T=1.08\) J per mole kelvin. Positive isothermal compressibility and positive temperature imply the difference is nonnegative even for negative expansion coefficient.
Tutorial · Infer two unknowns from occupancy measurements
At two distinct temperatures a set of dilute independent adsorption sites gives coverages 0.20 and 0.60. Why can these two readings fail to identify binding energy if the reservoir chemical potentials are not independently known? Express the unknown combination and suggest an experiment that would determine the binding energy.
Write an equation for each observation before counting parameters
The log odds satisfy
The measured log odds are minus 1.386 and plus 0.405. They determine the value of \(\mu+\epsilon\) in each run multiplied by its known inverse thermal energy. With two unrelated reservoir potentials there are three unknown dimensional quantities and only two equations. Increasing coverage precision cannot resolve that degeneracy.
A separately calibrated reservoir supplies \(\mu(T,p)\) relative to a consistent energy reference. Then several pressures at one temperature verify the model and several temperatures can test a constant binding energy against an additional binding entropy or site degeneracy. A reported equilibrium constant alone can always absorb a reference-state shift; the reference reservoir and site standard state are part of a physically interpretable adsorption energy.
Cambridge Statistical Physics · canonical and grand canonical ensembles
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.
Separate kinetic motion from the configurational count
For a classical monatomic gas at fixed temperature take pair potential \(u(r)\) and total interaction \(\sum_{i<j}u(r_{ij})\). The canonical partition function factors into a Gaussian momentum part and an integral over all allowed particle positions. Divide by \(N!\lambda_T^{3N}\) for indistinguishable particles. In the absence of interactions the configurational integral is \(V^N\). A hard core removes configurations with overlapping particles, while an attractive well increases their equilibrium weights instead of adding geometric space.
Use the Mayer function \(f(r)=e^{-\beta u(r)}-1\). The position-dependent Boltzmann weight is exactly \(\prod_{i<j}[1+f(r_{ij})]\). Expanding the product separates independent particles, terms with one pair bond, and terms involving several bonds. Translation invariance allows each isolated pair integral to be written as \(V\int f(\mathbf r)d^3r\) when boundary corrections are negligible. The logarithm of the configurational partition function retains connected contributions, a crucial step before taking the large-volume limit.
A naive truncation of the full partition function after its first pair term can fail even for small density because there are of order \(N^2\) pairs. The connected expansion organises the intensive free energy, not the sum of all events in a macroscopic gas. Differentiating \(F\) with respect to volume at fixed \(T,N\) gives
It is the smallness of successive density terms that controls the virial prediction. A small accidental value of \(B_2\) does not bound the next coefficient.
Compute excluded volume and attraction as separate contributions
For a spherical hard core of diameter \(\sigma\), \(f=-1\) for \(r<\sigma\), zero otherwise. The second virial coefficient is \(2\pi\sigma^3/3\), four times the physical volume of a sphere of diameter \(\sigma\). The forbidden region for the centre of a second particle has radius \(\sigma\), twice a particle's radius, and each unordered pair is counted once. Treating the excluded volume per particle as merely its physical volume loses both geometric factors.
A square well of depth \(\epsilon>0\) extends from \(\sigma\) to \(\lambda\sigma\). Outside the well the interaction vanishes. Evaluate the shell integrals directly:
The Boyle temperature is the solution \(B_2=0\), namely \(k_BT_B/\epsilon=1/\log[1+1/(\lambda^3-1)]\). At \(T_B\) hard-core and attractive pair contributions cancel in pressure through first order in density. Particles still have nontrivial correlations and excess internal energy. The Boyle point is a pressure cancellation, not a noninteracting gas state. At fixed \(T\) and very low density the absolute pressure correction is small even when \(|B_2|/b\) is large.
For \(\lambda=1.50\) and \(\epsilon/k_B=100\) K, \(T_B\simeq285\) K. At 200 K the ratio \(B_2/b=1-2.375(e^{1/2}-1)=-0.541\). If \(nb=0.030\), the compressibility factor \(Z_p=p/(nk_BT)\) is approximately 0.9838. At \(T=400\) K the ratio becomes 0.325 and the pressure exceeds ideal by about 0.98 percent for the same density. A precise comparison should also estimate \(n^2B_3\), especially when the objective is to infer model parameters from percent-level deviations.
Sweep well range and temperature through the pressure cancellation
An interaction can exchange heat even at the Boyle point
The canonical identity \(U=\partial(\beta F)/\partial\beta\) at fixed volume and particle number gives the leading excess internal energy per particle as \(-k_BT^2n\,dB_2/dT\). For the square well,
This result is negative for an attractive well. Repulsive hard-sphere exclusion instead changes pressure but has no potential energy on any permitted configuration. These contrasting examples show that a pressure deviation alone does not determine an energy deviation without its temperature dependence. Different virial models may pass through the same pressure at one temperature while predicting very different heat capacities.
In the numerical well at 200 K the excess energy per particle equals \(-0.1175\,\epsilon\), or approximately minus \(1.62\times10^{-22}\) J. Compare with the positive translational mean \(3k_BT/2\); the correction is about minus four percent of that kinetic energy. A configuration-based simulation offers a direct independent check: count pairs in the well, assign minus \(\epsilon\) per unordered pair, and average. Counting both neighbours of every pair without halving would double the inferred mean energy.
Thermodynamic consistency supplies another useful cross-check. The identity \((\partial U/\partial V)_T=T(\partial p/\partial T)_V-p\) requires the pressure and energy virial calculations to share the same derivative of \(B_2\). For a hard-sphere gas with temperature-independent core the two sides vanish through this order. For an attraction they do not vanish. If a fitted empirical repulsion diameter depends on temperature, differentiate that dependence as part of the fit and interpret the resulting effective energy with care.
What a pair histogram measures
Choose one particle as origin and count the expected number of other centres in a spherical shell \(4\pi r^2dr\). Define \(g(r)\) by setting this count equal to \(n g(r)4\pi r^2dr\). In the dilute limit a single neighbour at separation \(r\) sees the relative Boltzmann weight \(e^{-\beta u(r)}\), so \(g(r)\to e^{-\beta u(r)}\). A hard core produces an empty inner region, an attractive well a finite elevated shell and large separations approach one. Histograms per unit radius without division by the shell volume grow as \(r^2\) even for an ideal gas.
The leading configurational energy follows by integrating the pair energy weighted by the expected number of neighbours and dividing by two for pair sharing. Similarly, expanding a system uniformly by changing scaled coordinates in the configurational integral gives the virial pressure for a differentiable finite-range pair potential:
The pressure formula includes the radial force, whereas the energy integral includes the potential. Taking the dilute Boltzmann form and integrating by parts returns the second-virial result. For a hard discontinuity ordinary pointwise differentiation of \(u(r)\) is inappropriate. Treat it through contact jump conditions or a limit of a smooth steep interaction. A code that samples a hard-core derivative as zero everywhere it is finite will miss exactly the repulsive momentum transfer it seeks to measure.
An optical or simulated correlation measurement with a finite point spread blurs the exclusion edge and can populate apparent distances below the true diameter. Calibrate spatial resolution and two-particle tracking efficiency, particularly where particle images overlap. In a periodic cube, shells whose radius approaches half the box edge need an appropriate geometric normalisation. Removing the outer shell deficit by an arbitrary normalisation may preserve a pretty asymptote while biasing an integral used for compressibility.
Connect density fluctuations to the integral of the pair structure
For a large observation window in an open homogeneous fluid, total particle-number variance can be calculated in two ways. The diagonal single-particle terms give the mean number. Distinct pairs add the integral of the connected density correlation. Provided correlations decay rapidly enough compared with the window size, one obtains a zero-wavevector structure factor
To leading order \(g-1=f\), so \(S(0)=1-2nB_2\). The compressibility derived by differentiating \(p=nk_BT(1+nB_2)\) is consistent to this order. The factor two relative to the pressure correction arises because pressure contains \(n^2B_2\) before differentiation. A mean pressure near the ideal value therefore need not imply that the full spatial correlation function is nearly flat.
One must specify the counting window. The exactly fixed total number in a sealed simulation box gives zero variance of that total. Measuring number fluctuations in subvolumes or the small-nonzero-wavenumber structure factor can estimate the thermodynamic value, with finite-size corrections. If the correlation length approaches the box size near a transition, extrapolation to zero wavevector using only one or two available modes is poorly conditioned.
An exactly soluble interacting gas as a test of truncation
A one-dimensional gas of hard rods provides a rare opportunity to compare an entire exact equation of state with its virial truncation. Take \(N\) rods of length \(a\) in an interval of length \(L\) with hard end walls. Order them by their left endpoints \(x_1<\cdots<x_N\). The no-overlap constraints become \(x_{j+1}\ge x_j+a\), \(0\le x_1\) and \(x_N+a\le L\). Introduce free coordinates \(y_j=x_j-(j-1)a\). They obey \(0\le y_1\le\cdots\le y_N\le L-Na\). Their configuration volume is consequently \((L-Na)^N/N!\). We have already chosen one ordering sector for indistinguishable rods, so another division by \(N!\) would double-count the symmetry correction.
The momentum integral contributes one thermal wavelength per rod. Differentiating log partition function with respect to length gives the one-dimensional pressure, which has units of force:
In this geometry the second coefficient is \(a\) and successive virial terms are successive powers of the occupied length fraction. At \(na=0.10\) the first two terms give 1.10 rather than the exact 1.111, a one-percent relative pressure error. At \(na=0.40\) they give 1.40 instead of 1.667, a sixteen-percent error. The pressure becomes singular as free length vanishes even though the potential energy of every permitted configuration is zero.
A measurement of the mean internal energy alone would therefore find the same kinetic value as a one-dimensional ideal gas at each temperature and miss the entire excluded-volume pressure. Conversely a pressure fit over a narrow high-density interval can return an effective second coefficient quite unlike its true low-density limit. The exact hard-rod solution makes these two warnings quantitative without relying on a simulation or on a vaguely defined packing parameter.
There is also a contact-force interpretation. An arbitrary ordering gap between neighbouring rods has a broad distribution even if the total free length is strictly fixed. In the large-system limit the probability density for a free gap is exponential with mean \((1-na)/n\). The pressure fixes its inverse scale \(p/(k_BT)\), a one-dimensional illustration of how contact probabilities encode force on a wall. For a finite chain the fixed sum of all gaps correlates them, and their exact marginal distribution has a finite upper bound. A direct histogram of gap sizes is thus an independent test of whether a pressure-inferred excluded length really represents the particle geometry.
Infer a well range and depth from a two-temperature experiment
Suppose the core diameter has been determined from a high-temperature data set, and low-density pressure intercepts determine \(B_2/b=-0.541\) at 200 K and \(B_2/b=0.325\) at 400 K. In the square-well model define \(A=\lambda^3-1\) and \(x=e^{\epsilon/(400k_B)}\). The two observations imply \(A(x^2-1)=1.541\) and \(A(x-1)=0.675\). Divide to obtain
Therefore \(\epsilon/k_B=400\log1.283\simeq99.8\) K, \(A\simeq2.38\), and \(\lambda\simeq1.50\). The algebra retrieves the earlier microscopic model using only two temperatures and a separately known core size.
The ratio calculation also reveals an ill-conditioned regime. At temperatures both high relative to the well depth, \(x\) differs from one by a small amount. A modest relative uncertainty in the measured excess over the hard-core baseline can then dominate \(x-1\), and range and depth will move in opposite directions in a fit. Put the estimated model back into both original pressure values, then predict a third intermediate temperature without refitting. A correlated misestimate of the core diameter shifts both ratios and can survive the first two consistency tests.
Consider an alternative attraction with a smooth tail but the same two measured virial coefficients. Since each coefficient is a weighted integral over all separations, agreement at two temperatures imposes only two scalar constraints on an entire function of distance. Measuring the dilute \(g(r)\) supplies local information and can distinguish a broad shallow well from a narrow deep one. A third highly precise pressure reading cannot guarantee a unique functional form in the absence of a justified parametrisation, though it can falsify a particular two-parameter guess.
When estimating the pressure slope from experiment, do not fit \(Z_p\) at a single density as if the ideal intercept were measured there. Convert density units consistently, include the uncertainty in \(n\) entering both axes, fit several low-density points and test sensitivity to a quadratic term. If the inferred low-density intercept differs from one, check absolute pressure and temperature calibration before interpreting an empirical nonzero intercept as an interaction. No finite pair potential with a conventional dilute classical limit should create a constant deviation from ideality at zero density.
Use reciprocal-space scattering to test density fluctuations
A weak coherent probe scattered elastically by identical particles measures a momentum-transfer dependent structure factor. For positions \(\mathbf r_j\), define \(\rho_{\mathbf q}=\sum_j e^{-i\mathbf q\cdot\mathbf r_j}\). For nonzero \(\mathbf q\) in a uniform sample the dimensionless static factor is \(S(q)=\langle|\rho_{\mathbf q}|^2\rangle/N\), after subtracting coherent mean components where required. Expanding the absolute square gives \(N\) self terms and pair terms. Isotropy then connects the measured angular spectrum to the radial correlation via
At large \(q\) the oscillatory factor tends to cancel smooth pair contributions, approaching the self term for suitable fluids. At very small \(q\) the factor tends to one, giving the compressibility sum rule stated earlier. An experiment rarely measures exactly \(q=0\) because the incident beam itself occupies that direction. Extrapolation from small but finite angles is required. A correlation extending farther in real space produces structure at smaller \(q\), so insufficient low-angle coverage is equivalent to limited knowledge of long separations.
For hard spheres at leading density order, \(g-1=-1\) inside the core and zero outside. Integrate the sine kernel over that sphere to obtain a pair suppression proportional to \([\sin(q\sigma)-q\sigma\cos(q\sigma)]/(q\sigma)^3\). Its limit is one third before multiplication by the geometric coefficient. At \(q=0\) the correction is \(-4\pi n\sigma^3/3=-2nB_2\), exactly the pressure derivative prediction. At finite angle the correction oscillates even though the pair potential contains no oscillatory part. Interpreting every peak in an angular spectrum as a separate preferred particle spacing would overinterpret a Fourier transform.
Actual measured intensity also contains a one-particle form factor, detector background, finite beam shape and instrumental angular response. Determine the form factor in an independently diluted reference, then divide only in bands where it is sufficiently far from zero. Corrected \(S(q)\) should approach one at sufficiently large accessible \(q\) for a simple fluid model. A pressure-based low-\(q\) estimate and a independently estimated real-space core radius give two anchors on the scattering normalisation. Agreement across all three measurements is more discriminating than an arbitrary smooth normalisation of a single spectrum.
Separating exchange from interaction in a dilute virial measurement
An observed second virial correction is not always purely the configuration-space Mayer integral. Even an ideal quantum gas has exchange corrections when the thermal wavelength is appreciable. Expand the fugacity series of an ideal three-dimensional gas at small fugacity. With internal degeneracy one,
where the upper signs are for bosons. Eliminate \(z\) to second order to find
A Bose gas has a negative pressure correction and a Fermi gas positive at fixed density even without a material pair potential.
The relative importance scales as \(n\lambda_T^3\), growing on cooling and for lighter particles. This can be distinguished from a hard-sphere core whose classical second coefficient is temperature independent. A real weakly interacting quantum gas can have both effects, and a full quantum virial coefficient may require scattering phase shifts or bound-state information. A classical configuration integral with an added exchange term is at best an explicitly justified limit, not a universally accurate combination.
Predict a Joule expansion from the measured virial curve
An independently calibrated expansion gives an energy-based test of the low-density pressure law. Suppose an insulated vessel of gas expands freely into a second evacuated chamber. No external work or heat is exchanged, so the total internal energy is constant. For a general single-component simple fluid write \(dU=C_VdT+[T(\partial p/\partial T)_V-p]dV\). This identity follows from the Helmholtz mixed derivative and is testable even if detailed pair potentials are inaccessible. Insert the leading virial pressure at fixed particle number to connect temperature change directly with \(B_2'(T)\).
The excess energy per particle in this approximation is \(-k_BT^2nB_2'(T)\). For weak nonideality use the ideal monatomic per-particle heat capacity \(3k_B/2\) in the leading temperature correction and evaluate \(B_2'\) at the initial temperature. At fixed energy this gives
An attractive well with \(B_2'>0\) cools on expansion: fewer attractive neighbours raise potential energy, reducing the kinetic contribution. Pure hard-core exclusion has \(B_2'=0\) and does not change internal energy at fixed temperature in this model.
In the earlier square-well example the initial excess energy at 200 K and \(n_ib=0.030\) is approximately minus \(11.75k_B\) kelvin per particle. Doubling the available volume at nearly unchanged temperature halves that excess magnitude. The approximate increase in configurational energy is \(5.88k_B\) kelvin per particle, implying a translational temperature drop near 3.92 K. A fuller calculation solves the constant-energy equation with the final temperature inside the well Boltzmann factor; the difference between that and the linear estimate is a measure of the size of the correction itself.
Distinguish this experiment from throttling through a steady porous restriction, where enthalpy rather than internal energy is approximately conserved under idealised insulated flow conditions. A real-gas Joule–Thomson coefficient depends also on thermal expansion and molar volume. Pressure and density units can look almost identical in the two calculations, but the device boundary and the work term differ. Logging the direction of mass transfer and whether the total confined particle number remains fixed prevents a common misidentification.
Repeat the free expansion at several initial densities while controlling chamber heat capacity. A temperature change proportional to the density difference supports the leading pair correction; a constant offset suggests a thermometer or wall heat effect. An accidentally zero pressure deviation at the Boyle temperature need not make the expansion temperature change vanish, because the temperature derivative of the virial coefficient remains finite there. Jointly observing near-ideal pressure and measurable cooling is exactly the distinction between a function crossing zero and its derivative crossing zero.
A useful uncertainty estimate comes directly from the linear expansion thermometer. In the illustrated twofold expansion the roughly four-kelvin temperature shift scales with the initial density and with the temperature derivative of the virial coefficient. If both wall thermometers share a common zero offset, an initial-minus-final temperature difference largely cancels it, but a drifting temperature scale can remain. Use a control expansion of a gas well represented as ideal under the same laboratory conditions; an apparent cooling there bounds residual wall and valve effects. Independently reversing the gas transfer between two matched bulbs changes wall-specific artefacts while retaining the expected sign for true free expansion. Quantitative agreement should involve the gas energy change plus heat transferred to thermometer mounts and vessel walls, not merely two indicated peak temperatures.
Recover a virial coefficient from a pair interaction
Vary the range and temperature of an attractive interaction. Identify where its attractive and excluded-volume contributions cancel.
Tutorial · Determine an effective diameter from high-temperature pressure
A gas at high enough temperature for its attraction to be negligible is dilute. A fit of \(Z_p-1\) versus particle density gives a slope \(1.00\times10^{-28}\) cubic metres. Infer the hard-sphere diameter. A student instead interprets that slope as the volume of one sphere. Quantify the error.
Apply the pair geometry and inspect the fit range
Set the slope equal to \(2\pi\sigma^3/3\), giving \(\sigma=3.63\times10^{-10}\) m. Using the physical sphere volume \(\pi\sigma^3/6\) instead makes the diameter too large by \(4^{1/3}=1.587\), giving 0.576 nm rather than 0.363 nm. Check the fit extrapolated toward zero density and examine curvature as the maximum included density is reduced. A small slope uncertainty based on a linear regression does not include a systematic neglected third virial term.
Tutorial · Use energy to break an attractive-potential degeneracy
At one temperature two square wells with the same core yield the same negative \(B_2\), one deep and narrow, one shallow and broad. Show how an independent calorimetric energy measurement can distinguish them and specify a limiting regime in which the additional measurement becomes weak.
Identify two different combinations of range and depth
At fixed temperature the pressure supplies \((\lambda^3-1)(e^x-1)\), with \(x=\beta\epsilon\). The excess energy divided by \(-nbk_BT\) instead supplies \((\lambda^3-1)x e^x\). Their ratio is \(x/(1-e^{-x})\), a monotone function of positive \(x\). With a known core and sufficiently accurate data it determines \(x\), then the original pressure combination determines range. At \(x\ll1\) the ratio approaches \(1+x/2\); its excess above one becomes small compared with calibration noise. Several temperatures can then be more informative than one highly uncertain difference.
Tutorial · Design an independent histogram check of pressure and energy
A dilute well fluid has measured \(g=0\) in the core, \(g=1.65\) across its attractive shell and \(g=1\) outside. Take \(\lambda=1.5\), \(nb=0.03\) and \(T=200\) K. Infer approximate well depth and mean neighbours in the shell. Compare the resulting potential energy with the thermodynamic prediction.
Integrate the actual shell volume and count unordered pairs
The dilute relation gives
The shell volume is \(2b(\lambda^3-1)\), giving mean shell neighbours per particle \(0.03(2)(2.375)(1.65)=0.235\). Dividing by two gives mean potential energy \(-0.1176\epsilon\) per particle, matching the derivative calculation. Using an unnormalised radial pair histogram or counting the same bond twice would spoil this agreement.
Now repeat at higher density. A measured effective potential \(-k_BT\log g\) is then a potential of mean force containing the effect of other neighbours. Inserting it into the original low-density two-body virial integral as if it were the bare pair potential double-counts many-body correlations. The direct energy integral using a known actual pair potential and the measured full \(g\) remains appropriate for a pairwise-additive fluid.
Cambridge Statistical Physics · interacting classical gases and cluster expansion
Rotational and vibrational populations in a molecular gas
Statistical mechanics from microscopic counting to material response
A pressure thermometer and a calorimeter do not count molecular degrees of freedom in the same way. A dilute diatomic gas can retain nearly ideal pressure while its heat capacity changes appreciably as discrete internal levels become populated. Build the molecular partition function, derive the rotor and oscillator contributions, and infer temperatures from line populations without treating spectral intensity as a direct state count.
When a molecule's partition function factorises
Assume a dilute gas of stable diatomic molecules with weak interparticle interactions. Approximate one molecule's Hamiltonian by independent translational, rotational, vibrational and electronic parts. This requires a bond sufficiently stiff that rotation does not greatly alter vibrational energy and a temperature well below electronic excitations or dissociation when the electronic factor is treated as constant. If energies add and allowed states form a product, Boltzmann factors multiply. Thus \(q=q_{\rm tr}q_{\rm rot}q_{\rm vib}q_{\rm el}\), \(Z_N\simeq q^N/N!\) in the dilute classical translational regime. The logarithm converts this product into additive free energies, energies and heat capacities.
The translational factor \(V/\lambda_T^3\) provides the volume derivative and hence ideal pressure \(Nk_BT/V\). A volume-independent internal factor changes neither that derivative nor the associated translational equation of state. It does change entropy, chemical potential and calorimetry. The molar heat capacities satisfy \(C_p-C_V=R\) for a fixed-composition ideal gas, even when both vary strongly with temperature. Dissociation, chemical equilibration or significant intermolecular interactions can change the conclusion for the measured sample.
One danger is double-counting states. Angular momentum orientations belong to rotational degeneracy, oscillator quanta to vibration, electronic spin and nuclear exchange symmetry may constrain one another. A constant electronic degeneracy contributes an additive entropy \(Nk_B\log g\) but no internal energy or heat capacity at fixed level energies. A large heat capacity is evidence for energetically separated states becoming populated, not just for a large number of exactly degenerate states.
Derive the quantum rigid-rotor contribution
For a molecule of moment of inertia \(I\) about its centre of mass, rotational Hamiltonian is \(\hat L^2/(2I)\). Angular momentum eigenvalues are \(\hbar^2J(J+1)\), with \(2J+1\) projections at fixed \(J=0,1,\ldots\). Define rotational temperature \(\theta_r=\hbar^2/(2Ik_B)\). For distinguishable nuclei and a common nuclear spin factor omitted, the rotational sum and populations are
At high temperature the populated range contains many adjacent \(J\) values. Replacing the sum with an integral and substituting \(u=J(J+1)\) gives
Hence \(U_r\simeq Nk_BT\), \(C_{V,r}\simeq Nk_B\), the classical result for two independent rotational kinetic energies of a linear object. At low temperature only \(J=0\) and \(J=1\) matter. Their degeneracies and gap \(2k_B\theta_r\) give \(q_r\simeq1+3e^{-2\theta_r/T}\) and an exponentially vanishing heat capacity. Keeping the degeneracy three is essential for both its magnitude and the temperature of its turn-on.
For an illustrative heteronuclear rotor with \(\theta_r=85\) K, direct summation at 20 K gives \(q_r=1.00061\) and \(C_{V,r}=0.0440k_B\) per molecule. At 90 K the corresponding values are 1.471 and 1.063. At 300 K the heat capacity is 1.002. A small overshoot above the classical rotational value is possible during the crossover. A model that simply switches from zero to one classical degree contribution at \(T=\theta_r\) misses the entire smooth population redistribution and cannot predict line ratios.
The most populated \(J\) need not be zero, despite increasing energies, because the projection multiplicity increases with \(J\). Viewing the numerator as a smooth function of \(J\) gives \(J_{\rm peak}\simeq[\sqrt{2T/\theta_r}-1]/2\), to be checked against neighbouring integer values. The estimate is unreliable if it predicts only one or two populated levels. Computing a short discrete sum costs little and reveals its own truncation error through the final omitted weights.
Derive oscillator energy and heat capacity from a geometric series
Near its bond-length minimum approximate the interaction by a spring. With reduced mass \(m_r\) and angular vibration frequency \(\omega_v\), quantum energies are \(E_n=\hbar\omega_v(n+1/2)\). Define \(\theta_v=\hbar\omega_v/k_B\). Summing the resulting geometric series and differentiating gives
The zero-point term contributes energy but no heat capacity at fixed frequency. For \(x\ll1\) the heat capacity approaches \(k_B\) per independent vibrational mode, comprising kinetic and potential contributions. For \(x\gg1\) excitation is too costly and the heat capacity behaves as \(k_Bx^2e^{-x}\). A molecule can still vibrate quantum mechanically in its ground state while contributing virtually no vibrational heat capacity. A calorimeter measures sensitivity of mean energy to temperature and need not see the ground-state motion.
Take \(\theta_v=3000\) K. At \(T=300\) K the vibrational contribution is only \(0.00454k_B\), while at 1200 K it reaches \(0.609k_B\). Combining with the earlier rotor gives molar \(C_V\) approximately \(2.507R\) at 300 K and \(3.109R\) at 1200 K, assuming stable composition and frozen electronic structure. For acoustic measurements the ideal adiabatic ratio \(\gamma=(C_V+R)/C_V\) then decreases from about 1.399 to 1.322. An acoustic drive faster than vibrational relaxation can measure a frequency-dependent effective ratio because internal populations fail to remain equilibrated through a compression cycle.
Compare this single oscillator with the frequency distribution in the lattice heat-capacity plot
Nuclear exchange and the symmetry number
For a homonuclear molecule, rotating its classical orientation by half a turn end for end does not create a second distinct arrangement. In a high-temperature rotational count a symmetry number two therefore divides the distinguishable-nuclei rotor partition function once the compatible spin states are accounted for. Since this factor is constant with temperature it shifts entropy and chemical potential, but not the classical rotational energy or heat capacity. At low temperature it is important to treat actual quantum parity, not divide every level by two.
A homonuclear diatomic rotational wavefunction acquires a factor \((-1)^J\) under exchange of nuclei. The complete state also includes nuclear spin, electronic and vibrational parts. For ordinary molecular hydrogen in its electronic and vibrational ground state the protons are spin-half fermions. Antisymmetry pairs even \(J\) with the single antisymmetric spin singlet and odd \(J\) with the three symmetric triplet spin states. In true spin-conversion equilibrium the rotor sum uses weights one or three in addition to \(2J+1\). At temperatures large compared with rotational spacing, even and odd \(J\) sectors have nearly equal rotational sums and the equilibrium odd-to-even population ratio approaches three.
Conversion between spin species can be slow. A rapidly cooled sample may preserve its prepared fractions rather than attain spin equilibrium. Then compute separate parity-restricted partition functions for fixed species numbers, and average their thermal observables with the frozen proportions. Allowing the total odd fraction to relax yields a different heat capacity, including the energy liberated by conversion. Two experiments on chemically identical hydrogen can consequently report different heating curves because their preparation constrains different internal sectors.
Use intensities only after accounting for the instrument
An absorption line originating from level \(J\) has a strength depending on more than its population. Transition moment, polarisation, transition frequency, stimulated emission correction, instrument response and path length can all enter. Suppose line strengths and detector factors have been divided out to yield quantities proportional to level populations \(N_J\). Then a straight-line fit of \(\log[N_J/(2J+1)]\) against \(J(J+1)\) has slope \(-\theta_r/T\) for the simple heteronuclear model. Its intercept depends on total particle number, partition function and residual instrumental gain.
For \(\theta_r=10\) K, a measured corrected ratio \(N_2/N_0=2.00\) implies \(2=5e^{-60/T}\) and \(T=65.5\) K. Omitting the factor of five would make an upper population larger than the lower one appear incompatible with positive temperature. The inferred temperature assumes the rotational populations are equilibrated at one temperature; an optically pumped or rapidly expanding sample may have different rotational and translational distributions.
A plot over several \(J\) values can test whether one slope is adequate. Curvature may come from centrifugal distortion, line saturation, unresolved overlap, multiple temperatures or a wrong nuclear-spin degeneracy. Alternating residuals for even and odd \(J\) indicate a different physical problem from a smooth quadratic residual against \(J(J+1)\). Repeat with lower optical depth to isolate saturation, and use independently measured transition frequencies to fix level energies before fitting populations.
Recover molecular translation separately from internal structure
In a low-density molecular beam, the translational speed distribution is often easier to measure than the internal populations. For an equilibrium gas leaving a small opening into vacuum, the molecular flux is weighted by the normal velocity. Fast molecules reach and cross the aperture more frequently, so the distribution of speeds in the beam differs from the Maxwell speed distribution inside the reservoir. The mean translational energy of molecules in an effusive beam is \(2k_BT\), whereas the bulk mean is \(3k_BT/2\). This selectivity occurs even when rotational and vibrational populations remain canonical.
To derive the difference, start with the bulk velocity density proportional to \(e^{-mv^2/(2k_BT)}\). Write the outward normal speed as \(v\cos\theta\), integrate over the outward hemisphere and include the velocity-space shell factor \(v^2dv\). The resulting beam speed density is proportional to \(v^3e^{-mv^2/(2k_BT)}dv\), while the original bulk speed density has \(v^2\). Taking a ratio of Gaussian moments gives the stated energy. Comparing a beam energy to the wrong bulk prefactor would yield a temperature one third too high.
If the aperture is small compared with the mean free path and transition-detection efficiency is independent of speed after correction, internal state probabilities factor out of this flux weighting. A rotational population ratio can then report the reservoir temperature while the observed mean translational energy follows the effusive weighting. In a dense nozzle undergoing many collisions, expansion can cool translation and rotation differently. An inferred rotational and translational temperature disagreement is therefore not automatically bad calibration; first identify whether the beam is effusive, collisionally expanding or selectively detected.
As a bench example, a beam mean translational energy of 0.060 eV corresponds to approximately 348 K under effusion, using \(k_B=8.6173\times10^{-5}\) eV/K. Treating it as the bulk mean would give about 464 K. Compare against a population ratio from two corrected lines spanning \(80k_B\) kelvin and equal degeneracies. At the two temperatures the predicted ratios are about 0.795 and 0.842. Resolving this difference demands a relative line calibration appreciably better than six percent even though the two erroneous temperature interpretations differ by more than one hundred kelvin.
An isotope mixture reveals which spectral changes affect entropy
Compare two isotopic forms with the same approximate electronic potential surface. Bond force constant and equilibrium bond length then remain nearly unchanged while reduced nuclear mass changes. The harmonic vibrational frequency scales as \(m_r^{-1/2}\), while the rotational temperature scales as \(m_r^{-1}\). Consequently vibration and rotation respond differently to the same isotope substitution. Their shifts can jointly test whether two sets of spectral features genuinely belong to the same molecular carrier.
Suppose the reduced mass rises by a factor 1.21. A vibrational line at 2000 inverse centimetres moves approximately to 1818 inverse centimetres, and a rotational constant initially 2.00 inverse centimetres moves to 1.65 inverse centimetres. The vibrational characteristic temperature follows from \(hc\widetilde\nu/k_B\), about 1.4388 K per inverse centimetre. At room temperature the two vibrational gaps still greatly exceed thermal energy, so the vibrational heat capacity can remain small even though the spectral isotope shift is easy to resolve.
The zero-point energies nevertheless differ. For this vibrational example their difference is \(hc(2000-1818)/2\) per molecule, corresponding to about 131 kelvin in thermal units or 1.09 kJ/mol. Such offsets cancel within a fixed-species heat-capacity derivative but can matter to comparisons of chemical equilibrium or isotopic exchange. An analysis that discards all constant energy offsets independently in each molecular species can corrupt a reaction free energy unless it restores a consistent reference across reactants and products.
For a thermal entropy contribution from this one oscillator use \(S_v=k_B[(n+1)\log(n+1)-n\log n]\) with \(n=1/(e^x-1)\). This follows by inserting \(U_v\) and \(\log q_v\) into \(S=k_B\log q+U/T\); the zero-point contributions cancel exactly. Thus the measured isotope shift can change vibrational entropy via occupancy even while the zero-point offset itself contributes no entropy. It is helpful to evaluate all three quantities—energy difference, entropy difference and heat-capacity difference—rather than presume that a line shift must have the same thermodynamic role in each.
An internal relaxation time appears in frequency-dependent calorimetry
The equilibrium partition function assumes internal mode populations re-equilibrate on times short compared with the measurement. Model one slower internal degree by an internal energy \(U_s\) relaxing toward its equilibrium value at the instantaneous translational temperature \(T\), with \(\dot U_s=[U_{s,\rm eq}(T)-U_s]/\tau_s\). For a small oscillation around \(T_0\),
In the \(e^{-i\omega t}\) convention, the complex internal heat capacity and the total measured capacity including an instantaneous background \(C_f\) are
At low frequency the capacity is \(C_f+C_s\). At high frequency the slow internal energy cannot follow and the apparent in-phase capacity approaches \(C_f\). Its out-of-phase component peaks at \(\omega\tau_s=1\), where real and imaginary increments equal \(C_s/2\). The structure resembles dielectric relaxation because both arise from one relaxing state variable driven by a controlled sinusoid. It follows here from an explicit energy-exchange model and its assumptions.
Take a molar fast contribution \(2.50R\), slow equilibrium contribution \(0.60R\) and relaxation time 2 ms. The full equilibrium value is \(3.10R\). At about 79.6 Hz the real measured capacity is \(2.80R\) and the imaginary increment magnitude \(0.30R\). A heat pulse much shorter than two milliseconds initially raises the temperature as if the capacity were close to \(2.50R\), then energy flows into the internal mode. A slow calorimetric ramp can be perfectly consistent with a faster acoustic measurement that infers a smaller active capacity.
A sample container connected to a thermal bath produces its own complex temperature response even if molecular populations are always equilibrated. Disentangle those effects by calibrating the empty cell or an inert reference gas across the same frequency range, changing pressure to alter collision-mediated internal-relaxation time, and checking the predicted equilibrium limit from independently known level spacings. A mechanical resonance in the apparatus can be separated by varying cell geometry while keeping gas composition fixed. Fitting one imaginary peak to a molecular relaxation model without these controls does not uniquely determine the microscopic relaxation time.
How a line ratio and a calorimeter constrain degeneracies differently
Two groups report a low-energy excited manifold with dimensionless population ratio \(r=N_1/N_0\) at two temperatures. A single ratio determines only \(r=(g_1/g_0)e^{-\Delta/(k_BT)}\), so changing the assigned degeneracy changes the inferred gap. Taking the log ratio at two known temperatures removes a common degeneracy factor. The slope of \(\log r\) against \(1/T\) is minus the gap in kelvin, and the intercept is the log degeneracy ratio if the line-strength calibration and equilibrium assumptions hold.
For illustrative values \(r=0.300\) at 100 K and \(r=0.949\) at 200 K, the log change is approximately 1.152. Dividing by the inverse-temperature change magnitude 0.005 per kelvin gives \(\Delta/k_B\simeq230\) K. Inserting the first ratio gives \(g_1/g_0\simeq3.00\). The same two-manifold model predicts a dimensionless heat capacity \(x^2r/(1+r)^2\) per molecule. At 100 K it is about 0.94, a separate calorimetric prediction independent of the absolute number of detected photons.
A third temperature materially improves the test. An unseen nearby manifold or a line strength that changes with instrumental settings may fit two exact population ratios but produce curvature and excess heat capacity elsewhere. Spectroscopy resolves ordered energy differences while calorimetry sums energy variances over all accessible states. Their combination offers more information than adding further precision to one population measurement under the same ambiguous degeneracy assumption.
Compress a gas without pretending its heat capacity stays constant
A reversible adiabatic compression is often summarised by a fixed exponent \(\gamma\). That power law assumes temperature-independent heat capacities along the path. Molecular populations give a direct case where the exponent changes. For an ideal gas at fixed composition,
Along a reversible adiabatic path set the sum to zero and integrate. The volume ratio is determined by an integral of measured or calculated \(C_V(T)/T\), not by a universal constant exponent across every temperature.
As an illustrative calculation approximate translation and fully active rotation by \(C_V=2.5Nk_B\) plus one harmonic vibrational mode with \(\theta_v=3000\) K. Heating from 300 to 1200 K at constant entropy gives a volume contraction factor from the fast degrees alone of \(4^{2.5}=32\). The vibrational entropy difference adds another factor \(e^{\Delta S_v/(Nk_B)}\). At 300 K the oscillator entropy is only about \(0.00050k_B\), while at 1200 K it is about \(0.309k_B\). The combined estimate requires \(V_i/V_f\simeq43.6\), a substantially larger compression than the frozen-vibration approximation predicts.
This comparison assumes ideal gas throughout and no dissociation, conditions to be checked in a real large compression. It nevertheless identifies the mechanism: part of the compression work goes into levels that were effectively inactive initially. Using the final high-temperature heat capacity across the whole path would err in the opposite direction by assigning that energy storage to the low-temperature portion as well. The entropy integral correctly weights each temperature interval by its actual internal population response.
A numerically stable solution can avoid differentiating noisy calorimetry. Integrate the entropy increment from tabulated heat capacities in the log-temperature variable. Compare an adaptive integral with a refined straightforward grid, paying particular attention to the rotational or vibrational crossover scale. Alternatively compute endpoint entropies from partition functions when an independently justified spectral model exists. Agreement between calorimetric integration and spectroscopy-derived endpoint entropy checks both assignments without demanding exact agreement of noisy pointwise derivatives.
Experimental pressure also checks the endpoint calculation independently. After equilibration, the ideal equation of state predicts \(p_f/p_i=(T_f/T_i)(V_i/V_f)\), approximately 174 for this idealised path. Finite heat leakage or a pressure-dependent nonideality can change that value. A rapid adiabatic compression can be irreversible even if little heat leaves the chamber, and then the measured entropy can increase. Distinguish a reversible reference calculation from an actual rapid piston protocol before using a mismatch to infer missing molecular levels.
An independent isotropic acoustic test at a fixed initial temperature infers \(\gamma\) from the small-amplitude sound speed \(c_s^2=\gamma RT/M\), where \(M\) is molar mass. At fixed molecular mass a decrease of \(\gamma\) from 1.40 to 1.32 at the same temperature would lower sound speed by the square root of their ratio, roughly three percent. That comparison must truly hold temperature fixed: the large direct thermal dependence of sound speed can easily exceed the internal-mode effect. Frequency-resolved acoustics can see part of a vibrational mode freeze dynamically while equilibrium spectroscopy still predicts its population. Record both phase velocity and acoustic attenuation if the aim is to identify a relaxation time. Across the relaxation band, dispersion without the corresponding dissipative response should prompt a check of transducer phase calibration and acoustic boundary conditions.
Read the rotational level spacing from thermal energy storage
Sum the discrete levels of a linear rotor and compare the heat capacity with equipartition as temperature rises.
Tutorial · Identify a rotor inertia from spectral spacing
For a heteronuclear linear rotor the lowest pure rotational transition has ordinary frequency 120 GHz. Infer \(\theta_r\), the moment of inertia and the expected \(J=1\) to \(J=0\) population ratio at 10 K. How could an isotope substitution test the interpretation?
Use the transition gap and keep angular and ordinary frequency distinct
The gap is \(2k_B\theta_r=h\nu\), so \(\theta_r=2.88\) K and \(I=\hbar^2/(2k_B\theta_r)=1.40\times10^{-46}\) kg square metres. The population ratio is
The upper manifold contains more molecules even though each of its levels has lower individual Boltzmann weight. Increasing reduced mass at nearly fixed bond length increases \(I\), reducing the transition frequency approximately inversely with reduced mass. A vibrational frequency from the same spring would scale instead with inverse square root of reduced mass.
Tutorial · Infer an excitation temperature from calorimetry
A gas of linear molecules has molar \(C_V=2.91R\) at a temperature where translation and rotation contribute \(2.50R\). Neglect electronic excitation and estimate the characteristic temperature of a single harmonic vibration in units of measurement temperature. Would a measured \(C_p\) be usable unchanged?
Invert the oscillator contribution and verify its feasible range
The remaining \(0.41R\) lies between zero and the one-mode classical limit \(R\). Solve \(x^2e^{-x}/(1-e^{-x})^2=0.41\) on positive \(x\). At 3.0 it is 0.496 and at 3.5 it is 0.393, placing the root near 3.41. Thus \(\theta_v\) is about 3.41 times measurement temperature. Use several temperatures to verify the characteristic value and frozen-composition model. For ideal gas at fixed composition, subtract \(R\) from \(C_p\) before applying this constant-volume balance. Latent processes, reaction and internal relaxation would require an extended model.
Tutorial · Distinguish equilibrium hydrogen from a frozen spin mixture
At low temperature only \(J=0\) in the even sector and \(J=1\) in the odd sector contribute. Use \(\theta_r=85\) K and \(T=30\) K. Estimate the equilibrium odd fraction and compare the energy stored in a sample frozen at a three-quarter odd fraction, measured relative to the common lowest even state.
Normalise both sectors and identify the energy released on conversion
The relative weight of \(J=1\) is \(3(2J+1)e^{-170/30}=0.0311\); the even ground state has weight one. The equilibrium odd fraction is approximately 0.0302. A frozen sample at odd fraction 0.75 stores about \(0.75(170)k_B=127.5k_B\) kelvin of rotational energy per molecule, versus about \(5.1k_B\) kelvin for equilibrium. The excess expressed per mole is roughly \(R(122.4\,{\rm K})=1.02\) kJ/mol.
The frozen low-temperature heat capacity can be small even while substantial energy remains trapped in the odd sector. A calorimeter monitoring a slowly converting sample measures time-dependent heat release, not simply the derivative of a stationary restricted partition function. Measure the spin fraction independently or vary equilibration time before comparing its heat curve with an equilibrium prediction.
Cambridge Statistical Physics · molecular partition functions and internal degrees of freedom
Phase nucleation, metastability and waiting-time statistics
Statistical mechanics from microscopic counting to material response
A cooled liquid can remain liquid below its equilibrium freezing temperature and then transform abruptly. How can a bulk phase be thermodynamically favoured while a small embryo of it tends to shrink? Balance interfacial cost against bulk gain, convert a barrier into a probabilistic waiting-time prediction and test which measurements can distinguish surface nucleation from a bulk mechanism.
Choose a driving free-energy density at fixed controls
At specified temperature and pressure, phases in equilibrium have equal molar Gibbs free energies. Below a melting temperature \(T_m\) the stable solid has lower chemical potential than the liquid. For modest undercooling, use \(d\mu=-s\,dT+v\,dp\). At fixed pressure the chemical-potential difference per molecule is approximately \(\mu_l-\mu_s\simeq\Delta h_f(T_m-T)/T_m\) if latent enthalpy of fusion per molecule varies little. Multiplying by the number density of the new phase gives a positive driving free-energy density \(\Delta g\). State whether each quoted latent heat is per particle, per mole or per unit volume; converting it twice gives enormous radius errors.
The underlying free-energy landscape has stable and metastable minima separated by a barrier. In a phase-field picture a local bulk density penalises intermediate order within the metastable region, and a gradient penalty charges a finite energy for an interface. A finite amount of stable phase can therefore cost free energy before its bulk advantage wins. A coexistence construction determines which bulk phases minimise free energy; it does not provide the rate at which an existing metastable preparation can reach them.
Compare a bulk coexistence construction with the cost of an interface
Derive the critical radius and barrier
In the simplest capillarity model an embryo is a sphere of radius \(r\), with isotropic positive interface energy \(\gamma\) per area and a bulk gain \(\Delta g\) per volume. Treat its interface as thin and its bulk properties as those of the macroscopic phases. Neglect elastic strain, long-range fields and depletion of the surrounding reservoir, then the reversible work to create it is
The derivative vanishes at \(r_*\) and the second derivative there is \(-8\pi\gamma\), so this is a maximum along the size coordinate. A slightly smaller embryo tends to shrink and a slightly larger one tends to grow, subject to noise and kinetic constraints. The radius where the total formation free energy first drops below its initial zero is
A supercritical nucleus can grow downhill even while its cumulative creation free energy is still positive. Confusing these two radii yields a fifty percent size error.
Take illustrative values \(\gamma=0.010\) J per square metre and \(\Delta g=1.0\times10^7\) J per cubic metre. Then \(r_*=2.0\) nm and \(\Delta G_*=1.68\times10^{-19}\) J, about 40.5 thermal energies at 300 K. Doubling driving density halves critical radius and quarters the barrier if \(\gamma\) is unchanged. At a two-nanometre radius the embryo may be just a few molecular spacings across. This calculated barrier is a sensitivity estimate; the assumed bulk interface tension, sharp interface and spherical shape become increasingly questionable there.
An alternative derivation uses the pressure jump \(2\gamma/r\) across a curved interface together with a bulk chemical-potential difference. Near coexistence the condition of zero growth recovers the same critical curvature. In a vapour close to ideal behaviour the driving chemical-potential difference involves \(k_BT\log S\) with supersaturation \(S=p/p_{\rm sat}\), not simply \(S-1\) at arbitrary supersaturation. Near \(S=1\) the two are close. A quantitative cloud-chamber inference must also account for the evolving supersaturation and evaporation or growth after nucleation.
Background · Why does a faster temperature ramp move the apparent freezing point?
Assume independent homogeneous nucleation with rate density \(J(T)\) in volume \(V\), and prompt detection of the first nucleus. The chance that the untransformed sample survives the next interval \(dt\) is \(1-VJ(T)\,dt\). Multiply these conditional probabilities along a cooling ramp with constant positive speed \(v=-dT/dt\). Starting at \(T_0\) gives
At fixed undercooling the faster ramp has accumulated less nucleation probability. The median observed freezing temperature satisfies an integrated hazard of \(\ln 2\). Doubling the sample volume and the ramp speed together leaves the predicted distribution unchanged. Failure of that scaling can signal surface-dominated nucleation, thermal lag or a growth time long enough to affect detection.
Derive the barrier reduction for a spherical cap
A nucleus forming on a flat inert wall can replace one existing interface with another. Let it be a spherical cap of curvature radius \(r\) and contact angle \(\theta\) through the new phase. The liquid-facing area is \(2\pi r^2(1-\cos\theta)\), contact area \(\pi r^2\sin^2\theta\) and cap volume \(\pi r^3(2-3\cos\theta+\cos^3\theta)/3\). Young's contact-angle condition relates the wall energy difference to minus \(\gamma\cos\theta\) per replaced contact area. Combining all terms gives the homogeneous spherical result multiplied by
Both surface and bulk coefficients receive the same factor. Critical curvature radius therefore remains \(2\gamma/\Delta g\) in this simple model, while the barrier becomes \(f(\theta)\Delta G_*\). At \(180^\circ\), \(f=1\) as the full sphere barely touches the wall. At \(90^\circ\), \(f=1/2\) for a hemisphere. At \(60^\circ\), \(f=0.15625\), lowering the illustrative 40.5-thermal-energy barrier to 6.33 thermal energies. Even a relatively small number of active wall sites can dominate observed events.
Complete wetting, a chemically patterned surface, a very small defect or appreciable energy per contact-line length can invalidate the simple contact geometry. Contact angle measured on a macroscopic equilibrium droplet need not equal the local microscopic value for a tiny forming embryo. A fitted effective angle that varies systematically with undercooling can signal a missing mechanism rather than a temperature-dependent property of a clean ideal wall.
Distinguish an attempt rate from an equilibrium barrier
A classical rate expression is \(J=J_0e^{-\Delta G_*/(k_BT)}\) per unit volume per unit time for homogeneous events. The prefactor contains the supply of available configurations and the kinetics for traversing the critical region. A barrier alone is insufficient to predict a waiting time. Lowering temperature can raise thermodynamic driving yet also reduce mobility and attachment, giving a nonmonotone total rate as the two effects compete.
If a well-mixed sample of volume \(V\) has constant independent hazard \(JV\), the survival probability of the metastable state follows from \(P_0(t+dt)=P_0(t)(1-JVdt)\): \(P_0=e^{-JVt}\). Mean wait is \(1/(JV)\), median \(\log2/(JV)\). A 1.0 microlitre sample with \(J=2.0\times10^8\) per cubic metre per second has hazard 0.20 per second and median 3.47 seconds. After five seconds 63.2 percent have transformed at least once, if the detector registers nucleation immediately.
If surfaces contribute independent rate per area \(J_s\), the combined first-event hazard is \(J_vV+J_sA\). Geometrically similar droplets have \(A\propto V^{2/3}\), so changing sample size can distinguish these contributions. Vary active surface chemistry at fixed geometry as a second probe. If most samples contain a single rare defect not scaling smoothly with area, survival can be a mixture of exponentials rather than one exponential. A straight-line fit to mean waits alone obscures such heterogeneity.
A cooling ramp integrates many different hazards
Under a deterministic temperature history \(T(t)\), survival is \(P_0(t)=\exp[-\int_0^t J(T(s))Vds]\) for homogeneous, conditionally independent events. In a constant cooling ramp \(q=-dT/dt>0\), the exponent becomes \(-(V/q)\int_T^{T_0}J(T')dT'\). The observed freezing-temperature histogram is weighted by survival as well as the instantaneous rate. The most probable freezing temperature need not minimise any free energy, and different ramp speeds can shift it even when all material properties are unchanged.
For a ramp calculation on gridded temperatures, update the remaining fraction by \(e^{-\Delta H}\) where \(\Delta H\) is the integrated hazard in that interval. Using a transition probability \(J V\Delta t\) even when it exceeds one violates probability bounds. Subdivide the interval and check convergence of median and distribution width. At steep temperature dependence, a midpoint estimate over a coarse interval can move a reconstructed barrier enough to dominate the apparent contact-angle uncertainty.
The detected event may be a threshold in light scattering, latent heat or visual crystal size. A nucleus must grow before producing that signal. At fixed growth speed \(u_g\), reaching detection radius \(r_d\) adds an approximate lag \((r_d-r_*)/u_g\); under cooling, both growth and hazard vary. Compare multiple detection thresholds or resolve the early growth trajectory and extrapolate a starting time. A shift in waiting time due entirely to the imaging threshold could otherwise be misinterpreted as altered microscopic nucleation.
Test how changing undercooling alters a barrier in the course's phase-equilibrium example
A finite reservoir can stabilise a droplet that would otherwise grow
The standard critical-radius derivation supposes that the driving free-energy density remains fixed while the nucleus grows. In a small sealed droplet or isolated simulation box, formation of the new phase can consume a significant fraction of the supersaturation. The surrounding phase then approaches coexistence and the bulk driving force falls. A single critical radius computed from initial supersaturation may describe early stability but cannot describe the entire late-time growth or the final phase fraction.
As a transparent model let conversion of new-phase volume \(v\) reduce the driving density linearly to \(\Delta g(v)=\Delta g_0-av\), with \(a>0\) incorporating finite-reservoir compressibility or depletion. The bulk free-energy gain is the integral of the driving density, not its final value times volume. For a spherical interface \(A(v)=(36\pi)^{1/3}v^{2/3}\), the total model is
The initial derivative is positive because a very small sphere has large area per volume. At large \(v\) the positive depletion derivative can make further growth unfavourable. If the derivative turns negative at intermediate volume there can be both a barrier top and a larger stable or metastable finite-droplet minimum. If it never turns negative the finite reservoir is too small or too weakly driven for a stable droplet in this model. This explains why a finite system can show a rare nucleus followed by arrested growth without contradicting the initial local barrier idea.
For a dimensionless illustration choose \(\Delta G/(k_BT)=4v^{2/3}-4v+0.25v^2\), with a specified arbitrary reference volume absorbed into \(v\). Its derivative is \((8/3)v^{-1/3}-4+0.5v\). At \(v=0.10\) it is about 1.80, at \(v=1\) about minus 0.83 and at \(v=10\) about 2.24. At least two stationary sizes therefore lie along the growth path. A sign test on neighbouring sizes distinguishes the early maximum from the later minimum without assuming every stationary root is a critical nucleus. Numerical root finding should bracket these branches separately instead of passing a single initial guess to a solver.
An experiment can test depletion by varying reservoir size at the same initial supersaturation and surface treatment. If early appearance times are comparable after correcting for trial volume but final crystal sizes grow with available material, finite feeding is plausible. Limited thermal transport, impurities blocking the interface or elastic stress can also arrest growth, so monitor the remaining parent-phase composition and temperature. A small system is precisely where the thermodynamic ensemble and the available amount of material need explicit definition.
A detection time can be dominated by diffusion after nucleation
After crossing the barrier a supercritical spherical domain may grow by diffusion of a dilute species. In a quasi-steady infinite exterior with surface concentration \(c_s\) and far concentration \(c_\infty>c_s\), the concentration solves the radial Laplace equation. Its solution is
The total inward solute flux is \(4\pi D R(c_\infty-c_s)\). Equate this to solute incorporated into an advancing sphere, \(4\pi R^2(c_{\rm new}-c_s)\dot R\), to obtain
This square-root growth law assumes quasi-steady diffusion, a spherical shape, nearly constant far conditions and a surface near local equilibrium. If interface attachment instead limits growth, a roughly constant \(\dot R\) may be a better first model over a short range. Measuring time to several optical thresholds distinguishes \(R_d^2\) scaling from \(R_d\) scaling. Threshold variation therefore separates growth and nucleation more effectively than one image definition held fixed.
Take \(D=1.0\times10^{-9}\) square metres per second and concentration ratio \(0.020\). From a negligibly small initial radius, reaching 5.0 micrometres takes \(25\times10^{-12}/(4.0\times10^{-11})=0.625\) s; reaching ten micrometres takes 2.50 s. If true median nucleation time is 1.0 s, the detected median at the larger threshold can be 3.5 s even when the microscopic barrier and initial supersaturation are unchanged. Calling its inverse a nucleation rate would seriously underestimate the true first-event hazard.
At very small radius a Gibbs–Thomson curvature shift increases the equilibrium surface concentration. The same curvature effect that opposes a small embryo can therefore slow its initial excess growth even after it has crossed the most probable barrier. At late times the bath may not be infinite and growing domains compete for material. These effects change the simple square-root law in different regions. Image a radius trajectory for each event instead of assigning the same unverified growth lag to all samples.
A thermal ramp with a tractable hazard shape
Over a restricted undercooling interval an experimentally measured hazard can rise approximately exponentially with undercooling \(\Delta T=T_0-T\): take \(h(\Delta T)=h_0 e^{a\Delta T}\). This is a local fit to the full barrier and prefactor, not a universal replacement for their pronounced temperature dependence. At constant cooling rate \(q>0\), direct integration gives cumulative hazard \(H=h_0(e^{a\Delta T}-1)/(aq)\) and survival \(e^{-H}\). The median solves
For \(h_0=0.010\) per second, \(a=1.0\) per kelvin and \(q=0.10\) K/s the median undercooling is 2.07 K. Doubling cooling rate raises it to 2.70 K. The shift is smaller than one kelvin but large relative to many thermometer precisions. It arises even with exactly the same thermodynamic coexistence temperature and material interfaces. Counting a median freezing temperature at only one ramp rate can therefore mix kinetics with the equilibrium phase boundary.
The probability density per unit undercooling is \([h(\Delta T)/q]e^{-H}\), where the first factor measures the rate conditional on surviving to that temperature. Taking a log derivative shows that an interior density maximum occurs when \(h=aq\), provided this exceeds the initial hazard. The median and the most probable temperature are distinct. At slower ramps the maximum can even lie at the beginning of the observation range, depending on preparation and chosen \(T_0\). A histogram peak should be interpreted together with the surviving population, not treated as a direct plot of microscopic rate.
To reconstruct hazard from a measured ramp, estimate the fraction still untransformed at each temperature and inspect minus the log of that fraction. Differentiate smooth cumulative hazards cautiously; differentiation amplifies noise and small late survivor counts. A joint fit of raw first-event and censored records over several ramp rates generally preserves more information than differentiating a single binned histogram. Varying sample volume as well helps separate a distribution of bulk rates from one associated with surfaces.
A committor test examines whether radius is a good reaction coordinate
The capillarity free-energy maximum uses one coordinate, radius. A practical microscopic test begins from candidate configurations near the proposed critical size, randomises thermal momenta or bath noise consistently with the preparation and launches many short independent trajectories. For each starting configuration estimate the fraction reaching a specified stable new-phase basin before returning to the parent phase. This fraction is the forward committor. A good transition-surface coordinate should identify configurations with committor near one half under the specified dynamics.
If configurations at the same radius show committors ranging from almost zero to almost one, that radius alone poorly locates the dynamical transition state. Shape, local order, strain or neighbour concentration may supply missing coordinates. Binomial uncertainty from finite trials also matters: 25 independent launches near one half give a standard error around 0.10 for an individual configuration. Increasing launches distinguishes true variation between configurations from sampling noise.
The committor depends on physically chosen basins and dynamics. An artificially accelerated Monte Carlo kinetic rule may preserve equilibrium free energies while changing which paths reach the new phase first. Use the same dynamics when comparing committor tests with measured waiting times. Equilibrium barrier heights, kinetic attempt rates and the adequacy of a proposed reaction coordinate are connected questions but require different data.
Distinguish first appearance from transformed volume fraction
A first-event detector stops caring about a sample once the earliest nucleus is registered. A calorimeter or diffraction measurement instead often follows the total fraction of material transformed. Even if nucleation is homogeneous at a constant rate and crystals grow at constant speed, these two signals have different time dependences. Treat an infinite initially untransformed sample, with nuclei placed randomly at rate \(J\) per volume and spherical domains growing radially at speed \(u\). To ask whether a particular point remains untransformed at time \(t\), count possible earlier nucleation events whose growth sphere would have reached it.
A nucleus born at time \(s\) reaches points within radius \(u(t-s)\), corresponding to volume \(4\pi u^3(t-s)^3/3\). Integrate the attempt rate over that backwards influence volume from zero to \(t\). For an ideal Poisson space-time nucleation model with this growth rule the probability of no such event is \(\exp[-\pi J u^3t^4/3]\), giving transformed fraction \(X=1-\exp[-\pi J u^3t^4/3]\). The result uses the standard extended-volume construction with random nucleation and isotropic constant-rate growth. It is not the simple first-event law \(1-e^{-JVt}\) for a finite observation sample.
For sites all pre-existing at time zero with random density \(n_0\), the same backwards-volume reasoning gives
A log plot of minus the log remaining fraction against log time therefore has ideal slope four for continual three-dimensional nucleation and three for instantaneous site saturation. In two dimensions the powers would both be reduced by one. A measured slope between these values is not automatically evidence for a fractional geometric dimension. Changing growth law, active-site exhaustion, temperature ramps or overlapping different mechanisms can alter the apparent slope.
If measured isothermal transformed fraction is one half at 100 s in the continuous model, the product \(Ju^3\) equals \(3\log2/(\pi\,100^4)=6.62\times10^{-9}\) per second to the fourth. This identifies the product, not the nucleation rate and growth speed separately. Independent imaging of isolated domain radii versus time, or a set of first-event measurements in small known volumes, can fix the remaining scale. A fit to the entire same ideal fraction curve cannot identify two quantities that enter it only through their product.
Actual calorimetric power is approximately latent enthalpy times \(dX/dt\), convolved with thermal response. Its maximum occurs when transformation rate peaks rather than when the first nucleus forms or exactly when half the volume has transformed. Compare integrated calorimetric energy with the final transformed fraction and deconvolve the calibrated instrument response before interpreting any schedule of peaks as a nucleation-time distribution.
The influence-volume argument also predicts a useful geometry check in a thin film. If domains reach both film surfaces early and then grow as expanding disks in the plane, a three-dimensional spherical growth model will eventually overestimate newly transformed volume. The apparent exponent can cross from an initially three-dimensional value to a lower late-time value without any change of microscopic nucleation pathway. Compare films of several thicknesses, identify the time at which individual radius reaches the film thickness and then test the predicted crossover in transformed fraction. Altering film thickness usually changes wall-to-volume ratio as well, so site density and growth geometry can vary together. Independent first-event measurements and direct images of individual domains remain necessary if the objective is to separate those two effects.
Locate a critical cluster and its barrier
Vary surface energy and bulk driving force independently. Find the stationary radius before reading the height of the barrier.
Tutorial · Extract a rate from records with censored observations
Twelve equal 2.0 microlitre samples are held at constant temperature for at most 20 s. Eight show first events at times whose sum is 64 s; four remain untransformed at the end. Estimate the homogeneous rate and explain the bias from averaging only the observed event times.
Count events and sum the full time at risk
Likelihood for independent exponential waits with right censoring is proportional to \(h^{N_e}e^{-hT_{\rm exposure}}\). The exposure is \(64+4(20)=144\) s, so \(\hat h=8/144=0.0556\) per second. Dividing by \(2.0\times10^{-9}\) cubic metres gives \(J=2.78\times10^7\) per cubic metre per second. The observed-only mean of 8 s would instead imply 0.125 per second and bias the rate upward by discarding samples known to survive a long time. With eight events, statistical uncertainty is substantial despite the precise arithmetic.
Tutorial · Distinguish area from volume nucleation
Two cubic samples have side lengths \(L\) and \(2L\). Their measured first-event hazards are 0.060 and 0.360 per second. Assume homogeneous bulk and wall contributions \(b=J_vL^3\), \(s=J_s6L^2\) in the smaller cube. Infer their relative importance and predict the hazard for a cube of side \(3L\).
Use different geometric powers to separate the contributions
The measurements give \(b+s=0.060\) and \(8b+4s=0.360\). Subtracting four times the first equation gives \(4b=0.120\), hence \(b=s=0.030\) per second. For side \(3L\), hazard is \(27b+9s=1.08\) per second. This prediction requires the same temperature, wall state and sample history, and negligible detection lag. An unmodelled population of corner-active sites adds a term independent of \(L\), so measurements at a third size test the two-term assumption rather than merely improving its fit.
Tutorial · Propagate interfacial uncertainty into a rate
Suppose the barrier is estimated at \(35k_BT\), with five-percent relative uncertainty in interfacial tension while driving force, temperature and prefactor are treated as known. Estimate its effect on log rate and explain why the rate uncertainty is strongly asymmetric when expressed in ordinary units.
Differentiate the barrier first and exponentiate last
The barrier scales as \(\gamma^3\), so its first-order relative uncertainty is 15 percent. The uncertainty in \(\log J\) is therefore about \(35(0.15)=5.25\), corresponding to multiplicative factors of roughly \(e^{5.25}=191\). A symmetric error in interfacial tension need not produce a symmetric additive error in rate. Computing the exact cubed upper and lower tensions produces further asymmetry.
Repeat the inference with a driving-force uncertainty, whose logarithmic coefficient is minus two in the barrier. Tension and driving parameters estimated from common coexistence data may be correlated. A direct comparison of predicted log rates across several undercoolings is often more stable than comparing raw rates spanning many orders of magnitude.
Cambridge Statistical Physics · metastability, phases and transitions
Transport, heat sources and diagnostics
Separate sensible heating from transported or radiated energy. Test the temperature signal against a field loss measurement and a conservative heat discretisation.
- Control-volume momentum and forces on fittings
- Boundary layers and momentum thickness
- Compressible nozzles and choking
- Time-dependent diffusion
- Interfaces, contact resistance and Robin data
- What a periodic grid does to a decaying Fourier mode
- Measuring magnetic core loss by a hysteresis loop and by calorimetry
- Thermal radiance, étendue and detector calibration
- Master equations, detailed balance and probability currents
- From binary collisions to the Boltzmann equation
- Transport coefficients from equilibrium fluctuations
- Work fluctuations and equilibrium free-energy differences
- Measure the heat capacity of a reservoir from the width of an energy histogram
- Recover a free-energy difference from a distribution of work
Control-volume momentum and forces on fittings
Use the velocity vector, gauge pressure and a consistent force boundary to find the support load on a pipe bend.
From first principles
Relate a support reaction to momentum carried by a stream
Newton's second law applies to a fixed set of fluid particles: external force equals the time derivative of their momentum. In a pipe bend it is easier to observe a stationary control volume that particles continually enter and leave. The rate of change for the material particles consists of storage in that volume plus the net rate at which momentum crosses its boundary.
The dot product determines whether mass crosses inwards or outwards, while the other velocity factor retains the direction of the momentum carried. For steady uniform inlet and outlet sections, the flux integral reduces to
Pressure pushes inward normal to each open section, so its contribution must be included before solving for the wall force. The force of the fluid on the bend is opposite to the wall's force on the fluid. Equal inlet and outlet speed can still give a substantial support load when their directions differ.
Derivation and applications
Derive the irreversible head loss across a sudden expansion
A sudden enlargement slows a liquid and partly restores static pressure. Consider steady incompressible flow from area \(A_1\) into area \(A_2>A_1\) in a horizontal pipe. Choose the downstream section after mixing has produced an approximately uniform velocity again. Approximate both station profiles as uniform, neglect wall shear over the short control volume and take the mean pressure on the annular shoulder to be the upstream pressure \(p_1\). Mass conservation makes the two mean speeds \(V_1,V_2\) proportional to inverse area.
The inlet and shoulder together contribute \(p_1A_2\) to the axial pressure force. Rearranging the momentum balance gives a positive downstream pressure rise, despite the separated mixing region.
Insert that pressure rise into the mechanical energy balance. The difference between kinetic energy released and pressure recovered is the specific energy dissipated in mixing, expressed below as a head of flowing liquid.
This result tends to zero quadratically as the area change vanishes. A gradual diffuser would require a different shoulder-pressure and separation model. Pressure recovery can thus coexist with positive mechanical-energy loss and its measurement alone does not provide the loss.
Worked example
Audit an abrupt pipe enlargement
Water moving at 3.00 m/s enters a pipe section with three times the area. Its final speed is 1.00 m/s. Taking \(\rho=1000\) kg/m³, the pressure rises by \(1000(1.00)(2.00)=2.00\) kPa. The kinetic pressure falls by 4.00 kPa; the missing 2.00 kPa is a head loss of 0.204 m. For 6.00 L/s, the rate of mechanical energy dissipation is \(Q\rho g h_L=12.0\) W.
Change the inputs and inspect this calculation below
Second application
Recover the enlargement ratio from a head test
Another rig measures \(V_1=2.50\) m/s and \(h_L=0.0800\) m. Taking the positive speed drop yields
The inferred area ratio is \(A_2/A_1=V_1/V_2=2.00\) to the stated precision. The expected water pressure rise is about 1.56 kPa, a separately measurable check on the shoulder-pressure assumption.
Interactive calculation · Change the inputs of this example
Use the adjustable quantities to test the two worked calculations above. The plot recomputes this derivation’s balance or constitutive relation; its numerical readout reports the quantities needed for the forward calculation and the inverse or design question. Keep the fixed assumptions stated in the readout when comparing with the example values.
Momentum crosses the boundary with the mass
A pipe bend can exert a substantial force on its supports even when its inlet and outlet speeds agree. Momentum has direction. Turning a stream requires force and gives the fitting an equal and opposite load. Enclose the fluid inside the fitting in a fixed control volume. The external forces include wall traction, pressure on the control surfaces and body forces such as gravity.
A surface element transports mass per second \(\rho(\mathbf u\cdot\mathbf n)dA\). Multiply by the local velocity to obtain momentum per second. Newton’s second law applied to the control volume reads
For a steady fitting with nearly uniform inlet and outlet velocities this reduces to a sum of outgoing \(\dot m\mathbf u\) minus incoming \(\dot m\mathbf u\). Use one fixed set of axes even as pipe directions change. Pressure always pushes into the control volume, whereas the flux carries the direction of the local velocity, including its sign on the chosen axis.
Include the end pressures explicitly
Take a horizontal bend turning water from the positive \(x\) direction to the positive \(y\) direction. The inlet and outlet areas are each 0.010 m² and \(Q=0.040\,\mathrm{m^3/s}\). Their speeds are both 4.0 m/s and \(\dot m=40\) kg/s. The net outward momentum flux vector is \((-160,+160)\) N. Let the gauge pressures be 90 kPa at inlet and 80 kPa at outlet. Pressure pushes +900 N in \(x\) through the inlet and −800 N in \(y\) through the outlet.
Let \(\mathbf W\) be the fitting’s wall force on the enclosed fluid, with external atmospheric effects accounted for consistently using gauge pressures. Then \(\mathbf W+(900,-800)=(-160,160)\) N, giving \(\mathbf W=(-1060,960)\) N. The fluid’s net gauge load on the fitting is the opposite, \((1060,-960)\) N, of magnitude 1.43 kN. Supports plus connected pipework must provide the opposite force for a stationary fitting, in addition to carrying the weight of hardware and fluid. The strongest contribution here stems from the pressure terms, despite the conspicuous turn in velocity.
Recover momentum from a nonuniform profile
A flow meter usually measures \(Q\), not \(\int u^2dA\). At a plane normal to a unidirectional profile define \(\beta=\int u^2dA/(A\bar u^2)\). Then the axial momentum rate is \(\beta\rho Q\bar u\). Uniform flow gives \(\beta=1\). For a developed laminar circular pipe \(u=2\bar u[1-(r/R)^2]\); inserting \(dA=2\pi r\,dr\) in the integral gives \(\beta=4/3\). The largest velocities carry a disproportionate share of momentum. If one bend cross-section admits strong swirl or backflow, resolve vector fluxes instead of applying a single profile coefficient.
Recognise an open-stream boundary
A free jet at atmospheric pressure strikes a fixed flat plate normal to its axis and turns into a thin sheet that leaves sideways. Neglecting rebound and friction far from the impact, the outgoing axial momentum flux is zero. For water flowing at 10 m/s through a 20 mm diameter nozzle, \(\dot m=3.14\) kg/s, so the axial force on the plate is 31.4 N. Both the incoming and outgoing free-stream control surfaces have zero gauge pressure. The plate force then follows entirely from the change of momentum. A nozzle bolted to a pressurised pipe would require different pressure forces even if it produced exactly the same free jet.
A jet catches a moving vane
Consider a single flat vane moving steadily in the jet direction at speed \(u\). In the vane frame the arriving volume rate is \(A(V-u)\) and the incoming streamwise relative velocity is \(V-u\). If the jet spreads tangentially across the face, the resulting normal force is \(\rho A(V-u)^2\). For water, \(A=2.0\,\mathrm{cm^2}\), \(V=10\) m/s and \(u=4\) m/s, this gives 7.2 N. Its mechanical power on the moving vane is \(Fu=28.8\,\mathrm W\). Using the stationary volume rate would count fluid parcels that the moving vane never catches.
Derive the two depths of a hydraulic jump
A hydraulic jump converts shallow fast open-channel flow into deeper slow flow over a short distance. Turbulent mixing dissipates mechanical energy, so applying an inviscid energy balance between the two uniform sections would miss its defining loss. Instead choose a control volume bounded by sections before and after the roller, the horizontal bed and the free surface. Approximate the velocity as uniform and the pressure distribution as hydrostatic at the two end sections. Atmospheric pressure cancels, and over the short reach assume the integral of bed friction is small compared with the pressure and momentum forces.
In a rectangular channel per unit width let the volume rate be \(q\), depths \(y_1,y_2\) and speeds \(v_i=q/y_i\). The horizontal pressure resultant per width is \(\rho g y_i^2/2\). Equating pressure force difference to momentum-flux change gives
One solution is the unchanged depth. Factoring out \(y_2-y_1\) for the nontrivial solution gives
With upstream Froude number \(Fr_1=v_1/\sqrt{g y_1}\), the downstream-to-upstream depth ratio becomes \([\sqrt{1+8Fr_1^2}-1]/2\). The deeper downstream branch occurs when \(Fr_1>1\). As \(Fr_1\to1\), the ratio tends to unity and the finite jump disappears.
Calculate the energy dissipated in a channel transition
A horizontal test channel carries water at \(y_1=0.20\,\mathrm m\) and \(v_1=4.0\,\mathrm{m/s}\). Its unit-width discharge is \(q=0.80\,\mathrm{m^2/s}\) and Froude number is
The depth ratio is about 3.57, giving \(y_2=0.714\,\mathrm m\) and \(v_2=0.80/0.714=1.12\,\mathrm{m/s}\). The downstream Froude number is about 0.42. These are conjugate depths for the specified momentum balance; the tailwater has to support the downstream depth for a stationary jump to sit at the chosen location.
Using specific mechanical head \(E=y+v^2/(2g)\), the inlet and outlet give 1.015 and 0.778 m respectively. The loss is approximately 0.237 m of water, or \(1000(9.81)(0.80)(0.237)=1.86\,\mathrm{kW}\) dissipated per metre of channel width. Substitution of the momentum relation into the energy difference gives
which is positive for the physical jump and approaches zero rapidly for a weak jump. This is a useful cross-check on a measured depth pair. If measurements are taken within the roller, pressure may be nonhydrostatic and velocity markedly nonuniform; using those sections in the simple end-state formula can produce an apparent energy or momentum imbalance.
Another discrimination comes from comparing the two depths with an upstream energy curve. At \(q=0.80\) m²/s, a downstream depth giving exactly the upstream energy would have to satisfy \(y+0.03262/y^2=1.015\). The deeper root is about 0.981 m, appreciably deeper than the momentum-predicted 0.714 m. Pairing those equal-energy depths would require an additional horizontal force or a different channel geometry to satisfy momentum. A smooth reversible change over a channel hump can conserve specific head while changing velocity and depth; a jump on a flat bed instead conserves the appropriate momentum function while dissipating head. Laboratory measurements of both levels are sufficient to distinguish the two idealisations.
Resolve the momentum force on a turning guide
A steady free water jet of mass flow 6 kg/s enters a smooth stationary guide at 20 m/s and leaves with the same speed at the indicated angle. Inlet and exit are at ambient pressure. Neglect weight for this short control volume. Reaction on the guide is the negative of the fluid momentum change.

Read values from the plot
| Outlet deflection (degrees) | Streamwise | Transverse | Resultant magnitude |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 40 | 28.075 | −77.135 | 82.085 |
| 80 | 99.162 | −118.18 | 154.27 |
| 120 | 180 | −103.92 | 207.85 |
| 160 | 232.76 | −41.042 | 236.35 |
Interactive calculation · change the inputs of this example
Compare a right-angle turn with a complete reversal. The transverse force requires vector momentum, not just speed magnitude.
The curves below are recalculated from this section’s equations in your browser. The fixed reference plot above remains available for comparison.
Boundary layers and momentum thickness
Connect a measured velocity deficit to wall drag and distinguish the physical edge of a boundary layer from its integral thicknesses.
From first principles
Obtain wall drag from the streamwise momentum deficit
A thin boundary layer slows fluid next to a solid wall. Consider steady two-dimensional flow over a smooth flat plate with constant external speed \(U\) and pressure. Use unit span and constant density \(\rho\). Choose a control volume ending at location \(x\), with its upper surface a streamline outside the layer. Mass conservation relates the uniform inlet flow to the downstream velocity profile. Multiplying the discharged mass in a strip by the streamwise speed it has lost gives that strip's contribution to the momentum deficit.
The integrated deficit equals the drag per unit span exerted by the wall on the flow in magnitude. Extending the plate by a small \(dx\) adds wall drag \(\tau_w\,dx\), so differentiating yields
These relations assume negligible pressure gradient. The thickness \(\theta\) weights lost velocity by the mass flux actually present in that part of the profile.
Derivation and applications
Relate displacement thickness to boundary-layer entrainment
Mass conservation requires a weak normal flow at the edge of a developing boundary layer. Consider steady, two-dimensional incompressible flow over an impermeable flat plate with constant external speed \(U\). Let \(u(x,y)\) be tangential velocity, \(v(x,y)\) normal velocity and \(y=0\) the wall. Integrate continuity from the wall to a fixed measurement height \(H\) chosen well outside the layer throughout the region of interest. Since \(v(x,0)=0\),
The integral would equal \(UH\) for a uniform velocity profile. The missing volume flux per unit span defines displacement thickness \(\delta^*\) times \(U\). For constant \(H,U\), differentiating cancels the large uniform part and connects the missing flux directly to the weak external normal velocity.
For an illustrative profile take \(u/U=2\eta-\eta^2\) up to \(\eta=y/\delta=1\) and \(u=U\) above it. Its deficit is \((1-\eta)^2\) and its integral is one third. When \(\delta\) grows as the square root of distance from the leading edge, the normal velocity follows by differentiation.
The sign is positive because the low-speed layer occupies an increasing share of the fixed-height section. The value at fixed external height differs from the mass entering a control surface that itself follows the growing edge.
Worked example
Estimate normal flow above a plate
At \(x=0.500\) m, a measured polynomial layer has \(\delta=6.00\) mm and \(U=4.00\) m/s. If it grows locally as \(\sqrt x\), the predicted edge velocity is
Its ratio to the external tangential speed is only 0.00200. The displacement thickness is 2.00 mm, the height by which a uniform-speed stream would need to be displaced to produce the same missing flux.
Change the inputs and inspect this calculation below
Second application
Use two profiles to infer the average vertical flux
Independent surveys at \(x=0.200\) and 0.600 m find displacement thicknesses 1.20 and 2.00 mm. At \(U=3.00\) m/s the interval-average normal velocity is
Over a plate span of 0.500 m this corresponds to outward volume flow \(0.00600(0.400)(0.500)=1.20\) L/s through the fixed upper face, equal to the growth of the streamwise flux deficit.
Interactive calculation · Change the inputs of this example
Use the adjustable quantities to test the two worked calculations above. The plot recomputes this derivation’s balance or constitutive relation; its numerical readout reports the quantities needed for the forward calculation and the inverse or design question. Keep the fixed assumptions stated in the readout when comparing with the example values.
Viscosity matters where velocity changes rapidly
Flow past a smooth plate with a large length-based Reynolds number often has nearly uniform speed outside a thin layer next to the wall. No slip requires zero velocity at the stationary surface. Inside the thin region, transverse velocity gradients can be large enough for viscosity to balance streamwise inertia. If the free-stream speed is \(U\), the streamwise distance is \(x\) and the layer thickness is \(\delta\), the leading inertial and viscous scales are \(U^2/x\) and \(\nu U/\delta^2\). Their balance gives \(\delta/x\sim1/\sqrt{\mathrm{Re}_x}\), where \(\mathrm{Re}_x=Ux/\nu\).
This scaling predicts how a laminar layer grows. Its numerical factor depends on how the thickness is defined. A common measured edge is the position reaching 99% of the external speed. Two integral measures instead quantify flow displaced by the layer and its lost momentum, and are less sensitive to picking a particular edge point.
The thickness \(\delta^*\) gives the equivalent missing volume flux per unit width divided by \(U\). Momentum thickness \(\theta_m\) weights that deficit by the actual local speed. Fluid right at the wall contributes strongly to displacement thickness but carries almost no streamwise momentum flux.
Relate the momentum deficit to wall shear
A steady control volume surrounding one face of a flat plate at zero incidence receives fluid from the uniform upstream stream. For constant external speed and pressure, the integrated wall force equals the deficit of streamwise momentum flux downstream after accounting for entrained fluid. Per unit plate width this gives
Differentiating gives local wall shear \(\tau_w=\rho U^2\,d\theta_m/dx\). A growing deficit implies positive drag on the plate.
Suppose a velocity survey is represented by \(u/U=2\eta-\eta^2\) for \(0\le\eta=y/\delta\le1\), and uniform flow outside. Integrating yields
Since \(\int_0^1(2\eta-\eta^2)d\eta=2/3\) and \(\int_0^1(2\eta-\eta^2)^2d\eta=8/15\), the momentum thickness is \(2\delta/15\).
Infer drag from a measured layer
At the end of a 0.60 m plate of width 0.40 m in air, let \(U=12\,\mathrm{m/s}\), \(\rho=1.20\,\mathrm{kg/m^3}\) and \(\delta=5.0\,\mathrm{mm}\) according to the fitted profile. Then \(\theta_m=0.667\,\mathrm{mm}\) and drag on the measured face is
The mean shear over that face is
It need not equal the local shear at the measuring station. An adverse pressure gradient or separated flow changes the momentum balance; surface pressure forces and external acceleration must then be included before interpreting a wake or boundary-layer survey.
Predict a boundary-layer thickness before viewing a simulation
At the same measuring station the laminar scaling from the first section gives \(\delta\propto\sqrt{\nu/U}\). Starting from a measured 35.84 mm layer at \(x=0.50\) m, predict its thickness after separately doubling free-stream speed and doubling kinematic viscosity. Which change should raise the dimensional wall stress if density and viscosity are held fixed while speed increases? Compare your thickness ratios with the two computed runs and distinguish the measured skin-friction coefficient from wall stress in pascals. Compare the flat-plate runs.
Reduce a partial differential equation to one similarity profile
For a laminar zero-pressure-gradient boundary layer along a flat plate, the leading equations are \(u_x+v_y=0\) and \(u u_x+v u_y=\nu u_{yy}\). Assume external speed \(U\) constant, a stationary no-slip surface and a layer thin relative to streamwise distance. Introduce a streamfunction \(\psi\) through \(u=\psi_y,\ v=-\psi_x\) to satisfy continuity identically. The scaling \(\delta\sim\sqrt{\nu x/U}\) suggests \(\eta=y\sqrt{U/(\nu x)}\) and \(\psi=\sqrt{\nu Ux}\,f(\eta)\). Differentiation gives \(u=U f'\) and \(v=\tfrac12\sqrt{\nu U/x}(\eta f'-f)\).
When these forms enter the momentum equation, the terms containing \(\eta f'f''\) from longitudinal and transverse advection cancel. Both the remaining inertial and viscous terms carry \(U^2/x\). Dividing through gives the Blasius boundary-value problem
The two wall conditions impose zero normal and tangential velocity. The outer condition matches the uniform stream. The unknown wall slope of the velocity profile, \(f''(0)\), is determined by matching that distant condition; prescribing it independently would overdetermine the third-order equation. Numerical integration gives approximately 0.3321 for this definition of \(\eta\). Conventions that include a factor of two in the similarity coordinate assign a different numerical constant but the same physical wall stress.
Predict a force measurement from the similarity solution
The wall shear is \(\mu U f''(0)\sqrt{U/(\nu x)}\), giving \(c_f(x)=\tau_w/(\rho U^2/2)=0.664/\sqrt{\mathrm{Re}_x}\). Its integral over a plate of length \(L\) yields mean coefficient \(\bar c_f=1.328/\sqrt{\mathrm{Re}_L}\). The mean equals twice the local trailing-edge value because the integrable \(x^{-1/2}\) shear is highest near the leading edge. Using a single trailing-edge wall gauge for the whole area would therefore underestimate the force.
Take a smooth plate 0.50 m long and 0.25 m wide in air at \(U=6.0\,\mathrm{m/s},\ \nu=1.5\times10^{-5}\,\mathrm{m^2/s},\ \rho=1.20\,\mathrm{kg/m^3}\). The trailing-edge Reynolds number is 200,000, and a nominally laminar calculation gives
The one-face drag is
The trailing-edge wall shear is just 0.0321 Pa, and the 99% thickness estimate \(5L/\sqrt{\mathrm{Re}_L}\) is 5.59 mm. A support carrying both plate faces would register roughly twice the one-face drag if both flows are comparable, plus fixture and edge drag. A single net force measurement cannot by itself tell whether a discrepancy arose from transition, unequal face conditions or the support geometry.
The similarity solution also predicts how to collapse profiles measured at different stations. At \(x=0.125\) m the same value of \(\eta\) corresponds to half the wall-normal distance it does at 0.50 m, since the distance scales with \(\sqrt{x}\). Meanwhile wall shear doubles and local skin-friction coefficient doubles. A traverse resolving only whole millimetres may describe the outer velocity defect at both positions but badly estimate the near-wall slope at the earlier one. Testing both the profile collapse and the independent integral drag provides a stronger check of the assumed laminar flow than comparing a single velocity at the outer edge.
Measure the momentum transported by turbulent fluctuations
In a smooth plane channel driven by a constant pressure drop, time averaging can hide the dominant transport mechanism. Consider steady statistics and a fully developed mean flow between parallel walls. Let \(y=0\) denote the lower wall and \(h\) the distance to the centreline. Write \(u=U(y)+u'\), \(v=v'\). Impermeability and incompressibility give zero mean transverse velocity. The average of the instantaneous flux of streamwise momentum across a horizontal surface is nevertheless \(\rho\overline{uv}=\rho\overline{u'v'}\). Averaging the product retains the correlation between the two fluctuations.
For constant density and viscosity the mean streamwise balance becomes
Set \(G=-d\bar p/dx>0\). Integrating from \(y\) to the centreline, where symmetry sets the total shear to zero, gives
The right side is fixed by the driving pressure gradient. At a no-slip wall both fluctuating velocities vanish, so molecular viscosity carries the full shear there. Farther out a parcel moving rapidly downstream can move towards the lower wall (\(u'>0,\ v'<0\)). A slow parcel leaving that wall has the same negative product. Both transfer streamwise momentum towards the wall. With the signs above the turbulent contribution to the shear is positive.
For water with \(\rho=1000\) kg/m³ and \(\mu=0.0010\) Pa s, take \(h=0.020\) m and \(G=100\) Pa/m. The wall stress is 2.00 Pa. At \(y=0.0050\) m the total shear is 1.50 Pa. A measured slope of \(150\) s⁻¹ accounts for 0.150 Pa. The remaining 1.35 Pa implies \(\overline{u'v'}=-1.35\times10^{-3}\) m²/s². The exact force balance gives a quantitative consistency check for velocity measurements or a simulation. Predicting the split from \(G\) alone would require a relation for the velocity correlations.
Estimate a boundary layer’s momentum deficit
Momentum thickness is \(\theta=\int(u/U)(1-u/U)\,dy\). Use three idealised trial profiles at the same outer thickness. Integrating the ordinate with respect to the plotted dimensionless height gives \(\theta/\delta\).

Read values from the plot
| Distance from wall / layer thickness | Linear velocity profile | Quadratic velocity profile | One-seventh-power profile |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0.25 | 0.1875 | 0.24609 | 0.14739 |
| 0.5 | 0.25 | 0.1875 | 0.085388 |
| 0.75 | 0.1875 | 0.058594 | 0.038643 |
| 1 | 0 | 0 | 0 |
Interactive calculation · change the inputs of this example
Change the exponent of the trial velocity profile. Equal endpoint velocities need not imply equal momentum deficit.
The curves below are recalculated from this section’s equations in your browser. The fixed reference plot above remains available for comparison.
Compressible nozzles and choking
Relate area change to Mach number and calculate the limiting mass flow through a converging nozzle.
From first principles
Derive the area–velocity relation for an isentropic stream
Consider a steady, quasi-one-dimensional flow through a smooth duct of area \(A\). Assume negligible viscosity, heat exchange and elevation change, and no shocks. Density \(\rho\) and speed \(V\) vary between stations. Mass conservation gives constant \(\rho VA\), so taking logarithmic differentials relates three fractional changes.
Streamwise momentum gives
For an isentropic change, sound speed satisfies \(a^2=(\partial p/\partial\rho)_s\) so the pressure differential can be eliminated in favour of density. With \(M=V/a\) this yields
Subsonic flow accelerates in a contraction because its density variation is comparatively small. A supersonic stream accelerates in a diverging duct because density falls more rapidly. A smooth transition through \(M=1\) with nonzero velocity gradient requires a stationary area, usually the minimum area of a nozzle. Reservoir state and downstream pressure determine whether that sonic condition is actually reached.
Derivation and applications
Recover subsonic Mach number from stagnation pressure
A forward-facing pressure probe brings a small sample of moving gas nearly to rest. Relating the resulting pressure to speed requires accounting for compressibility. Consider a calorically perfect ideal gas, constant heat-capacity ratio \(\gamma>1\), no heat input or shaft work, and subsonic flow brought reversibly to rest. Neglect the height change. Use \(a^2=\gamma R T\), Mach number \(M=V/a\) and \(c_p=\gamma R/(\gamma-1)\). The steady energy balance gives
For an isentropic ideal gas, \(p/\rho^\gamma\) is constant. Using the gas law to eliminate density yields a pressure ratio as a power of the temperature ratio. This provides a relation between a stagnation tap and a separate static tap at the same upstream state.
Solve for the nonnegative speed magnitude. A static temperature measurement is needed to convert dimensionless Mach number into dimensional velocity. Expanding the pressure law for small Mach number recovers the familiar dynamic pressure as its leading term.
Both pressures in the ratio must be absolute. A supersonic probe can form a shock and its recovered stagnation pressure then differs from the reversible upstream value.
Worked example
Estimate air speed from two pressure readings
For air take \(\gamma=1.40\), \(R=287\) J/(kg K), \(T=290\) K, \(p=90.0\) kPa and \(p_0=106\) kPa. Their ratio is 1.178, giving \(M=\sqrt{5[(106/90)^{2/7}-1]}=0.489\). The sound speed is 341 m/s, so the flow speed is about 167 m/s. The incompressible pressure estimate using static density would be higher because the gas compresses while it decelerates.
Change the inputs and inspect this calculation below
Second application
Predict the pressure ratio of a calibration stream
A second air stream has measured speed 102 m/s and static temperature 288 K, yielding \(a=340\) m/s and \(M=0.300\). At static pressure 100 kPa, the stagnation rise is
The leading incompressible expression predicts
Their 0.14 kPa difference sets a scale for the pressure resolution needed to detect compressibility here.
Interactive calculation · Change the inputs of this example
Use the adjustable quantities to test the two worked calculations above. The plot recomputes this derivation’s balance or constitutive relation; its numerical readout reports the quantities needed for the forward calculation and the inverse or design question. Keep the fixed assumptions stated in the readout when comparing with the example values.
Incorporate expansion work and mass conservation
Gas accelerates through a nozzle by converting enthalpy into kinetic energy. At sufficiently high speeds, density changes appreciably and a constant-density volume balance fails. For steady one-dimensional adiabatic flow without shaft work or appreciable elevation change, \(h+V^2/2=h_0\). A calorically perfect gas has \(h=c_pT\); its local sound speed is \(a=\sqrt{\gamma RT}\), and Mach number is \(M=V/a\). Evaluate \(a\) at local static temperature, rather than at the upstream reservoir temperature.
Assume the acceleration is reversible, so \(dp=a^2d\rho\) along the isentrope. Differential momentum balance gives \(dp=-\rho VdV\), hence \(d\rho/\rho=-M^2dV/V\). Inserting this in continuity \(d\rho/\rho+dV/V+dA/A=0\) gives the area–velocity relation
A subsonic stream accelerates through a converging passage. A supersonic stream accelerates through a diverging one. A smooth transition through sonic conditions requires a stationary area, conventionally a minimum-area throat for acceleration from subsonic to supersonic speed. A converging nozzle supplied from rest can first reach Mach one at its smallest area, the exit.
Obtain the throat state from the reservoir
In the upstream reservoir the flow is essentially at rest, so its static pressure and temperature are stagnation values \(p_0,T_0\). Combining \(c_p(T_0-T)=V^2/2\) with \(c_p=\gamma R/(\gamma-1)\) gives
Apply the ideal-gas isentropic pressure–temperature relation to find the critical pressure and temperature ratios at \(M=1\).
With exit area fixed, lowering back pressure increases mass flow until the exit becomes sonic. Further reduction in back pressure does not change the ideal throat state for fixed reservoir conditions. Expansion downstream can then adjust the emerging jet to its surroundings.
Estimate a choked discharge
An insulated converging air nozzle has throat area \(50\,\mathrm{mm^2}\) and reservoir conditions 300 kPa absolute and 300 K. Use \(R=287\,\mathrm{J/(kg\,K)}\) and \(\gamma=1.40\). The critical temperature is \(300(2/2.4)=250\,\mathrm K\), critical pressure \(300(2/2.4)^{3.5}=158.5\,\mathrm{kPa}\), density \(158500/(287\times250)=2.21\,\mathrm{kg/m^3}\) and critical speed \(\sqrt{1.4(287)(250)}=317\,\mathrm{m/s}\).
Atmospheric back pressure of 100 kPa lies below the critical pressure, so the ideal mass flow is
A back pressure of 210 kPa would leave this converging nozzle unchoked, and the exit state must then be calculated from that back pressure. Real contraction and boundary-layer losses can reduce the flow through a calibrated orifice compared with the ideal nozzle prediction; a measured discharge coefficient accounts for those effects within its tested range.
Predict changes at a choked throat
At fixed reservoir pressure, the critical temperature is proportional to \(T_0\), critical density to \(1/T_0\) and critical speed to \(\sqrt{T_0}\). Their product shows that the choked mass flow scales as \(p_0A^*/\sqrt{T_0}\) for the same gas. Warming the original reservoir from 300 to 360 K at unchanged absolute pressure therefore reduces the ideal mass flow by \(\sqrt{300/360}=0.913\), to about 0.0320 kg/s. Increasing throat area or reservoir pressure has a direct linear effect while the downstream pressure stays low enough to maintain choking.
Derive the admissible jump from conservation laws
Supersonic gas in a duct can decelerate abruptly through a normal shock. The shock is thin compared with the duct dimensions, so treat it as a stationary discontinuity of unchanged area. Take a calorically perfect gas, no heat or shaft work and negligible elevation change. Mass, streamwise momentum and stagnation enthalpy are conserved:
Entropy increases through the shock, so the two end states cannot be joined with the isentropic pressure–temperature relation. Set \(r=\rho_2/\rho_1=V_1/V_2\). Momentum gives \(p_2/p_1=1+\gamma M_1^2(1-1/r)\) and the gas law gives
Substitution into the energy equation yields two roots, one for unchanged flow and the compression solution
For \(M_1>1\) this second state has higher density and lower Mach number. As \(M_1\to1^+\), every state ratio tends to unity. For very large upstream Mach number the compression ratio approaches \((\gamma+1)/(\gamma-1)\) in the constant-specific-heat approximation, although real-gas changes eventually limit that approximation.
Calculate a diffuser’s stagnation-pressure loss
Air upstream of a normal shock has \(M_1=2.0,\ p_1=80\,\mathrm{kPa}\) absolute and \(T_1=250\,\mathrm K\). Use \(\gamma=1.4,\ R=287\,\mathrm{J/(kg\,K)}\). The density ratio is
Hence \(p_2=360\,\mathrm{kPa}\) and \(T_2=250(4.50/2.667)=421.9\,\mathrm K\). The downstream Mach number is
Upstream speed is approximately 634 m/s and mass conservation gives about 238 m/s downstream.
The stagnation temperature upstream is \(250[1+0.2(4)]=450\,\mathrm K\); downstream it is \(421.9[1+0.2(0.577)^2]=450\,\mathrm K\) as required by energy conservation. Evaluate stagnation pressure separately from each local state by a hypothetical isentropic deceleration on its own side. Upstream \(p_{01}=80(1.8)^{3.5}=626\,\mathrm{kPa}\), whereas downstream \(p_{02}=360(1.0667)^{3.5}=451\,\mathrm{kPa}\). Recovery \(p_{02}/p_{01}=0.721\) shows that a large static pressure rise can accompany a 28% loss of stagnation pressure. For the same stagnation temperature the entropy rise is \(-R\ln(0.721)=94\,\mathrm{J/(kg\,K)}\), a positive value consistent with the irreversible deceleration.
A pitot tube facing the upstream supersonic flow forms its own shock ahead of the tip. The final stagnation pressure measured there corresponds ideally to isentropic deceleration after the probe’s shock, about 451 kPa here, rather than to the upstream isentropic stagnation pressure of 626 kPa. A conventional subsonic pitot reduction applied to the reading would therefore infer an incorrect upstream speed. By contrast, a static pressure tap placed sufficiently far upstream can still report the 80 kPa static state. The ratio \(451/80=5.64\) illustrates why the probe configuration must be stated when comparing a pressure ratio with a compressible-flow prediction.
The downstream temperature calculation can also be checked using mass flux. The upstream density is \(80000/[287(250)]=1.12\,\mathrm{kg/m^3}\) and the measured downstream static values imply \(360000/[287(421.9)]=2.97\,\mathrm{kg/m^3}\). Multiplication by the corresponding velocities gives roughly \(707\,\mathrm{kg/(m^2s)}\) on both sides. A calculation conserving stagnation pressure instead would generally fail one of these basic balances even if its pressure trend looked plausible.
The shock also changes the area needed to choke a downstream passage. For a given gas the choked mass flow scales as \(A^*p_0/\sqrt{T_0}\). Stagnation temperature is unchanged but stagnation pressure drops to 72.1% of its upstream value. Passing the same mass flow therefore requires a downstream critical area larger by \(1/0.721=1.39\). This does not mean the physical duct jumps in area at the normal shock. The critical area is the sonic reference area for an isentropic stream tube drawn from each side, and the two hypothetical reference conditions differ because entropy has increased.
A converging test section downstream that was sized from the upstream stagnation pressure may consequently choke earlier than expected. The entropy and critical-area tests point to the same lost capacity from different directions: one uses the gas state, the other its maximum deliverable mass flux. Together with conservation of actual mass flux at the shock, they make it possible to distinguish a real shock loss from a simple mismatch between static and total pressure instrumentation.
Find the two states that share a nozzle area ratio
For steady isentropic flow of a calorically perfect gas, combine continuity with stagnation enthalpy and the isentropic pressure law. The critical area \(A^*\) is the area giving Mach one for the same mass flow and stagnation state.

Read values from the plot
| Mach number | Heat-capacity ratio 1.3 | Heat-capacity ratio 1.4 | Heat-capacity ratio 1.667 |
|---|---|---|---|
| 0.15 | 3.9522 | 3.9103 | 3.8063 |
| 0.8125 | 1.0344 | 1.0333 | 1.0305 |
| 1.475 | 1.1714 | 1.1597 | 1.135 |
| 2.1375 | 2.0248 | 1.8977 | 1.6749 |
| 2.8 | 4.1165 | 3.5001 | 2.6222 |
Interactive calculation · change the inputs of this example
Change heat-capacity ratio and target area. Track both Mach branches and their common sonic limit.
The curves below are recalculated from this section’s equations in your browser. The fixed reference plot above remains available for comparison.
Time-dependent diffusion
Numerical partial differential equations
Derive the diffusion time-step restriction from two independent arguments and compare explicit and implicit decay of spatial modes.
From first principles
Derive the explicit heat step and its grid-dependent time scale
Take the heat equation \(T_t=\alpha T_{xx}\) with constant positive diffusivity on a uniform one-dimensional grid. Fourier conduction through each side of a cell produces a temperature update proportional to the difference of the two neighbour gradients. With forward Euler timing, collect those fluxes to obtain
When \(0\le r\le1/2\) the new temperature is a convex average of three old ones, preserving bounds on a source-free grid. To check whether a higher step could still be stable for all periodic grid disturbances, substitute \(T_j^n=g^n e^{ij\theta}\), where \(j\) is the node index. The amplification simplifies to
The alternating mode at \(\theta=\pi\) gives \(g=1-4r\), so \(|g|\le1\) again requires \(r\le1/2\). Halving spatial spacing therefore quarters the largest explicit time step for this discretization. Implicit stepping changes this restriction but still has to resolve any transient relevant to the measurement.
Derivation and applications
Can an energy-stable heat step create an alternating transient?
A diffusion mode should decay rather than oscillate. To distinguish decay of a norm from preservation of sign, examine the finite-element or finite-volume semidiscrete system \(M\dot u+Ku=0\), with symmetric positive definite mass matrix \(M\) and thermal stiffness \(K\) positive semidefinite. An eigenvector satisfying \(Kv=\lambda Mv\) has scalar amplitude \(y(t)\) obeying \(y'=-\lambda y\). A generalized \(\theta\) step applied to this mode gives
For Crank–Nicolson take \(\theta=1/2\). The factor \(G=(1-z/2)/(1+z/2)\) has \(|G|\le1\) for all \(z\ge0\) but changes sign when \(z>2\). An initial grid-scale component can therefore alternate in time. To test a remedy, replace the first full step by two half backward-Euler steps. Their combined factor is
Thereafter return to the second-order Crank–Nicolson update. After \(n\) further full steps the mode amplitudes, with and without the initial damping, are
For small \(z\), both startup strategies agree through first order, while for large \(z\) the two half steps strongly suppress the unresolved mode. This argument explains a startup treatment for nonsmooth initial data; sign preservation of every physical grid value is a stronger matrix property than sign preservation of one mode.
Worked example
Check damping of a near-grid-scale eigenmode
Take \(\lambda=2000\) s⁻¹ and \(\Delta t=0.0100\) s. Then \(z=20\). A single Crank–Nicolson step leaves \(-9/11=-0.818\) of the amplitude; two backward-Euler half steps leave \(1/121=0.00826\). The exact amplitude factor is
Both discrete results are bounded, but the startup treatment removes almost all of a mode that the time grid cannot resolve.
Second application
Check the cost for a physically slow component
For the same mesh and step, a slow mode with \(\lambda=2.00\) s⁻¹ has \(z=0.0200\). Crank–Nicolson gives \(0.99/1.01=0.980198\), the startup gives \(1/1.01^2=0.980296\) and the exact factor is \(0.980199\). The slow component changes by less than \(10^{-4}\) in this comparison. A timestep must still resolve a transient that is itself part of the desired output.
Discretise space and time separately
A heat pulse in a thin insulated rod smooths over time according to \(u_t=D u_{xx}\) for constant positive diffusivity \(D\). Use a uniform grid of spacing \(h\), and initially examine interior points or periodic boundaries so the stencil is unchanged everywhere. Replacing the second derivative by a centred difference gives a system of ordinary differential equations for the nodal temperatures. The time method still has to resolve the fastest rate that this spatial operator can generate.
An explicit Euler step yields \(u_i^{n+1}=r u_{i-1}^n+(1-2r)u_i^n+r u_{i+1}^n\) with \(r=D\Delta t/h^2\). If \(0\leq r\leq1/2\), the update is a convex combination of three temperatures. The maximum cannot rise and the minimum cannot fall in a source-free interior step. Starting with one hot node at 1 and neighbours at zero, \(r=0.4\) gives a centre value 0.2 and neighbours 0.4 after a single step. At \(r=0.6\) the centre would become negative although the continuum heat equation preserves nonnegativity.
Identify the spatial modes that set the limit
Insert \(u_j^n=g^n e^{\mathrm{i}j\theta}\), where \(\mathrm{i}\) is the imaginary unit and \(j\) indexes the grid. The two neighbouring values contribute factors \(e^{\pm\mathrm{i}\theta}\), yielding \(g=1-4r\sin^2(\theta/2)\). Long waves have \(\sin^2(\theta/2)\simeq\theta^2/4\), so their decay approaches the continuum rate as the mesh is refined. The alternating grid mode \(\theta=\pi\) has the most negative amplification and enforces \(r\leq1/2\) for bounded magnitude.
At the limiting value \(r=1/2\) the alternating mode flips sign without losing amplitude. A strict margin damps it. For \(D=10^{-4}\) m²/s and \(h=2\) mm, the maximum explicit step is
Refining to 1 mm reduces that limit to 0.005 s. The mesh gives a sharper temperature profile yet can cost four times more steps over the same physical interval, besides the increased number of spatial degrees of freedom.
Compare backward Euler and Crank–Nicolson
Writing the semidiscrete system as \(u'=-A_hu\), backward Euler solves \((I+\Delta t A_h)u^{n+1}=u^n\). Crank–Nicolson averages the old and new diffusive fluxes, giving \((I+\Delta t A_h/2)u^{n+1}=(I-\Delta t A_h/2)u^n\). For a Fourier mode put \(s=4r\sin^2(\theta/2)\). Their factors are \(1/(1+s)\) and \((1-s/2)/(1+s/2)\), respectively. Both remain bounded at arbitrarily large \(s\), but Crank–Nicolson may alternate for under-resolved sharp features.
With \(s=20\), backward Euler retains only \(1/21\) per step. Crank–Nicolson yields \(-9/11\), retaining much more of the fast component and reversing its sign. For a smooth low-frequency mode Crank–Nicolson generally gives more accurate temporal decay because it is second order. Decide whether early sharp transients or later smooth behaviour is the relevant physical quantity. To identify spatial and temporal error separately, refine \(\Delta t\) first on a fixed mesh, then refine space with time error kept well below spatial error. Merely halving both at once cannot reveal which term dominated the original discrepancy.
Apply a prescribed heat input without confusing it with temperature
An insulated periodic rod with uniform heating rate \(s\) measured in K/s has an average temperature that must rise by \(s\Delta t\) each step. Sum the centred second differences over the periodic indices: each nodal value appears with coefficients \(1,-2,1\), which cancel. The source alone changes the mean. For \(s=3\) K/s and a step of 0.02 s the numerical average must increase by 0.06 K, independently of the diffusivity and initial profile.
A code can pass this global test while still mishandling short-wave damping, since an alternating error has zero spatial mean. Pair a mean-temperature test with a nonconstant mode-decay test. Use a homogeneous periodic run for isolates of diffusion, and a uniform temperature with prescribed source for the storage term. A failure in one test then identifies a different part of the mathematical balance than a failure in the other.
Prove decay of a discrete thermal energy
Let a closed semidiscrete diffusion model be \(M\dot u+Ku=0\), with \(M\) symmetric positive definite and \(K\) symmetric positive semidefinite. Assume \(K{\bf1}=0\), expressing zero flux for a uniform temperature. Backward Euler satisfies \(M(u^{n+1}-u^n)+\Delta t Ku^{n+1}=0\). Multiplying by the constant vector and using symmetry gives
Thus the capacity-weighted sum, proportional to stored sensible heat for constant capacities and a fixed reference, is conserved for any step size.
Now multiply by \(u^{n+1}\). The identity \(a^TM(a-b)=[\|a\|_M^2-\|b\|_M^2+\|a-b\|_M^2]/2\) yields the exact balance
Both terms are nonnegative. The quadratic quantity therefore decays although total sensible heat is conserved. Subtracting the conserved mean first yields the same decay statement for temperature variation around equilibrium. The first term represents spatial smoothing measured at the new time, and the second reflects the numerical time update. This derivation gives a stability certificate on nonuniform grids without assuming Fourier modes.
Audit two cells with different heat capacities
Choose capacities 1 and 3 J/K, conductance 2 W/K, and initial temperature deviations \((4,0)^T\) K. The conserved sensible heat is 4 J, so the final equilibrium in a closed system must be one kelvin above reference. At \(\Delta t=0.5\) s the matrix \(M+\Delta tK\) has rows \((2,-1)\) and \((-1,4)\), and the right-hand side is \((4,0)^T\). The new temperatures are \((16/7,4/7)^T\). Checking their weighted sum gives \(16/7+3(4/7)=4\), as required. The unweighted average changes, which is physically appropriate for unequal capacities.
The quadratic quantity at the start is \(4^2/2=8\). After the step it is
Its drop is \(240/49\). The conductive contribution is \((0.5)(2)(12/7)^2=144/49\); the time-update contribution is
Their sum recovers the measured drop exactly. Neither contribution equals a loss of the 4 J of sensible heat. The quadratic measure depends on squared temperatures and has different physical units.
A positive heat supply or a prescribed exterior temperature introduces a boundary or source work term into these identities. Applying the closed-system decay test to an externally heated experiment would therefore diagnose the wrong physical model. Verify which conserved or dissipated quantity is actually implied by the capacity matrix, boundary conditions and source terms before comparing numerical integrators.
The conserved mean suggests another check after many large steps. The steady state must have zero conductance dissipation, which for two connected cells requires equal temperatures. Together with the weighted heat total this fixes both temperatures at one kelvin above reference. A scheme that instead approaches the unweighted initial average of two would be converging to the wrong conserved quantity despite producing a visually smooth, uniform endpoint. The measured quadratic variation about the correct mean tends to zero; the uncentred squared quantity tends to a positive constant because the remaining uniform state still has temperature above the chosen reference.
What happens to a grid-scale temperature ripple?
The alternating spatial mode on a uniform heat grid has discrete Laplacian eigenvalue \(-4/\Delta x^2\). Substitute this mode into each method and compare the amplitude after one step. The plot isolates the shortest resolvable pattern.

Read values from the plot
| Diffusion number αΔt/Δx² | Forward Euler | Backward Euler | Crank–Nicolson |
|---|---|---|---|
| 0 | 1 | 1 | 1 |
| 0.275 | −0.1 | 0.47619 | 0.29032 |
| 0.55 | −1.2 | 0.3125 | −0.047619 |
| 0.825 | −2.3 | 0.23256 | −0.24528 |
| 1.1 | −3.4 | 0.18519 | −0.375 |
Change parameters · What happens to a grid-scale temperature ripple?
Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.
Interfaces, contact resistance and Robin data
Numerical partial differential equations
Derive a face flux that transports the same heat through two different materials and through a convective boundary.
From first principles
Derive an interface flux from two half-cell temperature drops
Two neighbouring cell centres can lie in materials with sharply different conductivities. Consider a planar interface between them, normal to a one-dimensional steady heat flow. Let \(d_L,d_R\) be the distances from the centres to the interface, and suppose there is no interface source, storage or contact resistance. Steady conservation requires one heat flux \(q\), positive to the right, and perfect contact requires one interface temperature \(T_I\). Applying Fourier’s law to each half gives
Solve each expression for its temperature drop, add the two drops and eliminate \(T_I\). The conductance follows from the actual material distances:
For equal distances this is the harmonic mean; only equal conductivities recover the same result as the arithmetic mean. If one material approaches zero conductivity with positive thickness, the flux approaches zero. A finite thermal contact resistance adds another temperature drop \(qR_c\), while a heat-generating interface alters the flux-continuity condition itself.
Derivation and applications
Enforce the flux jump at a heat-generating interface
Two materials in series carry the same conductive current only if their common interface stores and generates no energy. Consider two homogeneous slabs with an idealized thin heater between them. Let \(T_L,T_R\) be prescribed outer surface temperatures, \(R_L,R_R\) the positive thermal resistances per unit area in m² K/W, and \(s\) the heater release in W/m². Assume perfect thermal contact, steady conduction and negligible thickness of the heater. Define the interface temperature as \(T_I\) and flux \(q\) positive to the right.
Fourier’s law integrated through each slab relates its own constant flux to its temperature drop. The pillbox balance across the heater requires the right flux to exceed the left one by the generated heat:
Substitute the two face laws into the balance. With \(g_j=1/R_j\) as the two conductances per area, the interface temperature and individual fluxes are
Alternatively eliminate \(T_I\) to express the fluxes as through-flow plus a split source. The resistances determine the fraction of added heat directed to each boundary:
Setting \(s=0\) restores a single common flux. Equal outside temperatures send more generated heat toward the lower resistance. For an interface at a mesh face the two cells therefore need distinct physical face fluxes linked by the stated jump; assigning exactly the same flux while adding no source anywhere violates energy balance.
Worked example
Determine both heat flows through an instrumented wall
Let \(T_L=320\) K, \(T_R=300\) K, \(R_L=0.100\), \(R_R=0.200\) m² K/W and \(s=150\) W/m². The interface sees conductances \(10.0\) and \(5.00\) W/(m² K) and reaches \(323.33\) K. The left flux is \(-33.3\) W/m² and the right flux \(116.7\) W/m². Heat leaves on both sides, including toward the hotter external surface. Their oriented difference equals \(150\) W/m².
Second application
Select a heater setting that makes one sensor read zero
Keeping the same temperatures and layers, impose \(q_L=0\). Then
All generated heat exits on the right. Reducing \(s\) to zero instead gives \(66.7\) W/m² from left to right through both layers. A zero left-side flux in the heated experiment therefore does not imply an insulating left layer.
Touch two long solids: which temperature does the interface acquire?
Two long blocks, initially at temperatures \(T_L>T_R\), are pressed into ideal thermal contact at \(x=0\). Denote conductivity by \(k\), volumetric heat capacity by \(C\), and diffusivity by \(\alpha=k/C\). At early times the penetration distance on each side is small compared with its length. Model the blocks as half-spaces with a common interfacial temperature \(T_*\). This transient contact problem has no fixed layer thickness to insert into a pair of steady thermal resistances.
In the right half-space the similarity coordinate is \(x/(2\sqrt{\alpha_R t})\). Substituting a function \(F\) of this coordinate into the heat equation gives
Its bounded solution matching a fixed surface and a uniform distant temperature has an error-function shape. Thus \(T_R(x,t)=T_*+(T_R-T_*)\operatorname{erf}[x/(2\sqrt{\alpha_R t})]\). The left solution uses distance \(-x\), its own diffusivity and the initial left temperature. These profiles share their interface temperature by construction; conservation still requires their heat fluxes to match.
Differentiate the error functions at zero and apply Fourier's law. The left flux equals \(e_L(T_L-T_*)/\sqrt{\pi t}\), and the right flux is \(e_R(T_*-T_R)/\sqrt{\pi t}\), both oriented from left to right. Here \(e=\sqrt{kC}\) is thermal effusivity. Equating the fluxes gives
The interfacial temperature is independent of time within this idealisation, while the penetration layers broaden continuously.
Open full-size diagramFor the notebook's \(k_L=4,\ k_R=1\,\mathrm{W/(m\,K)}\) and equal capacities of \(10^6\,\mathrm{J/(m^3\,K)}\), the effusivity ratio is two. Between 80 and 20 degrees Celsius the common temperature is 60 degrees Celsius. The initially infinite ideal flux is integrable: the energy transferred by time \(t\) equals \(2tq(t)\) per unit contact area. The notebook independently integrates temperature loss and gain throughout the two bodies and checks this balance. A real surface resistance, a finite approach time or the far surface of a finite specimen would eventually invalidate different parts of the idealisation.
A finite-volume scheme offers a sensitive check of this benchmark. On a sufficiently long computational domain, sum nodal or cell-average energies on each side at the same time. Internal face fluxes cancel in the total by conservation. A scheme may pass that global check while partitioning energy incorrectly between materials. Compare both individual energy changes, the early flux integrated over the first step and the temperature nearest the interface. This combination tests the material weighting and the time integration independently.
Keep both initial temperatures and conductivities fixed, but multiply the right-hand volumetric heat capacity by four. Predict \(T_*\) and the right-hand penetration depth at the same time.
Work through the solution
The right effusivity doubles and now equals the left one. The interface becomes 50 degrees Celsius. At fixed \(k_R\) the right diffusivity falls to one quarter, so the penetration distance proportional to \(\sqrt{\alpha_Rt}\) halves. A larger local capacity can draw more flux while confining the altered temperature to a narrower region.
Change parameters · Explore this notebook example
Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.
One flux through resistances in series
Let \(q=-kT'\) be heat flux in the positive coordinate direction, with unit cross-sectional area and no internal source. Between two cell centres separated by an interface, let the left and right centre-to-interface distances be \(d_L,d_R\). Piecewise constant conductivities \(k_L,k_R>0\) make the equilibrium temperature linear in each segment. If the interface has perfect contact, its temperature \(T_f\) is continuous. Integrating Fourier's law on each side gives
Adding eliminates the unknown interface temperature.
For equal distances this amounts to using the harmonic mean conductivity over the full centre spacing. Inserting the same signed \(q\) as the outflow of the left cell and the inflow of the right cell produces cancellation when their balances are added. If a material interface stores energy or supplies heat independently, a flux jump belongs in the balance and this steady series calculation must be modified.
Measure the temperature drop
Take \(d_L=d_R=0.01\) m, \(k_L=2,\ k_R=10\) W/(m K) and \(T_L=30,\ T_R=18\) °C. The series resistance per unit area is \(0.005+0.001=0.006\) m²K/W. The flux is \(2000\) W/m² and the interface temperature is \(30-2000(0.005)=20\) °C. The lower conductivity carries the larger temperature drop despite carrying the same flux. Using the arithmetic mean 6 with the centre difference over 0.02 m instead predicts \(3600\) W/m².
Introduce a contact resistance \(R_c=0.002\) m²K/W. Its temperature jump is \(qR_c\); the total resistance rises to 0.008, reducing the heat flux to 1500 W/m². The two sides of the contact now have temperatures 22.5 and 19.5 °C. Imposing a single interface temperature on this model would remove the physically measured 3 K jump.
OneSimulation · Resolve a temperature jump at imperfect contact
Two slabs are each 0.06 m thick, with conductivities 12 and 3 W/(m K). Their outer surfaces are held 30 K apart. A contact resistance \(R_c\) permits two distinct temperatures at the shared physical location. The flux stays continuous. The face law and the exact reference for the whole assembly are
The code adds \(R_c\) only to the resistance between the two cells adjacent to the contact. OneSimulation solves the resulting balance system. The flux falls from 1200 to 800 W/m² for \(R_c=0.0125\) m² K/W. Reconstructing the two face temperatures gives 326 K and 316 K. Connecting only the cell-centre temperatures would smear this 10 K jump over one mesh cell. Refining an ideal-contact model would converge to the wrong interface law.
"""Find the temperature jump at an imperfect contact between two slabs."""
import matplotlib.pyplot as plt
import numpy as np
from onesim.numerics.linear.matrices.dense_linear_algebra import solve_dense
n = 12 # even number of equal, cell-centred control volumes
length = 0.12 # m
dx = length / n
k = np.repeat([12., 3.], n // 2) # W/(m K)
left, right = 330., 300. # K
centres = (np.arange(n) + 0.5) * dx
fig, ax = plt.subplots(figsize=(6.8, 3.8), constrained_layout=True)
for contact, colour in [(0.0, "#a4492b"), (0.0125, "#176879")]: # m² K/W
resistance = np.r_[dx/(2*k[0]), dx/(2*k[:-1]) + dx/(2*k[1:]), dx/(2*k[-1])]
resistance[n//2] += contact
g = 1 / resistance
matrix = np.diag(g[:-1]+g[1:]) - np.diag(g[1:-1], 1) - np.diag(g[1:-1], -1)
rhs = np.zeros(n)
rhs[0], rhs[-1] = g[0]*left, g[-1]*right
temperature = solve_dense(matrix, rhs)
fluxes = -np.diff(np.r_[left, temperature, right]) / resistance
q = fluxes[0]
assert np.allclose(fluxes, (left-right)/(length/2/k[0]+contact+length/2/k[-1]))
hot_face = temperature[n//2-1] - q*dx/(2*k[0])
cold_face = temperature[n//2] + q*dx/(2*k[-1])
assert np.isclose(hot_face-cold_face, q*contact)
x = np.r_[0, centres[:n//2], length/2, length/2, centres[n//2:], length]
y = np.r_[left, temperature[:n//2], hot_face, cold_face, temperature[n//2:], right]
ax.plot(100*x, y, color=colour, label=f"Contact resistance {contact:g} m² K/W")
print(f"Flux {q:.0f} W/m²; interface jump {hot_face-cold_face:.1f} K")
ax.set(xlabel="Distance through slabs (cm)", ylabel="Temperature (K)")
ax.legend()
ax.grid(alpha=0.2)
fig.savefig("partial-differential-equations.png", dpi=160)

Apply a convective boundary
At an exterior face the outward heat flux obeys \(q=h_c(T_s-T_\infty)\), a Robin condition. Eliminate the unknown surface temperature as above to obtain
If \(h_c\) tends to zero, the boundary becomes insulating. With very large \(h_c\), the surface approaches ambient temperature while the finite centre-to-face resistance remains. For \(d=0.01\) m, \(k=2\), \(h_c=100\) W/(m² K), \(T_P-T_\infty=15\) K, the predicted flux is 1000 W/m² and the surface is 10 K above ambient. Multiplying by face area converts this flux to the power used in a cell energy balance. Mixing up these two quantities makes the result depend incorrectly on mesh area.
A jump located inside a cell
If the materials change at a known position inside a segment, the fractions of that segment matter. Moving the interface so that 75 percent of the length has conductivity 2 and 25 percent has conductivity 10 produces effective conductivity \(1/(0.75/2+0.25/10)=2.5\) W/(m K). Giving each material half the segment instead would give \(10/3\) W/(m K). The harmonic rule depends on actual layer thicknesses. A mesh-refinement study that snaps the interface to different positions at every refinement can mix geometric representation error with flux-discretisation error.
Derive effective transport parallel and normal to layers
A fine laminate of isotropic materials can have a direction-dependent macroscopic conductivity. Consider two perfectly bonded planar layers occupying thickness fractions \(\theta\) and \(1-\theta\), with conductivities \(k_1,k_2\). Assume steady conduction, no internal sources, and boundary conditions that permit a one-dimensional field for the loading orientation being tested. For transport normal to the layers, continuity forces equal flux. Adding their temperature drops across a total thickness \(L\) gives
For transport parallel to the layers the imposed longitudinal gradient is common and the area-weighted fluxes add, giving \(k_\parallel=\theta k_1+(1-\theta)k_2\).
The arithmetic and harmonic expressions are thus both correct, but apply to different geometries of imposed transport. Their ordering follows without a conductivity table: multiplying the two positive weighted sums \(\theta k_1+(1-\theta)k_2\) and \(\theta/k_1+(1-\theta)/k_2\) gives \(1+\theta(1-\theta)(k_1-k_2)^2/(k_1k_2)\ge1\). Equality requires identical conductivities or a missing layer. Spatial averaging performed before identifying the flux direction would erase precisely the distinction that determines the coarse physics.
Predict two experiments on the same material sample
Suppose a repeated laminate consists of 40 percent material with conductivity 1 and 60 percent with conductivity 10 W/(m K). Then \(k_\parallel=0.4+6=6.4\) W/(m K) and \(k_\perp=1/(0.4+0.06)=50/23\approx2.174\) W/(m K). A temperature drop of 4 K over 0.02 m imposes gradient magnitude 200 K/m. Perfectly normal loading produces flux magnitude about 434.8 W/m², whereas the same gradient parallel to the layers yields 1280 W/m². The larger flux is consistent with the fast material providing a continuous path in the latter orientation.
For the normal experiment the low-conductivity phase occupies 0.008 m and accounts for a drop \(434.8(0.008)/1\approx3.478\) K. The high-conductivity phase occupies 0.012 m and drops only \(434.8(0.012)/10\approx0.522\) K. Adding recovers the imposed four kelvin. For the parallel experiment individual flux densities are 200 and 2000 W/m². Averaging by their area fractions gives
These local checks use the same two material properties and explain the difference in the observed coarse responses.
Using the effective tensor assumes the observation scale spans representative layers. A sensor within one layer may respond to its local temperature slope instead. Finite contact resistance adds a temperature jump in the normal direction; if the number of interfaces per macroscopic length changes, the effective normal resistance changes even at identical material fractions. Measuring both orientations can distinguish geometric or contact effects that a single scalar fitted conductivity would conceal.
Rotating a laminate specimen through ninety degrees interchanges the roles of these two effective values without changing its volume fractions. This makes an orientation experiment particularly discriminating: a fit that happened to reproduce the first orientation by adjusting a scalar conductivity predicts the same flux for the rotated specimen, whereas the fine-layer balance predicts a factor of about \(6.4/(50/23)=2.94\) between them.
Repeating the test over multiple layer spacings also probes the assumption of negligible contact resistance.
Separate the temperature jump from the bulk gradient
A steady one-dimensional stack has two positive bulk conduction resistances in series with a contact resistance \(R_c\). Flux is common to all three. Scale \(R_c\) by the sum of bulk resistances and predict where probes would measure the imposed end-to-end temperature difference.

Read values from the plot
| Contact resistance / combined bulk resistance | At interface | Within the two layers |
|---|---|---|
| 0 | 0 | 1 |
| 1.25 | 0.55556 | 0.44444 |
| 2.5 | 0.71429 | 0.28571 |
| 3.75 | 0.78947 | 0.21053 |
| 5 | 0.83333 | 0.16667 |
Change parameters · Separate the temperature jump from the bulk gradient
Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.
What a periodic grid does to a decaying Fourier mode
Numerical partial differential equations
A periodic diffusion solver predicts the shape of a sampled wave while its amplitude decays too slowly. Fourier analysis separates spatial differentiation error, an unresolved physical mode and errors caused by the time integrator.
Diagonalise the differential operator on the periodic interval
Use a dimensionless coordinate \(0\le x<2\pi\) and solve \(u_t=\kappa u_{xx}\) with periodic values and periodic derivatives. The complex exponentials \(e^{imx}\), with integer m, satisfy both conditions and are eigenfunctions of the second derivative. Put \(u(x,t)=A_m(t)e^{imx}\) and cancel the common exponential. The scalar amplitude equation is
Thus every cosine or sine mode decays by \(\exp(-\kappa m^2t)\), with no phase shift, while the m=0 mean is conserved.
On a uniform grid \(x_j=2\pi j/N\), the samples of \(m\) and \(m+\ell N\) agree for every integer \(\ell\). A discrete Fourier transform returns coefficients in one representative band. For the real cosine test with even N we can fold a positive physical mode into \(k=\min(r,N-r)\), \(r=m\bmod N\). A Fourier spectral Laplacian multiplies that coefficient by \(-k^2\). For a resolved mode it differentiates the trigonometric interpolant exactly, up to arithmetic. For unresolved data it differentiates the aliased representative; no operation using only those samples can identify the original m.
Apply the centred difference stencil to a single wave
The standard second difference is \((u_{j+1}-2u_j+u_{j-1})/h^2\), \(h=2\pi/N\). Put the grid wave \(u_j=e^{ikjh}\) into the stencil. Factor out the common phase and simplify with \(e^{i\xi}+e^{-i\xi}=2\cos\xi\). This gives the symbol and its small-h expansion:
The effective squared wavenumber is smaller than \(k^2\) for every nonconstant mode in the resolved band, so this spatial approximation decays too slowly if the time equation is integrated exactly. The error is modest when \(kh\ll1\), but at the Nyquist mode \(kh=\pi\) the ratio is
A stable time integrator cannot repair this spatial attenuation error without additional modeling. The experiment exponentiates both discretizations' symbols exactly, isolating space and sampling here.
Measure separate errors with the same sampled initial data
Choose \(\kappa=0.5,\ m=3,\ N=16\). The true squared wavenumber is 9 and the difference stencil gives 8.006. Starting at unit amplitude, at \(t=0.20\) exact and spectral amplitudes are 0.40657; finite differences give 0.44906. Doubling N to 32 changes the difference result to 0.41716. The absolute amplitude error falls from 0.04249 to 0.01059, a ratio of 4.01 consistent with the second-order expansion. This is a spatial-convergence study because time evolution introduces no truncation error.
Now take \(m=12,\ N=16\). Every sampled cosine equals the low mode \(k=4\) at \(t=0\). At \(t=0.02\), the continuum amplitude for the true physical mode is \(e^{-1.44}=0.237\), whereas the spectral grid predicts
A spectral computation can therefore agree exactly with its trigonometric interpolant and disagree strongly with the evolution of the intended signal. Sampling on a finer grid or obtaining prior bandwidth information resolves that ambiguity. The mean mode is particularly revealing when a nonconstant physical cosine aliases to a constant.
Start at mode 3 and successively double N from 8 to 32. Compute two amplitude-error ratios at the same time. Then use mode 12 on 16 points to observe an alias, and increase N until the Fourier grid represents the intended mode.
Tutorial · resolve a damping rate to a target tolerance
For a mode well inside the grid bandwidth, estimate the number of samples per wavelength needed for a relative error below 1% in the decay rate with centred differences. Test the estimate for \(m=2\). How could the time integrator contaminate a measurement of this spatial error?
Show the resolution estimate
Writing p for samples per wavelength gives
The relative rate error is approximately \((kh)^2/12\). Requiring at most 0.01 gives \(p\gtrsim18.14\); try 19 samples per wavelength, or \(N=38\) for \(m=2\). The exact ratio \([\sin(\pi/19)/(\pi/19)]^2\) is about 0.991. A forward-Euler step would replace exponential propagation by \(1-\kappa k_{\rm eff}^2\Delta t\). Its repeated-step error could partly mask the underdamping of the spatial stencil. Compare with the exponential of the discrete symbol before attributing a measured rate to space alone.
Further reading · Lloyd N. Trefethen, Spectral Methods in MATLAB · periodic grids, Fourier differentiation and downloadable programs
Check the discrete eigenvalue with OneSimulation
A spatial sine also diagonalises the five-point Dirichlet Laplacian on a square. Use the same modified wave-number argument in both coordinate directions. Run python poisson-mode.py --mode 2 --cells 8 16 32 and compare the observed nodal error with the discrete eigenvalue prediction in the CSV. This is a steady forced problem whose spatial operator can be checked independently of any time integrator. Download the OneSimulation verification model.
Measuring magnetic core loss by a hysteresis loop and by calorimetry
Electromechanics, optics and measurement
A closed loop on a graph of magnetic induction against field encloses an area with units of energy per unit volume. A thermometer measures kelvins. Bring these two observations onto the same scale, account for the winding heat, and determine when the two experiments actually test the same material loss.
Infer the field and the induction from independent windings
Wind a toroidal specimen with a primary winding of \(N_p\) turns and a lightly loaded pickup of \(N_s\) turns. Let \(A\) be the representative iron cross-sectional area, \(\ell\) the mean magnetic path length and \(V_c=A\ell\) the magnetic volume. Neglect a gap and leakage initially. Ampère's law around a path through the core gives
This relation is accurate when the toroid is slender enough that the spread of path radii is small and the pickup current is negligible. In a thick toroid \(H(r)=N_pi_p/(2\pi r)\), so one point on a nominal loop can actually represent a range of local field values.
Faraday's law supplies the second observable. Choose winding polarity so the reported voltage is
Integrating the voltage gives the change in cross-section-averaged magnetic induction. The pickup cannot determine a constant induction offset, because static flux induces no voltage. A closed loop area is insensitive to adding a constant to \(B\) or \(H\), but a dc offset in the voltage integrates into a time-dependent ramp and prevents the reconstructed trajectory from closing. In steady periodic operation one can subtract the voltage mean over a complete period before integration. Applying that correction to a genuinely evolving magnetisation process would remove part of a real flux change.
Multiply the two measured field quantities in the appropriate order. The field work supplied per unit material volume on a small induction change is \(H\,dB\). The source term associated with the magnetising flux is \(i_p v_{p,{\rm induced}}\,dt\). Using \(v_{p,{\rm induced}}\simeq(N_p/N_s)v_s\), its value is
Integrating around a settled cycle gives the magnetic loss
The field can absorb positive work and return some of it later in the same cycle. The area measures the algebraic remainder. Reversing the polarity of a single signal flips the loop orientation. A passively heated specimen must receive positive net energy when signs are defined for power entering the core. Simply taking the absolute value of all instantaneous products would count reversible storage twice and can grossly overestimate the heat.
Work an elliptical loop from time-domain signals
Suppose a nearly sinusoidal field is \(H=H_p\cos\omega t\) and the induction lags it by a positive angle \(\delta\), \(B=B_p\cos(\omega t-\delta)\). Differentiate the latter and multiply by \(H\). Over one cycle \(\cos\omega t\sin\omega t\) averages to zero, and \(\cos^2\omega t\) averages to one half. The resulting mean power density is \(\omega H_pB_p\sin\delta/2\), giving \(\oint H\,dB=\pi H_pB_p\sin\delta\). With zero lag the two signals trace a line and the area vanishes, even if the peak values are large. A saturation-distorted loop need not be elliptical; the original time integral remains valid with synchronised data.
Take \(H_p=120\,{\rm A/m}\), \(B_p=0.200\,{\rm T}\) and \(\delta=12^\circ\). The energy per cycle and volume is \(15.68\,{\rm J/m^3}\). A toroid with \(\ell=0.20\,{\rm m}\), \(A=2.0\times10^{-4}\,{\rm m^2}\) and \(V_c=40\,{\rm cm^3}\) dissipates \(0.627\,{\rm mJ}\) per cycle. At \(f=200\,{\rm Hz}\) its power is \(0.125\,{\rm W}\). With \(N_p=100\), the necessary current peak is \(0.240\,{\rm A}\). With \(N_s=50\), the pickup voltage has peak \(N_sA(2\pi f)B_p=2.51\,{\rm V}\). These last two predictions allow the raw oscilloscope traces to be checked before a calculated loss in watts is trusted.
For sampled periodic data use \(w=\sum_n(H_n+H_{n+1})(B_{n+1}-B_n)/2\), including the segment from the last point back to the first. This trapezoidal line integral computes an oriented polygon area. Plot the starting and ending points before adding the closing segment. Connecting widely separated endpoints by hand hides drift and can generate a fictitious wedge whose area depends on acquisition timing. Repeat at higher sampling rates to see whether corners or switching features carry appreciable extra area. When a periodic excitation has harmonics the time increment must resolve the highest significant harmonic in both measured signals.
Compare a thermal measurement with the magnetic area
Consider first a calorimeter that receives heat only from the core. Let the heat capacity of specimen, holder and sensor be \(C_{\rm eff}\). Let the leakage conductance to an ambient bath be \(G\), and let \(\Delta T=T-T_a\). The thermal balance \(C_{\rm eff}\dot{\Delta T}=P_c-G\Delta T\) predicts a steady offset \(P_c/G\) and an initial heating slope \(P_c/C_{\rm eff}\). A small thermometer lag or poor thermal contact can make the earliest measured slope misleading even though environmental losses are then small. A separate electrical heater placed where the core deposits its heat can calibrate the effective thermal response.
For \(C_{\rm eff}=20\,{\rm J/K}\), \(G=0.015\,{\rm W/K}\), and a \(2.0\,{\rm K}\) rise above ambient, the magnetic loss \(0.125\,{\rm W}\) would give a slope of about \(0.00477\,{\rm K/s}\). The heat already leaking to the bath is \(0.030\,{\rm W}\), too large to discard in a ten-percent comparison. If the winding is inside the same calorimeter, its Ohmic heat must enter the balance as well. With primary resistance \(1.50\,\Omega\) and the computed sinusoidal current, winding heating is
The expected slope of the combined package at the same temperature is now \(0.00693\,{\rm K/s}\). Subtraction of winding heat recovers the core result only when the estimated resistance represents the winding at its operating temperature and frequency.
A thermal estimate drawn from a whole interval is often more robust than a derivative from two adjacent temperature samples. Integrating gives
Divide by the duration for mean power, then remove other measured heat sources. A drifting ambient must be recorded explicitly because the calorimeter stores energy relative to its own absolute temperature. If the core and coil equilibrate slowly with each other, a single fitted heat capacity can depend on the fitting time window. A two-temperature model or a longer dwell then supplies an independent diagnostic.
Separate reversible exchange from hysteretic and induced currents
A single measured loop at finite frequency gives the total energy dissipated by the core at that prescribed waveform and temperature. The loop can include irreversible domain processes, eddy currents and other rate-dependent effects. It does not by itself split these contributions. To probe their different scaling hold the peak induction and waveform shape fixed, then change frequency. Under a restricted low-frequency model the quasi-static hysteresis energy per cycle is approximately constant, while classical thin-lamination eddy-current power scales as \(f^2B_p^2\). Its energy per cycle therefore scales roughly as \(f\). Plotting the measured loss per cycle and volume against \(f\) tests whether such an intercept-plus-slope description fits the chosen range.
Suppose the area is \(12\,{\rm J/m^3}\) at \(100\,{\rm Hz}\) and \(20\,{\rm J/m^3}\) at \(300\,{\rm Hz}\), at the same peak induction. A straight line gives intercept \(8\,{\rm J/m^3}\) and slope \(0.040\,{\rm J\,s/m^3}\). It predicts \(16\,{\rm J/m^3}\) at \(200\,{\rm Hz}\), near the elliptical-loop calculation. Two points always determine a line. A third and fourth frequency, together with uncertainties, are required to test the law. Different losses can share similar frequency scaling over a short interval, and temperature-dependent conductivity can bend a nominally simple curve.
Use the pickup to reject the reversible part of terminal power
Measuring primary terminal voltage and current with a power analyser provides a separate electrical route to loss, but the wanted number can be a small difference between terms. The applied voltage contains winding resistance, induced magnetising voltage, leakage-inductance voltage and possible parasitic contributions. In steady periodic operation the energy stored in a fixed linear leakage inductance returns after each cycle, while winding resistance dissipates energy permanently. The secondary pickup preferentially measures the core-linked flux. Forming \(p_c(t)=(N_p/N_s)i_p(t)v_s(t)\) and averaging over a full cycle estimates core power without directly including the primary's copper voltage drop. It relies on both windings linking the same relevant flux and on negligible power drawn by the pickup.
For the elliptical example the primary magnetising voltage has peak \(5.03\,{\rm V}\) and leads the induction by ninety degrees. Its phase relative to the current is
The core branch's apparent power is \(V_{\rm rms}I_{\rm rms}\approx0.603\,{\rm VA}\); its mean dissipative part is about \(0.125\,{\rm W}\), and the reactive part is about \(0.590\,{\rm var}\). Only the mean part contributes net heating of the magnetic volume. Including the winding voltage adds about \(0.043\,{\rm W}\) of real power to the terminal reading. A simple product of peak current and peak secondary voltage, without the turns ratio, factor one half and phase factor, has no reason to agree with either measured loss.
Consider a nearly ideal core with the same peak signals but a lag of only one degree. Its loss is about \(10.5\,{\rm mW}\), while the much larger reversible power exchange is almost unchanged. A time offset of \(10\,\mu{\rm s}\) at \(200\,{\rm Hz}\) adds \(0.72^\circ\), causing a relative loss error of approximately \(72\%\) for that small lag. Calibrate the relative channel delays using a reference signal through the actual current transducer and voltage chain, including their filters. Adjusting traces on screen until a core loop appears narrow assumes the very loss one is trying to measure. A synchronous measurement over many periods suppresses random noise but does not remove a persistent delay bias.
Test reconstruction on a waveform with a third harmonic
Let \(H(t)=H_1\cos\omega t+H_3\cos3\omega t\) while \(B(t)=B_1\cos(\omega t-\delta_1)+B_3\cos(3\omega t-\delta_3)\). With these definitions \(\delta_n\) is the phase lag of the \(n\)th harmonic in its own sinusoid. Multiplying \(H\) by \(\dot B\) and integrating over an integer number of fundamental periods eliminates products of different harmonics. Each surviving harmonic contributes the number of its own cycles in one fundamental period. The area per fundamental period is therefore \(\pi[H_1B_1\sin\delta_1+3H_3B_3\sin\delta_3]\). This identity tests whether a numerical area calculation tracks the full waveform. It does not assume that a real material is linear; here the two signals are supplied as measured periodic functions.
Use the earlier fundamental values and add \(H_3=20\,{\rm A/m}\), \(B_3=0.030\,{\rm T}\) and \(\delta_3=30^\circ\). The third harmonic contributes \(2.83\,{\rm J/m^3}\) in each fundamental period. This represents an additional \(0.0226\,{\rm W}\) for the chosen specimen and frequency. A fundamental-only sine fit would miss nearly fifteen percent of the resulting total area. An apparent jagged loop can also arise from asynchronous sampling or an offset. Distinguish genuine harmonics by checking that they are phase locked to the drive and persist under a change in sampling rate and analogue bandwidth.
Sweep phase and read the oriented loop
The live experiment reconstructs the \(H,B\) trajectory and compares it with a zero-lag reference. It uses the same peak field and induction for the two curves. At fixed peaks changing frequency leaves an assigned phase lag and therefore the prescribed energy per cycle unchanged, while watts rise with the number of cycles per second. A real core can change its lag and waveform with frequency; the graph separates this independent variable so that the meaning of the two scaled quantities is clear. Add a timing offset and predict the direction of the area error before checking its reported size. Near zero lag even the direction of an apparent loop can be controlled by a small electronic offset.
Two toroids are made of the same nominal material with equal cross sections but different mean path lengths. How should a result reported only as watts be compared?
Work through the solution
Determine actual magnetic volume for each toroid and calculate the energy per unit volume per cycle, \(P/(fV_c)\). Also check that both experienced the same induction waveform, frequency and temperature. Equal primary currents need not give equal field when the path lengths differ; equal primary applied voltages need not give equal core induction if turns, winding voltage drops or area differ. Reproducing the actual \(B(t)\) with feedback on the pickup is a more direct way to match excitation. Report dimensions and peak induction with the result so a reader can reconstruct what material condition was tested.
A saturated sample shows a small loop during a biased excitation that never crosses zero induction. Does the area formula still apply?
Work through the solution
A settled periodic minor loop encloses an area representing the net cyclic energy under exactly that bias and excursion. Adding a static induction offset does not change \(\oint H\,dB\), but the bias can alter the trajectory, differential permeability, and width of the minor loop itself. Do not infer the full major-loop energy from its area. The pickup returns only changes of induction unless an independent dc measurement or a known magnetic preparation supplies the offset. A bias winding may additionally heat the calorimeter, so include its measured power when comparing with thermal loss.
Tutorial on comparing two loss measurements
A data logger reports \(H_p\) and \(B_p\) correctly but adds an uncorrected \(10\,\mu{\rm s}\) delay to the induction channel. Estimate the fractional area error of the elliptical example.
Work through the solution
At \(200\,{\rm Hz}\) the extra apparent lag is
The reported area is multiplied by \(\sin(12.72^\circ)/\sin(12^\circ)\), about \(1.059\). An uncorrected delay of only one hundred-thousandth of a second overstates the core loss by about six percent. For a very low-loss specimen with much smaller physical lag, the same delay produces a far larger relative error.
A thermal run on the combined winding and core reports a slope \(0.0070\,{\rm K/s}\) at \(\Delta T=2.0\,{\rm K}\). Recover the core power and the volume-specific loss area at \(200\,{\rm Hz}\).
Work through the solution
Heat deposition in the package is
Subtract the estimated \(0.0432\,{\rm W}\) of winding heating to obtain \(0.1268\,{\rm W}\) in the core. Dividing by \(200\times4.0\times10^{-5}\) gives \(15.85\,{\rm J/m^3}\) per cycle. Its closeness to \(15.68\,{\rm J/m^3}\) should be evaluated against the uncertainties of heat capacity, thermal conductance, resistance, dimensions and electrical phase alignment.
Vary the magnetic circuit and identify the induction scale used by the specimen.
Thermal radiance, étendue and detector calibration
Electromechanics, optics and measurement
A square millimetre of a heated object emits thermal radiation into an entire hemisphere. A detector sees only the rays accepted by its optics and only wavelengths to which it responds. Derive the equilibrium spectrum, follow it through an optical collection system and infer what temperature or emissivity a calibrated reading can actually determine.
Count optical states in a large equilibrium cavity
Take a cubic airless cavity of volume \(V\) in thermal equilibrium at temperature \(T\). For its bulk mode density we can use periodic boundary conditions. Allowed wavevectors are separated by \(2\pi/L\) in each coordinate. Count a spherical shell in wavevector space, divide by the volume per state and include two independent transverse polarisations. Substituting \(k=2\pi\nu/c\) gives
Using standing waves in an ideally reflecting large box gives the same leading volume density when directions and polarisations are counted consistently.
One oscillator mode of frequency \(\nu\) can hold \(m=0,1,2,\ldots\) photons. Its thermal occupation has probabilities proportional to \(e^{-mh\nu/k_BT}\). Summing the geometric series and taking its logarithmic derivative gives
Multiplying by the density of modes and energy per photon gives spectral energy density \(u_\nu\). The zero-point contribution of a harmonic oscillator is not part of the thermal power exchanged between these black surfaces. At low frequency the result approaches an energy \(k_BT\) per mode; extending that classical limit to arbitrarily high frequency would make the integrated power diverge.
An isotropic distribution of energy travelling at speed \(c\) produces a normal flux through a small aperture weighted by the direction cosine. Per unit solid angle its radiance is \(B_\nu=cu_\nu/(4\pi)\). Transform to equal wavelength intervals using \(B_\lambda d\lambda=B_\nu|d\nu|\). The two useful spectral forms are
The wavelength expression has units of watts per square metre per steradian per metre of wavelength. To express it per micrometre multiply by one millionth. At 400 K and 10 micrometres the result is 33.56 W per square metre per steradian per micrometre. At 295 K it is 9.14 in the same units. Equal wavelength and equal frequency bins carry different widths, so their distributions reach their maxima at different converted wavelengths. A spectrum's peak should always name its horizontal variable and spectral-density convention.
Distinguish emitter power from brightness in a chosen direction
For a black surface with angle-independent radiance into its outward hemisphere, integrate \(\cos\theta\,d\Omega\). The result is \(\pi\), not \(2\pi\). The emitted spectral power per unit area is \(\pi B_\lambda\). Integrate over frequency using \(x=h\nu/(k_BT)\). The remaining integral \(\int_0^\infty x^3/(e^x-1)\,dx=\pi^4/15\) follows by expanding \(1/(e^x-1)\) as a sum of exponentials and integrating term by term. This yields Stefan–Boltzmann exitance \(M=\sigma T^4\) and identifies the constant \(\sigma=2\pi^5k_B^4/(15h^3c^2)\).
A black patch of 1.0 square millimetre at 400 K emits about 1.45 mW into its entire outward hemisphere over all wavelengths. The same patch at 295 K emits about 0.429 mW. Replacing one by the other changes all-wavelength hemispherical power by about 1.02 mW. This is not the power a small infrared receiver sees through a narrow filter. The integrated emitter number is valuable for energy conservation, but by itself contains no receiver area, direction, passband or optical transmission.
The surface spectrum of a body in thermal equilibrium has directional spectral emissivity equal to its absorptivity in the corresponding reciprocal optical modes under the usual reciprocal-material conditions. An opaque diffuse grey surface with emissivity \(\epsilon\) in an isotropically illuminated background can be modelled by \(\epsilon B_\lambda(T)+(1-\epsilon)B_\lambda(T_{\rm bg})\). It emits less than a black surface but also reflects background. A shiny object viewed in a warm room may consequently display a radiance temperature nearer the reflected scene than its own physical temperature. Specular surfaces require explicit directional knowledge of that scene.
Derive the geometric acceptance without counting the angle twice
An area element \(dA\) normal to the collection axis emits into \(d\Omega\) at angle \(\theta\) a spectral power \(B_\lambda\cos\theta\,dA\,d\Omega\). For a uniformly filled cone of half-angle \(\alpha\) and a uniform patch of area \(A\), integrating gives \(A\pi\sin^2\alpha\). This is its geometrical throughput in air when there is no vignetting. Optical étendue more generally uses \(n^2dA\cos\theta\,d\Omega\). A lossless passive optical relay in geometrical optics preserves this phase-space measure; correspondingly \(L/n^2\) is conserved along a ray in transparent media under the usual stationary conditions.
A direct lens example makes the restriction tangible. An image relay enlarging a uniformly bright patch by a factor of two in each transverse direction forms an image four times the area. In a lossless paraxial design filling the original pupil, each image point then occupies one quarter the solid angle. A detector covering the whole enlarged image and accepting that cone can receive the original power. Placing a fixed small sensor at the image plane intercepts less area instead. Higher magnification has not created additional radiance, even if it makes a small detail easier to resolve.
For the same 1.0 square millimetre patch seen within ten degrees, the projected acceptance is \(9.47\times10^{-8}\) square metre steradian. A wavelength-independent combined transmission and detector absorption of 0.65 leaves effective acceptance \(6.16\times10^{-8}\) square metre steradian. Integrating the Planck curve from 8 to 12 micrometres gives source and background band radiances 133.74 and 35.43 W per square metre per steradian. Their difference yields only 6.05 microwatts in the receiver. Keeping a single midpoint radiance times four micrometres happens to be fairly close here, but there is no fixed universal midpoint correction across temperatures or filters.
Set source and ambient temperatures equal. The emitted and ambient curves remain finite while the differenced instrument reading vanishes. Increase the cone half-angle from ten to twenty degrees and predict the scale factor \(\sin^2 20^\circ/\sin^2 10^\circ=3.88\). The spectral shape should stay fixed if transmission is separable from angle. If real data shift spectral shape with aperture, inspect filter angle dependence, source nonuniformity and stray light. The integral in the readout is computed on the specified 8–12 micrometre band even though the graph shows wavelengths beyond it.
Convert received power to calibrated voltage or counts
A thermal detector may respond to absorbed power through a temperature rise and an electrical responsivity. A photon-counting detector measures absorbed photons, so its count rate contains a factor \(\lambda/(hc)\) multiplying spectral power before integration. Two receivers with identical geometric acceptance and nominal quantum efficiency can respond differently to a changing source temperature if one output is proportional to energy and the other to photon number. Calibrate the actual electrical transfer and make the time interval explicit for accumulated counts.
For an ideal linear power detector let \(V=V_0+gP\), with offset \(V_0\) and gain \(g\). Two calibrated sources spanning the use range determine both. A black reference port at the same ambient temperature can also reject a common background in a chopped measurement. A filter, window or warm lens that absorbs thermal radiation also emits it. If these optics remain unchanged and stable, part of their own emission cancels in a reference difference. A reference traversing a different path generally leaves a residual input that is not captured by an electronic dark measurement.
Suppose effective source-minus-ambient powers of 2.00 and 8.00 microwatts yield 0.120 and 0.420 V. The fitted slope is 0.0500 V per microwatt with an offset of 0.020 V. A reading of 0.320 V implies 6.00 microwatts after offset correction. Substituting the same reading directly into a single-point gain with zero assumed offset would bias the inferred temperature. Rechecking a third reference near six microwatts tests linearity, while repeated zero-input readings at realistic instrument temperature test offset drift.
Invert the radiance and propagate uncertainties
A narrowband blackbody radiance measurement can be inverted analytically by solving Planck's expression for \(T\). In a broad passband use numerical quadrature across the calibrated spectral response and solve a scalar monotone equation when emissivity and background are known. The derivative at a single wavelength is particularly informative for estimating precision. With \(x=hc/(\lambda k_BT)\),
At 10 micrometres and 400 K the logarithmic sensitivity is 3.70. A one-percent relative radiance uncertainty therefore gives about 1.08 K temperature uncertainty if all other quantities are exact. An unknown five-percent emissivity error can dominate that estimate. A two-colour temperature ratio may reduce uncertainty from an emissivity that is constant across the two narrow bands, but cannot cancel an arbitrary spectral emissivity or a large reflected ambient component.
As an example consider a grey object at 400 K and ambient 295 K with emissivity 0.70. At ten micrometres its outgoing radiance is \(0.70(33.56)+0.30(9.14)=26.24\) in the earlier spectral units. Inverting as a perfect blackbody gives a brightness temperature of about 375 K. The difference is a physical radiance–temperature degeneracy. Repeat at known ambient temperatures while keeping the object thermally stabilised to constrain the reflected fraction. If heating the background changes the actual object temperature, a second independent temperature sensor or a transient thermal model is necessary.
When detector heat capacity sets the measured signal
Consider a thermal receiver of heat capacity \(C_d\) coupled to its surroundings with thermal conductance \(G_d\). For small excursions its temperature obeys \(C_d\dot\theta+G_d\theta=P_{\rm abs}(t)\), where \(\theta\) is the excess above its operating point. A voltage thermometer with responsivity \(r_T\) converts this into output. Its frequency-dependent power responsivity is \(r_T/(G_d-i\omega C_d)\). The geometric and spectral calculations determine absorbed optical power, while this thermal equation determines how much of its modulation appears at the electrical output.
Take \(C_d=2.0\) microjoules per kelvin and \(G_d=0.10\) milliwatt per kelvin. The thermal time constant is 20 ms and ordinary corner frequency is 7.96 Hz. A sinusoidal absorbed-power amplitude of 6.0 microwatts would give a static temperature rise of 0.060 K. At 20 Hz the amplitude is reduced by \(1/\sqrt{1+(2\pi f\tau)^2}=0.370\), leaving about 22.2 mK with a phase lag magnitude near 68 degrees. A receiver calibrated with a steady optical power is not automatically calibrated for this chopped experiment.
A square-wave chopper also changes the relation between time-domain peak differences and a lock-in's fundamental reading. For equal hot and reference dwell times, a square wave switching between powers \(P_1,P_0\) has fundamental sinusoidal peak amplitude \(2(P_1-P_0)/\pi\), with different factors for rms and peak reports. The thermal transfer attenuates this component at the chopper frequency and the odd harmonics at their respective frequencies. Substituting the full hot-minus-reference power directly into the first-harmonic response would overestimate the expected signal.
Measure a frequency sweep on a stable reference and test whether amplitude and phase share a single time constant. A geometrical error rescales the amplitude but ordinarily leaves this thermal phase unchanged. A second thermal mass or an electronic filter can introduce another pole. Lowering chop frequency increases thermal signal until the static limit but can expose low-frequency environmental drift. Choose the frequency by comparing the calibrated response with the measured noise spectrum.
Finally, a reference and an unknown source must illuminate the same active area if responsivity varies across the receiver. Imaging one source as a small spot and the other as a filled patch can create a calibration bias even when total spectral powers agree. Translating a reference spot across the detector or imaging the same aperture successively at both temperatures tests that spatial uniformity assumption.
If the sensor is used on a source much smaller than the calibrated reference aperture, record an image or a field-stop scan to determine its filling fraction. Otherwise even exact knowledge of filter transmission and thermodynamic temperature leaves an unknown geometrical scale factor. Aperture filling is part of the measurement equation, not an electronic gain setting.
Tutorial · Infer emissivity using two controlled backgrounds
An opaque diffuse sample at fixed temperature is observed at 10 micrometres against two isotropic backgrounds with calibrated spectral radiances 8.00 and 16.00 W per square metre per steradian per micrometre. The resulting outgoing readings are 25.00 and 27.00 in the same units. Infer emissivity and the sample's blackbody-equivalent radiance. Estimate the significance of independent reading errors of 0.10 units.
Separate the reflected and emitted contributions
The increased outgoing radiance is 2.00 for an 8.00 increase of background. Thus reflectivity is 0.250 and emissivity 0.750. The first measurement gives intrinsic blackbody radiance \([25.00-0.25(8.00)]/0.75=30.67\). The second returns the same value. With 0.10 independent uncertainty on each outgoing reading and exact backgrounds, the slope uncertainty is \(\sqrt2(0.10)/8=0.0177\), as is the absolute emissivity uncertainty. Larger background separation can improve this slope estimate if sample temperature stays fixed.
If the sample transmits radiation, the residual fraction does not all correspond to reflection. A controlled change behind the sample helps detect that additional path. A directional specular reflector exposed to a warm enclosure also does not necessarily see the same angular average used in the diffuse model. Without these checks, a formally precise fitted emissivity can describe the experimental surroundings instead of the material.
Tutorial · Design a numerical spectral-integration check
An engineer tabulates spectral radiance per micrometre on a wavelength mesh. Another rewrites the detector model on an equally spaced frequency mesh, obtaining a signal that differs by several percent after independent mesh refinement. Explain what must transform, what stays dimensionless and how to compare a photon-counting channel with a power channel.
Transform the complete measurement integral
The differential power \(B_\lambda\,d\lambda\) must equal \(B_\nu\,|d\nu|\), with \(|d\lambda/d\nu|=c/\nu^2\). A dimensionless transmission curve becomes the same physical transmission at \(\lambda=c/\nu\); it acquires no additional Jacobian. The integration bounds reverse when increasing wavelength is replaced by increasing frequency. A response specified per unit wavelength, or a calibrated gain integrating a particular finite bin, must instead be interpreted from how it was defined.
Evaluate a unit-transmission test using a very narrow band, then the full 8–12 micrometre band whose radiance values are given above. Refine each grid independently, treating sharp filter edges consistently and converting per-micrometre densities before using metres. For a photon counter divide each spectral power contribution by photon energy before summation. Replacing that energy by a single central-wavelength value is an approximation that should be checked against the full band and source temperature. Close agreement between two different meshes using the same incorrect density is not a valid units check.
NIST radiance-temperature calibrations · spectral radiance, sources and uncertainty
Master equations, detailed balance and probability currents
Statistical mechanics from microscopic counting to material response
A two-state detector can switch at random while displaying reproducible occupation fractions and relaxation times. A three-state detector can maintain exactly constant occupancies while carrying a persistent directed current. Derive the probability dynamics, infer transition rates from timed records and decide what a stationary histogram can and cannot reveal about equilibrium.
From short-time transition probabilities to a generator
Take discrete states \(i\) resolved by an instrument. In a short time \(dt\), conditional on current state \(i\), let the probability of one transition \(i\to j\) be \(w_{ij}dt+o(dt)\). The probability of remaining in \(i\) is one minus the sum of departures to this order. Assume time-independent rates and the Markov property, meaning the conditional law of future transitions is determined by the current state. Sum gains and losses to derive
Each gain in one state is a loss in another, so total probability is conserved. In a column-vector convention \(\dot{\mathbf p}=L\mathbf p\), off-diagonal entry \(L_{ij}=w_{ji}\) and columns sum to zero. In a row-vector convention transpose the matrix. This is not cosmetic in a numerical calculation: using a matrix assembled for column probabilities while evolving rows can lose normalisation or give an incorrect stationary distribution.
For a given state the exit rate is
Its survival probability obeys \(\dot S_i=-r_iS_i\), so \(S_i(t)=e^{-r_it}\). Conditional on exiting, the destination has probability \(w_{ij}/r_i\). This permits direct event-driven simulation: draw an exponential waiting time, choose a destination with these probabilities, advance the clock and repeat. Sampling one transition per arbitrary fixed time step generally distorts waiting-time statistics unless a controlled approximation or exact finite-time propagator is used.
Determine two rates from one occupancy and one time
For a two-state system name the rates \(a=w_{01}\), \(b=w_{10}\). Eliminating \(p_0=1-p_1\) gives
Its stationary value \(p_* =a/(a+b)\) is independent of the common rate scale, and deviations decay with time constant \(\tau=1/(a+b)\). Thus one stationary fraction gives a ratio, one relaxation time gives a sum, and the two together identify both rates.
A location sensor records an upper-state fraction 0.30 and relaxation time 0.20 seconds. Then \(a=1.50\) and \(b=3.50\) per second. Mean waiting times are \(1/a=0.667\) s in the lower state and \(1/b=0.286\) s in the upper one. Neither equals the population relaxation time of 0.20 s. A transition rate inferred by taking the reciprocal of the average of these two waiting times estimates a different quantity.
Define the indicator \(X=1\) in state one and zero otherwise. Conditional probabilities from the same linear solution give
Consequently a normalised equilibrium autocorrelation determines \(\tau\) without needing a deliberate preparation away from stationarity. A bandlimited detector may miss short visits, reducing counts and distorting waiting-time distributions even if the mean occupation looks plausible. Compare time sampling with both exit times as well as the relaxation time, or model the measured signal with an explicit observation process.
Detailed balance is stronger than stationarity
Let \(\pi_i\) denote a stationary distribution. The net probability current on an oriented edge is \(J_{ij}=p_iw_{ij}-p_jw_{ji}\). Stationarity requires only that currents sum to zero at each vertex. Detailed balance requires \(\pi_iw_{ij}=\pi_jw_{ji}\) on every edge individually. For a system in equilibrium with one heat bath, with states even under time reversal and energies \(E_i\), thermal rates satisfy \(w_{ij}/w_{ji}=e^{-\beta(E_j-E_i)}\) for nondegenerate states. If states collect multiple microstates, degeneracies or coarse-grained free energies enter their equilibrium weights.
For the previous two-state process at equilibrium with equal state degeneracies, \(p_*/(1-p_*)=3/7\) implies
Multiplying both rates by ten preserves the energy inference and speeds relaxation tenfold. Thermodynamic weights therefore do not determine the kinetic barrier. A physical sample may change its rate scale with solvent viscosity or transition geometry without changing the equilibrium ratio.
A convenient test on a connected graph with reciprocal edges is the product of rate ratios around each closed cycle. With detailed balance all stationary factors telescope to one. Conversely, if the product is one on every independent loop, consistent state weights can be reconstructed from any reference state by integrating ratios along a path. Path independence makes these weights a detailed-balance stationary distribution after normalisation. A missing reverse edge or unobserved channel requires additional care; a detector that cannot resolve two routes can hide directed currents.
A steady nonequilibrium system with the same state histogram
Consider three equally named sites arranged in a ring, with clockwise rate \(k_+\) and anticlockwise rate \(k_-\) on every link. Symmetry gives stationary occupation \(1/3\) at each site for all positive rates. Each oriented clockwise edge carries current \(J=(k_+-k_-)/3\). The cycle affinity in dimensionless units is \(\mathcal A=\log[(k_+/k_-)^3]\). For \(k_+=4\), \(k_-=1\) per second, each edge transports net probability one per second, and \(\mathcal A=3\log4=4.159\). A perfectly flat histogram conceals the directed operation.
For Markov jumps with resolved reversible edges and their conventional time reversals, the total stochastic entropy production rate is
Each term is nonnegative under the product \((x-y)\log(x/y)\); the factor of one half prevents counting both directions separately. For the stationary ring this gives \(k_B J\mathcal A=4.159 k_B\) per second. An actual heat dissipation rate needs a physical local detailed-balance model identifying environments, work and entropy flows. A collection of counted transitions without that calibration can still yield evidence for broken time-reversal symmetry at its level of resolution.
Stationary Shannon entropy \(-k_B\sum p_i\log p_i\) is constant in this ring. The positive total entropy production is compatible with that constancy because an environment sustains the directed current and carries compensating entropy. Equating production with just the derivative of stationary state entropy would predict zero for every driven stationary process.
Why a distribution relaxes toward a stationary law
For a finite irreducible time-independent chain let \(\pi_i>0\) be its unique stationary distribution. The relative entropy \(D(p\Vert\pi)=\sum p_i\log(p_i/\pi_i)\) is nonnegative. To see its contraction over a finite observation interval, write the propagated probability as a stochastic mixture of earlier probabilities and apply the log-sum inequality to each output state. Summing gives
Since \(P\pi=\pi\), the relative entropy to stationarity cannot grow.
For a detailed-balance chain, substituting the master equation into this derivative gives \(-k_BdD/dt=\dot S_{\rm tot}\) in the simple closed heat-bath model. For a driven chain the system may remain at \(\pi\) with constant relative entropy while producing positive steady entropy. Relaxation toward stationarity and dissipation required to maintain that stationary state are distinct measurable quantities.
Compare relaxation inferred from a time trace with the thermodynamic irreversibility experiment
Infer generator entries from residence times
An ideal continuously observed Markov record contains successive states and dwell lengths. Let \(T_i\) be accumulated time in state \(i\) and \(N_{ij}\) the number of resolved \(i\to j\) jumps. Its log likelihood contains \(\sum_{ij}N_{ij}\log w_{ij}-\sum_i T_i\sum_{j\ne i}w_{ij}\). Differentiation gives
Dividing by total experiment time instead estimates the gross stationary flux \(\pi_iw_{ij}\), not a conditional transition rate.
For a nearly stationary two-state record with \(T_0=70\) s, \(T_1=30\) s and 105 transitions in each direction the estimates are 1.50 and 3.50 per second. Counting uncertainty for each reasonably large Poisson-like count is roughly the inverse square root of the count in relative terms; precise interval estimates condition correctly on exposures and the observation process. Equality of opposite transition counts in a long two-state record is essentially forced by alternation. It cannot by itself establish a thermal energy gap or exclude multiple hidden driven pathways.
Turn a barrier diagram into two independently measurable rates
A thermally activated transition between two metastable configurations often has a forward rate \(a=\nu_A e^{-(G^\ddagger-G_A)/(k_BT)}\) and reverse rate \(b=\nu_Be^{-(G^\ddagger-G_B)/(k_BT)}\), where \(G^\ddagger\) denotes a dividing-surface barrier under a chosen model. If the same transition-state construction applies in both directions with consistent partition factors, their ratio reproduces the equilibrium free-energy difference. The overall barrier controls how rapidly equilibrium is approached. Changing a barrier while leaving both wells unchanged can alter both kinetics by many orders of magnitude without changing stationary occupancy.
As an illustration let the higher-energy state cost \(2k_BT\), and put a transition configuration \(10k_BT\) above the lower state. With a common attempt rate of \(10^6\) per second, the upward rate is 45.4 per second and the downward rate 335 per second. The stationary upper fraction is approximately 0.119 and the relaxation time 2.63 ms. Lower the barrier by \(2k_BT\) without changing the two state energies. Both rates increase by \(e^2=7.39\), while occupancy is unchanged. A detector recording only the equilibrium level histogram could miss the intervention entirely.
For a temperature scan, a straight line in the log rate against inverse temperature is evidence for an approximately constant activation energy and prefactor over that interval. A free-energy barrier includes entropic as well as enthalpic contributions; its numerical value can vary with temperature even if the microscopic potential does not. A change of dominant pathway can bend the apparent Arrhenius plot. Measure forward and reverse rates independently, then compare their ratio with an independently determined equilibrium population. A barrier fit explaining one rate but violating the equilibrium ratio usually indicates inconsistent state definitions, missed short visits or an unmodelled pathway.
A useful control is a weak static bias that lowers one well relative to the other. The equilibrium log-odds shift measures the difference between the state couplings to the bias. The individual log-rate shifts additionally report the related dividing-surface response. If the state-occupation ratio moves as expected but only one rate changes appreciably, the effective transition configuration may be much closer in bias response to the other state. Such statements depend on the activated single-path interpretation; the response slopes themselves are more directly observed than an inferred barrier shape.
Use uniformisation to propagate a generator without negative probabilities
The formal finite-time propagator of a time-independent jump process is \(P(t)=e^{Lt}\). A forward Euler update \(p(t+\Delta t)=(I+L\Delta t)p(t)\) conserves total probability if the generator is assembled correctly, but a large step can yield negative diagonal probabilities. An exact algebraic representation starts with a rate \(q\) at least as large as every total exit rate. Then \(K=I+L/q\) is a stochastic matrix in the same column convention. Write \(L=q(K-I)\); since \(K\) and the identity commute,
This can be read as drawing a Poisson number of opportunities at rate \(q\), followed by \(n\) transitions of \(K\). At a lightly connected state some opportunities become self transitions. The construction leaves real waiting-time statistics correct while eliminating negative transition probabilities. Its truncation error in total probability is bounded by the omitted Poisson tail because every matrix power is stochastic.
For a two-state model with rates two and six per second choose \(q=6\) per second. Starting in the lower state, the first opportunity after some waiting time moves upward with probability one third and otherwise does nothing. In the upper state the next opportunity moves downward with probability one. At 0.25 s the Poisson mean is 1.5. Retaining terms through order eight leaves a tail below \(3\times10^{-5}\). Compare the resulting upper probability against \((2/8)[1-e^{-8(0.25)}]=0.2162\). A small discrepancy due solely to truncation should shrink with the computable tail probability.
The representation also suggests a measured-data sanity check. A fitted generator with negative off-diagonal rates cannot yield a valid \(K\) at any positive \(q\). A snapshot transition matrix can itself be nonnegative and stochastic but need not arise from a time-homogeneous continuous-time generator. In the two-state case its nontrivial eigenvalue must be \(e^{-(a+b)t}>0\). A measured negative eigenvalue rules out that simple generator model under perfect sampling, though finite counts and hidden periodic driving can distort empirical estimates. Taking a matrix logarithm blindly may return complex or negative rates rather than a physical kinetic explanation.
Population relaxation and a first-arrival experiment answer different questions
A first-passage measurement stops its clock when a target is first reached, even if that target would subsequently be left many times. To calculate its mean, treat the target as absorbing. For any other state \(i\), wait on average \(1/r_i\), then add the mean remaining time from the next state weighted by its conditional transition probability. The backward equations are
with \(t_{\rm target}=0\). Their solution depends on possible returns before the first successful passage. It generally differs from an inverse equilibrium occupation or from a slowest relaxation time.
Consider a three-site linear chain \(0\leftrightarrow1\leftrightarrow2\) with equal rate \(k\) on each adjacent directed edge, starting at zero and stopping at two. From zero one must reach one after mean \(1/k\). From one the mean wait is \(1/(2k)\), then there is probability one half of returning to zero and one half of finishing. Solving \(t_0=1/k+t_1\), \(t_1=1/(2k)+t_0/2\) gives
Ignoring returns would yield \(1.5/k\), exactly half the correct first-passage mean.
The unmodified closed chain has equal stationary weights, but that fact alone says nothing about the numerical value of \(3/k\). Speeding every link by ten leaves occupancies unchanged and reduces passage times tenfold. A detector that registers only visits longer than a threshold makes a brief first arrival invisible and can report even longer apparent passage times. Calibrate detector dead time and distinguish entrance to the target from persistence within it.
For a larger network, solve the sparse backward linear system and compare against many event-driven paths. Check boundary initial conditions by starting simulations exactly at the absorbing target: the first-passage time must then be zero under that convention. Some experiments instead ask for a first return after leaving, which requires a different initial condition. A zero-lag event in one definition is a physically different measurement in the other.
Estimate a cycle affinity with finite counting statistics
A clockwise ring trajectory contains gross counts in both directions on each edge. Estimating each conditional rate as count divided by origin-state exposure, the product of clockwise-to-anticlockwise rates around a complete closed loop cancels the exposures. The estimated cycle affinity is the sum of log forward counts minus log reverse counts, assuming every required count is nonzero and rates were stationary during the record. This is a useful cross-check independent of how the total time was partitioned among states.
If all three edges register roughly 120 clockwise and 80 anticlockwise events, the estimated affinity is
For large independent Poisson-like gross counts the approximate variance of this log product is \(3(1/120+1/80)=0.0625\), giving standard error 0.25 as a first estimate. Actual path constraints couple counts; uncertainty can be assessed from independent records or a complete stochastic likelihood. The point estimate alone does not tell whether an observed directionality is statistically distinguishable from zero.
One missing reverse event makes the unregularised logarithm infinite, but a finite record cannot establish an infinite physical affinity. Report a confidence bound based on the exposure and upper limit on the unseen reverse rate. Extend the acquisition or change sampling speed to exclude missed short-lived reverse states. Numerical addition of an arbitrary count can help regularise a plotting routine but is not a substitute for a specified prior or measurement model when claiming physical entropy production.
A driven occupation loop can carry charge without changing concentrations
Place three sites in a cycle and drive their transition rates by two controls, for example energies and barriers. Even if each instantaneous frozen generator satisfies detailed balance with a well-defined equilibrium distribution, the physical occupations need not equal that moving equilibrium distribution at each moment. A slow lag can produce a small edge current at every instant and a finite integrated current over a cycle. The current through an edge is time-integrated transfer; it can be nonzero while all occupations return to their initial values after a complete drive period.
A simple piecewise illustration avoids subtleties of adiabatic geometric pumping. In stage one, connect only sites zero and one while strongly favouring one. In stage two connect only one and two while favouring two. In stage three connect only two and zero while favouring zero. Begin with nearly all probability at zero and wait long enough for each enabled pair to relax. Almost the entire population travels once around the loop per cycle. No site accumulates probability over repeated complete cycles, but each edge registers about one forward crossing net per cycle. External control changes the energy and barrier landscape and supplies the required work.
If each programmed transfer succeeds with probability 0.95, it is tempting to announce a current of \(0.95^3\) per cycle. This is the probability of one fully successful trajectory starting on the prescribed site in a simplified no-return preparation, not generally the long-run edge current of a periodically driven ensemble. Failed transfers leave probability on other sites in later stages. The correct periodic distribution is the unit-eigenvalue vector of the product of the three finite-time propagators. Compute edge currents during each stage using its evolving occupations and integrate, then compare a complete cycle after transients have decayed.
This construction supplies a statistical check on experimental counting. Over a complete cycle the integrated net inflow at a site equals its change in occupancy probability. In a periodically stationary state that change is zero, so all three consistently oriented integrated edge currents must agree. A disagreement between measured edges can reveal a missed transition channel, a start-up transient or incorrect gating. Agreement does not prove absence of drive or detailed balance. A torque-free stationary ring and a three-stage external pump can share nearly the same time-averaged site histogram yet differ clearly in time-resolved edge currents.
Finally compare the work and heat bookkeeping with the master-equation entropy-production expression. During an external change of a site's energy without a transition, the state's energy changes by work. During a transition at frozen controls, assigning heat requires the energy difference and the relevant bath. Lumping an entire driven cycle into a single time-averaged generator can conceal those distinctions and underestimate dissipation.
The ordered protocol can also be run backwards. If the three stages are reversed while preparations are equilibrated in each corresponding periodic state, the preferential current direction should reverse in the ideal transfer picture. A fixed instrumental preference for counting neighbouring sites in one direction would not generally reverse. This distinguishes controlled transport from a direction-dependent detection efficiency. Do not confuse this observed current reversal with exact microscopic time reversal of each individual stochastic trajectory: the reversed experiment has its own ensemble of random jumps. Comparing path probabilities, rather than pairing individual paths as though their noise histories were reproducible, is the appropriate starting point for entropy-production and fluctuation-relation tests. The distinction becomes particularly visible when a stage transfers almost all the probability in one direction while a few rare trajectories travel against the applied protocol.
Distinguish stationarity from detailed balance
Keep the three populations identical while varying the directed transition rates. Identify the observable that reveals time-reversal asymmetry.
Tutorial · Recover a generator from snapshots rather than full events
At sampling interval 0.10 s, a two-state record yields \(P_{01}=0.12\) and \(P_{10}=0.28\). Infer the continuous-time rates, and compare with directly dividing each transition probability by 0.10 s.
Use the exact finite-interval propagator
The exact transition probabilities are \(P_{01}=p_*[1-e^{-(a+b)\Delta t}]\) and \(P_{10}=(1-p_*)[1-e^{-(a+b)\Delta t}]\). Their sum is 0.40, so \(a+b=-\log(0.60)/0.10=5.108\) per second. The stationary upper fraction is
Thus \(a=1.532\) and \(b=3.576\) per second. Dividing by the interval gives only 1.2 and 2.8 because return transitions inside a sampling interval can erase evidence of the intermediate visit.
Tutorial · Can measured rates arise from one equilibrium potential?
For a three-state triangle suppose clockwise to counterclockwise conditional rate ratios are 2, 3 and 0.25 around the three distinct edges. Could these be equilibrium weights in a common bath? If a single uncertain ratio were corrected, what would it have to be on the third link?
Apply the closed-loop consistency condition
The product is \(2\cdot3\cdot0.25=1.5\), giving nonzero loop affinity \(\log1.5=0.405\). No consistent detailed-balance set of three state weights exists for these exact ratios. The third ratio would have to be \(1/6\), giving a telescoping unit product. If counts are noisy, propagate uncertainty in the log ratios or compare a constrained detailed-balance likelihood against an unconstrained model. A value barely inconsistent with unity within one sparse record is not enough to establish driving.
Tutorial · Detect a hidden state with the same observed level
A detector reports two visible levels, but its lower level combines two unresolved substates. The measured lower-state survival probability is \(0.5e^{-t}+0.5e^{-9t}\) with time in seconds. Calculate the initial hazard and its long-time limit. Can a two-state Markov fit reproduce both?
Differentiate survival before interpreting the tail
The hazard is minus the derivative of \(\log S\). At zero time it is the initial weighted mean of rates, 5 per second. At long times the rapidly departing component has almost disappeared and the hazard tends to 1 per second. A single Markov exit rate would give a constant hazard for all dwell ages. The observed model cannot reproduce both limits with one rate.
A changing apparent hazard may also result from limited detector temporal resolution or variable preparation of the substates. Repeat with shorter acquisition intervals and condition the dwell distribution on the preceding visible transition or an independent preparation marker. A fitted sum of exponentials identifies a need for a richer observation or state model; it does not uniquely identify microscopic structures absent in the measurements.
Cambridge Kinetic Theory · stochastic processes and approach to equilibrium
From binary collisions to the Boltzmann equation
Statistical mechanics from microscopic counting to material response
An initially anisotropic velocity distribution can relax even though every individual collision conserves energy and momentum. Describe a dilute gas with a phase-space density, derive the structure of its collision term and prove which distribution can stop producing entropy. Then examine the assumptions behind that proof and the measurements most likely to reveal their failure.
What the one-particle function counts
Let \(f(\mathbf r,\mathbf v,t)d^3r\,d^3v\) be the expected number of particles in a small phase-space cell. Integrating over velocities gives number density \(n\), and the mean velocity is \(\mathbf u=n^{-1}\int\mathbf v f\,d^3v\). Define the peculiar velocity \(\mathbf c=\mathbf v-\mathbf u\); its second moment sets local kinetic energy after removing the organised flow. A gas can have large bulk speed but low temperature.
Follow a particle ballistically over a short interval under acceleration \(\mathbf a=\mathbf F/m\). With no collisions, phase-space probability is advected along its trajectories. For a standard position-dependent force, phase-space flow has zero divergence, giving the streaming operator \(\partial_t f+\mathbf v\cdot\nabla_r f+\mathbf a\cdot\nabla_v f\). Magnetic Lorentz acceleration also has zero velocity-space divergence. A dissipative velocity-dependent drag generally requires the divergence form \(\nabla_v\cdot(\mathbf a f)\) instead. It should not silently be inserted into the Hamiltonian streaming expression.
We now assume a dilute classical gas of identical particles with short-ranged binary elastic collisions, approximated as local on the spatial scale resolved by \(f\). Different particles approaching collision are assumed uncorrelated apart from their individual one-particle distributions at that position. This molecular-chaos approximation is an assumption about incoming pairs, not a claim that the outgoing particles remain uncorrelated. It is the step that allows the evolution to close on a one-particle function.
Count pairs crossing a scattering area
Consider a tagged incident velocity \(\mathbf v\) and a possible partner \(\mathbf v_1\). Their relative speed \(g=|\mathbf v-\mathbf v_1|\) converts a differential scattering cross section \(d\sigma/d\Omega\) into the swept interaction volume per unit time. A binary collision rotates the relative velocity in the centre-of-mass frame while preserving its magnitude. With equal masses, set \(\mathbf V=(\mathbf v+\mathbf v_1)/2\) and \(\mathbf g=\mathbf v-\mathbf v_1\). The partner and tagged postcollision velocities are \(\mathbf V\pm\mathbf g'/2\), where \(|\mathbf g'|=|\mathbf g|\). This parametrisation enforces momentum and kinetic energy conservation before choosing a scattering direction.
The loss term counts incoming pairs with velocities \(\mathbf v,\mathbf v_1\). The gain counts inverse collisions that produce the specified velocity. Microreversibility of elastic scattering and invariance of the integration measure allow the compact expression
Both products refer to the same position and time. A change in which pair is called primed merely swaps gain and loss if one reverses the parametrisation consistently. This formula uses a consistent distinct-partner convention for the full scattering measure. When counting the total number of collision events per volume rather than the loss of tagged particles, divide the sum over all ordered pairs by two. Confusing those two observables gives an erroneous collision frequency.
For hard spheres of molecular diameter \(d\), the total geometric cross section is \(\pi d^2\). In an equilibrium Maxwellian the mean relative speed is \(\sqrt2\) times the mean single speed for identical masses. The mean free path under the usual hard-sphere convention is \(\ell=1/(\sqrt2 n\pi d^2)\). For \(d=0.36\) nm, \(n=2.4\times10^{25}\) per cubic metre and molecular mass 28 unified atomic units at 300 K, \(\ell=72.4\) nm and \(\bar v=476\) m/s. Their ratio gives a characteristic flight time 0.152 ns.
Take a weak moment of the collision operator
For a test function \(\psi(\mathbf v)\), multiply the collision term by \(\psi\) and integrate over tagged velocity. Exchange the identities of both particles and then exchange incoming and outgoing velocities in the gain integral. The result expresses the change of the pair's total test-function value:
For \(\psi=1\), \(m\mathbf v\) and \(mv^2/2\) the square bracket vanishes collision by collision. Integrating the kinetic equation gives exact local conservation of mass, momentum and energy with appropriate streaming fluxes, regardless of how close the distribution is to Maxwellian. Conservation alone leaves a hierarchy: the momentum flux depends on the pressure tensor and the energy flux on a heat flux, both higher velocity moments.
A numerical collision solver should check all these invariants separately. Equal masses allow a direct test with velocities \((300,100,0)\) and \((-100,100,0)\) m/s. Their centre velocity is \((100,100,0)\) and relative velocity has magnitude 400 m/s. Rotating it from \(x\) to \(y\) gives outgoing velocities \((100,300,0)\) and \((100,-100,0)\). Total velocity and total squared speed agree before and after, but the directional kinetic energy has changed. A field of such collisions can isotropise the pressure tensor while leaving total energy fixed.
Derive a sign-definite entropy production
Define the local kinetic \(H\) density as \(\int f\log(f/f_\star)d^3v\) with a constant reference of matching units. The reference only changes a conserved number contribution. For a homogeneous isolated gas the collision contribution to its time derivative follows by applying the weak form with \(\psi=\log f\). Average the result with its incoming–outgoing interchange. Setting \(A=ff_1\), \(B=f'f_1'\), one obtains
For positive \(A,B\), logarithm and difference have the same sign; appropriate limits handle zero occupation. Thus the Boltzmann entropy \(-k_BH\) does not decrease from these local binary collisions. In an inhomogeneous region, advection additionally transports entropy through the boundaries. A local cell's kinetic entropy can drop because entropy leaves the cell, while collision production remains nonnegative.
Equality requires \(ff_1=f'f_1'\) for collisions connected by the scattering kernel. Equivalently \(\log f+\log f_1\) is a collision invariant. For sufficiently rich elastic scattering in three dimensions the smooth additive collision invariants are linear combinations of particle number, momentum and energy. Therefore \(\log f=a+\mathbf b\cdot\mathbf v+c v^2\), with \(c<0\) for normalisation. Completing the square and matching moments yields the local Maxwellian:
A Maxwellian at each location makes the collision term zero locally, but spatial gradients usually leave a nonzero streaming term. Such a distribution can evolve because neighbouring cells exchange particles. Conversely, a truly global equilibrium in an external conservative potential includes the appropriate spatial Boltzmann factor. In one-dimensional equal-mass elastic collisions particles merely exchange velocities, so the assumed richness of three-dimensional scattering fails; an arbitrary velocity histogram need not thermalise through those collisions.
Assess the kinetic and hydrodynamic descriptions separately
Define Knudsen number \(Kn=\ell/L\) using the length over which the distribution or boundary condition changes. In the earlier gas \(Kn=7.2\times10^{-5}\) for a 1 mm chamber feature but 0.072 for a 1 micrometre channel gap. The same binary collision model can remain dilute in both, yet a no-slip bulk hydrodynamic closure may be much less accurate in the microchannel. A mean free path small relative to the overall device length is insufficient if a sharp boundary layer develops on a much shorter scale.
A useful relaxation-time collision approximation is \(C_{\rm BGK}=-(f-f_M)/\tau\), with \(f_M\) computed from the local conserved moments of \(f\). This enforces their conservation and models return to local Maxwellian without evaluating an angular integral. If an externally fixed Maxwellian is used irrespective of actual local density, momentum and energy, the approximation can remove these quantities spuriously. A single fitted relaxation time also need not reproduce both stress and heat transport for a real gas.
A particle simulation resolving binary encounters must choose spatial cells small enough to represent local variation, and event or collision timesteps short against relevant flight or collision times. Statistical noise decreases with independent sampled pairs; refining cells while keeping total simulated particle count fixed can make local collision estimates noisier. Compare conservation, relaxation of anisotropic moments and a transport observable under separate refinements of geometry and sample count. A correct mean pressure alone is a weak test of a collision operator.
Compare the flux-weighted velocities of escaping particles with the bulk velocity distribution
Take the next moment and exhibit the source of viscosity
Write momentum density as \(\rho u_i=m\int v_i f\,d^3v\). The flux of \(i\)-momentum through a surface with normal in direction \(j\) is \(m\int v_iv_j f\,d^3v=\rho u_i u_j+P_{ij}\), where \(P_{ij}=m\int c_i c_j f\,d^3v\). The scalar pressure is one third of its trace in three dimensions. Multiplying the kinetic equation by \(mv_i\) and using collision invariance yields the momentum balance with \(\partial_j P_{ij}\) explicitly. No constitutive assumption has yet set the off-diagonal components to zero or made them proportional to strain rate.
For a local Maxwellian, the odd moments of peculiar velocity vanish and \(P_{ij}=nk_BT\delta_{ij}\). Now consider slow shear with mean velocity \(u_x(y)\), and approximate collisions by a relaxation time \(\tau\). In a local coordinate frame moving with the fluid write \(f\simeq f_M-\tau v_y\partial_y f_M\) to first order in gradient. At constant density and temperature,
The off-diagonal momentum flux correction is therefore a fourth Gaussian velocity moment:
The integral factorises into variances \(k_BT/m\) in the two directions. Under the kinetic pressure-tensor convention the result has a minus sign, because random motion transports high \(x\)-momentum toward lower mean velocity. The viscous part of the Cauchy stress is commonly written with the opposite sign convention. State which tensor enters the balance before declaring a predicted shear stress negative. The dynamic viscosity of this simple model is \(\eta=p\tau\).
If \(p=1.0\times10^5\) Pa and the fitted stress relaxation time is \(1.8\times10^{-10}\) s, this gives \(1.8\times10^{-5}\) Pa s. At a shear rate of \(10^3\) per second the dissipative stress magnitude is 0.018 Pa, tiny compared with equilibrium pressure and with dimensionless shear rate \(\tau|\partial_yu_x|=1.8\times10^{-7}\). A stress measurement must resolve a small anisotropic contribution on top of a large isotropic pressure. A pressure gauge alone cannot test this kinetic viscosity relation.
In a dilute hard-sphere gas the mean collision time scales inversely with density. The simultaneous pressure factor then makes dynamic viscosity approximately independent of density at fixed temperature in the dilute continuum regime. The kinematic viscosity, \(\eta/\rho\), still changes strongly. A gas made sufficiently rarefied no longer supports ordinary no-slip continuum flow through a fixed channel, so an apparent pressure-dependent flow resistance can coexist with an essentially density-independent bulk dynamic viscosity.
Infer accommodation from a wall momentum measurement
The interior collision operator does not prescribe the boundary condition at a solid wall. Specular reflection reverses normal velocity while preserving tangential velocity in the wall frame. Diffuse thermal re-emission from a fully accommodating stationary wall instead draws outgoing velocities from a wall-temperature distribution appropriate to the outward flux and erases incident tangential drift. A real clean or rough surface may lie between these limits. The boundary scattering model matters particularly when particles encounter the wall as often as other particles.
For a simple moving plate in a dilute gas at the same temperature, suppose a fraction \(\alpha\) of incident particles accommodates tangentially to plate speed \(U\), and the rest reflects specularly. To leading order in small tangential drift, accommodated particles carry away an average tangential momentum increment \(mU\) if incident gas has zero mean tangential speed. The incident number flux on one plate face is \(n\bar v/4\). Thus the leading tangential drag magnitude on the plate is \(\alpha mUn\bar v/4\) per area in this ideal free-molecular geometry.
Take \(n=10^{21}\) per cubic metre, molecular mass \(4.65\times10^{-26}\) kg, \(\bar v=480\) m/s, \(U=2.0\) m/s and \(\alpha=0.80\). The predicted shear is about \(8.93\times10^{-3}\) Pa per exposed face. The effect scales linearly with density here, unlike the dilute continuum viscosity at a fixed macroscopic velocity gradient. Both results derive from momentum transport, but the first describes particles crossing a wall-bounded collisionless region and the second local shear sustained by many intermolecular collisions. Compare them only after specifying the Knudsen number and wall geometry.
To test the accommodation model, reverse the plate motion to remove static force offsets, vary density across a regime that remains free molecular and change the exposed surface while keeping area fixed. A single measurement gives the combination of accommodation fraction, incident number flux and velocity difference. It cannot separate a changing incident gas drift from a changing material accommodation coefficient. Measuring the upstream velocity distribution or using opposed plates with known relative motion supplies additional constraints.
A discrete collision quartet demonstrates the H theorem numerically
A single allowed reversible collision connects two incoming velocity cells to two outgoing cells. Suppose cell-volume and scattering factors have been normalised so that its net flux is \(K(A-B)\), with \(A=f_1f_2\), \(B=f_3f_4\). It removes particles from cells one and two and adds them to three and four when \(A>B\). Conservation requires the representative cell velocities to satisfy the same pair momentum and energy constraints used for a physical collision. Assigning arbitrary four velocities may conserve the number of particles but will generally create energy.
Choose the velocities from the earlier rotated-pair example and occupancies \(f_1=4,f_2=1,f_3=2,f_4=1\) in a common dimensionless reference. Then \(A=4\), \(B=2\) and the forward flux is \(2K\). Its contribution to \(dH/dt\) is \(-2K\log2\), negative. The exact continuous rate tends to zero as the products equalise. A forward Euler step larger than \(f_2/(2K)\) would make the second occupancy negative and destroy the logarithm's meaning. Nonnegative entropy production for the continuum collision model does not guarantee it for an arbitrary numerical time step.
An implicit or positivity-preserving update can avoid this failure, but still requires independent tests of conserved moments and of the correct equilibrium. For this isolated quartet the condition \(f_1f_2=f_3f_4\) alone leaves many possible stationary cell distributions. A network of collision quartets sufficiently connecting the velocity space is needed to enforce a Maxwellian-like equilibrium. On a coarse discrete velocity lattice too few permitted momentum- and energy-conserving quartets may leave artificial invariants. A code can display exactly conserved energy and monotonically decreasing \(H\) while relaxing to the wrong distribution because its collision graph is incomplete.
A velocity-selective aperture tests collision equilibration
A thin aperture feeding a vacuum produces a flux-weighted distribution from a local Maxwellian reservoir. A detector placed downstream generally selects a finite angular cone and may respond differently to fast and slow particles. Consider two narrow speed bins with the same width in speed and the same angular acceptance. For an effusive Maxwellian their flux ratio contains a cube of speed multiplied by a Boltzmann exponential. A bulk sampler instead has a square of speed. Confusing these prefactors shifts a temperature inferred from ratios even if the gas truly is locally equilibrated.
For bins at speeds \(v\) and \(2v\), and choosing \(mv^2/(2k_BT)=1\), the effusive high-to-low ratio is
The bulk number-density ratio at those speeds would be \(4e^{-3}=0.199\). A downstream detector measuring particles present in a fixed optical observation volume may weight by travel time, introducing an additional approximate inverse speed that moves the response closer to density weighting. Distinguish arrivals counted per time from particles counted during an exposure.
Changing aperture diameter is an independent control. A broad opening or high upstream density can produce collisional expansion and a directed jet, altering both angular and speed distributions. Measure pressure and beam shape across aperture sizes and compare the small-aperture limit before attributing a non-Maxwellian downstream spectrum to a failure of local thermal equilibrium throughout the reservoir.
A flight-time measurement tests free paths and speed selection separately
Imagine a dilute molecular tracer introduced into a uniform bath. For a deliberately simplified constant collision-rate model with rate \(r\), probability of no collision by time \(t\) is \(e^{-rt}\). For tracers conditioned to have one speed \(v\), the distribution of collision-free distance is then exponential with mean \(v/r\). If the collision rate itself depends on speed through the average relative velocity against the bath, the conditional mean free path is \(v/r(v)\). Mixing all initial speeds need not produce a single exponential in distance, even if every conditional waiting time is exponential.
Place a detector a distance \(L\) downstream that accepts only trajectories maintaining their initial direction. For a narrow injected speed class, the unscattered fraction is approximately \(e^{-r(v)L/v}\) if any collision removes it from the acceptance. For a class at 500 m/s and mean free path 0.20 m, a detector at 0.10 m receives an unscattered fraction 0.607; at 0.30 m it receives 0.223. A ratio of the two readings removes the unknown injection strength and recovers the attenuation coefficient if detector acceptances and geometric factors match.
If forward-scattered trajectories remain inside the acceptance, the apparent attenuation is smaller than the total collision rate. Angularly narrowing the receiver should approach the total-removal model for suitable scattering. A finite source pulse and finite time-of-flight bin also select velocities even if the source initially emitted a Maxwellian. Fit survival separately in narrow speed bins first. A nonexponential whole-beam attenuation then need not imply that the microscopic collision process has memory; it can arise purely from an unresolved distribution of rates.
A simulation can distinguish these alternatives by logging every collision event and comparing the full collision count with the detector-defined removed count. First test conditional survival for a prepared monochromatic beam, then add a known distribution of incident speeds and calculate the mixture prediction explicitly. Finally include a finite angular acceptance and integrate the differential cross section over the appropriate retained directions. These steps separate the kinetic collision operator, the initial distribution and the observation rule.
The same logic applies to a relaxation experiment reporting a single characteristic mean free time. The decay time of a directional flux depends on how much momentum is deflected per collision, not simply on how often particles meet. Strongly forward-peaked scattering can have a large total cross section and a much smaller momentum-transfer cross section weighted by \(1-\cos\theta\). A measured attenuation and a measured viscosity may consequently constrain different moments of precisely the same differential scattering process.
For example, if every collision deflects a test particle through a small fixed angle of ten degrees in the relevant frame, the momentum-transfer weighting is
The corresponding transport cross section can then be far smaller than the total cross section even when collisions are frequent. A velocity-randomising approximation that uses the total collision time as its stress-relaxation time would predict much faster momentum relaxation than this angular picture supports. Actual stress and energy transport involve additional angular weights and velocity averages, so this numerical comparison is a scale diagnostic rather than an exact viscosity formula. Measure several angular moments of the differential scattering kernel or compare at least two independently sensitive transport observables before assigning a universal relaxation time to a real collisional gas.
Follow an H functional during a reversible elementary collision
Prepare unequal populations in two velocity pairs. Count forward and reverse collision rates and compare the sign of entropy change with the population imbalance.
Tutorial · Find the equilibrium temperature of an anisotropic preparation
A homogeneous gas has zero mean flow and component kinetic temperatures 600, 300 and 150 K, defined by \(m\langle v_i^2\rangle=k_BT_i\). In an isolated elastic gas, predict its equilibrium temperature and pressure tensor change. Could a thermostat holding the velocity variance in one direction at its original value permit the same inference?
Retain all three conserved energy contributions
Conservation of total kinetic energy implies \(T_f=(600+300+150)/3=350\) K. Initially the diagonal kinetic pressure components are \(nk_BT_i\); ultimately each becomes \(nk_B(350\,{\rm K})\). Their sum is unchanged. A component singled out by a thermostat can exchange work or heat with its environment. Its final common temperature, if one exists, must be obtained from the full energy balance including that exchange. Isotropisation cannot simply be assumed to retain the initial isolated mean.
Tutorial · Estimate the error in a collision-frequency inference
A detector reports a mean speed of 480 m/s and a geometric collision cross section \(4.0\times10^{-19}\) square metres at \(n=2.0\times10^{25}\) per cubic metre. Estimate the collision rate per tagged particle and total events per unit volume per second for an equilibrium identical-particle gas. What changes in a molecular beam with almost parallel velocities?
Use the relative rather than the single-particle speed
The equilibrium mean relative speed is \(\sqrt2(480)=679\) m/s. The rate per tagged particle is \(ng\sigma\simeq5.43\times10^9\) per second. Multiplying by \(n/2\) gives event rate \(5.43\times10^{34}\) per cubic metre per second. In a nearly monoenergetic collimated beam the relative speed can be much less than the mean laboratory speed. Evaluate its pair-distribution average explicitly; translating every velocity by a common vector leaves all collision rates unchanged at fixed distribution of relative velocities.
Tutorial · Does reversing all velocities contradict the H theorem?
In a dilute-gas simulation, reverse all particle velocities at a chosen instant with exact precision. An ideal reversible microscopic integrator would retrace the prior trajectory. Explain how this outcome can coexist with a kinetic equation predicting nondecreasing entropy, and propose a comparison that isolates the missing information.
State which distributions are controlled by the reversal
The reversed incoming pairs carry precise correlations inherited from earlier outgoing collisions. Their two-particle distribution generally does not factor into the product of their one-particle distributions just before future collisions. The molecular-chaos step used to derive the collision operator therefore fails for this deliberately prepared history. Microscopic Hamiltonian evolution and the coarse one-particle closure make different state specifications.
Prepare a second gas with the same reversed one-particle velocity histogram but with spatial and partner correlations randomised while conserving total momentum and energy. Compare the two subsequent anisotropy histories. The kinetic equation has the same initial one-particle input for both, while a microscopic simulation can distinguish them through higher-order correlations. Imperfect numerical reversal introduces a separate error; test exactness and time-step dependence before interpreting a failure to retrace as a fundamental thermodynamic observation.
Cambridge Kinetic Theory · the Boltzmann equation, collision invariants and hydrodynamics
Transport coefficients from equilibrium fluctuations
Statistical mechanics from microscopic counting to material response
How can a fluid in equilibrium reveal the diffusion constant that would govern a spreading drop, or the viscosity that would resist an applied shear? Derive an exact connection between displacements and velocity correlations, generalise it to stress and heat currents and test how a finite record can bias each number. The assumptions behind convergence matter as much as the prefactor.
Integrate the velocity correlation before taking a long-time limit
Observe one Cartesian coordinate of a tagged particle in a homogeneous equilibrium fluid with zero mean drift. The displacement over time \(t\) is the integral of its velocity. Square that integral, average over the equilibrium ensemble and use stationarity to replace the two-time expectation by \(C_v(t_1-t_2)\). For a scalar component in a time-reversal-symmetric equilibrium state this correlation is even. Integrate over the two triangles of the time square:
If the correlation is integrable and boundary effects remain absent, the long-time slope yields a diffusion coefficient \(D=\int_0^\infty C_v(s)ds\). In \(d\) isotropic dimensions one may use \(D=(1/d)\int\langle\mathbf v(s)\cdot\mathbf v(0)\rangle ds\) or the mean-square-displacement slope divided by \(2d\). Using the full vector dot product without division by dimension gives an overestimate. Directional diffusion in an anisotropic material requires tensor components rather than a forced scalar average.
The derivation is kinematic and does not assume a Markovian motion. A fluid with velocity memory or an oscillating solid still obeys the finite-time relation. Those systems need not exhibit the same long-time proportionality to time. A bound oscillator can have persistent or alternating velocity correlations and a bounded displacement. An observation window in which the mean square grows over a fraction of an oscillation is insufficient to claim diffusion.
A solvable benchmark from ballistic to diffusive motion
For one coordinate take the underdamped Langevin equation \(m\dot v=-\zeta v+\xi\), with zero-mean white noise satisfying \(\langle\xi(t)\xi(t')\rangle=2k_BT\zeta\,\delta(t-t')\). In equilibrium \(\langle v^2\rangle=k_BT/m\). Condition on \(v(0)\) and integrate for positive time. The later random force has no correlation with the initial velocity, giving \(C_v=(k_BT/m)e^{-t/\tau_v}\), where \(\tau_v=m/\zeta\). Its area and the resulting displacement are
At \(t\ll\tau_v\), the constant and linear terms inside the brackets cancel and displacement is ballistic:
At \(t\gg\tau_v\) the slope approaches \(2D\). Fitting a line through the origin at times only a few relaxation times overestimates the influence of the negative intercept in this long-time expression and underestimates \(D\). Comparisons at multiple lags distinguish crossover curvature from a true anomalous power law.
For an inert sphere of radius 0.50 micrometres and density \(2000\) kg per cubic metre in water with \(\eta=1.00\) mPa s at 298 K, its bare mass is \(1.05\times10^{-15}\) kg and Stokes drag \(9.42\times10^{-9}\) kg/s. The estimate \(\tau_v=0.111\) microseconds is far faster than ordinary video tracking. \(D=0.437\) square micrometres per second and the one-coordinate rms displacement over 10 ms is 0.0935 micrometres. Hydrodynamic added mass and memory affect very short-time behaviour; the simple exponential is an analytical reference, not a claim that a water suspension remains Markovian down to arbitrary times.
Relate a weak imposed force to equilibrium motion
In the same soluble model a small constant force \(F\) turns the mean velocity into \(F(1-e^{-t/\tau_v})/\zeta\), so the mobility \(b=\lim\langle v\rangle/F=1/\zeta\). Together with equilibrium diffusion this gives the Einstein relation \(D=k_BTb\). A broader equilibrium argument considers a dilute suspension in a weak conservative potential \(U(x)\). Its current is
with \(F=-\partial_xU\). The Boltzmann distribution \(n\propto e^{-U/k_BT}\) must carry zero current; substitution gives the same relation without assuming exponential velocity relaxation.
Linear response connects the full weak-force impulse response to an equilibrium correlation. For a perturbation coupled as \(-F(t)x\), classical equilibrium response of velocity has causal kernel \(C_v(t)/(k_BT)\) for \(t>0\) under the usual microreversibility assumptions. Integrating the response kernel for a constant weak force gives
which recovers the kinematic diffusion relation. Strong forcing, an active bath or a nonequilibrium steady state need not obey this simple equilibrium identity.
A direct check compares independently measured weak sedimentation or calibrated drift with freely diffusing trajectories. For the previous bead a force 10 fN would produce a mean drift about 1.06 micrometres per second in the ideal Stokes regime. During a 10 ms frame its mean drift is about 0.011 micrometres, much smaller than rms Brownian motion, so many frames or many particles are needed. A single short jagged record can appear to move against the force. Use equal positive and negative applied forces to cancel constant stage drift in the estimated mobility.
Work through diffusion and mobility in the random-walk chapter
Stress and heat current carry their own normalisations
In a homogeneous isotropic laboratory fluid, define \(P_{xy}\) as a spatially averaged off-diagonal microscopic stress, with units Pa. Its equilibrium mean is zero in an isotropic state without imposed shear. A weak velocity gradient couples to momentum transport. The Green–Kubo expression for dynamic shear viscosity is
If a program outputs an extensive stress moment \(J_{xy}=V P_{xy}\), the prefactor is \(1/(Vk_BT)\). Multiplying an already extensive current by volume again is a common orders-of-magnitude error. Check dimensions: pressure squared times time times volume divided by energy gives pascal seconds. Kinetic and interaction contributions to microscopic stress must both be included according to the model; a calculation with ideal kinetic flux alone need not reproduce the viscosity of a dense fluid.
Similarly for a component of total heat current \(J_{Q,x}\) with units energy times length per time, the thermal conductivity in an isotropic equilibrium single-component system is
Here \(k_BT^2\) means \(k_B\) times \(T^2\). If a heat-flux density is used instead, the volume prefactor moves as for stress. Heat current must exclude energy carried by a net mass flow as appropriate to the chosen thermodynamic constraint. In mixtures several conserved species currents can couple, and the measured conductivity at zero mass flux can differ from one unprojected current coefficient. The meaning of the measured flux and the imposed condition must be specified before comparing coefficients.
For an illustrative volume \(10^{-24}\) cubic metres at 300 K, assume one stress autocorrelation \(C_P(t)=(2.0\times10^6\ {\rm Pa})^2 e^{-t/(2.0\,{\rm ps})}\). Its area is 8.0 square pascal seconds. Multiplication by \(V/(k_BT)\) gives viscosity \(1.93\times10^{-3}\) Pa s. Doubling the simulated volume of an otherwise similar homogeneous fluid generally reduces the variance of its volume-averaged stress, keeping the physical transport coefficient intensive. Holding the same numerical stress variance while merely changing the prefactor would describe a different equilibrium fluctuation model.
Find a correlation integral's useful time window
An estimate at lag \(s\) averages over pairs of samples separated by that lag. In a record of duration \(T_{\rm rec}\), the number of available pairs decreases with lag. Overlapping time origins strongly correlate the estimates, so plotting one error bar per raw pair exaggerates precision. Integrating an estimated correlation to the maximum possible lag frequently accumulates late random noise rather than useful signal. Conversely stopping too early omits a physical tail.
For a positive single-exponential reference, integrating to three correlation times retains \(1-e^{-3}=95.0\) percent of the area. Five times retain 99.3 percent. A correlation containing a small, much slower component can look essentially flat on the main decay scale while contributing appreciably to the area. Divide a long run into blocks, compare running integrals and check several window lengths. Report the variation between independent blocks and any explicit tail model used beyond the measured interval.
At short lags, finite exposure averages correlated positions or velocities. Uncorrelated localisation errors in position increase nonzero-lag displacement variance by a constant \(2s_x^2\) per coordinate. Numerically differentiating those same noisy positions creates large artificial velocity variance and negative correlations between adjacent increments. An apparent negative velocity lobe can therefore be physical backscattering or a measurement artefact. Comparing a raw displacement fit with the velocity integral after independently characterising detector noise is more informative than differentiating first and interpreting every feature as fluid memory.
A forced shear wave gives a second viscosity measurement
An equilibrium stress correlation estimates viscosity without imposing any flow. A separate driven measurement can test that coefficient against a directly observed penetration depth. Take a Newtonian fluid filling \(y>0\), driven by a laterally oscillating plate at \(y=0\) with speed \(U_0\cos\omega t\). Neglect boundaries at large \(y\), compressibility and nonlinear convective effects in this spatially uniform tangential shear. The momentum equation reduces to
with kinematic viscosity \(\nu=\eta/\rho\).
Seek \(u=\operatorname{Re}[U_0e^{-\lambda y-i\omega t}]\) and choose the square root with positive real part. Then \(\lambda=(1-i)/\delta\),
Both amplitude decay and phase lag carry information: at distance one penetration depth the amplitude is \(e^{-1}\) of the wall speed and the lag magnitude is one radian. A single complex velocity map can determine viscosity from either slope and use their agreement to test the simple model.
For a fluid of density \(1000\) kg per cubic metre and measured penetration depth 0.126 mm at 20 Hz, \(\nu=\omega\delta^2/2\simeq1.00\times10^{-6}\) square metres per second and \(\eta\simeq1.00\) mPa s. A stress-fluctuation integral yielding a value twice as large would predict a penetration depth larger by \(\sqrt2\), approximately 0.178 mm. Such a comparison can discriminate a missing component or volume factor in the equilibrium calculation if density, temperature and fluid composition match.
At high enough frequency the fluid may have a complex frequency-dependent viscosity rather than the zero-frequency coefficient from a Green–Kubo area. In linear response that generalisation is the one-sided Fourier transform of the equilibrium stress correlation with appropriate prefactors. A single-exponential stress memory gives a frequency-dependent response with a characteristic roll-off and phase lag. Comparing a high-frequency penetration measurement directly to a zero-frequency area without checking the timescale can therefore produce a genuine difference, not a statistical failure.
Remove a centre-of-mass mode only when the observable requires it
In a finite periodic particle simulation total momentum may be exactly conserved. If the initial centre of mass has a random velocity and no thermostat removes it, every particle's measured laboratory coordinate includes the common drift \(V_{\rm CM}t\). Its mean-squared displacement gains a ballistic term \(\langle V_{\rm CM}^2\rangle t^2\). In a canonical ensemble the centre-of-mass velocity variance in one direction is \(k_BT/M_{\rm tot}\). Though it falls with system size, at sufficiently long times its quadratic contribution exceeds the linear diffusive part.
For 1000 equal particles of mass \(m\), an equilibrium centre-of-mass mode contributes one thousandth of the single-particle instantaneous velocity variance. In a long-time autocorrelation this small constant never integrates to a finite diffusion coefficient. Subtract centre-of-mass displacement or work in a zero-total-momentum ensemble before taking the long-time integral of an internal tracer's motion. In a real sample with externally imposed drift, decide whether the physical quantity sought is diffusion about that drift or absolute laboratory displacement; the subtraction has a physical meaning rather than merely a cosmetic improvement.
Conversely, indiscriminately subtracting the mean velocity of a tiny observation subregion separately at every time can remove genuine hydrodynamic long-wavelength motion. A strongly applied single-particle thermostat can alter current correlations and suppress transport even while maintaining the correct static temperature histogram. Check the thermostat strength and system size; compare an equilibrium-prepared weakly thermostatted trajectory with an energy-conserving production segment where appropriate. Maintaining the correct one-time distribution is not sufficient to preserve all dynamical correlation functions.
The distinction also matters when removing an estimated mean stress before integrating its fluctuations. The true shear mean may vanish by symmetry, but a short noisy record has a nonzero sample mean. Subtracting a slowly varying trend on the same timescale as a genuine stress tail can erase physical viscosity. Use independent samples, separately measured drifts and explicit sensitivity to the subtraction window. A persistent nonzero off-diagonal stress under nominal isotropic conditions may indicate incomplete equilibration, a deformed box or an unrelaxed solid rather than a fluid transport coefficient.
Heat and particle currents can share fluctuations
Consider two thermodynamic fluxes \(J_1,J_2\) driven weakly by conjugate forces \(X_1,X_2\), chosen so entropy production density is \(J_1X_1+J_2X_2\). Linear response writes \(J_i=\sum_jL_{ij}X_j\). Near time-reversal-symmetric equilibrium, with flux parities chosen appropriately and no magnetic-field reversal complications, reciprocal relations give
The symmetric part must be positive semidefinite so that entropy production is nonnegative for every small force. Thus \(L_{11},L_{22}\ge0\) and \(L_{12}^2\le L_{11}L_{22}\).
Suppose a thermal measurement enforces \(J_1=0\) by allowing a compensating force \(X_1\) to develop, as when a concentration or electrochemical gradient cancels a coupled particle flux. Solving the first row gives
Substitution into the second yields response coefficient \(L_{22}-L_{21}L_{12}/L_{11}\). The measured constrained heat response can therefore be smaller than the coefficient at fixed \(X_1=0\). The difference has a simple operational origin in the boundary condition enforced during the experiment.
Take consistent normalised coefficients \(L_{11}=4,L_{22}=3,L_{12}=L_{21}=2\). At zero first force the heat flux slope is three. At zero first flux it is \(3-4/4=2\). Both are positive and consistent with the same equilibrium correlation matrix. Comparing a simulated heat-current autocorrelation corresponding to the unconstrained coefficient against a zero-particle-flux experiment requires the mixed-current correlation too. Apparent disagreement by a factor of one and a half can arise entirely from this distinction.
Green–Kubo cross-correlations must use properly defined conjugate fluxes and units. Redefining heat current by adding a constant multiple of particle current changes the matrix entries but must leave a physically defined zero-particle-flux heat measurement invariant when the forces are transformed consistently. This reference invariance is analogous to subtracting a per-particle energy reference in grand-canonical covariance. It provides a powerful test of a multicomponent transport implementation without relying on any empirical transport value.
A lattice trajectory provides an exactly known correlation integral
For a one-dimensional nearest-neighbour walk with steps of length \(a\) every interval \(\Delta t\), suppose successive step directions have correlation \(\langle s_{j+k}s_j\rangle=r^k\) with \(|r|<1\), and zero mean. Squaring the sum of \(n\) steps gives
In the large-\(n\) limit divide by \(2n\Delta t\) to obtain
The uncorrelated random-walk value is recovered at \(r=0\).
With \(a=1\) micrometre and \(\Delta t=0.10\) s, uncorrelated diffusion is five square micrometres per second. Persistence \(r=0.5\) raises it to fifteen, while anticorrelation \(r=-0.5\) lowers it to \(5/3\). All three walks have the same step-size variance, so an estimate based only on one-frame displacement misses the entire correlation effect. The finite-lag autocorrelation sum and a long-time displacement fit should recover the same value on a long simulated record.
The discrete formula also clarifies the special zero-lag weight in numerical integration. An integral approximated from sampled symmetric correlations gives half weight to the zero lag on a one-sided trapezoidal rule. A careless double count of the instantaneous self term predicts twice the uncorrelated diffusion. Benchmark a numerical estimator with this exact walk before applying it to molecular data with unknown late tails and noisy velocity derivatives.
Measure an off-diagonal diffusion coefficient after rotating the sample
In an anisotropic sheet a tracer's two-dimensional displacement covariance need not align with the camera axes. Let its long-time principal diffusion coefficients be \(D_1,D_2\) and the first principal axis make angle \(\theta\) with laboratory \(x\). In matrix form the laboratory tensor is \(R\,{\rm diag}(D_1,D_2)R^{\mathsf T}\), with \(R\) the planar rotation. At sufficiently large lag in an effectively unbounded drift-free region, the displacement covariance matrix tends to \(2D t\). An off-diagonal covariance is a measurable correlation between displacement components even if the noise is independent in the material principal directions.
Take \(D_1=2.0\) and \(D_2=0.50\) square micrometres per second with \(\theta=30^\circ\). Laboratory components are \(D_{xx}=1.625\), \(D_{yy}=0.875\) and \(D_{xy}=0.650\), in the same units. At 0.10 s the cross covariance is 0.130 square micrometres. Rotating the physical sheet by ninety degrees interchanges the two diagonal values and reverses the sign of the off-diagonal one. An instrument-fixed camera readout artefact would not generally follow this material rotation.
To infer the principal axes from data, fit each covariance component versus lag using a common drift subtraction and independent position calibration. Diagonalise the symmetric fitted diffusion matrix. Positive semidefiniteness requires
A strong violation indicates incompatible estimates, unit conversion errors or statistical uncertainty, not a physically permissible strongly anisotropic diffusion tensor. Near-degenerate principal values make the orientation poorly determined even when the mean diffusion coefficient is precise. Report uncertainties on eigenvalues and orientation separately.
A finite field of view introduces a further bias. Fast particles along the high-diffusion direction leave the image sooner, and a tracking pipeline retaining only long trajectories can favour slow or fortuitously confined paths. Compare different fields of view and minimum track durations, or fit a measurement model incorporating censoring. A physical material anisotropy should persist after correcting these effects; apparent anisotropy aligned with the short direction of a rectangular observation window demands particular scrutiny.
A weak calibrated force along different axes supplies an independent check through the tensor Einstein relation under equilibrium conditions. If the diffusion tensor predicts off-axis mean drift, the mobility experiment should observe its sign and magnitude after reversing the force. A discrepancy could reveal active forcing, nonstationarity, an incorrect temperature or a mismatch between the mobility and displacement observables. It cannot be diagnosed from a scalar mean square alone.
Another rotational invariant is the trace of the diffusion tensor. In the example its value stays 2.50 square micrometres per second for every sample orientation, while the determinant stays one square micrometre to the fourth per second squared. A comparison of two camera orientations therefore provides numerical checks independent of the fitted angle. A drift mistakenly left in the displacement covariance can violate the expected linear dependence on lag, making the inferred effective eigenvalues grow with the selected fitting window. Subtract the ensemble mean displacement at each lag and record that mean separately as a flow measurement. Conversely do not subtract an individual best-fit line from every short trajectory without modelling the resulting loss of long-time fluctuations; that procedure can bias both diffusion coefficients downward.
Choose an integration window for a transport coefficient
Integrate an oscillatory velocity correlation over a finite record. Compare a short apparent plateau with the independently computed infinite-time result.
Tutorial · Invert diffusion measurements at two lags
In a one-dimensional diffusive window a measured displacement variance is 0.024 square micrometres at 10 ms and 0.064 at 50 ms. Assume long-time Brownian displacements plus independent frame-localisation variance per position measurement. Estimate \(D\) and localisation precision.
Fit slope and intercept separately
The variance slope is \((0.064-0.024)/(0.050-0.010)=1.00\) square micrometre per second, so \(D=0.500\) square micrometres per second. The intercept is 0.014 square micrometres, equal to twice the single-frame localisation variance. The implied rms localisation error is \(\sqrt{0.007}=0.0837\) micrometres. Forcing the fit through the origin at the shortest lag would give \(D=1.20\), more than twice the inferred value.
Acquire more lags to test the linear model. A static drift contributes a term growing as \(t^2\) if its mean displacement is not removed, while finite exposure can lower the physically measured short-lag variance. Two points always define a line and cannot independently validate either noise model.
Tutorial · Estimate a hidden slow tail in viscosity
A stress correlation is modelled as \(A[e^{-t/\tau}+0.02e^{-t/(40\tau)}]\). What fraction of its true area comes from the low-amplitude tail? How much does a cutoff at \(5\tau\) capture?
Weight a correlation by its duration
The fast and slow areas are \(A\tau\) and \(0.80A\tau\). The slow contribution is 44.4 percent of total. Integration to five fast times captures \(A\tau[(1-e^{-5})+0.80(1-e^{-5/40})]\simeq1.087A\tau\), or about 60.4 percent. Visual disappearance of the dominant peak therefore does not establish convergence of the transport coefficient.
The slow contribution must be supported by independent long blocks or a physically motivated model. A fitted tiny constant baseline can generate arbitrarily large apparent area if extrapolated indefinitely. Subtracting a sample mean estimated from the same short record can conversely suppress a genuine slow mode. Compare records much longer than the proposed tail time before trusting the extrapolation.
Tutorial · Is an algebraic tail compatible with ordinary diffusion?
Suppose a measured long-time velocity correlation remains positive and scales as \(t^{-\alpha}\). Determine when its Green–Kubo area exists and infer the displacement growth for \(0<\alpha<1\) and for \(\alpha=1\). Why would a finite periodic simulation require care?
Integrate the time-dependent slope before naming a diffusion coefficient
For \(\alpha>1\) the tail integral converges. For \(0<\alpha<1\), the running area grows as \(t^{1-\alpha}\), so displacement variance grows as \(t^{2-\alpha}\) under the stated persistent positive tail. At \(\alpha=1\), the running area grows logarithmically and the displacement variance is of order \(t\log t\). Sign oscillations, finite-size termination or another late-time crossover can alter these conclusions.
A periodic box admits only discrete long-wavelength modes and may cut off a hydrodynamic tail. Repeating at larger sizes and comparing the range before signals traverse the box helps identify a bulk regime. Unwrap particle coordinates crossing periodic boundaries before calculating a displacement. A wrapped coordinate can falsely saturate and imitate a confined particle even in a freely diffusing periodic fluid.
Cambridge Kinetic Theory · correlations, response and transport
Work fluctuations and equilibrium free-energy differences
Statistical mechanics from microscopic counting to material response
Repeated rapid changes of a laboratory control can give a broad distribution of work even when every run follows the same prescribed protocol. Derive why a particular exponential average retrieves an equilibrium free-energy difference, why the average work is generally larger, and why a finite experiment can miss the rare trajectories that make the equality true.
Specify the system, preparation and measured work
Let a classical system have Hamiltonian \(H(z,\lambda)\), with microstate \(z\) and an externally set parameter \(\lambda\). Initially it is sampled from the canonical equilibrium distribution at \(\lambda_A\) and temperature \(T\). A prescribed protocol \(\lambda(t)\) carries it to \(\lambda_B\). Work done on the system along one trajectory is the inclusive parameter work
If \(\lambda\) is a trap centre, the generalised force in this convention is the derivative of energy with respect to that centre. A transducer reporting the opposite force exerted by the system on the actuator needs a sign change. For a stochastic subsystem in contact with a heat bath, a change of subsystem energy also includes heat. It is not generally equal to the measured protocol work. Specify the tip, trap, sample and bath boundary before turning a force trace into a work distribution.
Every run must begin from the same equilibrium preparation, not simply from whichever end state the previous protocol produced. The final state immediately after a fast drive need not be equilibrium. The free energy being inferred refers to equilibrium endpoint Hamiltonians at the same temperature. Equilibrating after the drive exchanges heat but involves no additional protocol work when the control is held fixed. Changing control during that relaxation would define a different protocol.
A Hamiltonian proof using phase-space volume
First treat an isolated driven Hamiltonian system after canonical preparation. Work along a trajectory equals \(H_B(z_f)-H_A(z_i)\). Multiply \(e^{-\beta W}\) by the initial canonical weight and integrate over initial phase space. The dependence on initial energy cancels. Hamiltonian dynamics preserves phase-space volume and is invertible, so change variables from initial to final point to obtain
Thus the Jarzynski equality follows without assuming the driving is slow. This proof requires the mapping to cover the relevant final phase space with the stated measure; idealised instantaneous removal of infinitely high constraints can create subtleties of support. For a weakly coupled thermal environment include bath variables in the Hamiltonian derivation or use a stochastic dynamics satisfying appropriate local detailed balance. Arbitrary feedback, nonequilibrium initial preparation or an unmodelled strong bath coupling does not automatically obey this simple subsystem formula.
Jensen's inequality gives
with equality for a deterministically reversible work distribution in the relevant limit. An individual run may give less work than \(\Delta F\), sometimes even work of the opposite sign. This does not violate the ensemble inequality. The exponential average weights such small-work events more strongly than their raw frequency indicates. The larger the typical dissipated work, the more difficult a direct estimate often becomes.
Solve a complete finite-time example analytically
Take one overdamped particle equilibrated in a one-dimensional harmonic trap \(H(x,\lambda)=k(x-\lambda)^2/2\) at \(\lambda=0\). Suddenly shift the centre to \(d\) while the particle position cannot respond. The endpoint free energy is unchanged by translation in an unbounded uniform bath. Initial \(x\) is Gaussian with mean zero and variance \(k_BT/k\). During the instantaneous shift
Work is Gaussian with mean \(kd^2/2\), variance \(kd^2k_BT\), and \(\Delta F=0\). Evaluating the Gaussian moment generates \(e^{-\beta\langle W\rangle+\beta^2\operatorname{var}W/2}=1\), verifying the equality exactly at arbitrary shift distance. The mechanism is visible in the trajectories: particles already on the downstream side can lose potential energy in the sudden control shift, contributing negative work and disproportionately large exponential weights.
For \(d=2\sqrt{k_BT/k}\), the mean work is two thermal energies and the standard deviation is also two thermal energies. The probability of negative work is about 0.159. For \(d=5\sqrt{k_BT/k}\), mean work is \(12.5k_BT\), standard deviation \(5k_BT\), and negative work occurs only about 0.0062 of the time. Typical runs can all show substantial positive work even though the correct free-energy change for the whole translation is zero.
The most important work values for the exponential average are not simply all values below zero. Multiplying a Gaussian \(P(W)\) by \(e^{-\beta W}\) shifts its peak to \(\langle W\rangle-\beta\operatorname{var}W\), which for this trap shift is \(-\langle W\rangle\). In the five-width shift example that important region is five standard deviations below the ordinary work mean. Observing a few negative work values can still leave the estimate badly biased if the most heavily weighted part remains unsampled.
Compare forward and reverse trajectory probabilities
Define the reverse protocol by reversing the order of control values, and reverse momenta and any time-odd external parameters as required by microscopic time reversal. Prepare its initial system independently in equilibrium at \(B\). Under microscopic reversibility the probability ratio of a forward path and its time-reversed counterpart has a boundary weight from the initial ensembles and a conditional path weight tied to heat exchange. These combine to give \(e^{\beta(W-\Delta F)}\). Grouping paths by work produces the Crooks relation
Where the two work densities coincide, \(W=\Delta F\). Integrating the relation against \(e^{-\beta W}\) recovers Jarzynski. The reverse work axis must be reflected: a crossing of two histograms plotted with the same unflipped work sign generally has no such interpretation. A finite bin estimates an integral over a work interval, so discretisation and sparse counts modify a naive pointwise log-ratio fit.
For a more general measured Gaussian forward work distribution with mean \(5.0k_BT\) and variance \(4.0(k_BT)^2\), the equality predicts \(\Delta F=3.0k_BT\) if the Gaussian law including tails is justified. With equal-variance reverse statistics, the corresponding mean of \(-W_R\) is \(1.0k_BT\). The two densities cross at \(3.0k_BT\). Plotting \(\log[P_F(W)/P_R(-W)]\) against \(W\) should give slope \(\beta\), providing a check on independent force and temperature calibration. Good agreement over a tiny overlap range does not constrain remote tails strongly.
Use the finite estimator honestly
From independent forward works \(W_i\), estimate \(\Delta F\) as minus \(k_BT\) times the logarithm of their mean exponential weight. The sample mean of weights is unbiased under correct sampling, but its logarithm is nonlinear. Jensen implies the finite-sample free-energy estimate is biased upward on average under the ideal assumptions. A single dataset can fluctuate either way. An ordinary mean-work error bar does not describe uncertainty in an exponential moment.
For Gaussian work the squared coefficient of variation of one exponential weight is \(e^{\beta^2\operatorname{var}W}-1\). With \(d=2\) thermal widths it equals
To estimate the mean weight to ten percent relative standard error by independent averaging would require roughly 5360 runs under that distribution. At five thermal widths the required count is dramatically higher. The nominal number of runs is not a sufficient convergence diagnostic: inspect the fraction of weight carried by the largest events and compare independent batches.
For numerical stability shift all dimensionless logarithmic weights by their largest value before exponentiating, then add it back after taking the logarithm. This prevents overflow without repairing missing rare events. Bootstrapping a dataset with no observations in the relevant tail cannot generate them. More gradual driving, intermediate equilibrium windows or a bidirectional estimator using forward and reverse overlap can reduce the difficulty. Each approach requires its own equilibrium preparations and sufficient overlap, not just a different final formula applied to the same deficient sample.
Discretise a real force trace without changing the work definition
For a measured optical trap centre \(\lambda_j\) and positions \(x_j\), actual control updates and acquisition clocks may be staggered. If the control moves instantaneously from \(\lambda_j\) to \(\lambda_{j+1}\) at fixed \(x_j\), its exact contribution is \(H(x_j,\lambda_{j+1})-H(x_j,\lambda_j)\). A smoothly moving control instead uses an integral of the measured generalised force, with a quadrature matched to timestamps and sampling bandwidth. A midpoint convention applied to an unresolved abrupt jump can miss a finite quadratic term.
For the harmonic trap the instantaneous work above is exactly \(k[(\lambda_j+\lambda_{j+1})/2-x_j](\lambda_{j+1}-\lambda_j)\). Taking only the initial force would give a difference \(k(\lambda_{j+1}-\lambda_j)^2/2\) per jump. Over many short smooth increments this bias may vanish under refinement, but for a deliberate quench it is the entire mean work if the initial mean displacement is zero. The distinction can be checked by reversing the jump and independently measuring the equilibrium spatial variance.
Derive the dissipated work for a constant-speed pull
Between infinitely slow displacements and a sudden quench lies an exactly soluble finite-duration example. For a harmonic trap translated at constant velocity \(u\) in an overdamped bath, the mean coordinate obeys \(\zeta\,d\langle x\rangle/dt=-k(\langle x\rangle-\lambda)\). Begin equilibrated at zero and set \(\lambda(t)=ut\) for \(0<t<t_f\). The mean lag \(\lambda-\langle x\rangle\) obeys a first-order equation and grows from zero toward \(u\tau\), with \(\tau=\zeta/k\). The mean force exerted by the actuator in this sign convention is \(k(\lambda-\langle x\rangle)\). Integrating the product of this force with control speed gives
The free-energy change for translating this uniform trap is zero. At a fixed displacement \(d=ut_f\), taking \(t_f\ll\tau\) gives \(kd^2/2\), precisely the sudden-quench mean. As \(t_f\gg\tau\) the main term is \(\zeta d^2/t_f\), tending to zero for a quasistatic pull. Simply keeping speed fixed while taking a longer time is a different limit because the endpoint then moves farther.
The fluctuating part of \(x(t)\) around its deterministic mean remains an equilibrium Ornstein–Uhlenbeck process in this additive linear model. Work is a linear functional of that Gaussian process and is therefore Gaussian. Its variance follows by integrating its covariance twice, giving \(\operatorname{var}W=2k_BT\langle W\rangle\). This recovers the exponential equality at every pull duration and supplies a nontrivial benchmark for a stochastic integrator. The probability of extracting work can be computed from the resulting Gaussian tail without assuming a second ensemble.
For a pull of two thermal widths completed in one relaxation time, use \(\zeta d^2/t_f=kd^2=4k_BT\). The bracketed dimensionless fraction is \(1-(1-e^{-1})=e^{-1}\), so mean work is \(1.47k_BT\) and standard deviation about \(1.72k_BT\). A sudden pull of the same distance has higher mean \(2k_BT\). A pull lasting five relaxation times reduces the mean to \(4k_BT[5-(1-e^{-5})]/25=0.641k_BT\). These changes predict which protocol will yield a usable work-overlap region for a finite number of trials.
A measurement can test this crossover without fitting free energy at all. Calibrate stiffness from an equilibrium position distribution, obtain the relaxation time from a correlation or driven response and predict the entire mean-work curve versus duration. Then assess Jarzynski estimates independently. Failure of the predicted variance-to-mean relation can reveal nonharmonic confinement, non-Gaussian bath forces, actuator timing offsets or insufficient equilibration. It need not invalidate the fluctuation identity itself.
A two-outcome work distribution shows how rare events restore equality
A particularly transparent work distribution comes from a sudden change in a two-level system. Initially its ground energy is zero and upper energy \(2k_BT\). In a sudden protocol move the upper level to zero while leaving the initial ground energy unchanged. The initial upper probability is
Work can take only two values: zero for an initially ground system and minus two thermal energies for a particle initially upper. Both new energy levels are degenerate, so the exact equilibrium partition ratio is
The exponential average equals \((1-p)+pe^2=1.762\), giving \(\Delta F=-0.566k_BT\). Mean work is only \(-0.238k_BT\), greater than this equilibrium free-energy change as required. With five independent realisations the probability of observing no upper preparation is
More than half such tiny samples would report zero work every time and infer a free-energy change of zero. A bootstrap resampling those five identical observations would report no empirical uncertainty at all, spectacularly missing the known sampling limitation.
Increase the initial gap to \(6k_BT\) before the same quench to degeneracy. The initial upper probability falls to 0.00247, but its exponential weight rises to \(e^6\). Its mean contribution to the exponential estimator remains near one. Even one hundred runs then miss this branch with probability about 0.78. Equality relies on the true preparation probability of a rare event combined with its enormous statistical weight. A finite dataset cannot certify absence of the branch by having no observations of it.
The reverse experiment begins with two equally populated degenerate states and raises one level. It samples the formerly rare branch far more easily. Reflect its raw works onto the forward work axis and compare point masses, not unrelated smooth histogram densities. A forward and reverse data combination then constrains the free-energy difference much more effectively. A fitted reverse sample must still begin at equilibrium in the degenerate endpoint; carrying the low excited-state fraction over from the forward final state would destroy its intended initial ensemble.
Instrumental work noise is amplified by the exponential
Suppose each genuine trajectory work is recorded with an independent Gaussian error of mean zero and variance \(s_W^2\). The arithmetic mean work stays unbiased. The mean exponential weight is multiplied by \(\exp(\beta^2s_W^2/2)\), so a naive Jarzynski estimate of free energy shifts downward by \(\beta s_W^2/2\) in energy units in the infinite-record limit. This systematic shift is distinct from the finite-record logarithm bias, which tends upward on average for ideal correctly measured weights.
For rms measurement error \(0.5k_BT\), this Gaussian-noise effect is \(-0.125k_BT\). A small positive finite-sampling bias can accidentally cancel it, producing an apparently correct number with both the work measurement and ensemble estimate wrong. Vary the number of independent trajectories and the instrument noise separately. Calibrate work reconstruction on repeated known control or force signals to estimate the error distribution rather than assuming it is Gaussian from its rms alone.
If measurement error correlates with the trajectory—for example a saturated force transducer clips the largest restoring forces—the factorisation above fails. Errors in low-work tails can matter most even if a force trace looks accurate over the bulk of ordinary values. Compare independent sensors or forward and reverse force calibrations across the full visited range. A threshold discarding negative work as unphysical would systematically delete exactly the values the equality needs.
A related problem occurs when temperature itself is inferred from the same finite fluctuation record. Temperature uncertainty affects both the exponent and conversion of the final logarithm to energy. A Gaussian work model gives an analytic sensitivity, but outside that model propagate uncertainty by re-evaluating the full weighted estimator over independently plausible temperatures and work calibrations. Treat correlations between calibration and work estimates appropriately; merely quoting the precision of the bath set point does not establish the temperature of a fast, weakly equilibrated preparation.
Verify a stochastic work protocol on a two-state network
A small simulated system with discrete energies and heat-bath jumps supplies an independent test of a coupled dynamics and work implementation. At each step change a control value instantaneously while preserving current state; record the corresponding energy difference as parameter work. Then allow a period of fixed-control stochastic relaxation whose transition probabilities preserve the new canonical distribution. Energy change during that relaxation is heat, not additional protocol work. Define the reverse process by precisely reversing the sequence of controlled changes and using an independent equilibrium start at its endpoint.
An exact proof for such a process does not require a continuum limit. After one energy change, multiplying the previous equilibrium weights by the exponential work converts them into unnormalised canonical weights of the new levels. A stochastic transition preserving these new weights leaves that weighted distribution unchanged. Apply the same argument successively and sum the final weighted probabilities to retrieve the ratio of endpoint partition functions. Each trajectory can jump many times, but the weighted identity follows from a short sequence of matrix operations.
This proof is a practical verification tool. Enumerate all paths of a two-state system over a few control steps and compare the exact weighted sum with a Monte Carlo estimate. Test a deliberately coarse but precisely specified sequence before refining the time mesh. If direct enumeration fails, inspect signs, equilibrium preparation, order of control and relaxation, and whether the transition kernel truly preserves the prescribed endpoint weights. If enumeration succeeds while sampled averages disagree, inspect rare weights and independent batch variability before modifying the underlying dynamics.
Why postselection changes a work experiment
The standard work equality assumes a specified forward protocol and its initial equilibrium ensemble. Suppose an operator begins with an equilibrium distribution in the harmonic trap but keeps only trajectories whose initial displacement already points toward the intended final centre. Those retained starts are not a canonical ensemble for the original unrestricted trap. The conditional work distribution is systematically shifted toward smaller work, so inserting it into the ordinary exponential average generally produces a biased apparent free-energy change. This selection problem arises even if no macroscopic control action visibly changes between the retained runs.
For a sudden positive shift \(d\), work decreases linearly with initial \(x\). Conditioning on \(x>0\) deletes precisely the high-work half of a symmetric Gaussian preparation. More generally, groups selected with probabilities depending on the measured initial state should be recombined using the true group frequencies if the aim is to estimate the unconditional work moment. An equal-weight average of two conditionally estimated free energies is not equivalent to averaging their exponential weights, because the logarithm is nonlinear.
If the feedback actually chooses the direction of a subsequent shift after measuring the initial position, the protocol itself is now correlated with the state. For example, shifting the trap toward the initial displacement on each run reduces average mechanical work relative to a fixed-direction protocol. The additional information and the measurement/control apparatus are part of the thermodynamic accounting. A direct substitution into the no-feedback equalities derived above would address the wrong experiment. A full information-thermodynamic treatment needs specified measurement probabilities and a well-defined corresponding reverse procedure.
A simple experimental guard is to record every attempted run, including rejected starts, along with selection and trigger conditions. Verify the initial position and energy distributions both before and after data-quality cuts. A cut based on electronic saturation can remove a physically important work tail even if it has no deliberate feedback purpose. Conversely, discarding runs for an independent external electronics failure can be statistically benign when independence is demonstrated. The fact that a cut is operationally convenient is not evidence for such independence.
The same reasoning applies to chained protocols. A sequence of small equilibrium windows can improve overlap, but each initial distribution must be re-equilibrated or appropriately reweighted. Starting each window immediately after the previous rapid drive changes its preparation. A complete path-level method may still treat the sequence consistently; multiplying independent endpoint estimates derived under a false equilibrium assumption generally does not. An explicit record of state preparation, control timing and retained trajectories is as central to a fluctuation-relation measurement as an accurate mechanical force calibration.
A useful stationary control keeps the trap centre fixed but processes position and force data through the same analysis pipeline as a moving-trap run. Correct inclusive parameter work is then zero on every trajectory because the control never changes, even though the particle exchanges random heat with the bath and its potential energy fluctuates. A processed nonzero work distribution in this test reveals that the analysis integrated a different quantity, confused particle displacement with actuator displacement or introduced artificial control noise. Conversely a real translating-trap experiment can finish with the same mean potential energy it had initially after equilibration, while having delivered positive net work and dissipated heat. Tracking both control displacement and particle displacement makes these statements testable trajectory by trajectory where the specified stochastic energy convention permits.
Determine which rare work values dominate a free-energy estimate
Change the preparation gap and the number of repetitions. Compare the average work, the exact free-energy change and the chance of missing the rare branch entirely.
Tutorial · A stiffness quench changes the equilibrium free energy
An equilibrated classical harmonic trap has stiffness \(k\). It is suddenly changed to \(2k\) at the same centre. Derive mean work, exact free-energy difference and verify the exponential equality without assuming Gaussian work.
Integrate the Gaussian position rather than a guessed Gaussian work law
Work is \(W=kx^2/2\), so mean work is \(k_BT/2\). The configurational partition function scales as \(k^{-1/2}\), giving \(\Delta F=(k_BT/2)\log2=0.3466k_BT\). The exponential-weight average is the integral of \(e^{-\beta kx^2/2}\) against the original position density proportional to \(e^{-\beta kx^2/2}\). The combined Gaussian integral yields
The work is nonnegative and chi-square distributed, not Gaussian. Its mean excess above \(\Delta F\) is about \(0.1534k_BT\).
Tutorial · Estimate a crossing with uncertainty
Measured forward and sign-reflected reverse densities have equal-variance Gaussian shapes with means 6.0 and 2.0 thermal energies. Their standard deviations are both 2.0 thermal energies. Find the crossing, verify the expected logarithmic slope and explain how an unmodelled force offset would affect a displacement protocol.
Complete the square and track the offset through both protocols
The ratio of the two Gaussian densities has logarithmic slope \((6-2)/4=1\) per thermal energy and vanishes at their midpoint \(4.0k_BT\). This is consistent with a free-energy change of four thermal energies. If fitted means have independent standard errors 0.2 and 0.3 thermal energies, their midpoint has standard error \(\sqrt{0.2^2+0.3^2}/2=0.18k_BT\) under the equal-variance model. Unknown unequal variances or poor histogram overlap require a more general fit.
An additive force calibration offset integrated over a known displacement adds a constant work shift proportional to that displacement. The reverse protocol has opposite displacement and hence opposite offset in its raw work, which becomes the same shift after reflecting its work axis. The crossing moves with both histograms and their difference need not reveal the calibration error. Independent force-zero checks matter.
Tutorial · Why an unchanged average dissipated work is insufficient
Two protocols with the same endpoints have the same mean work above equilibrium free-energy change. One has a narrow distribution near that mean and a very rare low-work tail; the other has a broader nearly Gaussian shape. Can equal mean dissipation guarantee comparable convergence of a unidirectional free-energy estimate?
Compare the quantities that govern the estimator
The mean work determines only the first moment. The exponential estimator depends on the entire distribution and its variance depends on the second exponential moment \(\langle e^{-2\beta W}\rangle\), which can differ greatly at fixed \(\langle W\rangle\) and fixed Jarzynski average. A rare low-work tail can dominate both the true mean weight and its sampling error. Identical mean dissipation does not determine its scale or frequency.
Compare forward and reverse overlap over the actual important work interval, analyse independent batches and vary protocol speed. In a proposed experiment verify initial equilibrium at each endpoint, acquisition of the full work history and calibration of temperature and control force. Convergence of a mean mechanical work with repeated trials answers a different question from convergence of an exponential estimate of equilibrium free energy.
Jarzynski · original nonequilibrium equality for free-energy differences
Crooks · entropy production and the forward/reverse work relation
Measure the heat capacity of a reservoir from the width of an energy histogram
Counting, correlations and thermal measurements
Two small Einstein solids share a fixed number of excitation quanta. A calorimeter records how many are in the first solid. Count the allowed microstates, compare the exact distribution with a reservoir approximation and see how energy conservation correlates the readings.
Count the ways to store an integer number of quanta
Let solid A contain \(a\) independent harmonic modes and solid B contain \(b\), all with energy spacing \(\varepsilon\). Omit their fixed zero-point energy. The total excitation count \(Q\) is fixed. In one solid a configuration is an ordered list of nonnegative mode occupations. An arrangement of \(q\) identical excitation symbols and \(a-1\) separators specifies such a list. The multiplicity is \(\binom{q+a-1}{a-1}\). The count for distinguishable packets would be different, because exchanging two excitations between identical occupations introduces no new configuration here.
The denominator counts all occupations of the \(a+b\) modes; summing the numerator over every partition must reproduce it. As a simple check, set \(a=2,b=1,Q=2\). The unnormalised weights for \(q=0,1,2\) are 1, 2 and 3. The most probable count is 2, but the mean is \(4/3\). “Thermal equilibrium” does not require every observed energy to coincide with the most likely energy.
Separate the mean from the fluctuations
By permutation symmetry each individual mode holds mean \(Q/(a+b)\). Therefore \(\langle q\rangle=Qa/(a+b)\). For the second moment, introduce an auxiliary variable \(x\) marking quanta in solid A. The coefficient of \(z^Q\) in \(G(x,z)=(1-xz)^{-a}(1-z)^{-b}\) is the unnormalised probability generating function. Differentiating once in \(x\) weights by \(q\), twice by \(q(q-1)\). At \(x=1\) the second derivative is \(a(a+1)z^2(1-z)^{-(a+b+2)}\). Divide its coefficient by the total multiplicity and combine first and second moments. Writing \(s=a+b\) gives
The second solid contains exactly \(Q-q\). Its variance is identical, and the covariance of the two measured energies is minus their common variance in energy units. A pair of independently fitted canonical distributions cannot reproduce this anticorrelation. At \(Q=24,\ a=4,\ b=8\) the mean number in A is 8 and the variance is about 14.77. These are fluctuations of a perfectly isolated combined system, not a leak in the calorimeter.
Background · Can two noisy calorimeters expose the true energy variance?
The two solids exchange energy while their sum is fixed. If the first energy fluctuates upward by \(\delta E\), the other fluctuates downward by exactly the same amount. Let the two recorded energies be \(X=E_1+n_1\) and \(Y=E_2+n_2\). Suppose each readout noise is independent of the physical energies and of the other noise. The same-channel variance and the cross covariance then measure different combinations.
A single histogram that is too broad can mimic a reservoir with different heat capacity. Simultaneous measurements in the two channels allow the exchanged-energy variance to be recovered from the negative covariance. A drifting bath or common electronic pickup violates the assumptions. The measured variance of \(X+Y\) is a direct diagnostic for such extra fluctuations when the readout noise levels are known.
Compare with a canonical ensemble at the same mean
In a canonical description each mode has a geometric distribution. Match its mean to \(\bar n=Q/s\). A single mode then has variance \(\bar n(1+\bar n)\), and \(a\) independent modes have variance \(a\bar n(1+\bar n)\). Dividing the exact microcanonical variance by this canonical variance leaves \(b/(s+1)\). At the example point this is \(8/13\). Increasing \(a\) along with \(b\) at fixed fraction does not make a macroscopic subsystem independent of the reservoir; the ratio stays below one. Holding \(a\) fixed, taking \(b\) large and keeping \(Q/s\) fixed does recover the canonical width.
The negative-binomial canonical distribution has support on every nonnegative integer, even those above \(Q\). This is another sign that it describes another experiment. Merely deleting the tail without changing its other weights does not recover the true finite-reservoir conditional probability.
Calculate the distribution without enormous factorials
The ratio of successive unnormalised weights is \((q+a)(Q-q)/[(q+1)(Q-q+b-1)]\). Start with a positive arbitrary initial weight, march through the allowed \(q\) and normalise once. The graph compares this exact probability to a canonical law at the same mean. Adjust reservoir size and total energy; use the displayed first two moments to distinguish a shift in the average from a change in the width. The plotted canonical values cover the physically accessible count interval, so their displayed partial sum can be less than one.
Tutorial
If A and B contain identical mode counts, is \(Q/2\) necessarily the most likely observed value?
Work through the solution
The distribution is symmetric. For odd \(Q\) there is no integer value at exactly \(Q/2\); two equally likely central counts are possible. With one mode in each solid, every admissible value is equally likely. Symmetry fixes the mean exactly even when it does not identify a unique most probable observation.
For \(a=4,b=8,Q=24\) what variance would an unconditioned canonical fit predict?
Work through the solution
Here \(\bar n=2\). The canonical count variance is \(4(2)(3)=24\). Multiplying by \(8/13\) returns \(14.769\) for the closed pair. Count-to-energy conversion multiplies variances by \(\varepsilon^2\).
An experiment finds a noisy sum of the two reported energies. What can one infer before relaxing the energy-conservation model?
Work through the solution
In the ideal model \(E_A+E_B\) is constant. Check both readouts' measurement noise and energy calibration. Independently fluctuating detector errors add variance in the sum even for a closed sample. Record a reference configuration or estimate detector noise from repeated measurements of the same state.
The finite-reservoir chapter connects this exact count to the curvature of the entropy.
Recover a free-energy difference from a distribution of work
Counting, correlations and thermal measurements
A two-state system starts in equilibrium, then a control jumps its energy gap. Individual work readings differ although every run uses the same control protocol. Use the elementary model to derive an exponential work identity, compare it with the average work and estimate how many runs it takes to see the events that dominate the estimate.
Specify how work is measured
Set the lower energy to zero and the upper energy initially to \(\epsilon_i\). Prepare a canonical ensemble at inverse temperature \(\beta\), isolate it and suddenly change the gap to \(\epsilon_f\) without changing the energy eigenvectors. A run that started low stays low and requires zero work. A run that started high stays high and requires work \(\epsilon_f-\epsilon_i\), positive if the external control gives energy to the sample. No heat flows during the jump. Returning the system to equilibrium afterwards can exchange heat, but it is a separate part of the protocol.
The initial high-state probability is
Therefore
Taking a negative logarithm and multiplying by \(1/\beta\) gives the equilibrium free-energy difference of two ensembles at the same temperature. The actual final population after the jump is still \(p_i\), which generally differs from the final equilibrium occupation. This distinction explains why an equilibrium state function can be recovered from a nonequilibrium final distribution.
Compare the two averages
The mean work is \(p_i(\epsilon_f-\epsilon_i)\). Convexity of the exponential gives
In units of \(k_BT\), take an initial gap of 4 and a final gap of 0. The high state occurs with probability 0.01799 and gives work −4 when it occurs. Mean work is about −0.07194, yet \(\Delta F=-\ln[2/(1+e^{-4})]\simeq-0.6750\). Both numbers are negative. The greater number is the one closer to zero. Checking only the sign of average work would not reveal the large difference.
Each rare upper-state event contributes \(e^4\) to the exponential average. Its probability times its weight is nearly one, comparable to the entire contribution of the common lower state. This is why replacing an average of exponentials by an exponential of an average loses essential information. Repeating the same protocol more slowly with contact to a bath would describe a different path through state space.
Ask what a finite dataset can support
For \(N\) independent preparations, the probability of seeing no initial upper state is \((1-p_i)^N\). With 20 runs in the example this is about 0.696. In such a dataset every measured work is zero and the empirical free-energy difference is zero. This is fully compatible with the model. To have at least a 95 percent chance of seeing even one upper-state event requires \(N\ge\ln(0.05)/\ln(1-p_i)\), or about 166 runs. Seeing only one such event still gives a noisy estimate of its frequency.
The graph holds the final gap at zero. Change the initial gap and ensemble size. It shows the probability of missing the rare branch at each sample size, together with the five-percent level. The reported exact free energy and mean work use all initial states. These predictions can be checked by explicitly enumerating a two-outcome histogram, without drawing a random sample and silently treating its fluctuations as a new law.
Tutorial
For an initial gap zero and a final gap \(2k_BT\), calculate \(\langle W\rangle\) and \(\Delta F\).
Work through the solution
Initially \(p_i=1/2\). The average work is \(k_BT\). The free-energy difference is \(k_BT\ln[2/(1+e^{-2})]\simeq0.5662 k_BT\). Some energy supplied by the control is unavailable as recoverable equilibrium free energy at this temperature.
A preparation procedure always starts the sample in its lower state independent of the specified initial gap. Can the same equality be used by changing only the sample count?
Work through the solution
No. The canonical initial probabilities were used algebraically to turn the weighted sum into \(Z_f/Z_i\). With deterministic preparation the exponential average is one in this protocol. Repeated measurements approach that different expectation.
At fixed initial and final gaps, what does reducing temperature do to the number of runs required to see an initial excitation?
Work through the solution
The excitation probability is approximately \(e^{-\beta\epsilon_i}\) for a large positive reduced gap. Required sample count grows approximately as \(1/p_i\) for any fixed detection probability. Controlling preparation and understanding tails become more important as temperature falls.
Connect this model to the partition function and to the role of free energy in a reversible isothermal process.