Skip to content

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.

An equation of state does not predict one star but a family of equilibria. Varying the central density produces a curve in the mass–radius plane whose shape reveals the low-density envelope, the stiffness of the core, possible phase-transition branches, and the largest static mass. Constructing that curve is a computational problem with unusually transparent physics: every point must satisfy the same TOV boundary-value structure, yet numerical choices near the center, surface, and EOS joins can manufacture apparent branches if they are not controlled.

Required background. The Einstein Equation supplies relativistic field equations; Killing Fields and Isometry Groups supplies the static spherical reduction.

Helpful background. Flat-Background Hilbert Stress-Energy from Metric Variation fixes matter conventions; Relativistic Matter and Compact Objects supplies EOS context; Computational Relativity develops convergence and reproducibility practice.

Assume a cold barotropic EOS in the form p(ϵ)p(\epsilon), with a stated crust prescription and a causal validity interval. For each central energy density ϵc\epsilon_c, evaluate pc=p(ϵc)p_c=p(\epsilon_c) and integrate

dmdr=4πr2ϵ,dpdr=−G(ϵ+p)(m+4πr3p)r2(1−2Gm/r).\frac{dm}{dr}=4\pi r^2\epsilon, \qquad \frac{dp}{dr} =-\frac{G(\epsilon+p)(m+4\pi r^3p)} {r^2(1-2Gm/r)}.

Regular center series provide starting data at r=r0>0r=r_0\gt0. The first zero-pressure point defines the circumferential radius RR, and M=m(R)M=m(R). Repeating this calculation over an ordered grid in ϵc\epsilon_c produces M(ϵc)M(\epsilon_c) and R(ϵc)R(\epsilon_c). A logarithmic central-density coordinate usually resolves both diffuse low-mass stars and compact high-density models more efficiently than a uniform grid.

The curve is parameterized, not merely drawn. Two configurations can have the same MM but different RR, central density, composition, and stability. A sharp first-order phase transition may produce a disconnected stable branch, but an apparent back-bending can also come from inconsistent interpolation. The representative piecewise-polytropic construction and its density joins are specified in Read et al. 2009, §III, Eqs. (1)–(6); any imported parameters must be translated to explicit GG and a single energy-density convention.

Take a cold teaching EOS with baryon reference rest-mass density ρ0=mbn\rho_0=m_b n,

p=Kρ02,ϵ=ρ0+p,K>0.p=K\rho_0^2,\qquad \epsilon=\rho_0+p,\qquad K\gt0.

The internal-energy term is essential: replacing ϵ\epsilon by ρ0\rho_0 in a relativistic calculation changes the model and violates dϵ=(ϵ+p) dρ0/ρ0d\epsilon=(\epsilon+p)\,d\rho_0/\rho_0. Here the sound speed is cs2=2Kρ0/(1+2Kρ0)<1c_s^2=2K\rho_0/(1+2K\rho_0)\lt1.

Introduce q=Kρ0q=K\rho_0 and dimensionless quantities

rˉ=rGK,mˉ=G3/2mK,pˉ=Kp=q2,ϵˉ=Kϵ=q+q2.\bar r=r\sqrt{\frac{G}{K}},\qquad \bar m=\frac{G^{3/2}m}{\sqrt K},\qquad \bar p=Kp=q^2,\qquad \bar\epsilon=K\epsilon=q+q^2.

The barred TOV equations have the displayed form above with GG replaced by one. The relativistic enthalpy is particularly simple: H=ln⁡(1+2q)H=\ln(1+2q). Thus the numerical solution needs only the central value qcq_c; changing KK rescales every mass and radius by K\sqrt K at fixed GG, while leaving GM/R=Mˉ/RˉGM/R=\bar M/\bar R unchanged. No neutron-star density scale or composition has been fitted.

The downloadable Python calculation integrates each model in two ways: using radius and using enthalpy as the independent variable. It also integrates baryonic mass, dMˉb/drˉ=4πrˉ2q/1−2mˉ/rˉd\bar M_b/d\bar r=4\pi\bar r^2q/\sqrt{1-2\bar m/\bar r}. Selected results are:

qcq_cMˉ\bar MRˉ\bar RMˉb\bar M_bGM/RGM/R
0.010.010.0230950.0230951.2198321.2198320.0233150.0233150.0189330.018933
0.050.050.0861590.0861591.1083441.1083440.0896260.0896260.0777370.077737
0.100.100.1269570.1269571.0047351.0047350.1353130.1353130.1263590.126359
0.200.200.1573770.1573770.8657930.8657930.1717530.1717530.1817720.181772
0.320.320.1637270.1637270.7623080.7623080.1798610.1798610.2147780.214778
0.500.500.1584310.1584310.6682710.6682710.1726510.1726510.2370770.237077
1.001.000.1368460.1368460.5511130.5511130.1423860.1423860.2483080.248308

Mass first rises and then falls, while compactness continues to grow across these samples. Refining the extremum gives qc≃0.31824q_c\simeq0.31824, Mˉmax⁡≃0.163728\bar M_{\max}\simeq0.163728, and Rˉ≃0.763515\bar R\simeq0.763515. The largest compactness in the table therefore belongs to a configuration with less mass than the maximum. These are equilibrium results; the script does not calculate radial eigenfrequencies or assign stability labels.

To reproduce the table, save the linked file and run:

