0

I'm trying to solve the following ordinary differential equation numerically.

NDsolve[
  {f''[r] + 1/r f'[r] - 1/r^2 f[r] + 1/2 (1 -f[r]^2)f[r] == 0,
   f[0] == 0, f[Infinity] = 1}, 
  f[r],{r, 0, 10}]

I don't know how to handle this equation because of two problems:

  • singularity at the origin
  • boundary condition at infinity.

I would like to get an idea on how I should set up NDSolve under these circumstances.

m_goldberg
  • 107,779
  • 16
  • 103
  • 257
L. JIN
  • 41
  • 3

0 Answers0