The Legendre Equation. Problems 22 through 29 deal with the Legendre equation
$$
\left(1-x^{2}\right) y^{\prime \prime}-2 x y^{\prime}+\alpha(\alpha+1) y=0
$$
As indicated in Example \(3,\) the point \(x=0\) is an ordinaty point of this
equation, and the distance from the origin to the nearest zero of
\(P(x)=1-x^{2}\) is 1 . Hence the radius of convergence of
series solutions about \(x=0\) is at least 1 . Also notice that it is necessary
to consider only
\(\alpha>-1\) because if \(\alpha \leq-1\), then the substitution
\(\alpha=-(1+\gamma)\) where \(\gamma \geq 0\) leads to the Legendre equation
\(\left(1-x^{2}\right) y^{\prime \prime}-2 x y^{\prime}+\gamma(\gamma+1) y=0\)
The Legendre polynomial \(P_{n}(x)\) is defined as the polynomial solution of
the Legendre equation with \(\alpha=n\) that also satisfies the condition
\(P_{n}(1)=1\).
(a) Using the results of Problem 23 , find the Legendre polynomials \(P_{0}(x),
\ldots . P_{5}(x) .\)
(b) Plot the graphs of \(P_{0}(x), \ldots, P_{5}(x)\) for \(-1 \leq x \leq 1 .\)
(c) Find the zeros of \(P_{0}(x), \ldots, P_{5}(x)\).