A fourth-order Runge-Kutta integration of the Lane-Emden equation for polytropic index
PHYSICS · Multi-part · Fermi University Physics · Mathematical Methods for Physics · Astrophysics & Cosmology · Stellar structure, energy generation and evolution
Stars from the Inside, Ch Pressure against gravity: the equation of state, polytropes and the Lane-Emden equation
Problem
A fourth-order Runge-Kutta integration of the Lane-Emden equation for polytropic index n=2, started from the series solution θ=1−ξ2/6+nξ4/120 a short distance off the centre, gives near the first zero of θ: Step size h=0.10: θ(4.30)=0.0067, θ(4.40)=−0.0060. Step size h=0.05 (halved): θ(4.30)=0.0068, θ(4.40)=−0.0059.
((a)) For each step size, use linear interpolation between the two tabulated points to estimate ξ1, the first zero of θ. Do the two step sizes agree to three significant figures?
((b)) Using the more accurate (h=0.05) data, estimate the slope θ1′=dθ/dξ at ξ1 by a finite difference between the two tabulated points, and hence the mass constant −ξ12θ1′ and the central concentration ρc/ρˉ=−ξ1/(3θ1′).