My doubt is related to the equivalence between solutions of the following Sturm-Liouville problem: \begin{equation} r^{2}f''(r) + 2rf'(r) + \{\omega^{2}r^{2} - [j(j+1)-|q|^{2})]\}f(r)=0\,,\label{SL1} \end{equation} where $r\in\mathbb{R}$ (actually $r\in [0,+\infty)$) and $j$ can take the values $j=|q|-1, |q|, |q|+1,...$(and so on). The boundary conditions (BC) are $f(r_{0})=0=f(r\to\infty)$.

It is relevant to stress that for $r<r_{0}$, where $r_{0}$ stands for a constant, this function f(r) is identically zero (by definition of my physical problem). Thus, in one hand I'm considering that the solution is given by $$f(r)=\begin{cases}0, \text{for } r<r_{0}\,,\\ f_{r_{0}}\,, \text{for } r>r_{0}\,,\end{cases}$$ where $f_{r_{0}}$ is the solution to my first eq. with the aforementioned BCs.

On the other hand, I could simply proceed with a simple change of variables such that $$\bar{r} = r - r_{0}\,,$$ which implies that my ODE turns out to be $$(\bar{r}+r_{0})^{2}f''(\bar{r}) + 2(\bar{r}+r_{0})f'(\bar{r}) + \{(\bar{r}+r_{0})^{2}\omega^{2} - [j(j+1)-|q|^{2}]f(\bar{r})\}=0\,,$$ where, now, primes denote derivative with respect to $\bar{r}$ and the BCs were shifted to $$f(\bar{r}=0)=0=f(\bar{r}\to\infty)\,.$$

My question is: Are these two solutions equivalent? Are there any problems related to my first "method"? I mean, when I find $f_{r_{0}}$ with the boundary condition applied to $r_{0}\neq 0$ I may have ignored the behavior of the function between the interval $0 \leq r < r_{0}$, right? This looks confusing since from definition I have a null function in this interval.

Thanks!