Frobenius solution to the hypergeometric equation
# 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 x = 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)=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

    $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}-(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$

That is,

    $\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}-(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$

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}\\&\qquad -(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}\\&\qquad +\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,

    $c_{1}=0,c_{2}=1-\gamma$

Also, from the rest of the terms, we have

    $((r+c)(r+c-1)+\gamma (r+c))a_{r}+(-(r+c-1)(r+c-2)-(1+\alpha +\beta )(r+c-1)-\alpha \beta )a_{r-1}=0$

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 &=(r+c-1)(r+c+\alpha -1)+(r+c-1)\beta +\alpha \beta \\&=(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 )(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 (this reduces to studying the nature of the parameter γ: whether it is 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 \left((c+\alpha )(c+\alpha +1)\cdots (c+\alpha +r-1)\right)=\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}\left(\ln(c+\alpha +k)+\ln(c+\beta +k)-2\ln(c+1+k)\right)\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}+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**

The value of $\gamma$ is $\gamma =0,-1,-2,\cdots$. To begin with, we shall simplify matters by concentrating a particular value of $\gamma$ and generalise the result at a later stage. We shall use the value $\gamma =-2$. The indicial equation has a root at $c=0$, and we see from the recurrence relation

$a_{r}={\frac {(r+c+\alpha -1)(r+c+\beta -1)}{(r+c)(r+c-3)}}a_{r-1},$

that when $r=3$ that that denominator has a factor $c$ which vanishes when $c=0$. In this case, a solution can be obtained by putting $a_{0}=b_{0}c$ where $b_{0}$ is a constant.

With this substitution, the coefficients of $x^{r}$ vanish when $c=0$ and $r<3$. The factor of $c$ in the denominator of the recurrence relation cancels with that of the numerator when $r\geq 3$. Hence, our solution takes the form

$y_{1}={\frac {b_{0}}{(-2)\times (-1)}}\left({\frac {(\alpha )_{3}(\beta )_{3}}{(3!0!}}x^{3}+{\frac {(\alpha )_{4}(\beta )_{4}}{4!1!}}x^{4}+{\frac {(\alpha )_{5}(\beta )_{5}}{5!2!}}x^{5}+\cdots \right)$

$={\frac {b_{0}}{(-2)_{2}}}\sum _{r=3}^{\infty }{\frac {(\alpha )_{r}(\beta )_{r}}{r!(r-3)!}}x^{r}={\frac {b_{0}}{(-2)_{2}}}{\frac {(\alpha )_{3}(\beta )_{3}}{3!}}\sum _{r=3}^{\infty }{\frac {(\alpha +3)_{r-3}(\beta +3)_{r-3}}{(1+3)_{r-3}(r-3)!}}x^{r}.$

If we start the summation at $r=0$ rather than $r=3$ we see that

$y_{1}=b_{0}{\frac {(\alpha )_{3}(\beta )_{3}}{(-2)_{2}\times 3!}}x^{3}{_{2}F_{1}}(\alpha +3,\beta +3;(1+3);x).$

The result (as we have written it) generalises easily. For $\gamma =1+m$, with $m=1,2,3,\cdots$ then

$y_{1}=b_{0}{\frac {(\alpha )_{m}(\beta )_{m}}{(1-m)_{m-1}\times m!}}x^{m}{_{2}F_{1}}(\alpha +m,\beta +m;(1+m);x).$

Obviously, if $\gamma =-2$, then $m=3$. The expression for $y_{1}(x)$ we have just given looks a little inelegant since we have a multiplicative constant apart from the usual arbitrary multiplicative constant $b_{0}$. Later, we shall see that we can recast things in such a way that this extra constant never appears

The other root to the indicial equation is $c=1-\gamma =3$, but this gives us (apart from a multiplicative constant) the same result as found using $c=0$. This means we must take the partial derivative (w.r.t. $c$) of the usual trial solution in order to find a second independent solution. If we define the linear operator $L$ as

$L=x(1-x){\frac {d^{2}}{dx^{2}}}-(\alpha +\beta +1)x{\frac {d}{dx}}+\gamma {\frac {d}{dx}}-\alpha \beta ,$

then since $\gamma =-2$ in our case,

$Lc\sum _{r=0}^{\infty }b_{r}(c)x^{r}=b_{0}c^{2}(c-3).$

(We insist that $b_{0}\neq 0$.) Taking the partial derivative w.r.t $c$,

$L{\frac {\partial }{\partial c}}c\sum _{r=0}^{\infty }b_{r}(c)x^{r+c}=b_{0}(3c^{2}-6c).$

Note that we must evaluate the partial derivative at $c=0$ (and not at the other root $c=3$). Otherwise the right hand side is non-zero in the above, and we do not have a solution of $Ly(x)=0$. The factor $c$ is not cancelled for $r=0,1$ and $r=2$. This part of the second independent solution is

${\bigg{\frac {\partial }{\partial c}}b_{0}{\biggc+c{\frac {(c+\alpha )(c+\beta )}{(c+1)(c-2)}}x+c{\frac {(c+\alpha )(c+\alpha +1)(c+\beta )(c+\beta +1)}{(c+1)(c+2)(c-2)(c-1)}}x^{2}{\bigg )}{\bigg ]}{\bigg \vert }_{c=0}.$ $=b_{0}\left(1+{\frac {\alpha \beta }{1!\times (-2)}}x+{\frac {\alpha (\alpha +1)\beta (\beta +1)}{2!\times (-2)\times (-1)}}x^{2}\right)=b_{0}\sum _{r=0}^{3-1}{\frac {(\alpha )_{r}(\beta )_{r}}{r!(1-3)_{r}}}x^{r}.$

Now we can turn our attention to the terms where the factor $c$ cancels. First

$cb_{3}={\frac {b_{0}}{(c-1)(c-2)}}{\cancel {c}}{\frac {(c+\alpha )(c+\alpha +1)(c+\alpha +2)(c+\beta )(c+\beta +1)(c+\beta +2)}{{\cancel {c}}(c+1)(c+2)(c+3)}}.$

After this, the recurrence relations give us

$cb_{4}=cb_{3}(c){\frac {(c+\alpha +3)(c+\beta +3)}{(c+1)(c+4))}}.$

