Let
The enclosed mass is
This is continuous at the core boundary. Hydrostatic equilibrium gives , with . Define
Since , the mantle pressure is
Inside the uniform core, the shell theorem gives , so
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,