A perfect fluid in general relativity has stress-energy tensor
where . Besides the metric tensor, one needs the energy density , the pressure , and three independent components of the normalized four-velocity : five scalar functions of spacetime in total.
The four equations of stress-energy conservation, , split parallel and perpendicular to into
An equation of state, such as a barotropic equation of state , supplies the fifth relation needed to close the evolution.
Consider an element displaced upward by in hydrostatic equilibrium. Assume it quickly reaches the ambient pressure, but moves adiabatically and retains its composition. Put , , and let be the adiabatic temperature gradient. The equation of state has differential
where and .
At the new pressure, the parcel-to-environment density difference is
With positive pressure scale height , . The buoyancy acceleration is therefore , with stellar buoyancy frequency
A negative amplifies the displacement. For a radiative background, , so the Ledoux criterion for instability is
For uniform composition, , giving the Schwarzschild criterion
Equality is marginal stability. A mean molecular weight increasing inward has and supplies a stabilizing composition term when .
For the equation of state with positive energy density,
The expansion is accelerated for , coasting for , and decelerated for .
The Clausius gas equation can be written
Comparison with the virial expansion gives
For a hard-sphere gas of atomic radius , the pair potential is infinite when the center separation is below and zero otherwise. Thus
This is four times the volume of one atom and is the per-particle excluded volume appearing in the dilute equation of state.
Regularity at the center requires and a finite central density . The equation of state fixes , and the regular central series begins
For each admissible , ordinary-differential-equation uniqueness determines outward until the first zero of , which defines . The remaining additive constant in is fixed by matching to the exterior Schwarzschild time coordinate. Thus smooth stars form a one-parameter family labelled uniquely by .
The four stellar structure equations are
together with the perfect-gas equation of state
Here is the radiation constant, is the specific stellar energy-generation rate, and is the opacity.
Put . Integrating the prescribed density gives the enclosed mass
Since ,
Integrating hydrostatic equilibrium inward from gives
The ideal-gas law then gives
In particular,