$cb_{5}=cb_{3}(c){\frac {(c+\alpha +3)(c+\alpha +4)(c+\beta +3)(c+\beta +4))}{(c+2)(c+1)(c+5)(c+4)}}.$

So, if $r\geq 3$ we have

$cb_{r}={\frac {b_{0}}{(c-1)(c-2)}}{\frac {(c+\alpha )_{r}(c+\beta )_{r}}{(c+1)_{r-3}(c+1)_{r}}}.$

We need the partial derivatives

${\frac {\partial cb_{3}(c)}{\partial c}}{\bigg \vert }_{c=0}={\frac {b_{0}}{(1-3)_{3-1}}}{\frac {(\alpha )_{3}(\beta )_{3}}{0!3!}}{\bigg{\frac {1}{1}}+{\frac {1}{2}}+{\frac {1}{\alpha }}+{\frac {1}{\alpha +1}}+{\frac {1}{\alpha +2}}$ $+{\frac {1}{\beta }}+{\frac {1}{\beta +1}}+{\frac {1}{\beta +2}}-{\frac {1}{1}}-{\frac {1}{2}}-{\frac {1}{3}}{\bigg ]}.$

Similarly, we can write

${\frac {\partial cb_{4}(c)}{\partial c}}{\bigg \vert }_{c=0}={\frac {b_{0}}{(1-3)_{3-1}}}{\frac {(\alpha )_{4}(\beta )_{4}}{1!4!}}{\bigg{\frac {1}{1}}+{\frac {1}{2}}$ $+\sum _{k=0}^{k=3}{\frac {1}{\alpha +k}}+\sum _{k=0}^{k=3}{\frac {1}{\beta +k}}-{\frac {1}{1}}-{\frac {1}{2}}-{\frac {1}{3}}-{\frac {1}{4}}-{\frac {1}{1}}{\bigg ]},$

and

${\frac {\partial cb_{5}(c)}{\partial c}}{\bigg \vert }_{c=0}={\frac {b_{0}}{(1-3)_{3-1}}}{\frac {(\alpha )_{5}(\beta )_{5}}{2!5!}}{\bigg{\frac {1}{1}}+{\frac {1}{2}}$ $+\sum _{k=0}^{k=4}{\frac {1}{\alpha +k}}+\sum _{k=0}^{k=4}{\frac {1}{\beta +k}}-{\frac {1}{1}}-{\frac {1}{2}}-{\frac {1}{3}}-{\frac {1}{4}}-{\frac {1}{5}}-{\frac {1}{1}}-{\frac {1}{2}}{\bigg ]}.$

It becomes clear that for $r\geq 3$

${\frac {\partial cb_{r}(c)}{\partial c}}{\bigg \vert }_{c=0}={\frac {b_{0}}{(1-3)_{3-1}}}{\frac {(\alpha )_{r}(\beta )_{r}}{(r-3)!r!}}{\biggH_{2}+\sum _{k=0}^{k=r-1}{\frac {1}{\alpha +k}}+\sum _{k=0}^{k=r-1}{\frac {1}{\beta +k}}-H_{r}-H_{r-3}{\bigg ]}.$

Here, $H_{k}$ is the $k$th partial sum of the harmonic series, and by definition $H_{0}=0$ and $H_{1}=1$.

Putting these together, for the case $\gamma =-2$ we have a second solution

