Astronomy and Space Exploration ES

Higher Education / Stellar astrophysics

The equations of stellar structure

Hydrostatic equilibrium, mass continuity, energy conservation and transport: the system of four ODEs that describes a star, its boundary conditions, and what dimensional analysis already predicts about the center of the Sun.

⏱ 180 min coupled ODEstwo-point boundary-value problemsdimensional analysisintegral inequalitiesvirial theorem revision

By the end you will be able to:
  • Derive the four equations of stellar structure from the conservation of mass, momentum and energy and from heat transport.
  • Formulate the problem as a two-point boundary-value problem and justify each boundary condition.
  • Estimate the central pressure and temperature of the Sun by dimensional analysis and compare them with the standard solar model.
  • Prove the rigorous lower bound on the central pressure and the virial theorem, and deduce the dynamical, thermal and nuclear timescales.
  • Analyze the numerical stiffness of the system and why it is integrated in the mass variable.

1. Motivation: a star as a boundary-value problem

Illustration: Motivation: a star as a boundary-value problem

Of the Sun we see the photosphere: its luminosity L⊙=3.828×1026L_\odot = 3.828\times10^{26} W, its radius R⊙=6.957×108R_\odot = 6.957\times10^8 m and, from planetary dynamics, its mass M⊙=1.989×1030M_\odot = 1.989\times10^{30} kg (IAU 2015 nominal values). None of this tells us directly what the temperature is at the center, what the density is, or how energy is transported. Nevertheless, since Eddington (1926) we have known that four ordinary differential equations, together with an equation of state, an opacity and an energy-generation rate, suffice to build a model of the entire interior. The resulting standard solar model predicts neutrino fluxes and sound speeds that helioseismology and neutrino detectors have verified to a precision of order 1 %.

This lesson derives the four equations and the boundary conditions and, before solving anything, shows how far dimensional analysis reaches: the central temperature of the Sun is estimated with a 12 % error without integrating a single equation.

2. Assumptions and variables

Illustration: Assumptions and variables

We shall assume a spherical star (with no appreciable rotation or magnetic field), isolated and in a quasi-static state: the quantities change on timescales very long compared with the dynamical timescale (§7). The variables are functions of the distance from the center rr:

SymbolQuantitySI unit
m(r)m(r)mass contained within the sphere of radius rrkg
ρ(r)\rho(r)densitykg m⁻³
P(r)P(r)total pressure (gas + radiation)Pa
T(r)T(r)temperatureK
L(r)L(r)luminosity crossing the sphere of radius rrW
ε(r)\varepsilon(r)nuclear energy released per unit mass and timeW kg⁻¹
κ(r)\kappa(r)mean opacity (cross section per unit mass)m² kg⁻¹

3. The four equations

Illustration: The four equations

3.1 Mass continuity

The mass of a spherical shell of thickness drdr is dm=4πr2ρ drdm = 4\pi r^2\rho\,dr:

dmdr=4πr2ρ.(1)\frac{dm}{dr} = 4\pi r^2\rho . \tag{1}

3.2 Hydrostatic equilibrium

Consider a cylinder of fluid with base dAdA and height drdr at distance rr from the center. Acting on it are the pressure on the base, P(r) dAP(r)\,dA, outward; the pressure on the top, P(r+dr) dAP(r+dr)\,dA, inward; and gravity. By Newton’s theorem for spherical distributions, only the interior mass m(r)m(r) contributes, with acceleration g=Gm/r2g = Gm/r^2. Newton’s second law for the mass element ρ dA dr\rho\,dA\,dr is

ρ dA dr  r¨=P(r) dA−P(r+dr) dA−Gmρr2 dA dr  ⟹  ρ r¨=−dPdr−Gmρr2.\rho\,dA\,dr\;\ddot r = P(r)\,dA - P(r+dr)\,dA - \frac{Gm\rho}{r^2}\,dA\,dr \;\Longrightarrow\; \rho\,\ddot r = -\frac{dP}{dr} - \frac{Gm\rho}{r^2}.

In equilibrium (r¨=0\ddot r = 0) we obtain the equation of hydrostatic equilibrium:

dPdr=−G m ρr2.(2)\frac{dP}{dr} = -\frac{G\,m\,\rho}{r^2}. \tag{2}

The pressure decreases outward; the pressure gradient supports each layer against the weight of the matter above it. If (2) ceases to hold, the star responds on the dynamical timescale (§7), which for the Sun is half an hour: this is why a “normal” star is always in hydrostatic equilibrium to enormous precision.

3.3 Energy conservation

Let ε\varepsilon be the energy released by nuclear reactions per unit mass and time, and εν\varepsilon_\nu the energy carried away by neutrinos (which escape without interacting). The shell dmdm receives L(r)L(r) through its inner face and emits L(r+dr)L(r+dr) through the outer one; if in addition its specific entropy ss changes, it absorbs or releases heat T ds/dtT\,ds/dt per unit mass. The first law gives

dLdr=4πr2ρ(ε−εν−T∂s∂t).(3)\frac{dL}{dr} = 4\pi r^2\rho\left(\varepsilon - \varepsilon_\nu - T\frac{\partial s}{\partial t}\right). \tag{3}

In thermal equilibrium (∂s/∂t=0\partial s/\partial t = 0) the luminosity grows exactly with the nuclear energy generated: dL/dr=4πr2ρ εdL/dr = 4\pi r^2\rho\,\varepsilon. The entropy term is essential in phases of contraction or expansion (pre-main sequence, giants) and is sometimes called the “gravitational luminosity”.

