Astronomy and Space Exploration ES

Higher Education / Stellar astrophysics

Polytropes and the Lane–Emden equation

From hydrostatic equilibrium and Poisson's equation to the Lane–Emden equation, its exact solutions, its numerical solution and the mass–radius relation that leads to the Chandrasekhar mass.

⏱ 150 min nonlinear second-order ODEsregular singular pointspower seriesdimensional analysis and homologyadaptive-step Runge–Kutta revision

By the end you will be able to:
  • Derive the Lane–Emden equation from hydrostatic equilibrium, Poisson's equation and a polytropic relation.
  • Obtain the analytic solutions for n = 0, 1 and 5 and the Taylor series at the center.
  • Scale a dimensionless solution to a star of mass M and radius R (central density and pressure).
  • Deduce the mass–radius relation of polytropes and the Chandrasekhar limiting mass for n = 3.
  • Justify the series start and the root refinement in the numerical integration, and quantify their errors.

1. Setting up: two equations and a closure relation

Illustration: Setting up: two equations and a closure relation

In lesson 0 we saw that the structure of a star requires four coupled equations plus three material functions. Here we study the simplest model that retains the full mechanics: we close the two mechanical equations with a direct relation between pressure and density, without temperature or transport. In exchange for that simplification we obtain a single dimensionless ODE whose solution describes all the stars of a family, and which anticipates the most celebrated result of stellar astrophysics: the Chandrasekhar mass.

Consider a spherical, static, non-rotating star. Let rr be the distance from the center, ρ(r)\rho(r) the mass density, P(r)P(r) the pressure and m(r)m(r) the mass enclosed within a sphere of radius rr. The hydrostatic equilibrium of a shell of thickness drdr and mass conservation give

dPdr=−G m(r) ρr2,dmdr=4πr2ρ,\frac{dP}{dr} = -\frac{G\,m(r)\,\rho}{r^2}, \qquad \frac{dm}{dr} = 4\pi r^2 \rho,

where GG is the gravitational constant. Solving for m=−r2GρdPdrm = -\dfrac{r^2}{G\rho}\dfrac{dP}{dr} and differentiating with respect to rr we obtain a single second-order equation, which is nothing other than Poisson’s equation ∇2Φ=4πGρ\nabla^2\Phi = 4\pi G\rho in spherical symmetry (with dΦ/dr=Gm/r2d\Phi/dr = Gm/r^2 and dP=−ρ dΦdP = -\rho\,d\Phi):

1r2ddr ⁣(r2ρdPdr)=−4πGρ.(1)\frac{1}{r^2}\frac{d}{dr}\!\left(\frac{r^2}{\rho}\frac{dP}{dr}\right) = -4\pi G\rho. \tag{1}

Equation (1) has two unknown functions, PP and ρ\rho. In general it is closed with the equation of state, the energy transport and the nuclear production, which introduce the temperature. A polytrope is the model in which a direct relation is postulated,

P=Kρ1+1/n,(2)P = K\rho^{1+1/n}, \tag{2}

with KK constant and nn the polytropic index. Important physical cases:

  • n=3/2n = 3/2: ideal gas in a fully convective star (adiabatic with γ=5/3\gamma = 5/3), and non-relativistic degenerate electron gas (P∝ρ5/3P \propto \rho^{5/3}): low-mass white dwarfs, brown dwarfs.
  • n=3n = 3: ultrarelativistic degenerate electron gas (P∝ρ4/3P\propto\rho^{4/3}) and Eddington’s standard model (radiation pressure in constant proportion to the total).
  • n=0n = 0: uniform density (incompressible fluid). n=1n = 1: crude approximation to neutron stars.

2. Derivation of the Lane–Emden equation

Illustration: Derivation of the Lane–Emden equation

We write the density as ρ=ρc θn\rho = \rho_c\,\theta^n, where ρc\rho_c is the central density and θ(r)\theta(r) is a dimensionless function with θ(0)=1\theta(0) = 1. By (2),

P=Kρc1+1/n θn+1,1ρdPdr=(n+1) Kρc1/n dθdr.P = K\rho_c^{1+1/n}\,\theta^{n+1}, \qquad \frac{1}{\rho}\frac{dP}{dr} = (n+1)\,K\rho_c^{1/n}\,\frac{d\theta}{dr}.

Substituting into (1):

(n+1)Kρc1/n−14πG  1r2ddr ⁣(r2dθdr)=−θn.\frac{(n+1)K\rho_c^{1/n-1}}{4\pi G}\;\frac{1}{r^2}\frac{d}{dr}\!\left(r^2\frac{d\theta}{dr}\right) = -\theta^n .

The coefficient has dimensions of length squared. We define the length scale

α2≡(n+1)Kρc1/n−14πG,r=α ξ,(3)\alpha^2 \equiv \frac{(n+1)K\rho_c^{1/n-1}}{4\pi G}, \qquad r = \alpha\,\xi, \tag{3}

