The stellar structure equations are
with
The last relation is the Kramers opacity law. Uniform energy release per unit mass means is constant, so integration of the mass and luminosity equations gives . At the surface,
Thus has
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,