# Ordinary Differential Equations/Frobenius Solution to the Hypergeometric Equation

In the following we solve the second-order differential equation called the hypergeometric differential equation using Frobenius method, named after Ferdinand Georg Frobenius. This is a method that uses the series solution for a differential equation, where we assume the solution takes the form of a series. This is usually the method we use for complicated ordinary differential equations.
The solution of the hypergeometric differential equation is very important. For instance, Legendre's differential equation can be shown to be a special case of the hypergeometric differential equation. Hence, by solving the hypergeometric differential equation, one may directly compare its solutions to get the solutions of Legendre's differential equation, after making the necessary substitutions. For more details, please check the hypergeometric differential equation
We shall prove that this equation has three singularities, namely at x = 0, x = 1 and around infinity. However, as these will turn out to be regular singular points, we will be able to assume a solution on the form of a series. Since this is a second-order differential equation, we must have two linearly independent solutions.
The problem however will be that our assumed solutions may or not be independent, or worse, may not even be defined (depending on the value of the parameters of the equation). This is why we shall study the different cases for the parameters and modify our assumed solution accordingly.

## The equation

Solve the hypergeometric equation around all singularities:
    $x(1-x)y''+\left\{\gamma -(1+\alpha +\beta )x\right\}y'-\alpha \beta y=0$

## Solution around x = 0

Let
    ${\begin{aligned}P_{0}(x)=-\alpha \beta ,&&P_{1}(x)=\gamma -(1+\alpha +\beta )x,&&P_{2}(x)=x(1-x)\end{aligned}}$
Then
    $P_{2}(0)=0,P_{2}(1)=0.\,$
Hence, x = 0 and x = 1 are singular points. Let's start with x = 0. To see if it is regular, we study the following limits:
    ${\begin{aligned}\lim _{x\to a}{\frac {(x-a)P_{1}(x)}{P_{2}(x)}}&=\lim _{x\to 0}{\frac {(x-0)(\gamma -(1+\alpha +\beta )x)}{x(1-x)}}=\lim _{x\to 0}{\frac {x(\gamma -(1+\alpha +\beta )x)}{x(1-x)}}=\gamma \\\lim _{x\to a}{\frac {(x-a)^{2}P_{0}(x)}{P_{2}(x)}}&=\lim _{x\to 0}{\frac {(x-0)^{2}(-\alpha \beta )}{x(1-x)}}=\lim _{x\to 0}{\frac {x^{2}(-\alpha \beta )}{x(1-x)}}=0\end{aligned}}$
Hence, both limits exist and x = 0 is a regular singular point. Therefore, we assume the solution takes the form
    $y=\sum _{r=0}^{\infty }a_{r}x^{r+c}$
