I want to get the differential solution numerically. I used wolfram alpha. here is the link.
I tried this code on the Mathematica file.
sols4 = NDSolve[{x''[
r] + (1/r) x'[r] - (0.5/r^2) Sin[2 x[r]] + (2/r) Sin[x[r]]^2 -
0.2 Sin[x[r]] - Sin[2 x[r]] == 0, x[0.00001] == Pi,
x'[0.00001] == -1.1024724270140055}, x[r], {r, 0.00001, 100},
Method -> "BDF"];
Plot[Evaluate[x[r] /. sols4], {r, 0.00001, 100}]
It makes me able to get the solution. But I also need a parametric plot as mentioned in wolfram alpha. How I can have that plot? Additionally, as I am using a shooting method and I need a solution to be zero at infinity. Can anyone tell me how I can avoid oscillation at large distances?
Thanks.
ParametricPlot[{x[r] /. First@sols4, D[x[r] /. First@sols4, r]} // Evaluate, {r, 0.00001, 100}]
$\endgroup$r
that you are trying to match. My guess is that you are trying to match a separatrix at large `r', which typically is difficult but possible numerically. $\endgroup$