1. 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 be the distance from the center, the mass density, the pressure and the mass enclosed within a sphere of radius . The hydrostatic equilibrium of a shell of thickness and mass conservation give
where is the gravitational constant. Solving for and differentiating with respect to we obtain a single second-order equation, which is nothing other than Poisson’s equation in spherical symmetry (with and ):
Equation (1) has two unknown functions, and . 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,
with constant and the polytropic index. Important physical cases:
- : ideal gas in a fully convective star (adiabatic with ), and non-relativistic degenerate electron gas (): low-mass white dwarfs, brown dwarfs.
- : ultrarelativistic degenerate electron gas () and Eddington’s standard model (radiation pressure in constant proportion to the total).
- : uniform density (incompressible fluid). : crude approximation to neutron stars.
2. Derivation of the Lane–Emden equation

We write the density as , where is the central density and is a dimensionless function with . By (2),
Substituting into (1):
The coefficient has dimensions of length squared. We define the length scale
and arrive at the Lane–Emden equation (Lane 1870, Emden 1907):
with the boundary conditions (definition of ) and . The latter follows from regularity: as . The surface of the star is the first root of : there , and the radius is
Note the virtue of the nondimensionalization: a single function describes all the polytropic stars of index , whatever and may be. Stars of equal are homologous to one another.
3. Mass, concentration and central pressure

The enclosed mass is, using (4) to integrate,
At the surface, with . Dividing by we obtain the central concentration
From (3), , so that . Eliminating and by means of (6):
| 0 | 1 | |||
| 1 | ||||
| 1.5 | 3.65375 | 2.71406 | 5.99071 | 0.7701 |
| 2 | 4.35287 | 2.41105 | 11.4025 | 1.638 |
| 3 | 6.89685 | 2.01824 | 54.1825 | 11.05 |
| 4 | 14.97155 | 1.79723 | 622.408 | 247.5 |
| 4.5 | 31.83646 | 1.73780 | 6189.47 | 4922 |
| 5 |
Values computed with src/lib/math/polytrope.ts and checked against Chandrasekhar (1939, table 4) and Horedt (2004).
The concentration grows extremely fast with : high-index polytropes have a dense core and an extended,
tenuous envelope.
The Sun as a polytrope. With nominal and (IAU 2015), . For , (6) and (7) give and , versus and from the BP2000 standard solar model (Bahcall, Pinsonneault & Basu 2001): a factor of 2, not bad for a single equation without temperature. With the result is much worse (, Pa): the Sun is not a convective star. The residual disagreement of reflects that the solar core has a composition altered by hydrogen burning ( increases toward the center, which concentrates the mass more than a polytrope allows) and that the convective envelope () has a different structure. The actual concentration, , corresponds to an effective of .
4. Behavior near the center: the series

At the coefficient is singular: is a regular singular point of (4). We seek an even series (the equation is invariant under ) Then
Equating coefficients with the sign changed: , , , that is,
The first term says that near the center every polytropic star is parabolic, , and that : the term has the finite limit , even though numerically it is . Compare with lesson 0: is exactly with (3).
5. Analytic solutions
Only for do closed-form solutions exist that satisfy :
For , the substitution transforms (4) into (problem 1). For , for all : the radius is infinite, but the mass is finite, because . It can be shown that for there is no finite root and that for there is; is the boundary.
6. Mass–radius relation and the Chandrasekhar mass

From and we have . Taking this to (3), , whence
- (non-relativistic white dwarfs): . More mass, smaller radius!
- : independent of (in fact with fixed by ).
- : the exponent of vanishes and (9) degenerates: the mass is fixed by ,
For a completely degenerate, ultrarelativistic electron gas (lesson 4), , where is Planck’s constant, the speed of light, the atomic mass unit and the number of nucleons per electron ( for He, C or O). Substituting into (10) with and CODATA 2018 constants:
(With the hydrogen mass in place of one obtains the “1.44” of many textbooks; Chandrasekhar 1931 obtained with the then in use.) Interpretation: as the mass of a white dwarf increases, the radius decreases (branch ), 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 (Chandrasekhar 1931, 1939 ch. XI). Lesson 4 integrates the full model.
7. Numerical solution