with a$_0$ ≠ 0. Hence,
    ${\begin{aligned}y'=\sum _{r=0}^{\infty }a_{r}(r+c)x^{r+c-1}&&y''=\sum _{r=0}^{\infty }a_{r}(r+c)(r+c-1)x^{r+c-2}.\end{aligned}}$
Substituting these into the hypergeometric equation, we get
    ${\begin{aligned}&x\sum _{r=0}^{\infty }a_{r}(r+c)(r+c-1)x^{r+c-2}-x^{2}\sum _{r=0}^{\infty }a_{r}(r+c)(r+c-1)x^{r+c-2}+\gamma \sum _{r=0}^{\infty }a_{r}(r+c)x^{r+c-1}\\&\quad -(1+\alpha +\beta )x\sum _{r=0}^{\infty }a_{r}(r+c)x^{r+c-1}-\alpha \beta \sum _{r=0}^{\infty }a_{r}x^{r+c}=0\end{aligned}}$
That is,
    ${\begin{aligned}&\sum _{r=0}^{\infty }a_{r}(r+c)(r+c-1)x^{r+c-1}-\sum _{r=0}^{\infty }a_{r}(r+c)(r+c-1)x^{r+c}+\gamma \sum _{r=0}^{\infty }a_{r}(r+c)x^{r+c-1}\\&\quad -(1+\alpha +\beta )\sum _{r=0}^{\infty }a_{r}(r+c)x^{r+c}-\alpha \beta \sum _{r=0}^{\infty }a_{r}x^{r+c}=0\end{aligned}}$
In order to simplify this equation, we need all powers to be the same, equal to r + c - 1, the smallest power. Hence, we switch the indices as follows:
    ${\begin{aligned}&\sum _{r=0}^{\infty }a_{r}(r+c)(r+c-1)x^{r+c-1}-\sum _{r=1}^{\infty }a_{r-1}(r+c-1)(r+c-2)x^{r+c-1}+\gamma \sum _{r=0}^{\infty }a_{r}(r+c)x^{r+c-1}\\&\quad -(1+\alpha +\beta )\sum _{r=1}^{\infty }a_{r-1}(r+c-1)x^{r+c-1}-\alpha \beta \sum _{r=1}^{\infty }a_{r-1}x^{r+c-1}=0\end{aligned}}$
Thus, isolating the first term of the sums starting from 0 we get
    ${\begin{aligned}&a_{0}(c(c-1)+\gamma c)x^{c-1}+\sum _{r=1}^{\infty }a_{r}(r+c)(r+c-1)x^{r+c-1}-\sum _{r=1}^{\infty }a_{r-1}(r+c-1)(r+c-2)x^{r+c-1}\\&\quad +\gamma \sum _{r=1}^{\infty }a_{r}(r+c)x^{r+c-1}-(1+\alpha +\beta )\sum _{r=1}^{\infty }a_{r-1}(r+c-1)x^{r+c-1}-\alpha \beta \sum _{r=1}^{\infty }a_{r-1}x^{r+c-1}=0\end{aligned}}$
Now, from the linear independence of all powers of x, that is, of the functions 1, x, x$^2$, etc., the coefficients of x$^k$ vanish for all k. Hence, from the first term, we have
    $a_{0}(c(c-1)+\gamma c)=0\,$
which is the indicial equation. Since a$_0$ ≠ 0, we have
    $c(c-1+\gamma )=0.\,$
Hence,
    ${\begin{aligned}c_{1}=0&&c_{2}=1-\gamma \end{aligned}}$
Also, from the rest of the terms, we have
    ${\begin{aligned}&((r+c)(r+c-1)+\gamma (r+c))a_{r}\\&\quad +(-(r+c-1)(r+c-2)-(1+\alpha +\beta )(r+c-1)-\alpha \beta )a_{r-1}=0\end{aligned}}$
Hence,
    ${\begin{aligned}a_{r}&={\frac {(r+c-1)(r+c-2)+(1+\alpha +\beta )(r+c-1)+\alpha \beta }{(r+c)(r+c-1)+\gamma (r+c)}}a_{r-1}\\&={\frac {(r+c-1)(r+c+\alpha +\beta -1)+\alpha \beta }{(r+c)(r+c+\gamma -1)}}a_{r-1}\end{aligned}}$
But
    ${\begin{aligned}&(r+c-1)(r+c+\alpha +\beta -1)+\alpha \beta \\&\quad =(r+c-1)(r+c+\alpha -1)+(r+c-1)\beta +\alpha \beta \\&\quad =(r+c-1)(r+c+\alpha -1)+\beta (r+c+\alpha -1)\end{aligned}}$
Hence, we get the recurrence relation
    $a_{r}={\frac {(r+c+\alpha -1)(r+c+\beta -1)}{(r+c)(r+c+\gamma -1)}}a_{r-1},{\text{ for }}r\geq 1.$
Let's now simplify this relation by giving a$_r$ in terms of a$_0$ instead of a$_{r−1}$. From the recurrence relation (note: below, expressions of the form (u)$_r$ refer to the Pochhammer symbol).
    ${\begin{aligned}a_{1}&={\frac {(c+\alpha )(c+\beta )}{(c+1)(c+\gamma )}}a_{0}\\a_{2}&={\frac {(c+\alpha +1)(c+\beta +1)}{(c+2)(c+\gamma +1)}}a_{1}={\frac {(c+\alpha +1)(c+\alpha )(c+\beta +1)}{(c+2)(c+1)(c+\gamma )(c+\gamma +1)}}a_{0}={\frac {(c+\alpha )_{2}(c+\beta )_{2}}{(c+1)_{2}(c+\gamma )_{2}}}a_{0}\\a_{3}&={\frac {(c+\alpha +2)(c+\beta +2)}{(c+3)(c+\gamma +2)}}a_{2}={\frac {(c+\alpha )_{2}(c+\alpha +2)(c+\beta )_{2}(c+\beta +2}{(c+1)_{2}(c+3)(c+\gamma )_{2}(c+\gamma +2)}}a_{0}\\&={\frac {(c+\alpha )_{3}(c+\beta )_{3}}{(c+1)_{3}(c+\gamma )_{3}}}a_{0}\end{aligned}}$
As we can see,
    $a_{r}={\frac {(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}(c+\gamma )_{r}}}a_{0},{\text{ for }}r\geq 0$
Hence, our assumed solution takes the form
    $y=a_{0}\sum _{r=0}^{\infty }{\frac {(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}(c+\gamma )_{r}}}x^{r+c}.$
We are now ready to study the solutions corresponding to the different cases for c$_1$ − c$_2$ = γ − 1 (it should be noted that this reduces to study the nature of the parameter γ: whether it is an an integer or not).

## Analysis of the solution in terms of the difference γ − 1 of the two roots
### γ not an integer

Then y$_1$ = y|$_{c=0}$ and y$_2$ = y|$_{c=1−γ}$. Since
    $y=a_{0}\sum _{r=0}^{\infty }{\frac {(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}(c+\gamma )_{r}}}x^{r+c},$
we have
    ${\begin{aligned}y_{1}&=a_{0}\sum _{r=0}^{\infty }{\frac {(\alpha )_{r}(\beta )_{r}}{(1)_{r}(\gamma )_{r}}}x^{r}\\&=a_{0}\cdot {_{2}F_{1}}(\alpha ,\beta ;\gamma ;x)\\y_{2}&=a_{0}\sum _{r=0}^{\infty }{\frac {(\alpha +1-\gamma )_{r}(\beta +1-\gamma )_{r}}{(1-\gamma +1)_{r}(1-\gamma +\gamma )_{r}}}x^{r+1-\gamma }=a_{0}x^{1-\gamma }\sum _{r=0}^{\infty }{\frac {(\alpha +1-\gamma )_{r}(\beta +1-\gamma )_{r}}{(1)_{r}(2-\gamma )_{r}}}x^{r}\\&=a_{0}x^{1-\gamma }{_{2}F_{1}}(\alpha -\gamma +1,\beta -\gamma +1;2-\gamma ;x)\end{aligned}}$
Hence, $y=A'y_{1}+B'y_{2}.$ Let A′ a$_0$ = a and B′ a$_0$ = B. Then
    $y=A{_{2}F_{1}}(\alpha ,\beta ;\gamma ;x)+Bx^{1-\gamma }{_{2}F_{1}}(\alpha -\gamma +1,\beta -\gamma +1;2-\gamma ;x)\,$

### γ = 1

Then y$_1$ = y|$_{c=0}$. Since γ = 1, we have
    $y=a_{0}\sum _{r=0}^{\infty }{\frac {(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}^{2}}}x^{r+c}.$
Hence,
    ${\begin{aligned}y_{1}&=a_{0}\sum _{r=0}^{\infty }{\frac {(\alpha )_{r}(\beta )_{r}}{(1)_{r}(1)_{r}}}x^{r}=a_{0}{_{2}F_{1}}(\alpha ,\beta ;1;x)\\y_{2}&=\left.{\frac {\partial y}{\partial c}}\right|_{c=0}.\end{aligned}}$
To calculate this derivative, let
    $M_{r}={\frac {(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}^{2}}}.$
Then
    $\ln(M_{r})=\ln \left({\frac {(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}^{2}}}\right)=\ln(c+\alpha )_{r}+\ln(c+\beta )_{r}-2\ln(c+1)_{r}$
But
    $\ln(c+\alpha )_{r}=\ln {\bigl(c+\alpha )(c+\alpha +1)\cdots (c+\alpha +r-1){\bigr )}=\sum _{k=0}^{r-1}\ln(c+\alpha +k).$
Hence,
    ${\begin{aligned}\ln(M_{r})&=\sum _{k=0}^{r-1}\ln(c+\alpha +k)+\sum _{k=0}^{r-1}\ln(c+\beta +k)-2\sum _{k=0}^{r-1}\ln(c+1+k)\\&=\sum _{k=0}^{r-1}{\bigl\ln(c+\alpha +k)+\ln(c+\beta +k)-2\ln(c+1+k){\bigr )}\end{aligned}}$
Differentiating both sides of the equation with respect to c, we get:
    ${\frac {1}{M_{r}}}{\frac {\partial M_{r}}{\partial c}}=\sum _{k=0}^{r-1}\left({\frac {1}{c+\alpha +k}}+{\frac {1}{c+\beta +k}}-{\frac {2}{c+1+k}}\right).$
Hence,
    ${\frac {\partial M_{r}}{\partial c}}={\frac {(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}^{2}}}\sum _{k=0}^{r-1}\left({\frac {1}{c+\alpha +k}}+{\frac {1}{c+\beta +k}}-{\frac {2}{c+1+k}}\right).$
Now,
    $y=a_{0}x^{c}\sum _{r=0}^{\infty }{\frac {(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}^{2}}}x^{r}=a_{0}x^{c}\sum _{r=0}^{\infty }M_{r}x^{r}.$
Hence,
    ${\begin{aligned}{\frac {\partial y}{\partial c}}&=a_{0}x^{c}\ln(x)\sum _{r=0}^{\infty }{\frac {(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}^{2}}}x^{r}\\&\quad +a_{0}x^{c}\sum _{r=0}^{\infty }\left({\frac {(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}^{2}}}\left\{\sum _{k=0}^{r-1}\left({\frac {1}{c+\alpha +k}}+{\frac {1}{c+\beta +k}}-{\frac {2}{c+1+k}}\right)\right\}\right)x^{r}\\&=a_{0}x^{c}\sum _{r=0}^{\infty }{\frac {(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r})^{2}}}\left(\ln x+\sum _{k=0}^{r-1}\left({\frac {1}{c+\alpha +k}}+{\frac {1}{c+\beta +k}}-{\frac {2}{c+1+k}}\right)\right)x^{r}.\end{aligned}}$
For c = 0, we get
    $y_{2}=a_{0}\sum _{r=0}^{\infty }{\frac {(\alpha )_{r}(\beta )_{r}}{(1)_{r}^{2}}}\left(\ln x+\sum _{k=0}^{r-1}\left({\frac {1}{\alpha +k}}+{\frac {1}{\beta +k}}-{\frac {2}{1+k}}\right)\right)x^{r}.$
Hence, y = C′ y$_1$ + D′ y$_2$. Let C′ a$_0$ = C and D′ a$_0$ = D. Then
    $y=C{_{2}F_{1}}(\alpha ,\beta ;1;x)+D\sum _{r=0}^{\infty }{\frac {(\alpha )_{r}(\beta )_{r}}{(1)_{r}^{2}}}\left(\ln x+\sum _{k=0}^{r-1}\left({\frac {1}{\alpha +k}}+{\frac {1}{\beta +k}}-{\frac {2}{1+k}}\right)\right)x^{r}$

### γ an integer and γ ≠ 1
#### γ ≤ 0

From the recurrence relation
    $a_{r}={\frac {(r+c+\alpha -1)(r+c+\beta -1)}{(r+c)(r+c+\gamma -1)}}a_{r-1},$
we see that when c = 0 (the smaller root), a$_{1−γ}$ → ∞. Hence, we must make the substitution a$_0$ = b$_0$ (c - c$_i$), where c$_i$ is the root for which our solution is infinite. Hence, we take a$_0$ = b$_0$ c and our assumed solution takes the new form
    $y_{b}=b_{0}x^{c}\sum _{r=0}^{\infty }{\frac {c(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}(c+\gamma )_{r}}}x^{r}$
Then y$_1$ = y$_b$|$_{c=0}$. As we can see, all terms before
    ${\frac {c(c+\alpha )_{1-\gamma }(c+\beta )_{1-\gamma }}{(c+1)_{1-\gamma }(c+\gamma )_{1-\gamma }}}x^{1-\gamma }$
vanish because of the c in the numerator. Starting from this term however, the c in the numerator vanishes. To see this, note that
    $(c+\gamma )_{1-\gamma }=(c+\gamma )(c+\gamma +1)\cdots c.$
Hence, our solution takes the form
    ${\begin{aligned}y_{1}&=b_{0}\left({\frac {(\alpha )_{1-\gamma }(\beta )_{1-\gamma }}{(1)_{1-\gamma }(\gamma )_{-\gamma }}}x^{1-\gamma }+{\frac {(\alpha )_{2-\gamma }(\beta )_{2-\gamma }}{(1)_{2-\gamma }(\gamma )_{-\gamma }(1)}}x^{2-\gamma }+{\frac {(\alpha )_{3-\gamma }(\beta )_{3-\gamma }}{(1)_{3-\gamma }(\gamma )_{-\gamma }(1)(2)}}x^{3-\gamma }+\cdots \right)\\&={\frac {b_{0}}{(\gamma )_{-\gamma }}}\sum _{r=1-\gamma }^{\infty }{\frac {(\alpha )_{r}(\beta )_{r}}{(1)_{r}(1)_{r+\gamma -1}}}x^{r}.\end{aligned}}$
Now,
    $y_{2}=\left.{\frac {\partial y_{b}}{\partial c}}\right|_{c=1-\gamma }.$
To calculate this derivative, let
    $M_{r}={\frac {c(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}(c+\gamma )_{r}}}.$
Then following the method in the previous case, we get
    ${\frac {\partial M_{r}}{\partial c}}={\frac {c(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}(c+\gamma )_{r}}}\left\{{\frac {1}{c}}+\sum _{k=0}^{r-1}\left({\frac {1}{c+\alpha +k}}+{\frac {1}{c+\beta +k}}-{\frac {1}{c+1+k}}-{\frac {1}{c+\gamma +k}}\right)\right\}.$
Now,
    $y_{b}=b_{0}\sum {r=0}^{\infty }{\frac {c(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}(c+\gamma )_{r}}}x^{r+c}=b_{0}x^{c}\sum _{r=0}^{\infty }M_{r}x^{r}.$
Hence,
    ${\begin{aligned}{\frac {\partial y}{\partial c}}&=b_{0}x^{c}\ln(x)\sum _{r=0}^{\infty }{\frac {c(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}(c+\gamma )_{r}}}x^{r}\\&\quad +b_{0}x^{c}\sum _{r=0}^{\infty }{\frac {c(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}(c+\gamma )_{r}}}\left\{{\frac {1}{c}}+\sum _{k=0}^{r-1}\left({\frac {1}{c+\alpha +k}}+{\frac {1}{c+\beta +k}}-{\frac {1}{c+1+k}}-{\frac {1}{c+\gamma +k}}\right)\right\}x^{r}\end{aligned}}$
Hence,
    ${\begin{aligned}{\frac {\partial y}{\partial c}}=b_{0}x^{c}\sum _{r=0}^{\infty }&{\frac {c(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}(c+\gamma )_{r}}}{\Biggl\ln x+{\frac {1}{c}}+\\&\quad +\sum _{k=0}^{r-1}\left({\frac {1}{c+\alpha +k}}+{\frac {1}{c+\beta +k}}-{\frac {1}{c+1+k}}-{\frac {1}{c+\gamma +k}}\right){\Biggr )}x^{r}.\end{aligned}}$
At c = 1- γ, we get y$_2$. Hence, y = E′ y$_1$ + F′ y$_2$. Let E′ b$_0$ = E and F′ b$_0$ = F. Then
    ${\begin{aligned}y&={\frac {E}{(\gamma )_{-\gamma }}}\sum _{r=1-\gamma }^{\infty }{\frac {(\alpha )_{r}(\beta )_{r}}{(1)_{r}(1)_{r+\gamma -1}}}x^{r}\\&\quad {\begin{aligned}+Fx^{1-\gamma }\sum _{r=0}^{\infty }&{\frac {(1-\gamma )(\alpha +1-\gamma )_{r}(\beta +1-\gamma )_{r}}{(2-\gamma )_{r}(1)_{r}}}{\Biggl\ln x+{\frac {1}{1-\gamma }}+\\&+\sum _{k=0}^{r-1}\left({\frac {1}{\alpha +k+1-\gamma }}+{\frac {1}{\beta +k+1-\gamma }}-{\frac {1}{2+k-\gamma }}-{\frac {1}{1+k}}\right){\Biggr )}x^{r}.\end{aligned}}\end{aligned}}$

#### γ > 1

From the recurrence relation
    $a_{r}={\frac {(r+c+\alpha -1)(r+c+\beta -1)}{(r+c)(r+c+\gamma -1)}}a_{r-1},$
we see that when c = 1 - γ (the smaller root), a$_{γ−1}$ → ∞. Hence, we must make the substitution a$_0$ = b$_0$(c − c$_i$), where c$_i$ is the root for which our solution is infinite. Hence, we take a$_0$ = b$_0$(c + γ - 1) and our assumed solution takes the new form:
    $y_{b}=b_{0}x^{c}\sum _{r=0}^{\infty }{\frac {(c+\gamma -1)(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}(c+\gamma )_{r}}}x^{r}.$
Then y$_1$ = y$_b$|$_{c=1-γ}$. All terms before
    ${\frac {(c+\gamma -1)(c+\alpha )_{\gamma -1}(c+\beta )_{\gamma -1}}{(c+1)_{\gamma -1}(c+\gamma )_{\gamma -1}}}x^{\gamma -1}$
vanish because of the c + γ - 1 in the numerator. Starting from this term, however, the c + γ - 1 in the numerator vanishes. To see this, note that
    $(c+1)_{\gamma -1}=(c+1)(c+2)\cdots (c+\gamma -1).$
Hence, our solution takes the form
    ${\begin{aligned}y_{1}&=b_{0}x^{1-\gamma }\left({\frac {(\alpha +1-\gamma )_{\gamma -1}(\beta +1-\gamma )_{\gamma -1}}{(2-\gamma )_{\gamma -2}(1)_{\gamma -1}}}x^{\gamma -1}+{\frac {(\alpha +1-\gamma )_{\gamma }(\beta +1-\gamma )_{\gamma }}{(2-\gamma )_{\gamma -2}(1)(1)_{\gamma }}}x^{\gamma }+\cdots \right)\\&={\frac {b_{0}}{(2-\gamma )_{\gamma -2}}}x^{1-\gamma }\sum _{r=\gamma -1}^{\infty }{\frac {(\alpha +1-\gamma )_{r}(\beta +1-\gamma )_{r}}{(1)_{r}(1)_{r+1-\gamma }}}x^{r}.\end{aligned}}$
Now,
    $y_{2}=\left.{\frac {\partial y_{b}}{\partial c}}\right|_{c=0}.$
To calculate this derivative, let
    $M_{r}={\frac {(c+\gamma -1)(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}(c+\gamma )_{r}}}.$
Then following the method in the second case above,
    ${\begin{aligned}{\frac {\partial M_{r}}{\partial c}}&={\frac {(c+\gamma -1)(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}(c+\gamma )_{r}}}{\Biggl{\frac {1}{c+\gamma -1}}+\\&\qquad +\sum _{k=0}^{r-1}\left({\frac {1}{c+\alpha +k}}+{\frac {1}{c+\beta +k}}-{\frac {1}{c+1+k}}-{\frac {1}{c+\gamma +k}}\right){\Biggr )}\end{aligned}}$
Now,
    $y_{b}=b_{0}\sum _{r=0}^{\infty }{\frac {(c+\gamma -1)(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}(c+\gamma )_{r}}}x^{r+c}=b_{0}x^{c}\sum _{r=0}^{\infty }M_{r}x^{r}.$
Hence,
    ${\begin{aligned}{\frac {\partial y}{\partial c}}&=b_{0}x^{c}\ln(x)\sum _{r=0}^{\infty }{\frac {(c+\gamma -1)(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}(c+\gamma )_{r}}}x^{r}+\\&\qquad {\begin{aligned}+b_{0}x^{c}\sum _{r=0}^{\infty }&{\frac {(c+\gamma -1)(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}(c+\gamma )_{r}}}{\Biggl{\frac {1}{c+\gamma -1}}+\\&+\sum _{k=0}^{r-1}\left({\frac {1}{c+\alpha +k}}+{\frac {1}{c+\beta +k}}-{\frac {1}{c+1+k}}-{\frac {1}{c+\gamma +k}}\right){\Biggr )}x^{r}\end{aligned}}\\&{\begin{aligned}=b_{0}x^{c}\sum _{r=0}^{\infty }&{\frac {(c+\gamma -1)(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r}(c+\gamma )_{r}}}{\Biggl\ln x+{\frac {1}{c+\gamma -1}}+\\&+\sum _{k=0}^{r-1}\left({\frac {1}{c+\alpha +k}}+{\frac {1}{c+\beta +k}}-{\frac {1}{c+1+k}}-{\frac {1}{c+\gamma +k}}\right){\Biggr )}x^{r}.\end{aligned}}\end{aligned}}$
At c = 0 we get y$_2$. Hence, y = G′y$_1$ + H′y$_2$. Let G′b$_0$ = E and H′b$_0$ = F. Then
    ${\begin{aligned}y={\frac {G}{(2-\gamma )_{\gamma -2}}}&x^{1-\gamma }\sum _{r=\gamma -1}^{\infty }{\frac {(\alpha +1-\gamma )_{r}(\beta +1-\gamma )_{r}}{(1)_{r}(1)_{r+1-\gamma }}}x^{r}\\&{\begin{aligned}+H\sum _{r=0}^{\infty }&{\frac {(1-\gamma )(\alpha +1-\gamma )_{r}(\beta +1-\gamma )_{r}}{(2-\gamma )_{r}(1)_{r}}}{\Biggl\ln x+{\frac {1}{\gamma -1}}+\\&+\sum _{k=0}^{r-1}\left({\frac {1}{\alpha +k}}+{\frac {1}{\beta +k}}-{\frac {1}{1+k}}-{\frac {1}{\gamma +k}}\right){\Biggr )}x^{r}.\end{aligned}}\end{aligned}}$

## Solution around x = 1

Let us now study the singular point x = 1. To see if it is regular,
    ${\begin{aligned}&\lim _{x\to a}{\frac {(x-a)P_{1}(x)}{P_{2}(x)}}=\lim _{x\to 1}{\frac {(x-1)(\gamma -(1+\alpha +\beta )x)}{x(1-x)}}\\&\quad =\lim _{x\to 1}{\frac {-(\gamma -(1+\alpha +\beta )x)}{x}}=1+\alpha +\beta -\gamma \\&\lim _{x\to a}{\frac {(x-a)^{2}P_{0}(x)}{P_{2}(x)}}=\lim _{x\to 1}{\frac {(x-1)^{2}(-\alpha \beta )}{x(1-x)}}=\lim _{x\to 1}{\frac {(x-1)\alpha \beta }{x}}=0\end{aligned}}$
Hence, both limits exist and x = 1 is a regular singular point. Now, instead of assuming a solution on the form
    $y=\sum _{r=0}^{\infty }a_{r}(x-1)^{r+c},$
we will try to express the solutions of this case in terms of the solutions for the point x = 0. We proceed as follows: we had the hypergeometric equation
    $x(1-x)y''+(\gamma -(1+\alpha +\beta )x)y'-\alpha \beta y=0.\,$
Let z = 1 - x. Then
    ${\begin{aligned}&{\frac {dy}{dx}}={\frac {dy}{dz}}\times {\frac {dz}{dx}}=-{\frac {dy}{dz}}=-y'\\&{\frac {d^{2}y}{dx^{2}}}={\frac {d}{dx}}\left({\frac {dy}{dx}}\right)={\frac {d}{dx}}\left(-{\frac {dy}{dz}}\right)={\frac {d}{dz}}\left(-{\frac {dy}{dz}}\right)\times {\frac {dz}{dx}}={\frac {d^{2}y}{dz^{2}}}=y''\end{aligned}}$
Hence, the equation takes the form
    $z(1-z)y''+(\alpha +\beta -\gamma +1-(1+\alpha +\beta )z)y'-\alpha \beta y=0.\,$
Since z = 1 - x, the solution of the hypergeometric equation at x = 1 is the same as the solution for this equation at z = 0. But the solution at z = 0 is identical to the solution we obtained for the point x = 0, if we replace each γ by α + β - γ + 1. Hence, to get the solutions, we just make this substitution in the previous results. Note also that for x = 0, c$_1$ = 0 and c$_2$ = 1 - γ. Hence, in our case, c$_1$ = 0 while c$_2$ = γ - α - β. Let us now write the solutions. It should be noted in the following we replaced each z by 1 - x.

## Analysis of the solution in terms of the difference γ − α − β of the two roots
### γ − α − β not an integer

${\begin{aligned}y&=A\cdot {_{2}F_{1}}(\alpha ,\beta ;\alpha +\beta -\gamma +1;1-x)\\&\quad +B(1-x)^{\gamma -\alpha -\beta }{_{2}F_{1}}(\gamma -\alpha ,\gamma -\beta ;\gamma -\alpha -\beta +1;1-x)\end{aligned}}$

### γ − α − β = 0

${\begin{aligned}y&=C\cdot {_{2}F_{1}}(\alpha ,\beta ;1;1-x)\\&\quad +D\sum _{r=0}^{\infty }{\frac {(\alpha )_{r}(\beta )_{r}}{(1)_{r}^{2}}}\left(\ln(1-x)+\sum _{k=0}^{r-1}\left({\frac {1}{\alpha +k}}+{\frac {1}{\beta +k}}-{\frac {2}{1+k}}\right)\right)(1-x)^{r}\end{aligned}}$

### γ − α − β is an integer and γ − α − β ≠ 0
#### γ − α − β > 0

${\begin{aligned}y&={\frac {E}{(\alpha +\beta -\gamma +1)_{\gamma -\alpha -\beta -1}}}\sum _{r=1-\gamma }^{\infty }{\frac {(\alpha )_{r}(\beta )_{r}}{(1)_{r}(1)_{r+\alpha +\beta -\gamma }}}(1-x)^{r}+\\&\quad {\begin{aligned}+F(1-x)^{\gamma -\alpha -\beta }\sum _{r=0}^{\infty }&{\frac {(\gamma -\alpha -\beta )(\gamma -\beta )_{r}(\gamma -\alpha )_{r}}{(1+\gamma -\alpha -\beta )_{r}(1)_{r}}}{\Biggl\ln(1-x)+{\frac {1}{\gamma -\alpha -\beta }}+\\&+\sum _{k=0}^{r-1}\left({\frac {1}{k+\gamma -\beta }}+{\frac {1}{k+\gamma -\alpha }}-{\frac {1}{1+k+\gamma -\alpha -\beta }}-{\frac {1}{1+k}}\right){\Biggr )}(1-x)^{r}\end{aligned}}\end{aligned}}$

#### γ − α − β < 0

${\begin{aligned}y&={\frac {G}{(1+\gamma -\alpha -\beta )_{\alpha +\beta -\gamma -1}}}(1-x)^{\gamma -\alpha -\beta }\sum _{r=\alpha +\beta -\gamma }^{\infty }{\frac {(\gamma -\beta )_{r}(\gamma -\alpha )_{r}}{(1)_{r}(1)_{r+\gamma -\alpha -\beta }}}(1-x)^{r}+\\&\quad {\begin{aligned}+H\sum _{r=0}^{\infty }&{\frac {(\gamma -\alpha -\beta )(\gamma -\beta )_{r}(\gamma -\alpha )_{r}}{(1+\gamma -\alpha -\beta )_{r}(1)_{r}}}{\Biggl\ln(1-x)+{\frac {1}{\alpha +\beta -\gamma }}+\\&+\sum _{k=0}^{r-1}\left({\frac {1}{\alpha +k}}+{\frac {1}{\beta +k}}-{\frac {1}{1+k}}-{\frac {1}{\alpha +\beta -\gamma +1+k}}\right){\Biggr )}(1-x)^{r}\end{aligned}}\end{aligned}}$

## Solution around infinity

Finally, we study the singularity as x → ∞. Since we can't study this directly, we let x = s$^{−1}$. Then the solution of the equation as x → ∞ is identical to the solution of the modified equation when s = 0. We had
    ${\begin{aligned}&x(1-x)y''+\left\{\gamma -(1+\alpha +\beta )x\right\}y'-\alpha \beta y=0\\&{\frac {dy}{dx}}={\frac {dy}{ds}}\times {\frac {ds}{dx}}=-s^{^{2}}\times {\frac {dy}{ds}}=-s^{^{2}}y'\\&{\frac {d^{2}y}{dx^{2}}}={\frac {d}{dx}}\left({\frac {dy}{dx}}\right)={\frac {d}{dx}}\left(-s^{^{2}}\times {\frac {dy}{ds}}\right)={\frac {d}{ds}}\left(-s^{^{2}}\times {\frac {dy}{ds}}\right)\times {\frac {ds}{dx}}\\&\left((-2s)\times {\frac {dy}{ds}}+(-s^{2}){\frac {d^{2}y}{ds^{2}}}\right)\times (-s^{2})=2s^{3}y'+s^{4}y''\end{aligned}}$
Hence, the equation takes the new form
    ${\frac {1}{s}}\left(1-{\frac {1}{s}}\right)\left(2s^{3}y'+s^{4}y''\right)+\left(\gamma -(1+\alpha +\beta ){\frac {1}{s}}\right)(-s^{2}y')-\alpha \beta y=0$
which reduces to
    $(s^{3}-s^{2})y''+{\bigl(2-\gamma )s^{2}+(\alpha +\beta -1)s{\bigr )}y'-\alpha \beta y=0.$
Let
    $P_{0}(s)=-\alpha \beta ,\qquad P_{1}(s)=((2-\gamma )s^{2}+(\alpha +\beta -1)s),\qquad P_{2}(s)=(s^{3}-s^{2}).$
As we said, we shall only study the solution when s = 0. As we can see, this is a singular point since P$_2$(0) = 0. To see if it's regular,
    ${\begin{aligned}&{\underset {s\to a}{\mathop {\lim } }}\,{\frac {\left(s-a\right)P_{1}(s)}{P_{2}(s)}}={\underset {s\to 0}{\mathop {\lim } }}\,{\frac {\left(s-0\right)((2-\gamma )s^{2}+(\alpha +\beta -1)s)}{(s^{3}-s^{2})}}={\underset {s\to 0}{\mathop {\lim } }}\,{\frac {((2-\gamma )s^{2}+(\alpha +\beta -1)s)}{s^{2}-s}}\\&={\underset {s\to 0}{\mathop {\lim } }}\,{\frac {((2-\gamma )s+(\alpha +\beta -1))}{s-1}}=1-\alpha -\beta {\text{ }}{\text{. }}\\&{\underset {s\to a}{\mathop {\lim } }}\,{\frac {\left(s-a\right)^{2}P_{0}(s)}{P_{2}(s)}}={\underset {s\to 0}{\mathop {\lim } }}\,{\frac {\left(s-0\right)^{2}\left(-\alpha \beta \right)}{(s^{3}-s^{2})}}={\underset {x\to 0}{\mathop {\lim } }}\,{\frac {\left(-\alpha \beta \right)}{s-1}}=\alpha \beta {\text{ }}{\text{.}}\end{aligned}}$
Hence, both limits exist and s = 0 is a regular singular point. Therefore, we assume the solution takes the form
    $y=\sum \limits _{r=0}^{\infty }{a_{r}s^{r+c}}$
with a$_0$ ≠ 0.
Hence,
    $y'=\sum \limits _{r=0}^{\infty }{a_{r}(r+c)s^{r+c-1}}$ and $y''=\sum \limits _{r=0}^{\infty }{a_{r}(r+c)(r+c-1)s^{r+c-2}}.$
Substituting in the modified hypergeometric equation we get
    ${\begin{aligned}&(s^{3}-s^{2})y''+((2-\gamma )s^{2}+(\alpha +\beta -1)s)y'-\alpha \beta y=0\\&s^{3}\sum \limits _{r=0}^{\infty }{a_{r}(r+c)(r+c-1)s^{r+c-2}}-s^{2}\sum \limits _{r=0}^{\infty }{a_{r}(r+c)(r+c-1)x^{r+c-2}}\\&+(2-\gamma )s^{2}\sum \limits _{r=0}^{\infty }{a_{r}(r+c)s^{r+c-1}}+(\alpha +\beta -1)s\sum \limits _{r=0}^{\infty }{a_{r}(r+c)s^{r+c-1}}-\alpha \beta \sum \limits _{r=0}^{\infty }{a_{r}s^{r+c}}=0\end{aligned}}$
i.e.,
    ${\begin{aligned}\sum \limits _{r=0}^{\infty }&{a_{r}(r+c)(r+c-1)s^{r+c+1}}-\sum \limits _{r=0}^{\infty }{a_{r}(r+c)(r+c-1)x^{r+c}}\\&+(2-\gamma )\sum \limits _{r=0}^{\infty }{a_{r}(r+c)s^{r+c+1}}+(\alpha +\beta -1)\sum \limits _{r=0}^{\infty }{a_{r}(r+c)s^{r+c}}-\alpha \beta \sum \limits _{r=0}^{\infty }{a_{r}s^{r+c}}=0\end{aligned}}$
In order to simplify this equation, we need all powers to be the same, equal to r + c, the smallest power. Hence, we switch the indices as follows
    ${\begin{aligned}&\sum \limits _{r=1}^{\infty }{a_{r-1}(r+c-1)(r+c-2)s^{r+c}}-\sum \limits _{r=0}^{\infty }{a_{r}(r+c)(r+c-1)x^{r+c}}\\&+(2-\gamma )\sum \limits _{r=1}^{\infty }{a_{r-1}(r+c-1)s^{r+c}}+(\alpha +\beta -1)\sum \limits _{r=0}^{\infty }{a_{r}(r+c)s^{r+c}}-\alpha \beta \sum \limits _{r=0}^{\infty }{a_{r}s^{r+c}}=0\end{aligned}}$
Thus, isolating the first term of the sums starting from 0 we get
    ${\begin{aligned}&a_{0}\left\{-(c)(c-1)+(\alpha +\beta -1)(c)-\alpha \beta \right\}s^{c}+\sum \limits _{r=1}^{\infty }{a_{r-1}(r+c-1)(r+c-2)s^{r+c}}\\&-\sum \limits _{r=1}^{\infty }{a_{r}(r+c)(r+c-1)x^{r+c}}+(2-\gamma )\sum \limits _{r=1}^{\infty }{a_{r-1}(r+c-1)s^{r+c}}\\&+(\alpha +\beta -1)\sum \limits _{r=1}^{\infty }{a_{r}(r+c)s^{r+c}}-\alpha \beta \sum \limits _{r=1}^{\infty }{a_{r}s^{r+c}}=0\\\end{aligned}}$
Now, from the linear independence of all powers of s (i.e., of the functions 1, s, s$^2$, ..., the coefficients of s$^k$ vanish for all k. Hence, from the first term we have
    $a_{0}\left\{-(c)(c-1)+(\alpha +\beta -1)(c)-\alpha \beta \right\}=0$
which is the indicial equation. Since a$_0$ ≠ 0, we have
    $(c)(-c+1+\alpha +\beta -1)-\alpha \beta )=0.\,$
Hence, c$_1$ = α and c$_2$ = β.
Also, from the rest of the terms we have
    ${\begin{aligned}&\left\{(r+c-1)(r+c-2)+(2-\gamma )(r+c-1)\right\}a_{r-1}\\&+\left\{-(r+c)(r+c-1)+(\alpha +\beta -1)(r+c)-\alpha \beta \right\}a_{r}=0\end{aligned}}$
Hence,
    ${\begin{aligned}&a_{r}=-{\frac {\left\{(r+c-1)(r+c-2)+(2-\gamma )(r+c-1)\right\}}{\left\{-(r+c)(r+c-1)+(\alpha +\beta -1)(r+c)-\alpha \beta \right\}}}a_{r-1}\\&{\text{ }}={\frac {\left\{(r+c-1)(r+c-\gamma )\right\}}{\left\{(r+c)(r+c-\alpha -\beta )+\alpha \beta \right\}}}a_{r-1}\end{aligned}}$
But
    ${\begin{aligned}(r+c)(r+c-\alpha -\beta )+\alpha \beta &=(r+c-\alpha )(r+c)-\beta (r+c)+\alpha \beta \\&=(r+c-\alpha )(r+c)-\beta (r+c-\alpha ).\end{aligned}}$
Hence, we get the recurrence relation
    $a_{r}={\frac {(r+c-1)(r+c-\gamma )}{(r+c-\alpha )(r+c-\beta )}}a_{r-1},\,\forall r\geq 1$
Let's now simplify this relation by giving a$_r$ in terms of a$_0$ instead of a$_{r−1}$. From the recurrence relation,
    ${\begin{aligned}&a_{1}={\frac {(c)(c+1-\gamma )}{(c+1-\alpha )(c+1-\beta )}}a_{0}\\&a_{2}={\frac {(c+1)(c+2-\gamma )}{(c+2-\alpha )(c+2-\beta )}}a_{1}={\frac {(c+1)(c)(c+2-\gamma )(c+1-\gamma )}{(c+2-\alpha )(c+1-\alpha )(c+2-\beta )(c+1-\beta )}}a_{0}\\&={\text{ }}{\frac {(c)_{2}(c+1-\gamma )_{2}}{(c+1-\alpha )_{2}(c+1-\beta )_{2}}}a_{0}\end{aligned}}$
As we can see,
    $a_{r}={\frac {(c)_{r}(c+1-\gamma )_{r}}{(c+1-\alpha )_{r}(c+1-\beta )_{r}}}a_{0}{\text{ }}\forall {\text{r}}\geq {\text{0}}$
Hence, our assumed solution takes the form
    $y=a_{0}\sum \limits _{r=0}^{\infty }{\left({\frac {(c)_{r}(c+1-\gamma )_{r}}{(c+1-\alpha )_{r}(c+1-\beta )_{r}}}s^{r+c}\right)}$
We are now ready to study the solutions corresponding to the different cases for c$_1$ − c$_2$ = α − β.

## Analysis of the solution in terms of the difference α - β of the two roots
### α − β not an integer

Then y$_1$ = y|$_{c=α}$ and y$_2$ = y|$_{c=β}$. Since
    $y=a_{0}\sum \limits _{r=0}^{\infty }{\left({\frac {(c)_{r}(c+1-\gamma )_{r}}{(c+1-\alpha )_{r}(c+1-\beta )_{r}}}s^{r+c}\right)}$,
we have
    ${\begin{aligned}y_{1}&=a_{0}\sum \limits _{r=0}^{\infty }{\left({\frac {(\alpha )_{r}(\alpha +1-\gamma )_{r}}{(1)_{r}(\alpha +1-\beta )_{r}}}s^{r+\alpha }\right)}=a_{0}s_{2}^{\alpha }F_{1}(\alpha ,{\text{ }}\alpha +1-\gamma ;{\text{ }}\alpha +1-\beta ;{\text{ s)}}\\y_{2}&=a_{0}\sum \limits _{r=0}^{\infty }{\left({\frac {(\beta )_{r}(\beta +1-\gamma )_{r}}{(\beta +1-\alpha )_{r}(1)_{r}}}s^{r+\beta }\right)=a_{0}s_{2}^{\beta }F_{1}(\beta ,{\text{ }}\beta +1-\gamma ;{\text{ }}\beta +1-\alpha ;{\text{ s)}}}\end{aligned}}$
Hence, y = A′y$_1$ + B′y$_2$. Let A′a$_0$ = A and B′a$_0$ = B. Then, noting that s = x$^{-1}$,
    ${\begin{aligned}&y=Ax_{2}^{-\alpha }F_{1}(\alpha ,{\text{ }}\alpha +1-\gamma ;{\text{ }}\alpha +1-\beta ;{\text{ x}}^{-1})+Bx_{2}^{-\beta }F_{1}(\beta ,{\text{ }}\beta +1-\gamma ;{\text{ }}\beta +1-\alpha ;{\text{ x}}^{-1})\\\end{aligned}}$

### α − β = 0

Then y$_1$ = y|$_{c=α}$. Since α = β, we have
    $y=a_{0}\sum \limits _{r=0}^{\infty }{\left({\frac {(c)_{r}(c+1-\gamma )_{r}}{\left((c+1-\alpha )_{r}\right)^{2}}}s^{r+c}\right)}$
Hence,
    ${\begin{aligned}&y_{1}=a_{0}\sum \limits _{r=0}^{\infty }{\left({\frac {(\alpha )_{r}(\alpha +1-\gamma )_{r}}{(1)_{r}(1)_{r}}}s^{r+\alpha }\right)}=a_{0}s_{2}^{\alpha }F_{1}(\alpha ,{\text{ }}\alpha +1-\gamma ;{\text{ 1; s)}}\\&y_{2}={\frac {\partial y}{\partial c}}{\text{ at }}c=\alpha \end{aligned}}$
To calculate this derivative, let
    ${\begin{aligned}&M_{r}={\frac {(c)_{r}(c+1-\gamma )_{r}}{\left((c+1-\alpha )_{r}\right)^{2}}}\end{aligned}}$
Then using the method in the case γ = 1 above, we get
    ${\begin{aligned}&{\frac {\partial M_{r}}{\partial c}}={\frac {(c)_{r}(c+1-\gamma )_{r}}{\left((c+1-\alpha )_{r}\right)^{2}}}\left\{\sum \limits _{k=0}^{r-1}{\left({\frac {1}{c+k}}+{\frac {1}{c+1-\gamma +k}}-{\frac {2}{c+1-\alpha +k}}\right)}\right\}\\\end{aligned}}$
Now,
    ${\begin{aligned}y=a_{0}s^{c}\sum \limits _{r=0}^{\infty }{\left({\frac {(c)_{r}(c+1-\gamma )_{r}}{\left((c+1-\alpha )_{r}\right)^{2}}}s^{r}\right)}=a_{0}s^{c}\sum \limits _{r=0}^{\infty }{M_{r}s^{r}}\end{aligned}}$
Hence
    ${\begin{aligned}&=a_{0}s^{c}{\text{ ln(s)}}\sum \limits _{r=0}^{\infty }{\left({\frac {(c)_{r}(c+1-\gamma )_{r}}{\left((c+1-\alpha )_{r}\right)^{2}}}s^{r}\right)}\\&{\text{ }}+a_{0}s^{c}\sum \limits _{r=0}^{\infty }{\left({\frac {(c)_{r}(c+1-\gamma )_{r}}{\left((c+1-\alpha )_{r}\right)^{2}}}\left\{\sum \limits _{k=0}^{r-1}{\left({\frac {1}{c+k}}+{\frac {1}{c+1-\gamma +k}}-{\frac {2}{c+1-\alpha +k}}\right)}\right\}s^{r}\right)}\\\end{aligned}}$
Hence,
    ${\begin{aligned}&{\frac {\partial y}{\partial c}}=a_{0}s^{c}\sum \limits _{r=0}^{\infty }{\left(\left({\frac {(c)_{r}(c+1-\gamma )_{r}}{\left((c+1-\alpha )_{r}\right)^{2}}}\right)\left(\ln s+\sum \limits _{k=0}^{r-1}{\left({\frac {1}{c+k}}+{\frac {1}{c+1-\gamma +k}}-{\frac {2}{c+1-\alpha +k}}\right)}\right)s^{r}\right)}\\\end{aligned}}$
For c = α we get
    ${\begin{aligned}&y_{2}=a_{0}s^{\alpha }\sum \limits _{r=0}^{\infty }{\left(\left({\frac {(\alpha )_{r}(\alpha +1-\gamma )_{r}}{\left((1)_{r}\right)^{2}}}\right)\left(\ln s+\sum \limits _{k=0}^{r-1}{\left({\frac {1}{\alpha +k}}+{\frac {1}{\alpha +1-\gamma +k}}-{\frac {2}{1+k}}\right)}\right)s^{r}\right)}\\&\end{aligned}}$
Hence, y = C′y$_1$ + D′y$_2$. Let C′a$_0$ = C and D′a$_0$ = D. Noting that s = x$^{-1}$,
    $y=Cx_{2}^{-\alpha }F_{1}(\alpha ,\alpha +1-\gamma ;1;x^{-1})$
    $+Dx^{-\alpha }\sum \limits _{r=0}^{\infty }{\left(\left({\frac {(\alpha )_{r}(\alpha +1-\gamma )_{r}}{\left((1)_{r}\right)^{2}}}\right)\left(\ln x^{-1}+\sum \limits _{k=0}^{r-1}{\left({\frac {1}{\alpha +k}}+{\frac {1}{\alpha +1-\gamma +k}}-{\frac {2}{1+k}}\right)}\right)x^{-r}\right)}$

### α − β an integer and α − β ≠ 0
#### α − β > 0

From the recurrence relation
    $a_{r}={\frac {(r+c-1)(r+c-\gamma )}{(r+c-\alpha )(r+c-\beta )}}a_{r-1}$
we see that when c = β (the smaller root), a$_{α-β}$ → ∞. Hence, we must make the substitution a$_0$ = b$_0$(c − c$_i$), where c$_i$ is the root for which our solution is infinite. Hence, we take a$_0$ = b$_0$(c − β) and our assumed solution takes the new form
    $y_{b}=b_{0}\sum \limits _{r=0}^{\infty }{\left({\frac {(c-\beta )(c)_{r}(c+1-\gamma )_{r}}{(c+1-\alpha )_{r}(c+1-\beta )_{r}}}s^{r+c}\right)}$
Then y$_1$ = y$_b$|$_{c=β}$. As we can see, all terms before
    ${\frac {(c-\beta )(c)_{\alpha -\beta }(c+1-\gamma )_{\alpha -\beta }}{(c+1-\alpha )_{\alpha -\beta }(c+1-\beta )_{\alpha -\beta }}}s^{\alpha -\beta }$
vanish because of the c − β in the numerator.
But starting from this term, the c − β in the numerator vanishes. To see this, note that
    $(c+1-\alpha )_{\alpha -\beta }=(c+1-\alpha )(c+2-\alpha )\cdots (c-\beta ).$
Hence, our solution takes the form
    ${\begin{aligned}&y_{1}=b_{0}\left({\frac {(\beta )_{\alpha -\beta }(\beta +1-\gamma )_{\alpha -\beta }}{(\beta +1-\alpha )_{\alpha -\beta -1}(1)_{\alpha -\beta }}}s^{\alpha -\beta }+{\frac {(\beta )_{\alpha -\beta +1}(\beta +1-\gamma )_{\alpha -\beta +1}}{(\beta +1-\alpha )_{\alpha -\beta -1}(1)(1)_{\alpha -\beta +1}}}s^{\alpha -\beta +1}+...\right)\\&={\frac {b_{0}}{(\beta +1-\alpha )_{\alpha -\beta -1}}}\sum \limits _{r=\alpha -\beta }^{\infty }{\left({\frac {(\beta )_{r}(\beta +1-\gamma )_{r}}{(1)_{r}(1)_{r+\beta -\alpha }}}s^{r}\right)}\\&\\\end{aligned}}$
Now,
    $y_{2}=\left.{\frac {\partial y_{b}}{\partial c}}\right|_{c=\alpha }.$
To calculate this derivative, let
    $M_{r}={\frac {(c-\beta )(c)_{r}(c+1-\gamma )_{r}}{(c+1-\alpha )_{r}(c+1-\beta )_{r}}}.$
Then using the method in the case γ = 1 above we get
    ${\begin{aligned}{\frac {\partial M_{r}}{\partial c}}&={\frac {(c-\beta )(c)_{r}(c+1-\gamma )_{r}}{(c+1-\alpha )_{r}(c+1-\beta )_{r}}}{\Biggl{\frac {1}{c-\beta }}+\\&\qquad +\sum _{k=0}^{r-1}\left({\frac {1}{c+k}}+{\frac {1}{c+1-\gamma +k}}-{\frac {1}{c+1-\alpha +k}}-{\frac {1}{c+1-\beta +k}}\right){\Biggr )}\end{aligned}}$
Now,
    $y_{b}=b_{0}\sum \limits _{r=0}^{\infty }{\left({\frac {(c-\beta )(c)_{r}(c+1-\gamma )_{r}}{(c+1-\alpha )_{r}(c+1-\beta )_{r}}}s^{r+c}\right)}=b_{0}x^{c}\sum \limits _{r=0}^{\infty }{M_{r}s^{r}}$
Hence,
    ${\begin{aligned}{\frac {\partial y}{\partial c}}&=b_{0}s^{c}\ln(s)\sum _{r=0}^{\infty }{\frac {(c-\beta )(c)_{r}(c+1-\gamma )_{r}}{(c+1-\alpha )_{r}(c+1-\beta )_{r}}}s^{r}\\&\quad {\begin{aligned}+b_{0}s^{c}\sum _{r=0}^{\infty }&{\frac {(c-\beta )(c)_{r}(c+1-\gamma )_{r}}{(c+1-\alpha )_{r}(c+1-\beta )_{r}}}{\Biggl{\frac {1}{c-\beta }}+\\&+\sum _{k=0}^{r-1}\left({\frac {1}{c+k}}+{\frac {1}{c+1-\gamma +k}}-{\frac {1}{c+1-\alpha +k}}-{\frac {1}{c+1-\beta +k}}\right){\Biggr )}s^{r}\end{aligned}}\end{aligned}}$
Hence,
    ${\begin{aligned}{\frac {\partial y}{\partial c}}=b_{0}s^{c}\sum _{r=0}^{\infty }&{\frac {(c-\beta )(c)_{r}(c+1-\gamma )_{r}}{(c+1-\alpha )_{r}(c+1-\beta )_{r}}}{\Biggl\ln s+{\frac {1}{c-\beta }}+\\&+\sum _{k=0}^{r-1}\left({\frac {1}{c+k}}+{\frac {1}{c+1-\gamma +k}}-{\frac {1}{c+1-\alpha +k}}-{\frac {1}{c+1-\beta +k}}\right){\Biggr )}s^{r}\end{aligned}}$
At c = α we get y$_2$. Hence, y = E′y$_1$ + F′y$_2$. Let E′b$_0$ = E and F′b$_0$ = F. Noting that s = x$^{-1}$ we get
    ${\begin{aligned}y&={\frac {E}{(\beta +1-\alpha )_{\alpha -\beta -1}}}\sum _{r=\alpha -\beta }^{\infty }{\frac {(\beta )_{r}(\beta +1-\gamma )_{r}}{(1)_{r}(1)_{r+\beta -\alpha }}}x^{-r}\\&\quad {\begin{aligned}+Fx^{-\alpha }\sum _{r=0}^{\infty }&{\frac {(\alpha -\beta )(\alpha )_{r}(\alpha +1-\gamma )_{r}}{(1)_{r}(\alpha +1-\beta )_{r}}}{\Biggl\ln x^{-1}+{\frac {1}{\alpha -\beta }}\\&+\sum _{k=0}^{r-1}\left({\frac {1}{\alpha +k}}+{\frac {1}{\alpha +1+k-\gamma }}-{\frac {1}{1+k}}-{\frac {1}{\alpha +1+k-\beta }}\right){\Biggr )}x^{-r}\end{aligned}}\end{aligned}}$

#### α − β < 0

From the symmetry of the situation here, we see that
    ${\begin{aligned}y&={\frac {G}{(\alpha +1-\beta )_{\beta -\alpha -1}}}\sum _{r=\beta -\alpha }^{\infty }{\frac {(\alpha )_{r}(\alpha +1-\gamma )_{r}}{(1)_{r}(1)_{r+\alpha -\beta }}}x^{-r}\\&\quad {\begin{aligned}+Hx^{-\beta }\sum _{r=0}^{\infty }&{\frac {(\beta -\alpha )(\beta )_{r}(\beta +1-\gamma )_{r}}{(1)_{r}(\beta +1-\alpha )_{r}}}{\Biggl\ln x^{-1}+{\frac {1}{\beta -\alpha }}\\&+\sum _{k=0}^{r-1}\left({\frac {1}{\beta +k}}+{\frac {1}{\beta +1+k-\gamma }}-{\frac {1}{1+k}}-{\frac {1}{\beta +1+k-\alpha }}\right){\Biggr )}x^{-r}\end{aligned}}\end{aligned}}$

## Reference

* Ian Sneddon (1966). Special functions of mathematical physics and chemistry. OLIVER B. ISBN 978-0050013342.