3.4 Energy transport

Energy flows from the inside outward because there is a temperature gradient. There are three mechanisms:

  • Radiation. Photons diffuse through an opaque medium. In lesson 2 it is derived that the flux is F=−4acT33κρdTdrF = -\dfrac{4acT^3}{3\kappa\rho}\dfrac{dT}{dr}, with a=4σ/c=7.5657×10−16a = 4\sigma/c = 7.5657\times10^{-16} J m⁻³ K⁻⁴ the radiation constant and σ\sigma the Stefan–Boltzmann constant. Since L=4πr2FL = 4\pi r^2 F, dTdr=−3 κρ16πac Lr2T3.(4a)\frac{dT}{dr} = -\frac{3\,\kappa\rho}{16\pi a c}\,\frac{L}{r^2T^3}. \tag{4a}
  • Convection. When the required radiative gradient is too steep, the gas becomes unstable (Schwarzschild criterion, lesson 2) and macroscopic bubbles transport the heat. In the deep interior the actual gradient stays very close to the adiabatic one: dTdr=(1−1γ)TPdPdr,(4b)\frac{dT}{dr} = \left(1-\frac1\gamma\right)\frac{T}{P}\frac{dP}{dr}, \tag{4b} with γ\gamma the adiabatic exponent (5/35/3 for an ideal monatomic gas).
  • Conduction. Negligible in normal stars; it dominates in degenerate matter (white dwarfs, lesson 4), where it is incorporated into (4a) as an effective conductive opacity.

It is convenient to write both cases with the logarithmic gradient ∇≡dln⁡T/dln⁡P\nabla \equiv d\ln T/d\ln P:

