2nd order DE for planet's density

1 reply · 1K views · last reply
dinospamoni
Messages
90
Reaction score
0

Homework Statement



I attached the problem because it's easier

Homework Equations





The Attempt at a Solution



The main problem I have with this problem is trying to find the density as a function of radius.
I have been thinking for hours but can't come up with anything.

What I have for the n=0 question:
for clarity, I'm just using x

θ''+(2/x)θ' +1 = 0

is my equation and I'm using mathematica to numerically solve it.
 
Attachments
  • Printed homework problem sheet from SUNY Geneseo, problem 10 on the Lane-Emden equation for planetary density, with parts 10 through 14 and an associated Mathematica problem.
    Screen capture00000000000000000 2013-04-17 at 9.39.43 PM.JPG
    85.3 KB · Views: 440
  • Page of printed text from a physics problem on the Emden-Lane equation, listing steps a to e for using NDSolve in Mathematica to solve for a density profile.
    Screen capture00000000000000000 2013-04-17 at 9.39.50 PM.JPG
    49.6 KB · Views: 418
The variable theta is defined as the density of the body as a function of radius. Theta is not given explicitly in terms of r, but the values of theta are determined by solving the Lane-Emden ODE subject to the initial conditions specified in the text. As the text describes, the initial conditions themselves are not explicit, and the Lane-Emden equation must be solved in an iterative fashion while manipulating the initial conditions. Basically, follow the recipe given in the text and check the values of theta to see if they give a maximum value when r = 0 and a minimum value when r = R (the surface of the body).