I have the following ODE for a function $F(x)$: $F''-\frac{1}{x}F'-aF=0$ with the following boundary conditions: $F(x\to0) = 1$, $F(x\to\infty)=0$. It can be solved analytically: $F = \sqrt{a}xK_1(\sqrt{a}x)$, where $K_1$ is a modified Bessel function. However, I want to solve it numerically, because my original equation is more difficult. The question is: how to specify boundary conditions?
I tried to implement this solution. However, it seems that it won't work, because it gives Power::infy: Infinite expression 1/0. encountered
error, which, I suppose, is connected with the fact that $F'(x) \sim \frac{1}{x}$ when $x\to 0$ (this limit can be obtained from the exact solution).
So, how to specify boundary conditions in this case?