and arrive at the Lane–Emden equation (Lane 1870, Emden 1907):

  1ξ2ddξ ⁣(ξ2dθdξ)=−θn⟺θ′′+2ξθ′+θn=0  (4)\boxed{\;\frac{1}{\xi^2}\frac{d}{d\xi}\!\left(\xi^2\frac{d\theta}{d\xi}\right) = -\theta^n \quad\Longleftrightarrow\quad \theta'' + \frac{2}{\xi}\theta' + \theta^n = 0\;} \tag{4}

with the boundary conditions θ(0)=1\theta(0) = 1 (definition of ρc\rho_c) and θ′(0)=0\theta'(0) = 0. The latter follows from regularity: dP/dr=−Gmρ/r2≈−4π3Gρc2 r→0dP/dr = -Gm\rho/r^2 \approx -\tfrac{4\pi}{3}G\rho_c^2\,r \to 0 as r→0r\to0. The surface of the star is the first root ξ1\xi_1 of θ\theta: there ρ=P=0\rho = P = 0, and the radius is

R=α ξ1.R = \alpha\,\xi_1 .

Note the virtue of the nondimensionalization: a single function θn(ξ)\theta_n(\xi) describes all the polytropic stars of index nn, whatever KK and ρc\rho_c may be. Stars of equal nn are homologous to one another.

3. Mass, concentration and central pressure

Illustration: Mass, concentration and central pressure

The enclosed mass is, using (4) to integrate,

m(ξ)=∫0αξ4πr2ρ dr=4πα3ρc∫0ξξ′2θn dξ′=−4πα3ρc ξ2θ′(ξ).(5)m(\xi) = \int_0^{\alpha\xi} 4\pi r^2\rho\,dr = 4\pi\alpha^3\rho_c\int_0^\xi \xi'^2\theta^n\,d\xi' = -4\pi\alpha^3\rho_c\,\xi^2\theta'(\xi). \tag{5}

At the surface, M=4πα3ρc ωnM = 4\pi\alpha^3\rho_c\,\omega_n with ωn≡−ξ12θ′(ξ1)\omega_n \equiv -\xi_1^2\theta'(\xi_1). Dividing by 43πR3=43πα3ξ13\tfrac{4}{3}\pi R^3 = \tfrac43\pi\alpha^3\xi_1^3 we obtain the central concentration

ρcρˉ=−ξ13 θ′(ξ1).(6)\frac{\rho_c}{\bar\rho} = -\frac{\xi_1}{3\,\theta'(\xi_1)} . \tag{6}

From (3), Kρc1/n=4πGα2ρc/(n+1)K\rho_c^{1/n} = 4\pi G\alpha^2\rho_c/(n+1), so that Pc=Kρc1+1/n=4πGα2ρc2/(n+1)P_c = K\rho_c^{1+1/n} = 4\pi G\alpha^2\rho_c^2/(n+1). Eliminating α=R/ξ1\alpha = R/\xi_1 and ρc\rho_c by means of (6):

Pc=Wn GM2R4,Wn=14π(n+1) θ′(ξ1)2.(7)P_c = W_n\,\frac{GM^2}{R^4}, \qquad W_n = \frac{1}{4\pi(n+1)\,\theta'(\xi_1)^2}. \tag{7}
nnξ1\xi_1ωn=−ξ12θ′(ξ1)\omega_n = -\xi_1^2\theta'(\xi_1)ρc/ρˉ\rho_c/\bar\rhoWnW_n
06=2.44949\sqrt6 = 2.4494926=4.898982\sqrt6 = 4.8989813/(8π)=0.11943/(8\pi) = 0.1194
1π=3.14159\pi = 3.14159π=3.14159\pi = 3.14159π2/3=3.28987\pi^2/3 = 3.28987π/8=0.3927\pi/8 = 0.3927
1.53.653752.714065.990710.7701
24.352872.4110511.40251.638
36.896852.0182454.182511.05
414.971551.79723622.408247.5
4.531.836461.737806189.474922
5∞\infty3=1.73205\sqrt3 = 1.73205∞\infty∞\infty

Values computed with src/lib/math/polytrope.ts and checked against Chandrasekhar (1939, table 4) and Horedt (2004). The concentration grows extremely fast with nn: high-index polytropes have a dense core and an extended, tenuous envelope.

The Sun as a polytrope. With nominal M⊙M_\odot and R⊙R_\odot (IAU 2015), ρˉ⊙=1.41×103 kg/m3\bar\rho_\odot = 1.41\times10^3\ \mathrm{kg/m^3}. For n=3n = 3, (6) and (7) give ρc=7.64×104 kg/m3\rho_c = 7.64\times10^4\ \mathrm{kg/m^3} and Pc=1.25×1016 PaP_c = 1.25\times10^{16}\ \mathrm{Pa}, versus ρc=1.527×105 kg/m3\rho_c = 1.527\times10^5\ \mathrm{kg/m^3} and Pc=2.342×1016 PaP_c = 2.342\times10^{16}\ \mathrm{Pa} from the BP2000 standard solar model (Bahcall, Pinsonneault & Basu 2001): a factor of 2, not bad for a single equation without temperature. With n=3/2n = 3/2 the result is much worse (ρc=8.4×103\rho_c = 8.4\times10^3, Pc=8.7×1014P_c = 8.7\times10^{14} Pa): the Sun is not a convective star. The residual disagreement of n=3n = 3 reflects that the solar core has a composition altered by hydrogen burning (μ\mu increases toward the center, which concentrates the mass more than a polytrope allows) and that the convective envelope (n≈1.5n\approx1.5) has a different structure. The actual concentration, ρc/ρˉ=108\rho_c/\bar\rho = 108, corresponds to an effective nn of ≈3.3\approx3.3.

4. Behavior near the center: the series

Illustration: Behavior near the center: the series

At ξ=0\xi = 0 the coefficient 2/ξ2/\xi is singular: ξ=0\xi=0 is a regular singular point of (4). We seek an even series (the equation is invariant under ξ→−ξ\xi\to-\xi) θ=1+a2ξ2+a4ξ4+a6ξ6+…\theta = 1 + a_2\xi^2 + a_4\xi^4 + a_6\xi^6 + \dots Then

1ξ2(ξ2θ′)′=6a2+20a4ξ2+42a6ξ4+…,θn=1+na2ξ2+[na4+(n2)a22]ξ4+…\frac{1}{\xi^2}\left(\xi^2\theta'\right)' = 6a_2 + 20a_4\xi^2 + 42a_6\xi^4 + \dots, \qquad \theta^n = 1 + n a_2\xi^2 + \left[n a_4 + \tbinom{n}{2}a_2^2\right]\xi^4 + \dots

Equating coefficients with the sign changed: 6a2=−16a_2 = -1, 20a4=−na220a_4 = -n a_2, 42a6=−na4−n(n−1)2a2242a_6 = -n a_4 - \tfrac{n(n-1)}{2}a_2^2, that is,

θ(ξ)=1−ξ26+n120ξ4−n(8n−5)15120ξ6+O(ξ8).(8)\theta(\xi) = 1 - \frac{\xi^2}{6} + \frac{n}{120}\xi^4 - \frac{n(8n-5)}{15120}\xi^6 + O(\xi^8). \tag{8}

The first term says that near the center every polytropic star is parabolic, ρ≈ρc(1−nξ2/6)\rho \approx \rho_c(1 - n\xi^2/6), and that θ′′(0)=−1/3\theta''(0) = -1/3: the term 2θ′/ξ2\theta'/\xi has the finite limit −2/3-2/3, even though numerically it is 0/00/0. Compare with lesson 0: P≈Pc−2π3Gρc2r2P\approx P_c - \tfrac{2\pi}{3}G\rho_c^2r^2 is exactly θn+1≈1−(n+1)ξ2/6\theta^{n+1}\approx1-(n+1)\xi^2/6 with (3).

5. Analytic solutions

Only for n=0,1,5n = 0, 1, 5 do closed-form solutions exist that satisfy θ(0)=1, θ′(0)=0\theta(0)=1,\ \theta'(0)=0:

n=0: θ=1−ξ26,ξ1=6;n=1: θ=sin⁡ξξ,ξ1=π;n=5: θ=(1+ξ23)−1/2.n=0:\ \theta = 1 - \frac{\xi^2}{6},\quad \xi_1 = \sqrt6; \qquad n=1:\ \theta = \frac{\sin\xi}{\xi},\quad \xi_1 = \pi; \qquad n=5:\ \theta = \left(1+\frac{\xi^2}{3}\right)^{-1/2}.

For n=1n=1, the substitution u=ξθu = \xi\theta transforms (4) into u′′+u=0u'' + u = 0 (problem 1). For n=5n = 5, θ>0\theta\gt0 for all ξ\xi: the radius is infinite, but the mass is finite, because −ξ2θ′=ξ33(1+ξ2/3)−3/2→3-\xi^2\theta' = \tfrac{\xi^3}{3}(1+\xi^2/3)^{-3/2}\to\sqrt3. It can be shown that for n≥5n\ge5 there is no finite root and that for 0≤n<50\le n\lt 5 there is; n=5n=5 is the boundary.

6. Mass–radius relation and the Chandrasekhar mass

Illustration: Mass–radius relation and the Chandrasekhar mass

From M=4πα3ρcωnM = 4\pi\alpha^3\rho_c\omega_n and R=αξ1R = \alpha\xi_1 we have ρc∝MR−3\rho_c \propto M R^{-3}. Taking this to (3), R2∝Kρc(1−n)/n∝K (MR−3)(1−n)/nR^2\propto K\rho_c^{(1-n)/n}\propto K\,(MR^{-3})^{(1-n)/n}, whence

R  ∝  Kn3−n  M1−n3−n.(9)R \;\propto\; K^{\frac{n}{3-n}}\;M^{\frac{1-n}{3-n}}. \tag{9}
  • n=3/2n = 3/2 (non-relativistic white dwarfs): R∝M−1/3R\propto M^{-1/3}. More mass, smaller radius!
  • n=1n = 1: RR independent of MM (in fact R=παR = \pi\alpha with α\alpha fixed by KK).
  • n=3n = 3: the exponent of RR vanishes and (9) degenerates: the mass is fixed by KK,
M=4π ω3(KπG)3/2.(10)M = 4\pi\,\omega_3\left(\frac{K}{\pi G}\right)^{3/2}. \tag{10}

For a completely degenerate, ultrarelativistic electron gas (lesson 4), K=hc8(3π)1/31(μemu)4/3K = \dfrac{hc}{8}\left(\dfrac{3}{\pi}\right)^{1/3}\dfrac{1}{(\mu_e m_u)^{4/3}}, where hh is Planck’s constant, cc the speed of light, mum_u the atomic mass unit and μe\mu_e the number of nucleons per electron (μe=2\mu_e = 2 for He, C or O). Substituting into (10) with ω3=2.01824\omega_3 = 2.01824 and CODATA 2018 constants:

MCh=5.83μe2 M⊙=1.46 M⊙(μe=2).M_{\mathrm{Ch}} = \frac{5.83}{\mu_e^{2}}\,M_\odot = 1.46\,M_\odot \quad(\mu_e = 2).

(With the hydrogen mass mHm_H in place of mum_u one obtains the “1.44” of many textbooks; Chandrasekhar 1931 obtained 0.91 M⊙0.91\,M_\odot with the μe=2.5\mu_e = 2.5 then in use.) Interpretation: as the mass of a white dwarf increases, the radius decreases (branch n=3/2n=3/2), the density grows, the electrons become relativistic and the effective index tends to 3. In the limit, the radius tends to zero for a finite mass: there are no white dwarfs in equilibrium with M>MChM > M_{\mathrm{Ch}} (Chandrasekhar 1931, 1939 ch. XI). Lesson 4 integrates the full model.

7. Numerical solution

Illustration: Numerical solution

For general nn, (4) is integrated numerically. Three decisions deserve justification:

  1. Series start. The right-hand side f(ξ,θ,θ′)=−θn−2θ′/ξf(\xi,\theta,\theta') = -\theta^n - 2\theta'/\xi cannot be evaluated at ξ=0\xi = 0. We start at ξ0=10−3\xi_0 = 10^{-3} with (8): the truncation error is O(ξ08)∼10−24O(\xi_0^8)\sim10^{-24}, far below round-off. Starting at ξ0\xi_0 with θ=1\theta = 1, θ′=0\theta'=0 (without the series) instead introduces an error O(ξ02)O(\xi_0^2) that propagates to ξ1\xi_1; with RK4 of order 4 that error dominates for any reasonable step.
  2. Adaptive step. For n→5n\to5, ξ1\xi_1 grows without bound (ξ1≈347\xi_1\approx 347 for n=4.95n=4.95), whereas near the center the solution varies on scales ∼1\sim1. We use RK4 with step doubling: the difference between one step hh and two steps h/2h/2 estimates the local error, ε≈∣yh/2−yh∣/15\varepsilon \approx |y_{h/2}-y_h|/15, and hh is rescaled by (tol/ε)1/5(\mathrm{tol}/\varepsilon)^{1/5}.
  3. The root and θ<0\theta\lt0. For non-integer nn, θn\theta^n is not real if θ<0\theta\lt 0. We stop the integration at the step in which θ\theta changes sign and refine ξ1\xi_1 with Newton’s method on the length ss of the last step: sk+1=sk−θ(sk)/θ′(sk)s_{k+1} = s_k - \theta(s_k)/\theta'(s_k), where both values come from the RK4 step itself. Since θ′(ξ1)≠0\theta'(\xi_1)\ne0 the root is simple and the convergence is quadratic.

The implementation (resolverLaneEmden in src/lib/math/polytrope.ts) reproduces ξ1\xi_1 for n=0,1n=0,1 with error smaller than 10−810^{-8} and Chandrasekhar’s tables to their last digit (the tests in src/lib/math/__tests__/polytrope.test.ts check this).

Error analysis. The global error of adaptive-step RK4 with tolerance tol\mathrm{tol} per step is O(tol⋅N)O(\mathrm{tol}\cdot N) with NN the number of steps; the convergence test for n=4.95n = 4.95 (where NN is largest) shows that tightening the tolerance from 10−1110^{-11} to 10−1410^{-14} changes ξ1\xi_1 by less than 10−710^{-7} relative. The most sensitive derived quantity is ρc/ρˉ=−ξ1/(3θ′(ξ1))\rho_c/\bar\rho = -\xi_1/(3\theta'(\xi_1)): near n=5n = 5, θ′(ξ1)→0\theta'(\xi_1)\to0 and an absolute error δ\delta in θ′\theta' is amplified as δ/θ′(ξ1)2\delta/\theta'(\xi_1)^2. This is why the table of §3 gives ρc/ρˉ\rho_c/\bar\rho with fewer digits for n=4.5n = 4.5.

ξ₁
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).

Explore in the simulator: (a) how ξ1\xi_1 and ρc/ρˉ\rho_c/\bar\rho shoot up as nn approaches 5; (b) that the density curve θn\theta^n (dashed line) is much more concentrated than θ\theta; (c) with the normalized axis ξ/ξ1\xi/\xi_1, which nn best reproduces the actual central density of the Sun (ρc/ρˉ=108\rho_c/\bar\rho = 108).

Problems

1. Solution for n=1n=1. Show that with u=ξθu = \xi\theta equation (4) with n=1n=1 becomes u′′+u=0u''+u=0 and deduce θ=sin⁡ξ/ξ\theta = \sin\xi/\xi.

Show solution

θ=u/ξ⇒ξ2θ′=ξu′−u\theta = u/\xi \Rightarrow \xi^2\theta' = \xi u' - u, hence (ξ2θ′)′=ξu′′(\xi^2\theta')' = \xi u''. Thus ξ−2(ξ2θ′)′=u′′/ξ=−θ=−u/ξ\xi^{-2}(\xi^2\theta')' = u''/\xi = -\theta = -u/\xi, that is, u′′+u=0u''+u = 0, with u=Asin⁡ξ+Bcos⁡ξu = A\sin\xi + B\cos\xi. Regularity at the origin (θ(0)\theta(0) finite) requires B=0B = 0 and θ(0)=1\theta(0)=1 fixes A=1A=1. ■\blacksquare

2. Incompressible sphere. For n=0n = 0 prove that ρc=ρˉ\rho_c = \bar\rho and that Pc=38πGM2R4P_c = \dfrac{3}{8\pi}\dfrac{GM^2}{R^4}.

Show solution

θ=1−ξ2/6\theta = 1-\xi^2/6, θ′(ξ1)=−ξ1/3=−6/3\theta'(\xi_1) = -\xi_1/3 = -\sqrt6/3. In (6): ρc/ρˉ=ξ1/(3⋅ξ1/3)=1\rho_c/\bar\rho = \xi_1/(3\cdot\xi_1/3) = 1. In (7): θ′(ξ1)2=2/3\theta'(\xi_1)^2 = 2/3 and W0=1/(4π⋅23)=3/(8π)W_0 = 1/(4\pi\cdot\tfrac23) = 3/(8\pi). This is Milne’s bound of lesson 0 with equality: no polytrope has a lower central pressure. ■\blacksquare

3. Finite mass for n=5n=5. Check that θ=(1+ξ2/3)−1/2\theta = (1+\xi^2/3)^{-1/2} satisfies (4) and that M=43 πα3ρcM = 4\sqrt3\,\pi\alpha^3\rho_c.

Show solution

θ′=−ξ3(1+ξ2/3)−3/2\theta' = -\tfrac{\xi}{3}(1+\xi^2/3)^{-3/2}, so ξ2θ′=−ξ33(1+ξ2/3)−3/2\xi^2\theta' = -\tfrac{\xi^3}{3}(1+\xi^2/3)^{-3/2} and (ξ2θ′)′=−ξ2(1+ξ2/3)−3/2+ξ43(1+ξ2/3)−5/2=−ξ2(1+ξ2/3)−5/2(\xi^2\theta')' = -\xi^2(1+\xi^2/3)^{-3/2} + \tfrac{\xi^4}{3}(1+\xi^2/3)^{-5/2} = -\xi^2(1+\xi^2/3)^{-5/2}. Dividing by ξ2\xi^2: −θ5-\theta^5. By (5), M=4πα3ρclim⁡ξ→∞ξ33(1+ξ2/3)−3/2=4πα3ρc3M = 4\pi\alpha^3\rho_c\lim_{\xi\to\infty}\tfrac{\xi^3}{3}(1+\xi^2/3)^{-3/2} = 4\pi\alpha^3\rho_c\sqrt3. ■\blacksquare

4. Homology transformation. Prove that if θ(ξ)\theta(\xi) solves (4), so does θ~(ξ)=A2/(n−1)θ(Aξ)\tilde\theta(\xi) = A^{2/(n-1)}\theta(A\xi) for every A>0A\gt0 (n≠1n\ne1), although with θ~(0)=A2/(n−1)\tilde\theta(0) = A^{2/(n-1)}. Why, then, is it enough to solve (4) once for each nn?

Show solution

With η=Aξ\eta = A\xi: θ~′′+2ξθ~′=A2/(n−1)+2[θηη+2ηθη]=−A2n/(n−1)θn=−θ~n\tilde\theta'' + \tfrac2\xi\tilde\theta' = A^{2/(n-1)+2}\left[\theta_{\eta\eta}+\tfrac2\eta\theta_\eta\right] = -A^{2n/(n-1)}\theta^n = -\tilde\theta^n, since 2/(n−1)+2=2n/(n−1)2/(n-1)+2 = 2n/(n-1). The invariance is exactly the freedom to choose ρc\rho_c: changing θ(0)\theta(0) amounts to rescaling α\alpha, and the normalized solution θ(0)=1\theta(0)=1 represents the whole family. ■\blacksquare

5. Gravitational energy (Betti–Ritter). Show that the potential energy of a polytrope is Ω=−35−nGM2R\Omega = -\dfrac{3}{5-n}\dfrac{GM^2}{R}. Check the case n=0n=0 (−35GM2/R-\tfrac35 GM^2/R) and explain why it diverges at n=5n = 5 even though the mass is finite. Hint: use the virial theorem Ω=−3∫P dV\Omega = -3\int P\,dV and d(P/ρ)=n+1n Kρ1/n−1dρd(P/\rho)= \tfrac{n+1}{n}\,K\rho^{1/n-1}d\rho (Chandrasekhar 1939, ch. IV, §9; Kippenhahn et al. 2012, §19.9).

Show solution

By (2), dP=(1+1n)Kρ1/ndρdP = (1+\tfrac1n)K\rho^{1/n}d\rho, so the specific enthalpy is w=∫dP/ρ=(n+1)Kρ1/n=(n+1)P/ρw = \int dP/\rho = (n+1)K\rho^{1/n} = (n+1)P/\rho. Hydrostatic equilibrium says dw=−dΦdw = -d\Phi, that is, w+Φ=const=Φ(R)=−GM/Rw + \Phi = \text{const} = \Phi(R) = -GM/R (since w(R)=0w(R) = 0). Multiplying by dmdm and integrating: ∫w dm+∫Φ dm=−GM2/R\int w\,dm + \int\Phi\,dm = -GM^2/R. Now ∫w dm=(n+1)∫(P/ρ) dm=(n+1)∫P dV=−n+13Ω\int w\,dm = (n+1)\int(P/\rho)\,dm = (n+1)\int P\,dV = -\tfrac{n+1}{3}\Omega (virial), and ∫Φ dm=2Ω\int\Phi\,dm = 2\Omega since Ω=−∫Gm dm/r\Omega = -\int Gm\,dm/r and Φ(r)=−Gm/r−∫rRGm′ dm′/r′2\Phi(r) = -Gm/r - \int_r^R Gm'\,dm'/r'^2, whose integral over dmdm gives Ω+Ω\Omega + \Omega after exchanging the order of integration. Hence −n+13Ω+2Ω=−GM2/R-\tfrac{n+1}{3}\Omega + 2\Omega = -GM^2/R, that is, Ω⋅5−n3=−GM2/R\Omega\cdot\tfrac{5-n}{3} = -GM^2/R and Ω=−35−nGM2R\Omega = -\tfrac{3}{5-n}\tfrac{GM^2}{R}. For n=0n = 0: −35GM2/R-\tfrac35GM^2/R, the homogeneous sphere. For n→5n\to5 the formula is of the type ∞⋅0\infty\cdot0: the factor 3/(5−n)3/(5-n) diverges while GM2/R→0GM^2/R\to0 because R→∞R\to\infty. The potential energy of the n=5n = 5 polytrope is finite (the mass is concentrated in a region of size ∼α\sim\alpha and Ω5∝−GM2/α\Omega_5\propto-GM^2/\alpha), so what fails is the parametrization by RR, not the physics: the formula must be used with finite RR and n<5n\lt5. ■\blacksquare

6. Start-up error (numerical). Using the simulator or the library, compare ξ1(n=3)\xi_1(n=3) obtained (a) by starting with (8) at ξ0=10−2\xi_0 = 10^{-2} and (b) by starting with θ=1\theta=1, θ′=0\theta'=0 at the same ξ0\xi_0. Show that the difference scales as ξ02\xi_0^2 and estimate the constant. Hint: the initial state (b) differs from the true one by δθ≈ξ02/6\delta\theta\approx\xi_0^2/6, δθ′≈ξ0/3\delta\theta'\approx\xi_0/3; propagate that perturbation with the linearized variational equation.

Show solution

The perturbation obeys the variational equation δθ′′+2ξδθ′+nθn−1δθ=0\delta\theta'' + \tfrac2\xi\delta\theta' + n\theta^{n-1}\delta\theta = 0 with δθ(ξ0)=ξ02/6\delta\theta(\xi_0) = \xi_0^2/6 and δθ′(ξ0)=ξ0/3\delta\theta'(\xi_0) = \xi_0/3. Near the center the solutions of the variational equation behave as 11 and 1/ξ1/\xi (the two solutions of δθ′′+2ξδθ′=0\delta\theta'' + \tfrac2\xi\delta\theta' = 0); the condition on δθ′\delta\theta', of order ξ0\xi_0, excites the 1/ξ1/\xi branch with amplitude ∼ξ03\sim\xi_0^3 and the regular branch with amplitude ∼ξ02\sim\xi_0^2, so that at ξ≫ξ0\xi\gg\xi_0 both contributions are O(ξ02)O(\xi_0^2): δθ(ξ1)=Cξ02\delta\theta(\xi_1) = C\xi_0^2 and δξ1=−δθ(ξ1)/θ′(ξ1)\delta\xi_1 = -\delta\theta(\xi_1)/\theta'(\xi_1). The order of magnitude of CC is given by homology (problem 4): raising θ(0)\theta(0) by ϵ\epsilon reduces ξ1\xi_1 by ξ1ϵ\xi_1\epsilon for n=3n = 3, and with ϵ∼ξ02/6\epsilon\sim\xi_0^2/6 one expects δξ1∼−ξ02\delta\xi_1\sim-\xi_0^2. Numerically (RK4 with h=10−4h = 10^{-4} and Newton refinement, n=3n = 3):

ξ0\xi_0ξ1\xi_1 with the seriesξ1\xi_1 with (1,0)(1, 0)δξ1/ξ02\delta\xi_1/\xi_0^2
0.046.896848626.89125228−3.50-3.50
0.026.896848626.89545869−3.47-3.47
0.016.896848626.89650241−3.46-3.46
0.0056.896848626.89676224−3.46-3.46

The ξ02\xi_0^2 law is confirmed with C′=δξ1/ξ02→−3.46C' = \delta\xi_1/\xi_0^2\to-3.46; with ξ0=10−2\xi_0 = 10^{-2} the error is 3.5×10−43.5\times10^{-4}, versus ∼10−16\sim10^{-16} (round-off) with the series. The negative sign is that of homology: the (1,0)(1,0) start overestimates the density at the center, and a more concentrated star has a smaller ξ1\xi_1. ■\blacksquare

7. Mass–radius relation. From (9), prove that on the non-relativistic branch MR3=constM R^3 = \text{const} and compute the ratio of radii R(0.6 M⊙)/R(1.0 M⊙)R(0.6\,M_\odot)/R(1.0\,M_\odot) of two white dwarfs with the same KK. Which assumption of (9) fails as one approaches MChM_{\mathrm{Ch}}?

Show solution

With n=3/2n = 3/2, (9) gives R∝K M−1/3R\propto K\,M^{-1/3}, hence MR3=constMR^3 = \text{const} for fixed KK. R(0.6)/R(1.0)=(0.6)−1/3=1.186R(0.6)/R(1.0) = (0.6)^{-1/3} = 1.186: the less massive white dwarf is 19 % larger. As one approaches MChM_{\rm Ch} the assumption of constant KK and nn fails: the degenerate equation of state goes from ρ5/3\rho^{5/3} to ρ4/3\rho^{4/3} as ρ\rho grows, so the effective index depends on the density and the star is not a polytrope of a single nn (lesson 4, where the exact curve falls faster than M−1/3M^{-1/3}). ■\blacksquare

8. (Computational) Convergence of the root. Implement fixed-step RK4 with step hh for (4) with n=3n = 3, starting with (8) at ξ0=10−3\xi_0 = 10^{-3}, and detect ξ1\xi_1 (a) by the last point with θ>0\theta\gt0 and (b) by linear interpolation between the two points that bracket the root. Measure numerically the order of convergence of (a) and (b) and compare it with the order 4 of the integrator. Explain why (b) does not reach the order 2 one would expect from a linear interpolation.

Show solution
import numpy as np
n, xi1_ref = 3, 6.896848619
def f(x, y): return np.array([y[1], -max(y[0], 0)**n - 2*y[1]/x])
def lane_emden(h):
    x = 1e-3; y = np.array([1 - x*x/6 + n*x**4/120, -x/3 + n*x**3/30])
    while True:
        k1 = f(x, y); k2 = f(x+h/2, y+h/2*k1); k3 = f(x+h/2, y+h/2*k2); k4 = f(x+h, y+h*k3)
        yn = y + h/6*(k1+2*k2+2*k3+k4)
        if yn[0] <= 0:
            return x, x + h*y[0]/(y[0]-yn[0])     # (a) last positive point, (b) linear interpolation
        x += h; y = yn
for h in [0.1, 0.05, 0.025, 0.0125]:
    a, b = lane_emden(h); print(f'h={h:<7} err_a={abs(a-xi1_ref):.2e}  err_b={abs(b-xi1_ref):.2e}')

Output: err_a =9.6×10−2= 9.6\times10^{-2}, 4.6×10−24.6\times10^{-2}, 2.1×10−22.1\times10^{-2}, 8.4×10−38.4\times10^{-3} (it is divided by ≈2\approx2 when hh is divided by 2: order 1, as befits “the root lies somewhere in the last step”); err_b =6.2×10−5= 6.2\times10^{-5}, 2.8×10−52.8\times10^{-5}, 1.3×10−51.3\times10^{-5}, 5.0×10−65.0\times10^{-6}: a thousand times smaller, but of order ≈1.2\approx1.2, not 2. The reason is that the last RK4 step evaluates the right-hand side at intermediate points with θ<0\theta\lt0, where max(θ, 0)**n kills the source: that step has an O(h)O(h) error that contaminates the interpolation. Neither reaches the order 4 of RK4; this is why the library does not merely interpolate but refines with Newton’s method on the length of the last step (§7, item 3), so that the root inherits the precision of the integrator and the convergence test requires ∣δξ1∣/ξ1<10−7|\delta\xi_1|/\xi_1\lt10^{-7}. ■\blacksquare

✦ Self-assessment

  1. 1. What assumption does a polytrope add to the mechanical equations of stellar structure?
  2. 2. The length scale α of the Lane–Emden equation depends on…
  3. 3. For which indices does a closed-form solution with θ(0) = 1 and θ′(0) = 0 exist?
  4. 4. The central concentration ρ꜀/ρ̄ of an n = 3 polytrope is ≈ 54. What does this mean for the Sun, whose actual concentration is ≈ 108?
  5. 5. On the non-relativistic branch (n = 3/2) of white dwarfs, R ∝ M^(−1/3). For n = 3 relation (9) "degenerates" because…
  6. 6. When integrating Lane–Emden numerically, why does one start with the Taylor series at ξ₀ ≪ 1 and not at ξ = 0?
Answer all the questions to check.

Further reading

  • Chandrasekhar (1939), An Introduction to the Study of Stellar Structure, ch. IV (polytropes: derivation, solutions, tables) and ch. XI (degenerate configurations).
  • Kippenhahn, Weigert & Weiss (2012), Stellar Structure and Evolution, ch. 19 (polytropes, §19.1–19.9) and ch. 37 (white dwarfs).
  • Horedt (2004), Polytropes: Applications in Astrophysics and Related Fields, ch. 2 (high-precision tables of ξ₁ and θ′(ξ₁)).
  • Hansen, Kawaler & Trimble (2004), Stellar Interiors, ch. 7 (polytropes and numerical methods).
  • Carroll & Ostlie (2017), §10.5.
  • Chandrasekhar (1931), ApJ 74, 81 — the original two-page paper on the maximum mass.
  • Bahcall, Pinsonneault & Basu (2001), ApJ 555, 990, DOI 10.1086/321493 — central values of the Sun used in the comparison.
🍎 Teacher guide
Time
2 classes of 90 min
Learning outcome
By the end, the student derives the Lane–Emden equation and its regularity conditions, obtains its exact solutions and the central series, scales a polytrope to a real star, deduces the mass–radius relation and the Chandrasekhar mass, and justifies and quantifies the decisions of the numerical method.
Evidence of learning
Submission of computational problem (8) with the study of convergence orders, and of proofs 3 and 5.

Materials

  • Python 3 with NumPy
  • Lane–Emden simulator
  • Table 4 of Chandrasekhar (1939) or the table of §3 to check the numerical values

Suggested sequence

Class 1 (90 min). Opening (10 min): can anything be known about the interior of a star without knowing the temperature? Development (65 min): derivation of (1)–(4) on the board; regularity conditions; mass, concentration and central pressure (5)–(7); the Sun as an n = 3 and n = 3/2 polytrope versus BP2000; central series and exact solutions. Closing (15 min): problems 1 and 2 in pairs.

Class 2 (90 min). Opening (10 min): homology (problem 4) as the explanation of why one solution per n suffices. Development (55 min): mass–radius relation (9), degeneracy for n = 3 and the Chandrasekhar mass with its conventions; numerical method: starting series, adaptive step, root refinement; error analysis with the simulator (n → 5). Closing (25 min): mini-quiz; problems 5, 6 and 8 are assigned.

Note on the data. The values in the table of §3 were computed with resolverLaneEmden and agree with Chandrasekhar (1939, table 4) and Horedt (2004) in all the digits shown. The central values of the Sun are from the BP2000 model (Bahcall, Pinsonneault & Basu 2001): ρ꜀ = 152.7 g cm⁻³ and P꜀ = 2.342×10¹⁷ dyn cm⁻². The Chandrasekhar mass was evaluated with CODATA 2018 constants and the IAU 2015 nominal solar mass (masaChandrasekhar in src/lib/math/chandrasekhar.ts).

Common mistakes

  • Confusing the polytropic index n with the adiabatic exponent γ. Relate them explicitly: 1 + 1/n = γ only if the star is isentropic; in general n is a model parameter.
  • Believing that the condition θ′(0) = 0 is an arbitrary choice. Deduce it from dP/dr → 0 at the center (lesson 0) and show the series (8).
  • Thinking that R ∝ M^(−1/3) holds for all white dwarfs. Show with the simulator that n grows with the density and anticipate the exact curve of lesson 4.
  • Taking the numerical root as "the last point with θ > 0". Problem 8 shows that this degrades the order of the method to 1.
  • Expecting the n = 3 polytrope to reproduce the Sun exactly. It is a model without temperature or composition; the factor of 2 in ρ꜀ is the price, and the discussion of why is instructive.
Key terms in this lesson (12)

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

  • 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.
  • Chandrasekhar limit The maximum mass a white dwarf can have: 1.4 times that of the Sun. If it exceeds it, it collapses and explodes as a supernova or becomes a neutron star.
  • 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.
  • Runge–Kutta method An improvement on Euler's method that "samples" the slope at several intermediate points of each step and averages them. The fourth-order version (RK4) is thousands of times more accurate for the same step size.
  • White dwarf What is left of a star like the Sun when it runs out of fuel: a core the size of Earth with the mass of the Sun, very hot, that cools down over billions of years. A teaspoon of it would weigh tons.
  • 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.
  • 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.
  • Perturbation Any small "nudge" that pulls an orbit away from a perfect ellipse: the attraction of other planets, Earth's flattening, air drag. That is how Neptune was discovered, through the perturbations of Uranus.
  • 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.
  • Degeneracy pressure A pressure that appears when matter is so tightly packed that the electrons cannot get any closer together, because of a rule of quantum physics. It holds up white dwarfs even when they are cold.
  • 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.
  • Neutron star The remains of a very large star after it explodes: more mass than the Sun squeezed into a ball 20 km across. A teaspoon of it would weigh as much as a mountain. Some spin hundreds of times per second.

See the whole glossary →

References

  • Chandrasekhar, S. (1939). An Introduction to the Study of Stellar Structure. University of Chicago Press (repr. Dover, 1957), ch. IV and XI.
  • Kippenhahn, R., Weigert, A. & Weiss, A. (2012). Stellar Structure and Evolution, 2nd ed. Springer, ch. 19 and 37.
  • Horedt, G. P. (2004). Polytropes: Applications in Astrophysics and Related Fields. Kluwer, ch. 2.
  • Carroll, B. W. & Ostlie, D. A. (2017). An Introduction to Modern Astrophysics, 2nd ed. Cambridge, §10.5.
  • Hansen, C. J., Kawaler, S. D. & Trimble, V. (2004). Stellar Interiors, 2nd ed. Springer, ch. 7.
  • Bahcall, J. N., Pinsonneault, M. H. & Basu, S. (2001). ApJ 555, 990, tables 5–6 (BP2000 model). DOI 10.1086/321493.
  • Chandrasekhar, S. (1931). The maximum mass of ideal white dwarfs. ApJ 74, 81.

Simulators for this lesson: Stellar structure: Lane–Emden