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,