dTdr=∇ TPdPdr,∇={∇rad=3κLP16πacGmT4(radiative)∇ad=1−1/γ(adiabatic convective)(4)\frac{dT}{dr} = \nabla\,\frac{T}{P}\frac{dP}{dr},\qquad \nabla = \begin{cases}\nabla_{\rm rad} = \dfrac{3\kappa L P}{16\pi a c G m T^4} & \text{(radiative)}\\[2ex] \nabla_{\rm ad} = 1 - 1/\gamma & \text{(adiabatic convective)}\end{cases} \tag{4}

The expression for ∇rad\nabla_{\rm rad} is obtained by dividing (4a) by (2) (exercise 1).

3.5 Closure relations

Equations (1)–(4) contain five unknown functions (m,P,T,L,ρm, P, T, L, \rho) and three “material functions” that depend on the chemical composition XiX_i (mass fractions of hydrogen XX, helium YY and metals ZZ):

ρ=ρ(P,T,Xi),κ=κ(ρ,T,Xi),ε=ε(ρ,T,Xi).\rho = \rho(P,T,X_i),\qquad \kappa = \kappa(\rho,T,X_i),\qquad \varepsilon = \varepsilon(\rho,T,X_i).

For an ideal gas plus radiation,

P=ρ kBTμ mu+a3T4,1μ=2X+34Y+12Z(complete ionization),(5)P = \frac{\rho\,k_B T}{\mu\,m_u} + \frac{a}{3}T^4, \qquad \frac1\mu = 2X + \frac34 Y + \frac12 Z \quad(\text{complete ionization}), \tag{5}

where kBk_B is the Boltzmann constant, mum_u the atomic mass unit and μ\mu the mean molecular weight (mean mass per particle in units of mum_u). For the solar surface mixture X≈0.71X\approx0.71, Y≈0.27Y\approx0.27, Z≈0.02Z\approx0.02, μ≈0.61\mu\approx0.61.

4. Boundary conditions

Illustration: Boundary conditions

The system (1)–(4) is of fourth order, so four conditions are needed. They are not all at the same point: it is a two-point boundary-value problem.

At the center (r=0r = 0):

m(0)=0,L(0)=0.(6)m(0) = 0,\qquad L(0) = 0. \tag{6}

Both follow from regularity: the mass and luminosity enclosed within a sphere of zero radius are zero. From (1) and (3) it follows that near the center m≈4π3ρcr3m \approx \tfrac{4\pi}{3}\rho_c r^3 and L≈4π3ρcεcr3L\approx\tfrac{4\pi}{3}\rho_c\varepsilon_c r^3, and from (2) that dP/dr→0dP/dr \to 0: the pressure and temperature have a flat maximum at the center, P≈Pc−2π3Gρc2r2P \approx P_c - \tfrac{2\pi}{3}G\rho_c^2 r^2.

At the surface (r=Rr = R): the simplest approximation is the “zero surface”,

P(R)=0,T(R)=0,(7)P(R) = 0,\qquad T(R) = 0, \tag{7}

which is excellent for the interior because the surface pressure and temperature are negligible compared with the central ones (Pfot/Pc∼10−12P_{\rm fot}/P_c \sim 10^{-12}). A finer model imposes photospheric conditions: in the layer of optical depth τ=2/3\tau = 2/3 the temperature is the effective temperature, T=TefT = T_{\rm ef} with L=4πR2σTef4L = 4\pi R^2\sigma T_{\rm ef}^4, and the pressure is obtained by integrating (2) with τ=∫κρ dr\tau = \int\kappa\rho\,dr downward from τ=0\tau = 0: Pfot≈23gκˉP_{\rm fot}\approx \dfrac{2}{3}\dfrac{g}{\bar\kappa} with g=GM/R2g = GM/R^2.

Vogt–Russell theorem. Once the mass MM and the composition Xi(m)X_i(m) are fixed, the system (1)–(4) with (6)–(7) determines (in general uniquely) RR, LL and the entire internal structure. It is not a rigorous mathematical theorem (there exist counterexamples with multiple solutions), but it explains why the main sequence is a one-parameter family: each mass fixes a point of the H–R diagram.

5. Lagrangian form: mass as the independent variable

Illustration: Lagrangian form: mass as the independent variable

Since m(r)m(r) is monotonically increasing, mm can be used instead of rr as the variable. Dividing (2)–(4) by (1):

drdm=14πr2ρ,dPdm=−Gm4πr4,dLdm=ε−εν−T∂s∂t,dTdm=−GmT4πr4P∇.(8)\frac{dr}{dm} = \frac{1}{4\pi r^2\rho},\qquad \frac{dP}{dm} = -\frac{Gm}{4\pi r^4},\qquad \frac{dL}{dm} = \varepsilon - \varepsilon_\nu - T\frac{\partial s}{\partial t},\qquad \frac{dT}{dm} = -\frac{GmT}{4\pi r^4P}\nabla . \tag{8}

Three advantages: (i) the domain 0≤m≤M0\le m\le M is fixed in advance (the radius RR is an unknown of the problem; the domain in rr is not known until it is solved); (ii) the chemical composition is transported with the mass, not with the radius, so Xi(m)X_i(m) is the natural description in stellar evolution; (iii) the pressure equation no longer contains ρ\rho, which smooths its behavior.

6. Dimensional-analysis estimates versus the standard solar model

Illustration: Dimensional-analysis estimates versus the standard solar model

Without solving anything, (2) says that PP drops from PcP_c to 00 over a distance RR, with m∼Mm\sim M, ρ∼ρˉ\rho\sim\bar\rho:

PcR∼GMρˉR2  ⟹  Pc∼GMρˉR=34πGM2R4.\frac{P_c}{R} \sim \frac{GM\bar\rho}{R^2} \;\Longrightarrow\; P_c \sim \frac{GM\bar\rho}{R} = \frac{3}{4\pi}\frac{GM^2}{R^4}.

And from (5), neglecting radiation, Tc∼μmukBPcρc∼μmukBGMRT_c \sim \dfrac{\mu m_u}{k_B}\dfrac{P_c}{\rho_c}\sim \dfrac{\mu m_u}{k_B}\dfrac{GM}{R}. For the Sun, with the IAU 2015 nominal values and G=6.6743×10−11G = 6.6743\times10^{-11} m³ kg⁻¹ s⁻² (CODATA 2018):

ρˉ⊙=3M⊙4πR⊙3=1.41×103 kg m−3,GM⊙2R⊙4=1.13×1015 Pa,μmuGM⊙kBR⊙=1.38×107 K (μ=0.6).\bar\rho_\odot = \frac{3M_\odot}{4\pi R_\odot^3} = 1.41\times10^3\ \mathrm{kg\,m^{-3}},\qquad \frac{GM_\odot^2}{R_\odot^4} = 1.13\times10^{15}\ \mathrm{Pa},\qquad \frac{\mu m_u GM_\odot}{k_B R_\odot} = 1.38\times10^7\ \mathrm{K}\ (\mu = 0.6).

Let us compare with the BP2000 standard solar model (Bahcall, Pinsonneault & Basu 2001, tables 5–6), whose helioseismic and neutrino predictions have been tested against observation:

QuantityDimensional analysisBP2000 modelRatio
ρc\rho_cρˉ=1.41×103\bar\rho = 1.41\times10^3 kg m⁻³1.527×1051.527\times10^5 kg m⁻³108
PcP_cGM2/R4=1.13×1015GM^2/R^4 = 1.13\times10^{15} Pa2.342×10162.342\times10^{16} Pa21
TcT_c1.38×1071.38\times10^7 K1.5696×1071.5696\times10^7 K1.14

The temperature comes out surprisingly well (12 % error) while the pressure and density miss by one or two orders of magnitude. The reason is instructive: Tc∝Pc/ρcT_c\propto P_c/\rho_c, and the central concentration (ρc/ρˉ≈108\rho_c/\bar\rho\approx108) affects numerator and denominator alike. The central temperature of a star is fixed, in order of magnitude, by GM/RGM/R and nothing else: it is a virial theorem in disguise (§7).

A consistency detail: with the model’s central composition (Xc=0.340X_c = 0.340, Yc=0.6405Y_c = 0.6405, Zc=0.0198Z_c = 0.0198) equation (5) gives μc=0.854\mu_c = 0.854 and the ideal-gas temperature T=μcmuPc/(kBρc)=1.576×107T = \mu_c m_u P_c/(k_B\rho_c) = 1.576\times10^7 K, which agrees with the tabulated value to 0.4 %. The central radiation pressure is aTc4/3=1.5×1013aT_c^4/3 = 1.5\times10^{13} Pa, barely 0.07 % of the total: in the Sun radiation does not matter for the equilibrium, although it does for the transport.

The polytrope as a bridge. If the system is closed with P=Kρ1+1/nP = K\rho^{1+1/n} (lesson 1), the Lane–Emden equation gives for n=3n = 3: ρc=7.64×104\rho_c = 7.64\times10^4 kg m⁻³ and Pc=1.25×1016P_c = 1.25\times10^{16} Pa, already within a factor of 2 of the full model. Explore it in the simulator: which index nn best reproduces the central concentration ρc/ρˉ=108\rho_c/\bar\rho = 108 of the Sun?

ξ₁
6.89685
−ξ₁² θ′(ξ₁)
2.01824
ρ_c / ρ̄
54.182
Sun: ρ_c
7.64×10⁴ kg/m³ (0.51 × actual)
Sun: P_c
1.24×10¹⁶ Pa
Sun: K
3.84×10⁹ SI
Lane–Emden θ″ + (2/ξ)θ′ + θⁿ = 0, θ(0)=1, θ′(0)=0 (series for ξ ≪ 1 + adaptive RK4). Lower panel: the Sun (M☉, R☉) modeled as a polytrope of index n; actual central density ≈ 1.5×10⁵ kg/m³ (standard solar model). Faint curves: n = 0, 1, 3 and n = 5 (infinite radius).

7. Two rigorous results: the central-pressure bound and the virial theorem

Illustration: Two rigorous results: the central-pressure bound and the virial theorem

Lower bound on PcP_c. From (2) and (1), dPdm=−Gm4πr4\dfrac{dP}{dm} = -\dfrac{Gm}{4\pi r^4}. Integrating from the center to the surface and using r(m)≤Rr(m)\le R:

Pc=∫0MGm4πr4 dm  ≥  ∫0MGm4πR4 dm=GM28πR4.(9)P_c = \int_0^M\frac{Gm}{4\pi r^4}\,dm \;\ge\; \int_0^M\frac{Gm}{4\pi R^4}\,dm = \frac{GM^2}{8\pi R^4}. \tag{9}

For the Sun, Pc≥4.5×1013P_c \ge 4.5\times10^{13} Pa. It is a weak bound (the true value is 500 times larger) but a rigorous one: it assumes nothing about the equation of state or the transport. With the additional hypothesis that ρˉ(r)\bar\rho(r), the mean density interior to rr, does not increase outward, a better bound is obtained (exercise 3).

Virial theorem. Multiplying (2) by 4πr34\pi r^3 and integrating by parts between 00 and RR with P(R)=0P(R) = 0:

∫0R4πr3dPdr dr=[4πr3P]0R−3∫0RP 4πr2 dr=−3∫0MPρ dm,−∫0R4πr3Gmρr2 dr=−∫0MGmr dm≡Ω,\int_0^R 4\pi r^3\frac{dP}{dr}\,dr = \left[4\pi r^3P\right]_0^R - 3\int_0^R P\,4\pi r^2\,dr = -3\int_0^M\frac{P}{\rho}\,dm, \qquad -\int_0^R 4\pi r^3\frac{Gm\rho}{r^2}\,dr = -\int_0^M\frac{Gm}{r}\,dm \equiv \Omega,

where Ω<0\Omega\lt0 is the gravitational potential energy. Hence

3∫0MPρ dm=−Ω.(10)3\int_0^M\frac{P}{\rho}\,dm = -\Omega . \tag{10}

For an ideal monatomic gas P/ρ=23uP/\rho = \tfrac23 u, with uu the internal energy per unit mass, so that 2U=−Ω2U = -\Omega and the total energy is E=U+Ω=−U=Ω/2E = U + \Omega = -U = \Omega/2. Two consequences: (i) a star that loses energy heats up (negative heat capacity); (ii) the mean temperature satisfies 3kBμmu⟨T⟩M=−Ω∼GM2R\dfrac{3k_B}{\mu m_u}\langle T\rangle M = -\Omega \sim \dfrac{GM^2}{R}, whence ⟨T⟩∼μmuGM3kBR≈4.6×106\langle T\rangle \sim \dfrac{\mu m_u GM}{3k_B R}\approx 4.6\times10^6 K for the Sun. This is the justification of the dimensional estimate of §6.

Timescales (all for the Sun, with nominal M⊙M_\odot, R⊙R_\odot, L⊙L_\odot):

  • Dynamical, from (2) without pressure: tdin∼R3/GM=1.6×103t_{\rm din}\sim\sqrt{R^3/GM} = 1.6\times10^3 s ≈ 27 min.
  • Thermal or Kelvin–Helmholtz, from (10): tKH∼GM2RL=9.9×1014t_{\rm KH}\sim\dfrac{GM^2}{RL} = 9.9\times10^{14} s ≈ 3.1×1073.1\times10^7 yr. It is the maximum age the Sun would have if it shone by contraction alone: far too short compared with the geological age, which forced the search for the nuclear source.
  • Nuclear, assuming that 10 % of the mass burns hydrogen with efficiency 0.007 c20.007\,c^2 (lesson 3): tnuc∼0.1×0.007 Mc2L=3.3×1017t_{\rm nuc}\sim\dfrac{0.1\times0.007\,Mc^2}{L} = 3.3\times10^{17} s ≈ 1.0×10101.0\times10^{10} yr.

The hierarchy tdin≪tKH≪tnuct_{\rm din}\ll t_{\rm KH}\ll t_{\rm nuc} is what legitimizes the assumptions of §2: on the nuclear timescale, the star is in hydrostatic and (almost always) thermal equilibrium.

8. Numerical analysis: why the system is hard

Illustration: Numerical analysis: why the system is hard
  1. Two boundary points. Shooting from the center with trial PcP_c, TcT_c and from the surface with trial RR, LL, matching at a fitting point, is unstable: near the surface P→0P\to0 and T→0T\to0, and neighboring solutions diverge exponentially. This is why modern codes use the Henyey method (Newton–Raphson relaxation over the whole grid at once), which treats the four conditions simultaneously.
  2. Stiffness. ε∝Tν\varepsilon\propto T^{\nu} with ν≈4\nu\approx4 (pp) or ≈20\approx20 (CNO), and κ∝ρT−3.5\kappa\propto\rho T^{-3.5}: the scales of variation of LL and TT differ by orders of magnitude. Explicit methods (RK4) need tiny steps; implicit ones (Henyey is implicit by construction) do not.
  3. Singularities at the endpoints. At r=0r = 0 there are terms m/r2m/r^2 of the 0/00/0 type; one starts with the series of §4. At the surface ρ→0\rho\to0 and 1/ρ1/\rho diverges: one integrates in mm (equations (8)) or uses the gray atmosphere as the boundary condition.
  4. Error propagation. A relative uncertainty δκ/κ\delta\kappa/\kappa in the opacity changes ∇rad\nabla_{\rm rad} in the same proportion (equation 4): Bahcall, Serenelli & Basu (2005) showed that an increase of ∼10\sim10 % in the opacity between 2×1062\times10^6 and 4.5×1064.5\times10^6 K would suffice to reconcile the low-metallicity models with helioseismology. The structure is more sensitive to the opacity than to any other microphysical ingredient.

Problems

1. Logarithmic radiative gradient. Derive ∇rad=3κLP16πacGmT4\nabla_{\rm rad} = \dfrac{3\kappa LP}{16\pi acGmT^4} from (4a) and (2).

Show solution

∇=dln⁡Tdln⁡P=PTdT/drdP/dr\nabla = \dfrac{d\ln T}{d\ln P} = \dfrac{P}{T}\dfrac{dT/dr}{dP/dr}. Substituting (4a) in the numerator and (2) in the denominator: ∇rad=PT⋅3κρL16πacr2T3⋅r2Gmρ=3κLP16πacGmT4\nabla_{\rm rad} = \dfrac{P}{T}\cdot\dfrac{3\kappa\rho L}{16\pi acr^2T^3}\cdot\dfrac{r^2}{Gm\rho} = \dfrac{3\kappa LP}{16\pi acGmT^4}. Note that ρ\rho and rr cancel: ∇rad\nabla_{\rm rad} depends on the ratio L/mL/m (energy generated per unit interior mass) and on κP/T4\kappa P/T^4. ■\blacksquare

2. Central behavior. Show that near the center P(r)=Pc−2π3Gρc2r2+O(r4)P(r) = P_c - \dfrac{2\pi}{3}G\rho_c^2r^2 + O(r^4) and that T(r)=Tc−2π3Gρc2∇cTcPcr2+O(r4)T(r) = T_c - \dfrac{2\pi}{3}G\rho_c^2\nabla_c\dfrac{T_c}{P_c}r^2 + O(r^4), with ∇c\nabla_c the logarithmic gradient at the center.

Show solution

From (1), m=4π3ρcr3+O(r5)m = \tfrac{4\pi}{3}\rho_cr^3 + O(r^5). In (2): dP/dr=−G⋅4π3ρcr3⋅ρc/r2=−4π3Gρc2rdP/dr = -G\cdot\tfrac{4\pi}{3}\rho_cr^3\cdot\rho_c/r^2 = -\tfrac{4\pi}{3}G\rho_c^2r; integrating, P=Pc−2π3Gρc2r2P = P_c - \tfrac{2\pi}{3}G\rho_c^2r^2. For TT, dT/dr=∇(T/P) dP/dr≈∇c(Tc/Pc)(−4π3Gρc2r)dT/dr = \nabla(T/P)\,dP/dr \approx \nabla_c(T_c/P_c)(-\tfrac{4\pi}{3}G\rho_c^2r) and integrating yields the result. Both profiles are parabolic and flat at the center, which justifies dP/dr(0)=dT/dr(0)=0dP/dr(0) = dT/dr(0) = 0 as regularity conditions. ■\blacksquare

3. Milne’s bound. Assuming that the interior mean density ρˉ(r)=3m/(4πr3)\bar\rho(r) = 3m/(4\pi r^3) does not increase with rr (the star is denser toward the center), show that Pc≥38πGM2R4P_c \ge \dfrac{3}{8\pi}\dfrac{GM^2}{R^4}, three times (9), and that equality holds for uniform density.

Show solution

With r3=3m/(4πρˉ(r))r^3 = 3m/(4\pi\bar\rho(r)): dPdm=−Gm4πr4=−G4π m(4πρˉ3m)4/3=−G4π(4π3)4/3ρˉ4/3m−1/3\dfrac{dP}{dm} = -\dfrac{Gm}{4\pi r^4} = -\dfrac{G}{4\pi}\,m\left(\dfrac{4\pi\bar\rho}{3m}\right)^{4/3} = -\dfrac{G}{4\pi}\left(\dfrac{4\pi}{3}\right)^{4/3}\bar\rho^{4/3}m^{-1/3}. If ρˉ(r)≥ρˉ(R)=3M/(4πR3)\bar\rho(r)\ge\bar\rho(R) = 3M/(4\pi R^3) for all rr, then Pc≥G4π(4π3)4/3ρˉ(R)4/3∫0Mm−1/3dm=G4π(4π3)4/3(3M4πR3)4/332M2/3=38πGM2R4P_c \ge \dfrac{G}{4\pi}\left(\dfrac{4\pi}{3}\right)^{4/3}\bar\rho(R)^{4/3}\displaystyle\int_0^M m^{-1/3}dm = \dfrac{G}{4\pi}\left(\dfrac{4\pi}{3}\right)^{4/3}\left(\dfrac{3M}{4\pi R^3}\right)^{4/3}\dfrac32M^{2/3} = \dfrac{3}{8\pi}\dfrac{GM^2}{R^4}. For uniform density ρˉ\bar\rho is constant and all the inequalities become equalities (compare with the n=0n = 0 polytrope of lesson 1). For the Sun: Pc≥1.3×1014P_c\ge1.3\times10^{14} Pa. ■\blacksquare

4. Virial theorem with radiation pressure. Let β=Pgas/P\beta = P_{\rm gas}/P be constant throughout the star (Eddington’s standard model). Show that 2Ugas+Urad=−Ω2U_{\rm gas} + U_{\rm rad} = -\Omega, compute the total energy EE as a function of Ω\Omega and β\beta, and discuss the limit β→0\beta\to0.

Show solution

For an ideal gas Pgas/ρ=23ugasP_{\rm gas}/\rho = \tfrac23u_{\rm gas} and for radiation Prad/ρ=13uradP_{\rm rad}/\rho = \tfrac13u_{\rm rad}. In (10): 3∫(P/ρ) dm=2Ugas+Urad=−Ω3\int(P/\rho)\,dm = 2U_{\rm gas} + U_{\rm rad} = -\Omega. With constant β\beta, Urad=3(1−β)β⋅23Ugas=2(1−β)βUgasU_{\rm rad} = \tfrac{3(1-\beta)}{\beta}\cdot\tfrac23U_{\rm gas} = \tfrac{2(1-\beta)}{\beta}U_{\rm gas}, so −Ω=Ugas(2+2(1−β)β)=2βUgas-\Omega = U_{\rm gas}\left(2 + \tfrac{2(1-\beta)}{\beta}\right) = \tfrac{2}{\beta}U_{\rm gas} and E=Ugas+Urad+Ω=Ugas(1+2(1−β)β−2β)=−Ugas=β2ΩE = U_{\rm gas} + U_{\rm rad} + \Omega = U_{\rm gas}\left(1 + \tfrac{2(1-\beta)}{\beta} - \tfrac2\beta\right) = -U_{\rm gas} = \tfrac{\beta}{2}\Omega. When β→0\beta\to0 (radiation-dominated) E→0E\to0: the star is marginally bound, and a small perturbation unbinds it. This is the physical origin of the instability of very massive stars and of the upper mass limit of the main sequence. ■\blacksquare

5. Mean temperature of the Sun. Using the virial theorem and Ω=−35−nGM2R\Omega = -\tfrac{3}{5-n}\tfrac{GM^2}{R} for a polytrope (lesson 1, exercise 5), compute ⟨T⟩\langle T\rangle for the Sun with n=3n = 3 and μ=0.61\mu = 0.61, and compare with TcT_c of BP2000.

Show solution

For n=3n = 3, Ω=−32GM2/R=−32⋅6.6743×10−11×(1.989×1030)26.957×108=−5.69×1041\Omega = -\tfrac32GM^2/R = -\tfrac32\cdot\dfrac{6.6743\times10^{-11}\times(1.989\times10^{30})^2}{6.957\times10^8} = -5.69\times10^{41} J. With 2U=−Ω2U = -\Omega and U=32kBμmu⟨T⟩MU = \tfrac32\dfrac{k_B}{\mu m_u}\langle T\rangle M: ⟨T⟩=−Ω μmu3kBM=5.69×1041×0.61×1.6605×10−273×1.3806×10−23×1.989×1030=7.0×106\langle T\rangle = \dfrac{-\Omega\,\mu m_u}{3k_BM} = \dfrac{5.69\times10^{41}\times0.61\times1.6605\times10^{-27}}{3\times1.3806\times10^{-23}\times1.989\times10^{30}} = 7.0\times10^6 K, about 2.2 times smaller than Tc=1.57×107T_c = 1.57\times10^7 K. This is reasonable: ⟨T⟩\langle T\rangle is mass-weighted and half of the Sun’s mass lies outside 0.25R⊙0.25R_\odot, where TT is already much lower than TcT_c. ■\blacksquare

6. (Computational) The Sun as an n = 3 polytrope versus the BP2000 model. Integrate equations (1)–(2) closed with P=Kρ4/3P = K\rho^{4/3} (without using Lane–Emden directly) by shooting on ρc\rho_c: fix KK so that M=M⊙M = M_\odot and R=R⊙R = R_\odot and compare ρc\rho_c, PcP_c and TcT_c (with μ=0.61\mu = 0.61) with the table of §6. Estimate the truncation error of the integrator by doubling the step.

Show solution
import numpy as np
G, Msun, Rsun, kB, mu_u = 6.6743e-11, 1.989e30, 6.957e8, 1.380649e-23, 1.66053907e-27

def integrar(rho_c, K, h=2e5):
    # y = [m, P];  rho = (P/K)^(3/4);  RK4 from r0 with the series of §4
    r = h; P_c = K*rho_c**(4/3)
    y = np.array([4*np.pi/3*rho_c*r**3, P_c - 2*np.pi/3*G*rho_c**2*r**2])
    def f(r, y):
        rho = (max(y[1], 0)/K)**0.75
        return np.array([4*np.pi*r*r*rho, -G*y[0]*rho/r**2])
    while y[1] > 0:
        k1 = f(r, y); k2 = f(r+h/2, y+h/2*k1); k3 = f(r+h/2, y+h/2*k2); k4 = f(r+h, y+h*k3)
        y = y + h/6*(k1+2*k2+2*k3+k4); r += h
    return r, y[0]          # radius and mass (the last layer overshoots by < h)

# For n = 3, M does not depend on rho_c: M(K) = 4 pi omega_3 (K/pi G)^1.5. We fix K from M = Msun...
K = np.pi*G*(Msun/(4*np.pi*2.01824))**(2/3)
# ... and rho_c from R = Rsun (bisection: R decreases with rho_c)
lo, hi = 1e3, 1e7
for _ in range(40):
    rc = np.sqrt(lo*hi); R, M = integrar(rc, K)
    lo, hi = (rc, hi) if R > Rsun else (lo, rc)
print(rc, K*rc**(4/3), K*rc**(1/3)*0.61*mu_u/kB)   # rho_c, P_c, T_c

Expected result: ρc≈7.6×104\rho_c\approx7.6\times10^4 kg m⁻³, Pc≈1.25×1016P_c\approx1.25\times10^{16} Pa, Tc≈1.2×107T_c\approx1.2\times10^7 K. Compared with BP2000: density and pressure at half the value, temperature 24 % low. Repeating with h=105h = 10^5 and 4×1054\times10^5 m, RR changes by ∼h\sim h (the dominant error is where P=0P = 0 is detected, first order in hh, not the RK4), which is corrected by interpolating the root as in lesson 1. ■\blacksquare

7. Photosphere. From (2) and dτ=−κρ drd\tau = -\kappa\rho\,dr, show that if κ\kappa is constant in the atmosphere P(τ)=gτ/κP(\tau) = g\tau/\kappa, and justify the condition Pfot=2g/(3κ)P_{\rm fot} = 2g/(3\kappa) at τ=2/3\tau = 2/3. Evaluate PfotP_{\rm fot} for the Sun with κ=0.1\kappa = 0.1 m² kg⁻¹ and compare it with PcP_c.

Show solution

dPdτ=dP/drdτ/dr=−gρ−κρ=gκ\dfrac{dP}{d\tau} = \dfrac{dP/dr}{d\tau/dr} = \dfrac{-g\rho}{-\kappa\rho} = \dfrac{g}{\kappa} (with m≈Mm\approx M, r≈Rr\approx R in the thin atmosphere). Integrating from τ=0\tau = 0 (P=0P = 0): P=gτ/κP = g\tau/\kappa. Eddington’s gray atmosphere gives T4(τ)=34Tef4(τ+23)T^4(\tau) = \tfrac34T_{\rm ef}^4(\tau + \tfrac23), so T=TefT = T_{\rm ef} at τ=2/3\tau = 2/3, and there P=2g/(3κ)P = 2g/(3\kappa). Sun: g=GM⊙/R⊙2=274g = GM_\odot/R_\odot^2 = 274 m s⁻², Pfot=2×274/(3×0.1)=1.8×103P_{\rm fot} = 2\times274/(3\times0.1) = 1.8\times10^3 Pa, that is, Pfot/Pc≈8×10−14P_{\rm fot}/P_c\approx 8\times10^{-14}: the “zero surface” condition is excellent for the interior. ■\blacksquare

✦ Self-assessment

  1. 1. What supports each layer of a star against gravity?
  2. 2. The dimensional estimate T꜀ ~ μ m_u G M/(k_B R) gives 1.4×10⁷ K for the Sun, versus 1.57×10⁷ K from the standard model. Why does it work so well when the pressure estimate misses by a factor of 20?
  3. 3. The boundary conditions of the stellar-structure system are:
  4. 4. According to the virial theorem, if an ideal-gas star loses energy by radiation with no nuclear source, its mean temperature…
  5. 5. Order the timescales of the Sun from shortest to longest.
  6. 6. Why do stellar-evolution codes use the mass m rather than the radius r as the independent variable?
Answer all the questions to check.

Further reading

  • Kippenhahn, Weigert & Weiss (2012), Stellar Structure and Evolution, ch. 1–2 (mechanical equations and virial theorem), 4–5 (energy and transport), 9–10 (boundary conditions and the Vogt–Russell theorem), 11 (Henyey method).
  • Carroll & Ostlie (2017), An Introduction to Modern Astrophysics, §10.1–10.5.
  • Hansen, Kawaler & Trimble (2004), Stellar Interiors, ch. 1 (dimensional analysis and timescales) and ch. 7 (numerical methods).
  • Eddington (1926), The Internal Constitution of the Stars, ch. IV–VI: the origin of the standard model.
  • Bahcall, Pinsonneault & Basu (2001), ApJ 555, 990, DOI 10.1086/321493 — BP2000 model, tables 5–6 (central values used here).
  • Bahcall, Serenelli & Basu (2005), ApJ 621, L85, DOI 10.1086/428929; (2006), ApJS 165, 400, DOI 10.1086/504043 — sensitivity of the model to opacities and abundances.
🍎 Teacher guide
Time
2 classes of 90 min
Learning outcome
By the end, the student derives the four equations of stellar structure and their boundary conditions, proves the central-pressure bound and the virial theorem, and estimates the central conditions of the Sun by dimensional analysis, justifying the agreement and disagreement with the standard model.
Evidence of learning
Submission of computational problem (6) with the comparison table against BP2000 and the truncation-error analysis, plus proofs 3 and 4.

Materials

  • Python 3 with NumPy (or a spreadsheet for problem 5)
  • Tables 5–6 of Bahcall, Pinsonneault & Basu (2001), printed or projected
  • Lane–Emden simulator for the discussion of the central concentration

Suggested sequence

Class 1 (90 min). Opening (15 min): what do we know about the Sun from the outside and what do we want to know about the inside? Brainstorming and list of quantities. Development (60 min): derivation of (1)–(3) on the board with the fluid element; presentation of (4) as “Fourier’s law for photons” (the full derivation is left for lesson 2); equation of state and mean molecular weight; boundary conditions and Lagrangian form. Closing (15 min): dimensional analysis of §6 in groups, each group estimates one quantity and the comparison table against BP2000 is built.

Class 2 (90 min). Opening (10 min): discussion of why T꜀ comes out right and P꜀ wrong. Development (55 min): proof of the bound (9) and of the virial theorem; timescales and the historical problem of the age of the Sun (Kelvin versus geology); Lane–Emden simulator to see how the polytropic index controls the central concentration. Closing (25 min): statement of computational problem 6 and mini-quiz; problems 3 and 4 are submitted in writing.

Note on the data. The central values of the Sun are those of the BP2000 model (Bahcall, Pinsonneault & Basu 2001, tables 5 and 6): T꜀ = 15.696×10⁶ K, ρ꜀ = 152.7 g cm⁻³, P꜀ = 2.342×10¹⁷ dyn cm⁻² = 2.342×10¹⁶ Pa, X꜀ = 0.340, Y꜀ = 0.6405, Z꜀ = 0.0198. Later models (BS05, B16) differ from these figures by less than 1 %, below the precision that matters in this lesson.

Common mistakes

  • Believing that radiation pressure supports the Sun. Have them compute aT⁴/3 with T꜀ = 1.57×10⁷ K and compare it with P꜀: it is 0.07 %.
  • Confusing the luminosity L(r) with the flux or with the locally generated energy. Insist that L(r) is the power crossing the sphere of radius r and that dL/dr is the local generation.
  • Thinking that the dimensional estimate of T꜀ is a "coincidence". Connect it with the virial theorem (⟨T⟩ ∝ GMμ/R) and with the fact that the central concentration cancels in P/ρ.
  • Using μ = 0.6 at the center of the Sun. There X = 0.34 and Y = 0.64 because of hydrogen burning: μ꜀ = 0.85. It is a good opportunity to explain that the composition is a function of m and of time.
  • Treating shooting from the center as a general method. Show with problem 6 that it works for a polytrope because the surface is detected with P = 0, but that with transport and energy generation the problem is a two-point one.
Key terms in this lesson (12)

Glossary terms that appear in the text. Each one links to its full entry.

  • Hydrostatic equilibrium The balance that holds a star together: gravity squeezes it inward and the pressure of the hot gas pushes it outward. As long as the two are equal, the star neither collapses nor explodes.
  • Virial theorem A rule that relates the energy of motion of a group of stars to the energy of their gravity. It makes it possible to "weigh" a cluster of galaxies by measuring only the speed of its members.
  • Polytrope A simplified model of a star in which the pressure depends only on the density through a simple rule. It makes it possible to compute the structure of a star with a single equation.
  • Differential equation An equation that does not say where something is, but how it changes: "the acceleration of Earth points toward the Sun and has this value". Solving it step by step is what an orbit simulator does.
  • Opacity How hard it is for light to get through the gas of a star. A photon created at the center of the Sun takes tens of thousands of years to get out, colliding over and over again.
  • Mass and weight Mass is how much "stuff" you are made of, and it is the same anywhere. Weight is the force with which a planet pulls on you: on the Moon you would weigh six times less, but your mass would be the same.
  • Convection Heat transport by the motion of the gas, like water boiling in a pot: hot bubbles rise and cool ones sink. In the Sun it happens in the outer layer and produces the granulation of its surface.
  • Luminosity The total energy a star emits every second, like the "power" of a light bulb. It does not depend on the distance you look at it from.
  • Apparent magnitude A number that says how bright a star looks from Earth. The smaller it is, the brighter the star: Sirius has −1.5, and the faintest stars you can see with the naked eye, 6.
  • Main sequence The "adult" stage of a star, in which it fuses hydrogen in its core. The Sun has spent 4.6 billion years on it and has about as many left. Nine out of ten stars are in this phase.
  • Order of magnitude The power of ten closest to a number: saying "the Sun is a million times bigger than Earth" is talking in orders of magnitude. It is used to compare very different things without being exact.
  • Flux The amount of light that reaches each square meter. The same flashlight lights your hand less the farther away you hold it: brightness drops with distance.

See the whole glossary →

References

  • Kippenhahn, R., Weigert, A. & Weiss, A. (2012). Stellar Structure and Evolution, 2nd ed. Springer, ch. 1–5 and 9–10.
  • Carroll, B. W. & Ostlie, D. A. (2017). An Introduction to Modern Astrophysics, 2nd ed. Cambridge, §10.1–10.5.
  • Hansen, C. J., Kawaler, S. D. & Trimble, V. (2004). Stellar Interiors, 2nd ed. Springer, ch. 1 and 7.
  • Bahcall, J. N., Pinsonneault, M. H. & Basu, S. (2001). ApJ 555, 990, tables 5–6 (BP2000 model). DOI 10.1086/321493.
  • Bahcall, J. N., Serenelli, A. M. & Basu, S. (2006). ApJS 165, 400 (10 000 solar models). DOI 10.1086/504043.
  • Eddington, A. S. (1926). The Internal Constitution of the Stars. Cambridge University Press, ch. IV–VI.

Simulators for this lesson: Stellar structure: Lane–Emden