How to numerically solve this nonlinear ODE? \(\displaystyle{u}{''}+{\frac{{{2}}}{{{r}}}}{u}'-{\frac{{{K}}}{{{\left({1}+{r}^{{2}}\right)}^{{2}}}}}{u}={u}^{{5}}\) with

fanairana7lu1

fanairana7lu1

Answered question

2022-04-08

How to numerically solve this nonlinear ODE?
u+2ruK(1+r2)2u=u5
with initial conditions u(0)=d>0 and u(0)=0.

Answer & Explanation

annieljcddj0

annieljcddj0

Beginner2022-04-09Added 15 answers

Step 1
In the limit r0 you get by mean value or L'Hopital
3u (0)Ku(0)=u(0)5.
Thus for some small interval around zero your solution reads as
u(r)=d+Kd+d56r2.
So start the interval at some positive smallish h with initial conditions
u(h)=d+Kd+d56h2,
u(h)=Kd+d53h
If necessary prepend the r=0 point to the solution arrays.

Videoad3u

Videoad3u

Beginner2022-04-10Added 15 answers

Step 1
If you're looking to investigate it numerically, perhaps try making the substitution
u1=u,
u2=dudr,
from which you get the system
du1dr=u2
du2dr=u15+dK(1+r2)2u1d2ru2
and then numerically solving using a Runge-Kutte method or similar approach. As mentioned by Lutz Lehmann you will have to consider the initial time step analytically via some other means due to the 1r term.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?