1 Stellar Structure Equations
A star in hydrostatic equilibrium is described by four coupled ODEs:
The four equations of stellar structure
- Mass continuity: dM_r/dr = 4πr²ρ
- Hydrostatic equilibrium: dP/dr = −GM_r ρ / r²
- Energy transport: dL_r/dr = 4πr² ρ ε (ε = nuclear + gravitational energy release per unit mass)
- Temperature gradient: depends on transport mechanism:
Radiative: dT/dr = −3κρL_r / (16πacr²T³)
Adiabatic (convective): dT/dr = −(1−1/γ_ad)(T/P)(dP/dr)
The Virial theorem
2⟨K⟩ + ⟨U⟩ = 0
For a star: total energy E = −½|U_grav|. A contracting protostar heats up — the virial theorem tells us half the gravitational energy goes into heat, half radiated away.