I have a radial Schrödinger equation for a particle in Coulomb potential:
$$i\partial_t f(r,t)=-\frac1{r^2}\partial_r\left(r^2\partial_r f(r,t)\right)-\frac2rf(r,t)$$
with initial condition
$$f(r,0)=e^{-r^2}$$
and boundary conditions
$$\begin{cases} |f(0,t)|<\infty\\ |f(\infty,t)|<\infty. \end{cases}$$
Trying to solve it, I couldn't come up to any analytical solution, so I tried to solve it numerically.
Simplest what I thought of was finite differences method. But while I can limit domain to make it finite, imposing zero Dirichlet condition at $r=A$ for some $A$, I would need to somehow impose the condition of regularity at $r=0$, where $f$ doesn't have to be neither zero, nor non-zero in general. I don't know how to do this with finite differences.
Another approach I tried was to expand the initial condition in eigenfunctions of the Hamiltonian operator (the RHS of the PDE) and then approximate the solution taking finite number of eigenstates into account. But the expansion appeared to converge extremely slowly, and after taking 200 bound eigenstates (simple because of closed-form solution in terms of Laguerre polynomials) and 70 eigenstates of continuous spectrum (taking those of them which vanish at $r=A$, so as to impose zero boundary condition at $A$; had $A=10$), I still got nothing similar to initial function.
So, the question is: is there any explicit solution for this IBVP (be it closed-form one or in some sort of series, but necessarily explicit and fast convergent)? If no, how can it be solved numerically?
Regarding the regularity condition when applying finite differences, some authors make the following approach:
Consider the RHS of the equation at $r \to 0 $ and compute the limit with the help of L'Hôpital's rule:
$$\lim_{r\to 0} \left(- \frac{1}{r^2} \partial_r (r^2 f_r) - \frac{2}{r} f \right) = \lim_{r\to 0} \left( - f_{rr} - \frac{2}{r} f_r - \frac{2}{r} f \right) = \lim_{r\to 0} \left( -f_{rr} - 2 f_{rr} - 2 f_r \right), $$
and hence you have:
$$ - \frac{1}{r^2} \partial_r (r^2 f_r) - \frac{2}{r} f \approx -3 f_{rr} - 2 f_r.$$
Now, you may discretize your equation at $i = 0$, if $\, r_i = r_0 + i \Delta r$, using this formula, avoiding the geometrical singularity.
Although this is a pretty "rough" way to approximate both the Laplacian and the source term, it's quite well known when applying a finite difference scheme.
I hope this helps you.
Cheers.