Derivation (Legendre equation)

The Legendre equation $$ \begin{align*} -\dd{x}\left((1-x^2) \dfd{y}{x}\right) = \lambda y, \qquad -1<x<1 \end{align*} $$ is a Sturm-Liouville problem with $p = 1-x^2$, $q=0$ and $w=1$. No boundary conditions are required since the endpoints are singular. Therefore the eigenfunctions are orthogonal and complete in the vector space $V = C^2[-1,1]$ equipped with $$ \begin{align*} \langle f,g\rangle = \int_{-1}^{+1} f(x) g(x) \d x. \end{align*} $$

Expanding the equation, $$ \begin{align*} -(1-x^2)y'' + 2x y' - \lambda y &= 0 \end{align*} $$ Since $x=0$ is an ordinary point of the equation, we seek for series solution of the form $$ \begin{align*} y(x) = \sum_{n=0}^{\infty} a_n x^n. \end{align*} $$

Substituting, $$ \begin{align*} -\sum_{n=0}^{\infty} \lambda a_n x^n &= \dd{x}\left((1-x^2) \sum_{n=0}^{\infty} (n+1)a_{n+1} x^{n}\right) \\ &= \dd{x}\left(a_1 + 2a_2 x + \sum_{n=2}^{\infty} \big((n+1)a_{n+1} - (n-1)a_{n-1}\big)x^n\right) \\ &= 2a_2 + \sum_{n=1}^{\infty} \big((n+1)(n+2) a_{n+2} - n(n+1) a_{n}\big) x^n \\ &= \sum_{n=0}^{\infty} \big((n+1)(n+2) a_{n+2} - n(n+1)a_n\big) x^n \\ \implies -\lambda a_n &= (n+1)(n+2) a_{n+2} - n(n+1)a_n \\ a_{n+2} &= \frac{n(n+1)-\lambda}{(n+1)(n+2)} a_n. \end{align*} $$ Therefore we obtain two linearly independent solutions $$ \begin{align*} y_0 &= a_0 \left(1 + (-\lambda) \frac{x^2}{2!} + (-\lambda)(6-\lambda) \frac{x^4}{4!} + \ldots\right), \\ y_1 &= a_1 \left(x + (2 - \lambda) \frac{x^3}{3!} + (2-\lambda)(12-\lambda) \frac{x^5}{5!} + \ldots\right). \end{align*} $$

We would like the series to be well-defined at the endpoints $x\to \pm 1$. Unless the series terminate, since $$ \begin{align*} \frac{a_{n+2}}{a_n} = \frac{n(n+1)-\lambda}{(n+1)(n+2)} \to 1, \end{align*} $$ the ratio test implies that the radius of convergence is $1$. And in fact both solutions blow up as $x\to \pm 1$ as shown below.

Therefore we must have $$ \begin{align*} \lambda = \lambda_n := n(n+1), \quad n=0,1,2, \ldots. \end{align*} $$

Series blow up if it does not terminate

(Non-examinable)

Let $A_n = a_{2n}$. Suppose $\lambda\neq n(n+1)$ for $n=0,1,2,\ldots$. Our goal is to find a lower bound for $A_{n}$.

Now $$ \begin{align*} \frac{A_n}{A_{n+1}} &= \frac{(2n+1)(2n+2)}{2n(2n+1)-\lambda} \\ &= \frac{4n^2 + 6n + 2}{4n^2 + 2n - \lambda} \\ &= 1 + \frac{1}{n} + \frac{\lambda(1 + \frac{1}{n})}{4n^2 + 2n - \lambda}. \end{align*} $$ For $n\geq N$ sufficiently large, the RHS is positive $$ \begin{align*} \frac{|A_n|}{|A_{n+1}|} = 1+\frac{1}{n} + \epsilon_n \end{align*} $$ and $|\epsilon_n| \leq M/n^2$ for some constant $M$.

Using the inequality $e^x \geq 1+x$, $$ \begin{align*} \frac{|A_n|}{|A_{n+1}|} &\leq e^{1/n} + \epsilon_n \\ \frac{|A_{n+1}|}{|A_n|} & \geq \frac{e^{-1/n}}{1 + e^{-1/n} \epsilon_n} \\ &\geq \frac{e^{-1/n}}{1+|\epsilon_n|} \\ &\geq e^{-1/n} e^{-|\epsilon_n|} \\ &\geq e^{-1/n} e^{-M/n^2} \end{align*} $$ so $$ \begin{align*} |A_{n+1}| &\geq |A_N| \prod_{k=N}^n e^{-1/k} e^{-M/k^2} \\ &= |A_N| \exp\left(-\sum_{k=N}^n \frac{1}{k}\right) \exp\left(-M \sum_{k=N}^{n} \frac{1}{k^2}\right) \\ &\geq |A_N| \exp\big(-(1+\log n)\big) \exp\left(-\frac{M\pi^2}{6}\right) \\ &= \underbrace{|A_N| \exp\left(-\frac{M\pi^2}{6} - 1\right)}_{C} \frac{1}{n} \\ &\geq \frac{C}{n+1}. \end{align*} $$

Therefore $$ \begin{align*} \left|\sum_{n>N} A_n x^{2n}\right| &= \sum_{n>N} |A_n| x^{2n} \\ &\geq C \sum_{n>N} \frac{x^{2n}}{n} \\ &= C \sum_{n=0}^{\infty} \frac{x^{2n}}{n} + \text{polynomial} \\ &= C \log \frac{1}{1-x^2} + \text{polynomial} \\ &\to \infty \quad \text{as } x\to\pm 1. \end{align*} $$