$y_{2}(x)=\log x\times {\frac {b_{0}}{(-2)_{2}}}\sum _{r=3}^{\infty }{\frac {(\alpha )_{r}(\beta )_{r}}{r!(r-3)!}}x^{r}+b_{0}\sum _{r=0}^{3-1}{\frac {(\alpha )_{r}(\beta )_{r}}{r!(1-3)_{r}}}x^{r}$

$+{\frac {b_{0}}{(-2)_{2}}}\sum _{r=3}^{\infty }{\frac {(\alpha )_{r}(\beta )_{r}}{(r-3)!r!}}{\biggH_{2}+\sum _{k=0}^{k=r-1}{\frac {1}{\alpha +k}}+\sum _{k=0}^{k=r-1}{\frac {1}{\beta +k}}-H_{r}-H_{r-3}{{\bigg ]}x^{r}}.$

The two independent solutions for $\gamma =1-m$ (where $m$ is a positive integer) are then

$y_{1}(x)={\frac {1}{(1-m)_{m-1}}}\sum _{r=m}^{\infty }{\frac {(\alpha )_{r}(\beta )_{r}}{r!(r-m)!}}x^{r}$

and

$y_{2}(x)=\log x\times y_{1}(x)+\sum _{r=0}^{m-1}{\frac {(\alpha )_{r}(\beta )_{r}}{r!(1-m)_{r}}}x^{r}$

$+{\frac {1}{(1-m)_{m-1}}}\sum _{r=m}^{\infty }{\frac {(\alpha )_{r}(\beta )_{r}}{(r-m)!r!}}{\biggH_{m-1}+\sum _{k=0}^{k=r-1}{\frac {1}{\alpha +k}}+\sum _{k=0}^{k=r-1}{\frac {1}{\beta +k}}-H_{r}-H_{r-m}{\bigg ]}x^{r}.$

The general solution is as usual $y(x)=Ay_{1}(x)+By_{2}(x)$ where $A$ and $B$ are arbitrary constants. Now, if the reader consults a ``standard solution" for this case, such as given by Abramowitz and Stegun in §15.5.21 (which we shall write down at the end of the next section) it shall be found that the $y_{2}$ solution we have found looks somewhat different from the standard solution. In our solution for $y_{2}$, the first term in the infinite series part of $y_{2}$ is a term in $x^{m}$. The first term in the corresponding infinite series in the standard solution is a term in $x^{m+1}$. The $x^{m}$ term is missing from the standard solution. Nonetheless, the two solutions are entirely equivalent.

**The "Standard" Form of the Solution γ ≤ 0**

The reason for the apparent discrepancy between the solution given above and the standard solution in Abramowitz and Stegun §15.5.21 is that there are an infinite number of ways in which to represent the two independent solutions of the hypergeometric ODE. In the last section, for instance, we replaced $a_{0}$ with $b_{0}c$. Suppose though, we are given some function $h(c)$ which is continuous and finite everywhere in an arbitrarily small interval about $c=0$. Suppose we are also given

$h(c)\vert _{c=0}\neq 0,$ and ${\frac {dh}{dc}}{\bigg \vert }_{c=0}\neq 0.$

Then, if instead of replacing $a_{0}$ with $b_{0}c$ we replace $a_{0}$ with $b_{0}h(c)c$, we still find we have a valid solution of the hypergeometric equation. Clearly, we have an infinity of possibilities for $h(c)$. There is however a ``natural choice" for $h(c)$. Suppose that $cb_{N}(c)=b_{0}f(c)$ is the first non zero term in the first $y_{1}(x)$ solution with $c=0$. If we make $h(c)$ the reciprocal of $f(c)$, then we won't have a multiplicative constant involved in $y_{1}(x)$ as we did in the previous section. From another point of view, we get the same result if we ``insist" that $a_{N}$ is independent of $c$, and find $a_{0}(c)$ by using the recurrence relations backwards.

For the first $(c=0)$ solution, the function $h(c)$ gives us (apart from multiplicative constant) the same $y_{1}(x)$ as we would have obtained using $h(c)=1$. Suppose that using $h(c)=1$ gives rise to two independent solutions $y_{1}(x)$ and $y_{2}(x)$. In the following we shall denote the solutions arrived at given some $h(c)\neq 1$ as ${\tilde {y}}_{1}(x)$ and ${\tilde {y}}_{2}(x)$.

The second solution requires us to take the partial derivative w.r.t $c$, and substituting the usual trial solution gives us

$L{\frac {\partial }{\partial c}}\sum _{r=0}^{\infty }ch(c)b_{r}x^{r+c}=b_{0}\left({\frac {dh}{dc}}c^{2}(c-1)+2ch(c)(c-1)+h(c)c^{2}\right).$

The operator $L$ is the same linear operator discussed in the previous section. That is to say, the hypergeometric ODE is represented as $Ly(x)=0$.

Evaluating the left hand side at $c=0$ will give us a second independent solution. Note that this second solution ${{\tilde {y}}_{2}}$ is in fact a linear combination of $y_{1}(x)$ and $y_{2}(x)$.

