Categories:
Mathematics.
Legendre polynomials
The Legendre polynomials are a set of functions that sometimes arise in physics.
They are the eigenfunctions u(x) of Legendre’s differential equation,
which is a (Sturm-Liouville)
eigenvalue problem for ℓ(ℓ+1),
where ℓ turns out to be a non-negative integer:
(1−x2)u′′−2xu′+ℓ(ℓ+1)u=0
The ℓth-degree Legendre polynomial Pℓ(x)
is given in the form of a Rodrigues’ formula by:
Pℓ(x)=2ℓℓ!1dxℓdℓ(x2−1)ℓ
The first handful of Legendre polynomials Pℓ(x) are therefore as follows:
P0(x)=1P1(x)=xP2(x)=21(3x2−1)P3(x)=21(5x3−3x)P4(x)=81(35x4−30x2+3)
And then more Pℓ can be computed quickly
using Bonnet’s recursion formula:
(ℓ+1)Pℓ+1(x)=(2ℓ+1)xPℓ(x)−ℓPℓ−1(x)
The derivative of a given Pℓ can be calculated recursively
using the following relation:
dxdPℓ+1=(ℓ+1)Pℓ(x)+xdxdPℓ(x)
Noteworthy is that the Legendre polynomials
are mutually orthogonal for x∈[−1,1]:
⟨Pm∣Pn⟩=∫−11Pm(x)Pn(x)dx=2n+12δnm
As was to be expected from Sturm-Liouville theory.
Likewise, they form a complete basis in the
Hilbert space
of piecewise continuous functions f(x) on x∈[−1,1],
meaning:
f(x)=ℓ=0∑∞aℓPℓ(x)=ℓ=0∑∞⟨Pℓ∣Pℓ⟩⟨Pℓ∣f⟩Pℓ(x)
Each Legendre polynomial Pℓ comes with
a set of associated Legendre polynomials Pℓm(x)
of order m and degree ℓ.
These are the non-singular solutions of the general Legendre equation,
where m and ℓ are integers satisfying −ℓ≤m≤ℓ:
(1−x2)u′′−2xu′+(ℓ(ℓ+1)−1−x2m2)u=0
The ℓth-degree mth-order associated Legendre polynomial Pℓm
is as follows for m≥0:
Pℓm(x)=(−1)m(1−x2)m/2dxmdmPℓ(x)
Here, the (−1)m in front is called the Condon-Shortley phase,
and is omitted by some authors.
For negative orders m,
an additional constant factor is necessary:
Pℓ−m(x)=(−1)m(ℓ+m)!(ℓ−m)!Pℓm(x)
Beware, the name is misleading:
if m is odd, then Pℓm is actually not a polynomial.
Moreover, not all Pℓm are mutually orthogonal
(but some are).