# Homework Help: 2nd order DE for planet's density

1. Apr 17, 2013

### dinospamoni

1. The problem statement, all variables and given/known data

I attached the problem because it's easier

2. Relevant equations

3. 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.

#### Attached Files:

File size:
135.2 KB
Views:
82
• ###### Screen capture00000000000000000 2013-04-17 at 9.39.50 PM.JPG
File size:
78 KB
Views:
98
2. Apr 18, 2013

### SteamKing

Staff Emeritus
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).