Any two independent linear combinations (${\tilde {y}}_{1}$ and ${\tilde {y}}_{2}$) of $y_{1}$ and $y_{2}$ are independent solutions of $Ly=0$.

The general solution can be written as a linear combination of ${\tilde {y}}_{1}$ and ${\tilde {y}}_{2}$ just as well as linear combinations of $y_{1}$ and $y_{2}$.

We shall review the special case where $\gamma =1-3=-2$ that was considered in the last section. If we ``insist" $a_{3}(c)=const.$, then the recurrence relations yield

$a_{2}=a_{3}{\frac {c(3+c)}{(2+\alpha +c)(2+\beta +c)}},$ $a_{1}=a_{3}{\frac {c(2+c)(3+c)(c-1)}{(1+\alpha +c)(2+\alpha +c)(1+\beta +c)(2+\beta +c)}},$

and

$a_{0}=a_{3}{\frac {c(1+c)(2+c)(3+c)(c-1)(c-2)}{(\alpha +c)_{3}(\beta +c)_{3}}}=b_{0}ch(c).$

These three coefficients are all zero at $c=0$ as expected. We have three terms involved in $y_{2}(x)$ by taking the partiial derivative w.r.t $c$, we denote the sum of the three terms involving these coefficients as $S_{3}$ where

$S_{3}=\left[{\frac {\partial }{\partial c}}\left(a_{0}(c)x^{c}+a_{1}(c)x^{c+1}+a_{2}(c)x^{c+2}\right)\right]_{c=0},$ $=a_{3}\left[{\frac {3\times 2\times 1(-2)\times (-1)}{(\alpha )_{3}(\beta )_{3}}}x^{3-3}+{\frac {3\times 2\times (-1)}{(\alpha +1)(\alpha +2)(\beta +1)(\beta +2)}}x^{3-2}+{\frac {3}{(\alpha +2)(\beta +2)_{1}}}x^{3-1}\right].$

The reader may confirm that we can tidy this up and make it easy to generalise by putting

$S_{3}=-a_{3}\sum _{r=1}^{3}{\frac {(-3)_{r}(r-1)!}{(1-\alpha -3)_{r}(1-\beta -3)_{r}}}x^{3-r}.$

Next we can turn to the other coefficients, the recurrence relations yield

