I would like to create the projection of a solution in plane from the differential equation set solution. However, the way I did it is not as I would like it, it does not have a smoothness.
Here's the method I used:
eps = 10^-10; end = 10;
sol:= NDSolve[{g'[r] == a[r]*g[r]/r, a'[r]/r == g[r]^2 - 1, a[eps] == 1,
g[end] == 1},{a[r], g[r]}, {r, eps, end}, Method -> {"Shooting",
"StartingInitialConditions" -> {a[end] == eps, g[end] == (1 - eps)}}]
Plot[Evaluate[a[r] /. sol], {r, eps, end}, PlotRange -> All]
The original topic for this EDO solution is here: "https://mathematica.stackexchange.com/a/179911/59596".
I have extracted the data for a table and, then, I tried to make the projected plot on the plane:
data = Table[Evaluate[a[r] /. sol], {r, 1, 10}]}
fR = Interpolation[data];
DensityPlot[fR[Sqrt[x^2 + y^2]], {x, -5, 5}, {y, -5, 5},ColorFunction -> GrayLevel]
Is there a better way to do this? Thanks for any help.