Terminal window
python3 verify-stellar-teaching-models.py > stellar-teaching-results.json

It uses Python 3.9 or later and only the standard library. Its JSON records the actual environment, center and surface prescriptions, results at three resolutions, and pass/fail checks. Refinement from 2048 to 4096 steps and agreement between the two coordinate methods give relative differences below 2×10−62\times10^{-6} for MM, RR, and MbM_b at all listed central densities. This is a convergence check on this smooth model, not an error estimate for a tabulated nuclear EOS.

Two physical checks add information that solver agreement alone would miss. In the dilute Newtonian limit the EOS is an index-one polytrope: Rˉ→π/2\bar R\to\sqrt{\pi/2} and Mˉ/qc→2π\bar M/q_c\to\sqrt{2\pi}. At qc=10−5q_c=10^{-5}, the computed relative differences from these limiting values are 2.8×10−52.8\times10^{-5} and 8.4×10−58.4\times10^{-5}, respectively; they decrease as qcq_c decreases. The stellar first law also gives dM/dMb=1−2GM/RdM/dM_b=\sqrt{1-2GM/R} for this EOS, because its zero-pressure chemical potential is mbm_b. At qc=0.1q_c=0.1, a centered sequence derivative agrees to 4.4×10−74.4\times10^{-7} relative accuracy after refinement.

Extending the calculation to a tabulated EOS

Section titled “Extending the calculation to a tabulated EOS”

A production sequence must specify the EOS release, units, independent thermodynamic variables, crust join, central-density interval, surface condition, and observables. Its reproducible implementation must also fix the solver, error tolerances, interpolation algorithm, event-location rule, and floating-point precision.

A robust implementation evolves pressure or relativistic enthalpy. Enthalpy often handles the surface more cleanly because

H(p)=∫0pdp′ϵ(p′)+p′H(p)=\int_0^p\frac{dp'}{\epsilon(p')+p'}

vanishes at RR. Thermodynamic table interpolation must preserve monotonicity and should reproduce derivatives used for sound speed. Interpolating pp and ϵ\epsilon independently can violate the first law even when the plotted curve looks smooth.

The central-density grid is adaptively refined near extrema and rapid phase changes. For each model, record the surface event residual, final ODE residual, mass and radius, baryon number if available, maximum compactness, and whether the EOS remained inside its tabulated domain. The sequence terminates rather than extrapolates silently beyond that domain.

For ordinary one-parameter nonrotating barotropes, the first maximum of M(ϵc)M(\epsilon_c) commonly coincides with a zero-frequency radial mode. That is a stability result, not a plotting convention; its hypotheses are developed in Radial Stability and the Turning-Point Criterion. Additional extrema can arise from phase transitions and require an explicit mode count before being labeled stable or unstable.

The qualitative dependence on the EOS is reviewed in Lattimer and Prakash 2016, §§2.1–2.2 and §4.2: greater pressure over the densities sampled by a star generally increases its radius or maximum supported mass, but no single pressure value controls the full curve. Low-density crust physics affects radii more strongly for low-mass configurations, whereas the high-mass endpoint probes higher-density pressure. The original neutron-core sequence in Oppenheimer and Volkoff 1939, §II, Eqs. (7)–(10), and Fig. 1 is historically important but uses an idealized free-neutron EOS, not a modern mass bound.

Validation, uncertainty, and failure modes

Section titled “Validation, uncertainty, and failure modes”

The primary benchmark is an independent integration of a smooth relativistic polytrope, compared at fixed central density. A constant-density solution is a useful sign and surface check even though it is acausal. Convergence requires simultaneously decreasing ODE tolerances, refining the central-density grid, and refining or changing EOS interpolation. Report norms or fractional changes in MM, RR, and the location of each extremum, not only visual overlap.

Important failure modes include starting too far from the center, stepping over the surface, interpolating across a discontinuity as though it were smooth, confusing rest-mass and energy density, mixing cgs and geometrized units, and declaring an endpoint because the table ended. Uncertainty from EOS parameters is distinct from numerical truncation error. A credible sequence propagates both and states which one dominates each quoted feature. A particularly deceptive failure mode is a smooth-looking but thermodynamically inconsistent interpolant, because ordinary ODE residuals will not expose it.

A calculation reports Mmax⁡M_{\max} to four significant digits. Halving the ODE tolerance changes it by 0.01%0.01\%, but doubling the number of central-density samples shifts it by 1.2%1.2\%. Which error controls the reported maximum, and what should be done?

Solution

The central-density sampling error controls the extremum: the ODE solution at each sampled point is already much more accurate than the discrete location of the maximum. Refine adaptively around the sign change of dM/dϵcdM/d\epsilon_c or fit a local convergent interpolant, then repeat with a denser grid until the maximum’s mass and central density stabilize. Four significant digits are not supported while the dominant change is at the percent level.

  • Lattimer, James M., and Madappa Prakash. “The Equation of State of Hot, Dense Matter and Neutron Stars.” Physics Reports 621 (2016): 127–164. Open preprint.
  • Oppenheimer, J. Robert, and George M. Volkoff. “On Massive Neutron Cores.” Physical Review 55 (1939): 374–381. DOI.
  • Read, Jocelyn S., Benjamin D. Lackey, Benjamin J. Owen, and John L. Friedman. “Constraints on a Phenomenologically Parametrized Neutron-Star Equation of State.” Physical Review D 79 (2009): 124032. DOI.