$a_{4}=a_{3}{\frac {(3+c+\alpha )(3+c+\beta )}{(4+c)(1+c)}}$ $a_{5}=a_{3}{\frac {(4+c+\alpha )(3+c+\alpha )(4+c+\beta )(3+c+\alpha }{(5+c)(4+c)(1+c)(2+c)}}$

Setting $c=0$ gives us

${\tilde {y}}_{1}(x)=a_{3}x^{3}\sum _{r=0}^{\infty }{\frac {(\alpha +3)_{r}(\beta +3)_{r}}{(3+1)_{r}r!}}x^{r}=a_{3}x^{3}{_{2}F_{1}}(\alpha +3,\beta +3;(1+3);z).$

This is (apart from the multiplicative constant$(a)_{3}(b)_{3}/2$) the same as $y_{1}(x)$. Now, to find ${\tilde {y}}_{2}$ we need partial derivatives

${\frac {\partial a_{4}}{\partial c}}{\bigg \vert }_{c=0}=a_{3}{\bigg{\frac {(3+c+\alpha )(3+c+\beta )}{(4+c)(1+c)}}{\bigg{\frac {1}{\alpha +3+c}}+{\frac {1}{\beta +3+c}}-{\frac {1}{4+c}}-{\frac {1}{1+c}}{\bigg )}{\bigg ]}_{c=0}$

$=a_{3}{\frac {(3+\alpha )_{1}(3+\beta )_{1}}{(1+3)_{1}\times 1}}{\bigg{\frac {1}{\alpha +3}}+{\frac {1}{\beta +3}}-{\frac {1}{4}}-{\frac {1}{1}}{\bigg )}.$

Then

${\frac {\partial a_{5}}{\partial c}}{\bigg \vert }_{c=0}=a_{3}{\frac {(3+\alpha )_{2}(3+\beta )_{2}}{(1+3)_{2}\times 1\times 2}}{\bigg{\frac {1}{\alpha +3}}+{\frac {1}{\alpha +4}}+{\frac {1}{\beta +3}}+{\frac {1}{\beta +4}}-{\frac {1}{4}}-{\frac {1}{5}}-{\frac {1}{1}}-{\frac {1}{2}}{\bigg )}.$

we can re-write this as

${\frac {\partial a_{5}}{\partial c}}{\bigg \vert }_{c=0}=a_{3}{\frac {(3+\alpha )_{2}(3+\beta )_{2}}{(1+3)_{2}\times 2!}}{\bigg\sum _{k=0}^{1}\left({\frac {1}{\alpha +3+k}}+{\frac {1}{\beta +3+k}}\right)+\sum _{k=1}^{3}{\frac {1}{k}}-\sum _{k=1}^{5}{\frac {1}{k}}-{\frac {1}{1}}-{\frac {1}{2}}{\bigg ]}.$

The pattern soon becomes clear, and for $r=1,2,3,\cdots$

${\frac {\partial a_{r+3}}{\partial c}}{\bigg \vert }_{c=0}=a_{3}{\frac {(3+\alpha )_{r}(3+\beta )_{r}}{(1+3)_{r}\times r!}}{\bigg\sum _{k=0}^{r-1}\left({\frac {1}{\alpha +3+k}}+{\frac {1}{\beta +3+k}}\right)+\sum _{k=1}^{3}{\frac {1}{k}}-\sum _{k=1}^{r+3}{\frac {1}{k}}-\sum _{k=1}^{r}{\frac {1}{k}}{\bigg ]}.$

Clearly, for $r=0$,

${\frac {\partial a_{3}}{\partial c}}{\bigg \vert }_{c=0}=0.$

The infinite series part of ${\tilde {y}}_{2}$ is $S_{\infty }$, where

$S_{\infty }=x^{3}\sum _{r=1}^{\infty }{\frac {\partial a_{r+3}}{\partial c}}{\bigg \vert }_{c=0}x^{r}.$

Now we can write (disregarding the arbitrary constant) for$\gamma =1-m$

${\tilde {y}}_{1}(x)=x^{3}{_{2}F_{1}}(\alpha +m,\beta +m;1+m;z)$

${\tilde {y}}_{2}(x)={\tilde {y}}_{1}(x)\log x-\sum _{r=1}^{m}{\frac {(-m)_{r}(r-1)!}{(1-\alpha -m)_{r}(1-\beta -m)_{r}}}x^{m-r}.$ $+x^{3}\sum _{r=0}^{\infty }{\frac {(\alpha +m)_{r}(\beta +m)_{r}}{(1+m)_{r}\times r!}}{\bigg\sum _{k=0}^{r-1}\left({\frac {1}{\alpha +m+k}}+{\frac {1}{\beta +m+k}}\right)+\sum _{k=1}^{3}{\frac {1}{k}}-\sum _{k=1}^{r+3}{\frac {1}{k}}-\sum _{k=1}^{r}{\frac {1}{k}}{{\bigg ]}x^{r}}.$

Some authors prefer to express the finite sums in this last result using the digamma function $\psi (x)$. In particular, the following results are used

$H_{n}=\psi (n+1)+\gamma _{em}.$ Here, $\gamma _{em}=0.5772156649=\psi (1)$ is the Euler-Mascheroni constant. Also

$\sum _{k=0}^{n-1}{\frac {1}{z+k}}=\psi (z+n)-\psi (z).$

With these results we obtain the form given in Abramamowitz and Stegun §15.5.21, namely

${\tilde {y}}_{2}(x)={\tilde {y}}_{1}(x)\log x-\sum _{r=1}^{m}{\frac {(-m)_{r}(r-1)!}{(1-\alpha -m)_{r}(1-\beta -m)_{r}}}x^{m-r}.$ $+x^{3}\sum _{r=0}^{\infty }{\frac {(\alpha +m)_{r}(\beta +m)_{r}}{(1+m)_{r}\times r!}}{\bigg\psi (\alpha +r+m)-\psi (\alpha +m)+\psi (\beta +r+m)-\psi (\beta +m)$ $-\psi (r+1+m)-\psi (r+1)+\psi (1+m)+\psi (1){{\bigg ]}x^{r}}.$

**The Standard" Form of the Solution γ > 1**

In this section, we shall concentrate on the ``standard solution", and we shall not replace $a_{0}$ with $b_{0}(c-1+\gamma )$. We shall put $\gamma =1+m$ where $m=1,2,3,\cdots$. For the root $c=1-\gamma$ of the indicial equation we had

$A_{r}=\left[A_{r-1}{\frac {(r+\alpha -1+c)(r+\beta -1+c)}{(r+c)(r+c+\gamma -1)}}\right]_{c=1-\gamma }=A_{r-1}{\frac {(r+\alpha -\gamma )(r+\beta -\gamma )}{(r+1-\gamma )(r)}},$

where $r\geq 1$ in which case we are in trouble if $r=\gamma -1=m$. For instance, if $\gamma =4$, the denominator in the recurrence relations vanishes for $r=3$. We can use exactly the same methods that we have just used for the standard solution in the last section. We shall not (in the instance where $\gamma =4$) replace $a_{0}$ with $b_{0}(c+3)$ as this will not give us the standard form of solution that we are after. Rather, we shall ``insist" that $A_{3}=const.$ as we did in the standard solution for $\gamma =-2$ in the last section. (Recall that this defined the function $h(c)$ and that $a_{0}$ will now be replaced with $b_{0}(c+3)h(c)$.) Then we may work out the coefficients of $x^{0}$ to $x^{2}$ as functions of $c$ using the recurrence relations backwards. There is nothing new to add here, and the reader may use the same methods as used in the last section to find the results of§15.5.18 and §15.5.19, these are

$y_{1}={_{2}F_{1}}(\alpha ,\beta ;1+m;x),$

and

$y_{2}={_{2}F_{1}}(\alpha ,\beta ;1+m;x)\log x+z^{m}\sum _{r=1}^{\infty }{\frac {(\alpha )_{r}(\beta )_{r}}{r!(1+m)_{r}}}[\psi (\alpha +r)-\psi (\alpha )+\psi (\beta +k)-\psi (\beta )$ $-\psi (m+1+r)+\psi (m+1)-\psi (r+1)+\psi (1)]z^{r}-\sum _{k=1}^{m}{\frac {(k-1)!(-m)_{k}}{(1-\alpha )_{k}(1-\beta )_{k}}}z^{-r}.$

Note that the powers of $z$ in the finite sum part of $y_{2}(x)$ are now negative so that this sum diverges as $z\rightarrow 0\$$

## 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)}}=\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. 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. In the following we replaced each z by 1 - x.

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

To simplify notation from now on denote γ − α − β by Δ, therefore γ = Δ + α + β.

### Δ not an integer

    $y=A\left\{{_{2}F_{1}}(\alpha ,\beta ;-\Delta +1;1-x)\right\}+B\left\{(1-x)^{\Delta }{_{2}F_{1}}(\Delta +\beta ,\Delta +\alpha ;\Delta +1;1-x)\right\}$

### Δ = 0

    $y=C\left\{{_{2}F_{1}}(\alpha ,\beta ;1;1-x)\right\}+D\left\{\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}\right\}$

