DefinitionIn mathematics, Legendre polynomials are a sequence of orthogonal polynomials that are useful for expanding functions defined on the interval [-1,1] with respect to the orthogonal basis of Legendre polynomials. Pn(x) where n is degree of the polynomial. For instance, the initial Legendre polynomials are P0(x)=1, P1(x)=x, and P2(x)=21(3x2−1), etc. They obey the orthogonality relation ∫−11Pm(x)Pn(x)dx=2n+12δmn.