and conservation of mass (recall M=ρV and dV=4πr²dr)
Rewrite (1) as M = (-r²/Gρ)dP/dR then (2) can be written
Which can be closed if we have, eg,
(remember the ratio of specific heats γ=cp/cv>1?)
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
or, since d/dr ρ1/n = (1/n)ρ1/n -1 dρ/dr,
We now have a simple OrdinaryDifferentialEquation with boundary conditions for a physical thing like a star
Now we introduce a dimensionless radius and density
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:
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 ξ=ξr 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, rearrange the Land-Emden equation as
Try Δξ=0.001 and to avoid blowup at ξ=0 for the first few steps use an expansion like
And HERE is an XLS starter kit... drag the columns down as far as neccesary to get θ=0 -- almost 7000 for an n=3 polytrope!
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.
²