### Δ is a non-zero integer

**Δ > 0**


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

**Δ < 0**


    ${\begin{aligned}y&=G\left\{{\frac {(1-x)^{\Delta }}{(\Delta +1)_{-\Delta -1}}}\ \sum _{r=-\Delta }^{\infty }{\frac {(\Delta +\alpha )_{r}(\Delta +\beta )_{r}}{(1)_{r}(1)_{r+\Delta }}}(1-x)^{r}\right\}+\\&\quad +H\left\{\sum _{r=0}^{\infty }{\frac {(\Delta )(\Delta +\alpha )_{r}(\Delta +\beta )_{r}}{(\Delta +1)_{r}(1)_{r}}}\left(\ln(1-x)-{\frac {1}{\Delta }}+\sum _{k=0}^{r-1}\left({\frac {1}{\alpha +k}}+{\frac {1}{\beta +k}}-{\frac {1}{-\Delta +1+k}}-{\frac {1}{1+k}}\right)\right)(1-x)^{r}\right\}\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

    $\left(s^{3}-s^{2}\right)y''+\left((2-\gamma )s^{2}+(\alpha +\beta -1)s\right)y'-\alpha \beta y=0.$

Let

    ${\begin{aligned}P_{0}(s)&=-\alpha \beta ,\\P_{1}(s)&=(2-\gamma )s^{2}+(\alpha +\beta -1)s,\\P_{2}(s)&=s^{3}-s^{2}.\end{aligned}}$

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 is regular,

    ${\begin{aligned}\lim _{s\to a}{\frac {(s-a)P_{1}(s)}{P_{2}(s)}}&=\lim _{s\to 0}{\frac {(s-0)((2-\gamma )s^{2}+(\alpha +\beta -1)s)}{s^{3}-s^{2}}}\\&=\lim _{s\to 0}{\frac {(2-\gamma )s^{2}+(\alpha +\beta -1)s}{s^{2}-s}}\\&=\lim _{s\to 0}{\frac {(2-\gamma )s+(\alpha +\beta -1)}{s-1}}=1-\alpha -\beta .\\\lim _{s\to a}{\frac {(s-a)^{2}P_{0}(s)}{P_{2}(s)}}&=\lim _{s\to 0}{\frac {(s-0)^{2}(-\alpha \beta )}{s^{3}-s^{2}}}=\lim _{s\to 0}{\frac {(-\alpha \beta )}{s-1}}=\alpha \beta .\end{aligned}}$

Hence, both limits exist and s = 0 is a regular singular point. Therefore, we assume the solution takes the form

    $y=\sum _{r=0}^{\infty }{a_{r}s^{r+c}}$

with $a_0$ ≠ 0. Hence,

    ${\begin{aligned}y'&=\sum \limits _{r=0}^{\infty }{a_{r}(r+c)s^{r+c-1}}\\y''&=\sum \limits _{r=0}^{\infty }{a_{r}(r+c)(r+c-1)s^{r+c-2}}\end{aligned}}$

Substituting in the modified hypergeometric equation we get

    $\left(s^{3}-s^{2}\right)y''+\left((2-\gamma )s^{2}+(\alpha +\beta -1)s\right)y'-(\alpha \beta )y=0$

And therefore:

    $\left(s^{3}-s^{2}\right)\sum _{r=0}^{\infty }{a_{r}(r+c)(r+c-1)s^{r+c-2}}+\left((2-\gamma )s^{2}+(\alpha +\beta -1)s\right)\sum _{r=0}^{\infty }{a_{r}(r+c)s^{r+c-1}}-(\alpha \beta )\sum _{r=0}^{\infty }{a_{r}s^{r+c}}=0$

i.e.,

    $\sum _{r=0}^{\infty }{a_{r}(r+c)(r+c-1)s^{r+c+1}}-\sum _{r=0}^{\infty }{a_{r}(r+c)(r+c-1)x^{r+c}}+(2-\gamma )\sum _{r=0}^{\infty }{a_{r}(r+c)s^{r+c+1}}+(\alpha +\beta -1)\sum _{r=0}^{\infty }{a_{r}(r+c)s^{r+c}}-\alpha \beta \sum _{r=0}^{\infty }{a_{r}s^{r+c}}=0.$

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 _{r=1}^{\infty }{a_{r-1}(r+c-1)(r+c-2)s^{r+c}}-\sum _{r=0}^{\infty }{a_{r}(r+c)(r+c-1)s^{r+c}}+(2-\gamma )\sum _{r=1}^{\infty }{a_{r-1}(r+c-1)s^{r+c}}+\\&\qquad \qquad +(\alpha +\beta -1)\sum _{r=0}^{\infty }{a_{r}(r+c)s^{r+c}}-\alpha \beta \sum _{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 _{r=1}^{\infty }{a_{r-1}(r+c-1)(r+c-2)s^{r+c}}-\sum _{r=1}^{\infty }{a_{r}(r+c)(r+c-1)x^{r+c}}+\\&\qquad \qquad +(2-\gamma )\sum _{r=1}^{\infty }{a_{r-1}(r+c-1)s^{r+c}}+(\alpha +\beta -1)\sum _{r=1}^{\infty }{a_{r}(r+c)s^{r+c}}-\alpha \beta \sum _{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

    $\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$

Hence,

    $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}={\frac {\left((r+c-1)(r+c-\gamma )\right)}{\left((r+c)(r+c-\alpha -\beta )+\alpha \beta \right)}}a_{r-1}$

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},\quad \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}={\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}\quad \forall r\geq 0$

Hence, our assumed solution takes the form

    $y=a_{0}\sum _{r=0}^{\infty }{\frac {(c)_{r}(c+1-\gamma )_{r}}{(c+1-\alpha )_{r}(c+1-\beta )_{r}}}s^{r+c}$

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 _{r=0}^{\infty }{\frac {(c)_{r}(c+1-\gamma )_{r}}{(c+1-\alpha )_{r}(c+1-\beta )_{r}}}s^{r+c},$

we have

    ${\begin{aligned}y_{1}&=a_{0}\sum _{r=0}^{\infty }{\frac {(\alpha )_{r}(\alpha +1-\gamma )_{r}}{(1)_{r}(\alpha +1-\beta )_{r}}}s^{r+\alpha }=a_{0}s^{\alpha }\_{2}F_{1}(\alpha ,\alpha +1-\gamma ;\alpha +1-\beta ;s)\\y_{2}&=a_{0}\sum _{r=0}^{\infty }{\frac {(\beta )_{r}(\beta +1-\gamma )_{r}}{(\beta +1-\alpha )_{r}(1)_{r}}}s^{r+\beta }=a_{0}s^{\beta }\_{2}F_{1}(\beta ,\beta +1-\gamma ;\beta +1-\alpha ;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},$

    $y=A\left\{x^{-\alpha }\_{2}F_{1}\left(\alpha ,\alpha +1-\gamma ;\alpha +1-\beta ;x^{-1}\right)\right\}+B\left\{x^{-\beta }\_{2}F_{1}\left(\beta ,\beta +1-\gamma ;\beta +1-\alpha ;x^{-1}\right)\right\}$

### α − β = 0

Then $y_1$ = $y|_{c=α}.$ Since α = β, we have

    $y=a_{0}\sum _{r=0}^{\infty }{{\frac {(c)_{r}(c+1-\gamma )_{r}}{\left((c+1-\alpha )_{r}\right)^{2}}}s^{r+c}}$

Hence,

    ${\begin{aligned}y_{1}&=a_{0}\sum _{r=0}^{\infty }{{\frac {(\alpha )_{r}(\alpha +1-\gamma )_{r}}{(1)_{r}(1)_{r}}}s^{r+\alpha }}=a_{0}s^{\alpha }\_{2}F_{1}(\alpha ,\alpha +1-\gamma ;1;s)\\y_{2}&=\left.{\frac {\partial y}{\partial c}}\right|_{c=\alpha }\end{aligned}}$

To calculate this derivative, let

    $M_{r}={\frac {(c)_{r}(c+1-\gamma )_{r}}{\left((c+1-\alpha )_{r}\right)^{2}}}$

Then using the method in the case γ = 1 above, we get

    ${\frac {\partial M_{r}}{\partial c}}={\frac {(c)_{r}(c+1-\gamma )_{r}}{\left((c+1-\alpha )_{r}\right)^{2}}}\sum _{k=0}^{r-1}\left({\frac {1}{c+k}}+{\frac {1}{c+1-\gamma +k}}-{\frac {2}{c+1-\alpha +k}}\right)$

Now,

    ${\begin{aligned}y&=a_{0}s^{c}\sum _{r=0}^{\infty }{\frac {(c)_{r}(c+1-\gamma )_{r}}{\left((c+1-\alpha )_{r}\right)^{2}}}s^{r}\\&=a_{0}s^{c}\sum _{r=0}^{\infty }{M_{r}s^{r}}\\&=a_{0}s^{c}\left(\ln(s)\sum _{r=0}^{\infty }{\frac {(c)_{r}(c+1-\gamma )_{r}}{\left((c+1-\alpha )_{r}\right)^{2}}}s^{r}+\sum _{r=0}^{\infty }{\frac {(c)_{r}(c+1-\gamma )_{r}}{\left((c+1-\alpha )_{r}\right)^{2}}}\left\{\sum _{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,

    ${\frac {\partial y}{\partial c}}=a_{0}s^{c}\sum _{r=0}^{\infty }{\frac {(c)_{r}(c+1-\gamma )_{r}}{\left((c+1-\alpha )_{r}\right)^{2}}}\left(\ln(s)+\sum _{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}$

Therefore:

    $y_{2}=\left.{\frac {\partial y}{\partial c}}\right|_{c=\alpha }=a_{0}s^{\alpha }\sum _{r=0}^{\infty }{\frac {(\alpha )_{r}(\alpha +1-\gamma )_{r}}{(1)_{r}(1)_{r}}}\left(\ln(s)+\sum _{k=0}^{r-1}\left({\frac {1}{\alpha +k}}+{\frac {1}{\alpha +1-\gamma +k}}-{\frac {2}{1+k}}\right)\right)s^{r}$

Hence, y = $C′y_1$ + $D′y_2.$ Let $C′a_0$ = C and $D′a_0$ = D. Noting that s = $x^{−1},$

    $y=C\left\{x^{-\alpha }_{2}F_{1}\left(\alpha ,\alpha +1-\gamma ;1;x^{-1}\right)\right\}+D\left\{x^{-\alpha }\sum _{r=0}^{\infty }{\frac {(\alpha )_{r}(\alpha +1-\gamma )_{r}}{(1)_{r}(1)_{r}}}\left(\ln \left(x^{-1}\right)+\sum _{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 _{r=0}^{\infty }{\frac {(c-\beta )(c)_{r}(c+1-\gamma )_{r}}{(c+1-\alpha )_{r}(c+1-\beta )_{r}}}s^{r+c}$

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}+\cdots \right)\\&={\frac {b_{0}}{(\beta +1-\alpha )_{\alpha -\beta -1}}}\sum _{r=\alpha -\beta }^{\infty }{\frac {(\beta )_{r}(\beta +1-\gamma )_{r}}{(1)_{r}(1)_{r+\beta -\alpha }}}s^{r}\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

    ${\frac {\partial M_{r}}{\partial c}}={\frac {(c-\beta )(c)_{r}(c+1-\gamma )_{r}}{(c+1-\alpha )_{r}(c+1-\beta )_{r}}}\left({\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)\right)$

Now,

    $y_{b}=b_{0}\sum _{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}s^{c}\sum _{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 +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}}}\left({\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)\right)s^{r}\end{aligned}}$

Hence,

    ${\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}}}\left(\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)\right)s^{r}$

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&=E\left\{{\frac {1}{(\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}\right\}+\\&\quad +F\left\{x^{-\alpha }\sum _{r=0}^{\infty }{\frac {(\alpha -\beta )(\alpha )_{r}(\alpha +1-\gamma )_{r}}{(1)_{r}(\alpha +1-\beta )_{r}}}\left(\ln \left(x^{-1}\right)+{\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)\right)x^{-r}\right\}\end{aligned}}$

**α − β < 0**

From the symmetry of the situation here, we see that

    ${\begin{aligned}y&=G\left\{{\frac {1}{(\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}\right\}+\\&\quad +H\left\{x^{-\beta }\sum _{r=0}^{\infty }{\frac {(\beta -\alpha )(\beta )_{r}(\beta +1-\gamma )_{r}}{(1)_{r}(\beta +1-\alpha )_{r}}}\left(\ln \left(x^{-1}\right)+{\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)\right)x^{-r}\right\}\end{aligned}}$
