Legendre polynomials
In
mathematics,
Legendre functions are solutions to
Legendre's differential equation:
They are named after
Adrien-Marie Legendre. This
ordinary differential equation is frequently encountered in
physics and other technical fields. In particular, it occurs when solving
Laplace's equation (and related partial differential equations) in
spherical coordinates.
The Legendre differential equation may be solved using the standard power series method. The solution is finite (i.e. the series converges) provided |x| < 1. Furthermore, it is finite at x = ± 1 provided n is a non-negative integer, i.e. n = 0, 1, 2,... . In this case, the solutions form a polynomial sequence called the Legendre polynomials.
Each Legendre polynomial Pn(x) is an nth-degree polynomial. It may be expressed using Rodrigues' Formula:
An important property of the Legendre polynomials is that they are
orthogonal with respect to the
L2 inner product on the interval -1 ≤
x ≤ 1:
(where δ
mn denotes the
Kronecker delta, equal to 1 if
m =
n and to 0 otherwise).
An alternative derivation of the Legendre polynomials is by carrying out the Gram-Schmidt process on the polynomials {1, x, x2, ...}.
These are the first few Legendre polynomials:
The graphs of these polynomials (up to n=5) are shown below:

References
- M. Abramowitz and I. A. Stegun, eds. Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables. New York: Dover, 1972. (See Chapter 8.)
GPL software
- http://www.octave.org Both Legendre polynomials and associated Legendre polynomials can be numerically evaluated using the GPL octave function legendre of the octave-forge/specfun contribution to octave-2.1.35 or later.
- http://www.gnu.org/software/gsl/gsl.html