Let $a \in {\mathbb C}$ and $b\in {\mathbb C}$ and let $n\ge 1$ be an integer.
Consider a following family of Ordinary Differential Equations (ODEs). We have:
\begin{equation} \frac{d^2 y(x)}{d x^2} - \frac{n^2}{4} (a-b)^4 \frac{P_n^{(2n-2)}(x)}{(x+a)^2(x+b)^{2n+2}} \cdot y(x)=0 \end{equation} where $P_n^{(2n-2)}(x)$ are a polynomials of order $2n-2$ in $x$ which read: \begin{eqnarray} P_n^{(2n-2)}(x) = \left\{ \begin{array}{rr} 1 & \mbox{if $\quad n=1$}\\ (a+b+2 x)^2 & \mbox{if $\quad n=2$}\\ (a^2+ a b+b^2+3(a+b)x+3 x^2)^2 & \mbox{if $\quad n=3$}\\ (a+b+2 x)^2(a^2+b^2+2(a+b)x+2 x^2)^2 & \mbox{if $\quad n=4$}\\ \vdots \end{array} \right. \end{eqnarray} as a matter of fact we have: \begin{equation} P_n^{(2n-2)}(x) =\frac{((x+a)^n - (x+b)^n)^2}{(a-b)^2} \end{equation} for $n=1,2,\cdots$. Now by using the algorithm described in my answer to How do I find a change of variables that reduces a linear 2nd order ODE to the Gaussian hypergeometric differential equation? I have found the fundamental solutions to those ODEs. They read: \begin{eqnarray} y(x) = C_1 \cdot \sqrt{\frac{(x+b)^{n+1}}{(x+a)^{n-1}}}W_{\frac{1}{2}, {\mathfrak A}_n}[\left( \frac{x+a}{x+b}\right)^n] + C_2 \cdot \sqrt{\frac{(x+b)^{n+1}}{(x+a)^{n-1}}}M_{\frac{1}{2}, {\mathfrak A}_n}[\left( \frac{x+a}{x+b}\right)^n] \end{eqnarray} Here the constants read ${\mathfrak A}_n = \sqrt{1+n^2}/(2 n)$ for $n=1,2,\cdots$ and $W$ and $M$ are the Whittaker functions https://en.wikipedia.org/wiki/Whittaker_function . Now the following Mathematica code "proves" the result:
In[322]:= a =.; b =.; x =.;
Table[FullSimplify[(D[#, {x, 2}] -
n^2/4 ( (a - b)^2 ((x + a)^n - (x + b)^n)^2)/((a + x)^2 (b +
x)^(2 n + 2)) #) & /@ {Sqrt[(b + x)^(n + 1)]/
Sqrt[((a + x)^(n - 1))]
WhittakerW[1/2, Sqrt[1 + n^2]/(2 n), ((x + a)/(x + b))^n],
Sqrt[(b + x)^(n + 1)]/ Sqrt[((a + x)^(n - 1))]
WhittakerM[1/2, Sqrt[1 + n^2]/(2 n), ((x + a)/(x + b))^n]}], {n,
1, 6}]
Out[323]= {{0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}}
Now I would love to know what other linear second order ODEs of the form above can be mapped onto hypergeometric functions by a suitable substitution.
By applying the same algorithm to the Bessel functions we get the following answer: \begin{equation} \frac{d^2 y(x)}{d x^2} -n^2(A b-a B)^2 \frac{\left(-B^{2 n}(A x+a)^{2n}+A^{2 n}(B x+b)^{2 n}\right)}{B^{2 n}(A x+a)^2(B x+b)^{2n+2}}\cdot y(x)=0 \end{equation} is solved by \begin{eqnarray} &&y(x)=\\ &&C_1\cdot \sqrt{(A x+a)(B x+b)} J_{\frac{\sqrt{1+(A/B)^{2 n}4 n^2}}{2 n}}\left[(\frac{A x+a}{B x+b})^n\right]+\\ && C_2\cdot \sqrt{(A x+a)(B x+b)} J_{-\frac{\sqrt{1+(A/B)^{2 n}4 n^2}}{2 n}}\left[(\frac{A x+a}{B x+b})^n\right] \end{eqnarray}
The result is checked by the following piece of code: