Two of the basic equations of stellar structure, hydrostatic equilibrium (recall P=ρgr and g=GM/r²):
dP = ρgdr = ρGMdr/r² ...(1)

and conservation of mass (recall M=ρV and dV=4πr²dr)

dM = 4π r² ρdr       ...(2)

Rewrite (1) as M = (-r²/Gρ)dP/dR then (2) can be written

d/dr [-(r²/Gρ)dP/dr] = 4πr²ρ

d/dr [(r²/ρ)dP/dr] = -4πr²ρG

(1/r²)d/dr[(r²/ρ)dP/dr] = -4πGρ ...(3)

Which can be closed if we have, eg,
(remember the ratio of specific heats γ=cp/cv?)

P = Kργ = Kρ1+1/n   ...(4a)    and dP/dr=K(1+1/n)ρ1/n   ...(4b)

where n = 1/(γ-1) is called the polytropic index.
(Remember how γ=5/3 for an ideal monatomic gas?)

Eliminating P and dP/dr in (3) we have

(1/r²)d/dr[K (n+1)/n ρ1/n -1 r² dρ/dr] = -4πGρ    ...(5)

or, since d/dr ρ1/n = (1/n)ρ1/n -1 dρ/dr,

(1/r²)d/dr[K(n+1)r²dρ1/n/dr] = -4πGρ    ...(6)

We now have a simple OrdinaryDifferentialEquation with boundary conditions for a physical thing like a star

dP/dr=0 at the center and ρ=0 at the surface.

Now we introduce a dimensionless radius and density

r/R=ξ   and   ρ/ρcn   ie, put r=Rξ,   dr=Rdξ,   ρ= ρcθn   then (6) becomes

(1/ξ²) d/dξ [ξ² dθ/dξ] = -[(4πGR²)/K(n+1)]ρc1-1/n θn

Choose the scaling factor R=[K(n+1)/(4πG)]½ρc(1-n)/2n

and the equation becomes ξ-2 d/dξ[ξ² dθ/dξ] = -θn

which can be written as the Lane-Emden equation:

d²θ/dξ² + 2/ξ dθ/dξ + θn = 0    ...(7)

for a polytropic model of index n.   Given n the ODE can be integrated outwards with boundary conditions at the center ξ=0, θ=1, dθ/dξ=0.

For n<5 θ will fall to zero for some ξ which can be considered the surface of the polyreope. For n=1, 3 and 5 the solution is analytic, for other values numerical integration is used.


For a relativistic degenerate electron gas Pe goes as ρ4/3 like an n=3 polytrope.
The n=3 case also applies to a star in which the gas pressure is a constant fraction of the radiative pressure (ie the star is in radiative equilibrium, Eddington's "standard model").

For a nonreletavistic degenerate electron gas Pe goes as ρ5/3 like an n=1.5 polytrope.

The n=1 case is a self-gravitating isothermal gas which can be used to approximate the distribution of stars in a globular cluster.
²