For general , (4) is integrated numerically. Three decisions deserve justification:
- Series start. The right-hand side cannot be evaluated at . We start at with (8): the truncation error is , far below round-off. Starting at with , (without the series) instead introduces an error that propagates to ; with RK4 of order 4 that error dominates for any reasonable step.
- Adaptive step. For , grows without bound ( for ), whereas near the center the solution varies on scales . We use RK4 with step doubling: the difference between one step and two steps estimates the local error, , and is rescaled by .
- The root and . For non-integer , is not real if . We stop the integration at the step in which changes sign and refine with Newton’s method on the length of the last step: , where both values come from the RK4 step itself. Since the root is simple and the convergence is quadratic.
The implementation (resolverLaneEmden in src/lib/math/polytrope.ts) reproduces for with
error smaller than 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 per step is with the number of steps; the convergence test for (where is largest) shows that tightening the tolerance from to changes by less than relative. The most sensitive derived quantity is : near , and an absolute error in is amplified as . This is why the table of §3 gives with fewer digits for .
- ξ₁
- 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
Explore in the simulator: (a) how and shoot up as approaches 5; (b) that the density curve (dashed line) is much more concentrated than ; (c) with the normalized axis , which best reproduces the actual central density of the Sun ().
Problems
1. Solution for . Show that with equation (4) with becomes and deduce .
Show solution
, hence . Thus , that is, , with . Regularity at the origin ( finite) requires and fixes .
2. Incompressible sphere. For prove that and that .
Show solution
, . In (6): . In (7): and . This is Milne’s bound of lesson 0 with equality: no polytrope has a lower central pressure.
3. Finite mass for . Check that satisfies (4) and that .
Show solution
, so and . Dividing by : . By (5), .
4. Homology transformation. Prove that if solves (4), so does for every (), although with . Why, then, is it enough to solve (4) once for each ?
Show solution
With : , since . The invariance is exactly the freedom to choose : changing amounts to rescaling , and the normalized solution represents the whole family.
5. Gravitational energy (Betti–Ritter). Show that the potential energy of a polytrope is . Check the case () and explain why it diverges at even though the mass is finite. Hint: use the virial theorem and (Chandrasekhar 1939, ch. IV, §9; Kippenhahn et al. 2012, §19.9).
Show solution
By (2), , so the specific enthalpy is . Hydrostatic equilibrium says , that is, (since ). Multiplying by and integrating: . Now (virial), and since and , whose integral over gives after exchanging the order of integration. Hence , that is, and . For : , the homogeneous sphere. For the formula is of the type : the factor diverges while because . The potential energy of the polytrope is finite (the mass is concentrated in a region of size and ), so what fails is the parametrization by , not the physics: the formula must be used with finite and .
6. Start-up error (numerical). Using the simulator or the library, compare obtained (a) by starting with (8) at and (b) by starting with , at the same . Show that the difference scales as and estimate the constant. Hint: the initial state (b) differs from the true one by , ; propagate that perturbation with the linearized variational equation.
Show solution
The perturbation obeys the variational equation with and . Near the center the solutions of the variational equation behave as and (the two solutions of ); the condition on , of order , excites the branch with amplitude and the regular branch with amplitude , so that at both contributions are : and . The order of magnitude of is given by homology (problem 4): raising by reduces by for , and with one expects . Numerically (RK4 with and Newton refinement, ):
| with the series | with | ||
|---|---|---|---|
| 0.04 | 6.89684862 | 6.89125228 | |
| 0.02 | 6.89684862 | 6.89545869 | |
| 0.01 | 6.89684862 | 6.89650241 | |
| 0.005 | 6.89684862 | 6.89676224 |
The law is confirmed with ; with the error is , versus (round-off) with the series. The negative sign is that of homology: the start overestimates the density at the center, and a more concentrated star has a smaller .
7. Mass–radius relation. From (9), prove that on the non-relativistic branch and compute the ratio of radii of two white dwarfs with the same . Which assumption of (9) fails as one approaches ?
Show solution
With , (9) gives , hence for fixed . : the less massive white dwarf is 19 % larger. As one approaches the assumption of constant and fails: the degenerate equation of state goes from to as grows, so the effective index depends on the density and the star is not a polytrope of a single (lesson 4, where the exact curve falls faster than ).
8. (Computational) Convergence of the root. Implement fixed-step RK4 with step for (4) with , starting with (8) at , and detect (a) by the last point with 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 , , , (it is divided by when is divided by 2:
order 1, as befits “the root lies somewhere in the last step”); err_b , , ,
: a thousand times smaller, but of order , not 2. The reason is that the last RK4 step evaluates the right-hand side at
intermediate points with , where max(θ, 0)**n kills the source: that step has an 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 .
✦ Self-assessment
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.