Write at the ordinary point zero. Substituting into the Legendre differential equation and comparing coefficients gives
The two arbitrary coefficients generate the even and odd series separately, convergent at least for . A nonzero polynomial of degree has top coefficient satisfying , so is necessary. For this value the recurrence in parity terminates at degree , while the other parity cannot terminate unless its initial coefficient is zero. Thus a polynomial solution exists and is unique up to scale, with .
For Orthogonality of Legendre polynomials, write the equation in self-adjoint form . Multiply it by , subtract the equation for multiplied by , and integrate. The boundary term is , because the functions are polynomials. For the eigenvalues differ, giving . For , the integral of the square is positive. Hence with .
Let . The supplied operator means , which equals . Expand in the given identity and use the Legendre equation. Each coefficient satisfies
whose solutions are . Regularity at removes . At , normalization and give , so . Thus
A rigorous justification for the expansion and operations is to begin with the Taylor series of in . It converges uniformly for , . Its coefficient is a degree- polynomial in , and the differential identity makes that coefficient solve the degree- Legendre equation. Its value at one is one, so it is exactly . This avoids assuming an unjustified endpoint convergence of an arbitrary orthogonal expansion.
Square the generating series and integrate, using uniform convergence and orthogonality:
Comparing coefficients proves the generating function and norm of Legendre polynomials result