Thermodynamic Consistency of Equations of State
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal additional columns.
Scrollable figure. Use Left and Right arrow keys to inspect hidden content.
A thermodynamic equation of state is more than a collection of pressure and energy values. Its fields must be derivatives of one potential, so the first law, Maxwell identities, stability conditions, and composition constraints agree at every state. A table can interpolate each column smoothly yet violate those relations between grid points. The safest construction interpolates a generating potential and derives dependent quantities consistently, then tests analytic limits and derivative convergence.
Required background. Hilbert Stress–Energy from Metric Variation supplies the energy and pressure entering the material stress tensor.
Helpful background. The Einstein Equation supplies gravitational use of the equation of state; Relativistic Matter and Compact Objects gives the volume context; and Computational Relativity supplies table interpolation and evolution settings.
One potential generates the state
Section titled “One potential generates the state”Let be Helmholtz free-energy density as a function of temperature and independent species densities. Free energy is the useful starting point when temperature and particle densities are the table axes: its slopes tell us the entropy and the energy cost of adding a particle. Its derivatives define
Differentiation gives the first law and Gibbs–Duhem relation,
Mixed derivatives commute wherever is twice differentiable. For example,
This Maxwell identity is an independent derivative check. Oertel and collaborators summarize the thermodynamic variables and equilibrium constraints in Oertel et al. 2017, §§II.A–II.B.2.
Many astrophysical tables use baryon density , temperature , and charge or electron fraction . Then composition derivatives must specify what is held fixed, and chemical potentials may need a constrained Legendre transformation. Beta equilibrium is not a universal table identity: it is imposed only when weak reactions act faster than the dynamics and the relevant neutrino chemical potential is known.
Units and zero points are part of the state definition. A table may report energy per baryon with or without a reference rest mass, mass density rather than baryon density, and entropy per baryon rather than entropy density. Converting one column without converting its conjugate derivative breaks the first law. The electron, photon, or neutrino contribution may be included, excluded, or supplied as a separate module. Before combining tables, reconstruct one test state from the documented conventions and verify pressure, enthalpy, and chemical-potential identities in a common unit system.
Stability and causal derivatives
Section titled “Stability and causal derivatives”Local thermal stability requires positive heat capacity at fixed volume and composition,
Mechanical and diffusive stability constrain the Hessian of the free energy with respect to density and composition. Along a one-component isotherm, positive compressibility requires . A negative eigenvalue of the full susceptibility matrix indicates instability toward a density or composition fluctuation even when the one-dimensional pressure curve rises.
The hydrodynamic sound derivative is adiabatic and follows the dynamical composition constraint,
It is not generally equal to an isothermal derivative or a finite difference taken along a table axis. Stable perfect-fluid matter requires , and causal acoustic propagation requires . These are not complete causality tests for magnetic, elastic, multifluid, or dissipative closures. A first-order coexistence region is non-smooth and must be treated with its phase construction rather than forcing a high-order derivative through the kink.
For a concrete derivative calculation, let and hold composition fixed. Use subscripts for partial derivatives. Since entropy per baryon is , moving along an isentrope gives
The pressure derivative along that same path is therefore
The last step uses the first law at fixed and composition. For a stable thermal state , so the additional thermal term in the adiabatic derivative is nonnegative. It is precisely the temperature rise during compression that an isothermal derivative misses. The formula requires nonzero heat capacity; the slice is treated by its cold EOS.
Analytic reference states
Section titled “Analytic reference states”Two limits catch different mistakes. For a dilute classical nonrelativistic gas with free energy per particle
the derivative gives . Directly, , so an isentrope has . Thus , whereas . Including rest energy gives and in the required regime. This benchmark tests thermal and density derivatives together; it must not be extrapolated to relativistic temperatures.
For a cold nonrelativistic ideal Fermi gas,
It checks the scaling, the zero-temperature limit, and consistency of rest-mass bookkeeping. An ultrarelativistic radiation component supplies a third check, and .
Table workflow and convergence
Section titled “Table workflow and convergence”The continuum input is a versioned potential or microphysical model on declared axes with units, particle content, reference masses, and valid domain. The CompOSE format specifies thermodynamic quantities and consistency conventions in CompOSE Core Team 2022, Reference Manual v3.01, §§3.5–3.6, §4.1.2, and Appendix A.1 (PDF). The linked file is labeled version 3.01 on its title page despite the older version number in its filename.
For a numerical table study, record the actual interpreter and library versions, precision, source revision, table release, checksum, axis arrays, unit conversions, interpolation order, and derivative method. Interpolating one potential ensures derivative identities only when the derivatives are actually taken from that interpolant; it does not automatically preserve convexity or causal sound speed. Even a monotone interpolant of values may have unphysical second derivatives. The protocol below is a proposed table test, not a report of an executed production-table calculation.
Evaluate the ideal-gas and degenerate-gas reference tables on nested , , and grids over the same physical domain. Compare derived , , , , and against analytic values in and norms. Report first-law and Maxwell residuals normalized to local thermodynamic scales. Separately refine each axis to identify whether density, temperature, or composition interpolation dominates. Halve finite-difference steps until truncation and roundoff exhibit a stable window.
One failure mode is independent interpolation of and that violates the generating relation. Others include derivative oscillations from high-order splines, negative entropy or heat capacity, superluminal sound speed created between nodes, inconsistent rest-mass offsets, extrapolation outside the table domain, and differentiation across a phase boundary. A small value error does not guarantee a small derivative error; both must converge.
Exercises
Section titled “Exercises”Starting from a one-component free-energy density , derive and the Maxwell relation between and .
Solution
Extensivity gives . At fixed ,
Since and , commuting mixed derivatives gives .
References
Section titled “References”- CompOSE Core Team. CompOSE Reference Manual, Version 3.01, 1 April 2022. Official PDF.
- Oertel, Micaela, Matthias Hempel, Thomas Klähn, and Stefan Typel. “Equations of State for Supernovae and Compact Stars.” Reviews of Modern Physics 89, 015007 (2017). DOI.