Clearly, I don't have a great understanding of Mathematica, but I cannot figure out any way to find the roots of this equation. It is a non-linear ODE (Emden's Equation where n = 2). I just need to find the root of the equation so I can report the radius of the star/gas cloud. Can someone please enlighten me? I get this error every single time I do it.
The first argument to FindRoot should be a function. But n2 is not a function, it is a replacement rule. So try the following, it "converts" n2 to a function.
FindRoot
n2
FindRoot[y[x] /. n2, {x, 1}]
Works like a charm. Thanks a million!