Legendre equation

The eigenvalue problem $$ \begin{align*} -\dd{x}\left((1-x^2) \dfd{y}{x}\right) = \lambda y, \qquad -1<x<1 \end{align*} $$ has eigenvalues and eigenfunctions and eigenfunctions ($n=0,1,2,\ldots$) $$ \begin{align*} \lambda_n &= n(n+1) \\ y_n &= \begin{cases} a_0 + a_2 x^2 + a_4 x^4 + \ldots + a_{2N} x^{2N}, &n = 2N \text{ is even},\\ a_1x + a_3 x^3 + a_5 x^5 + \ldots + a_{2N+1} x^{2N+1}, &n=2N + 1 \text{ is odd}, \end{cases} \\ \end{align*} $$ where $$ \begin{align*} a_{k+2} = \frac{k(k+1) - \lambda}{(k+1)(k+2)} a_k. \end{align*} $$

The Legendre polynomials $P_n$ are the eigenfunctions normalised so that $y(1)=1$.

(Derivation)

The first few Legendre polynomials are as follows:

$n$

$\lambda_n = n(n+1)$

$P_n$

$0$

$0$

$1$

$1$

$2$

$x$

$2$

$6$

$\frac{1}{2}(3x^2 - 1)$

$3$

$12$

$\frac{1}{2}(5x^3 - 3x)$