- Source: Legendre polynomials
In mathematics, Legendre polynomials, named after Adrien-Marie Legendre (1782), are a system of complete and orthogonal polynomials with a wide number of mathematical properties and numerous applications. They can be defined in many ways, and the various definitions highlight different aspects as well as suggest generalizations and connections to different mathematical structures and physical and numerical applications.
Closely related to the Legendre polynomials are associated Legendre polynomials, Legendre functions, Legendre functions of the second kind, big q-Legendre polynomials, and associated Legendre functions.
Definition and representation
= Definition by construction as an orthogonal system
=In this approach, the polynomials are defined as an orthogonal system with respect to the weight function
w
(
x
)
=
1
{\displaystyle w(x)=1}
over the interval
[
−
1
,
1
]
{\displaystyle [-1,1]}
. That is,
P
n
(
x
)
{\displaystyle P_{n}(x)}
is a polynomial of degree
n
{\displaystyle n}
, such that
∫
−
1
1
P
m
(
x
)
P
n
(
x
)
d
x
=
0
if
n
≠
m
.
{\displaystyle \int _{-1}^{1}P_{m}(x)P_{n}(x)\,dx=0\quad {\text{if }}n\neq m.}
With the additional standardization condition
P
n
(
1
)
=
1
{\displaystyle P_{n}(1)=1}
, all the polynomials can be uniquely determined. We then start the construction process:
P
0
(
x
)
=
1
{\displaystyle P_{0}(x)=1}
is the only correctly standardized polynomial of degree 0.
P
1
(
x
)
{\displaystyle P_{1}(x)}
must be orthogonal to
P
0
{\displaystyle P_{0}}
, leading to
P
1
(
x
)
=
x
{\displaystyle P_{1}(x)=x}
, and
P
2
(
x
)
{\displaystyle P_{2}(x)}
is determined by demanding orthogonality to
P
0
{\displaystyle P_{0}}
and
P
1
{\displaystyle P_{1}}
, and so on.
P
n
{\displaystyle P_{n}}
is fixed by demanding orthogonality to all
P
m
{\displaystyle P_{m}}
with
m
<
n
{\displaystyle m
. This gives
n
{\displaystyle n}
conditions, which, along with the standardization
P
n
(
1
)
=
1
{\displaystyle P_{n}(1)=1}
fixes all
n
+
1
{\displaystyle n+1}
coefficients in
P
n
(
x
)
{\displaystyle P_{n}(x)}
. With work, all the coefficients of every polynomial can be systematically determined, leading to the explicit representation in powers of
x
{\displaystyle x}
given below.
This definition of the
P
n
{\displaystyle P_{n}}
's is the simplest one. It does not appeal to the theory of differential equations. Second, the completeness of the polynomials follows immediately from the completeness of the powers 1,
x
,
x
2
,
x
3
,
…
{\displaystyle x,x^{2},x^{3},\ldots }
. Finally, by defining them via orthogonality with respect to the Lebesgue measure on
[
−
1
,
1
]
{\displaystyle [-1,1]}
, it sets up the Legendre polynomials as one of the three classical orthogonal polynomial systems. The other two are the Laguerre polynomials, which are orthogonal over the half line
[
0
,
∞
)
{\displaystyle [0,\infty )}
with the weight
e
−
x
{\displaystyle e^{-x}}
, and the Hermite polynomials, orthogonal over the full line
(
−
∞
,
∞
)
{\displaystyle (-\infty ,\infty )}
with weight
e
−
x
2
{\displaystyle e^{-x^{2}}}
.
= Definition via generating function
=The Legendre polynomials can also be defined as the coefficients in a formal expansion in powers of
t
{\displaystyle t}
of the generating function
The coefficient of
t
n
{\displaystyle t^{n}}
is a polynomial in
x
{\displaystyle x}
of degree
n
{\displaystyle n}
with
|
x
|
≤
1
{\displaystyle |x|\leq 1}
. Expanding up to
t
1
{\displaystyle t^{1}}
gives
P
0
(
x
)
=
1
,
P
1
(
x
)
=
x
.
{\displaystyle P_{0}(x)=1\,,\quad P_{1}(x)=x.}
Expansion to higher orders gets increasingly cumbersome, but is possible to do systematically, and again leads to one of the explicit forms given below.
It is possible to obtain the higher
P
n
{\displaystyle P_{n}}
's without resorting to direct expansion of the Taylor series, however. Equation 2 is differentiated with respect to t on both sides and rearranged to obtain
x
−
t
1
−
2
x
t
+
t
2
=
(
1
−
2
x
t
+
t
2
)
∑
n
=
1
∞
n
P
n
(
x
)
t
n
−
1
.
{\displaystyle {\frac {x-t}{\sqrt {1-2xt+t^{2}}}}=\left(1-2xt+t^{2}\right)\sum _{n=1}^{\infty }nP_{n}(x)t^{n-1}\,.}
Replacing the quotient of the square root with its definition in Eq. 2, and equating the coefficients of powers of t in the resulting expansion gives Bonnet’s recursion formula
(
n
+
1
)
P
n
+
1
(
x
)
=
(
2
n
+
1
)
x
P
n
(
x
)
−
n
P
n
−
1
(
x
)
.
{\displaystyle (n+1)P_{n+1}(x)=(2n+1)xP_{n}(x)-nP_{n-1}(x)\,.}
This relation, along with the first two polynomials P0 and P1, allows all the rest to be generated recursively.
The generating function approach is directly connected to the multipole expansion in electrostatics, as explained below, and is how the polynomials were first defined by Legendre in 1782.
= Definition via differential equation
=A third definition is in terms of solutions to Legendre's differential equation:
This differential equation has regular singular points at x = ±1 so if a solution is sought using the standard Frobenius or power series method, a series about the origin will only converge for |x| < 1 in general. When n is an integer, the solution Pn(x) that is regular at x = 1 is also regular at x = −1, and the series for this solution terminates (i.e. it is a polynomial). The orthogonality and completeness of these solutions is best seen from the viewpoint of Sturm–Liouville theory. We rewrite the differential equation as an eigenvalue problem,
d
d
x
(
(
1
−
x
2
)
d
d
x
)
P
(
x
)
=
−
λ
P
(
x
)
,
{\displaystyle {\frac {d}{dx}}\left(\left(1-x^{2}\right){\frac {d}{dx}}\right)P(x)=-\lambda P(x)\,,}
with the eigenvalue
λ
{\displaystyle \lambda }
in lieu of
n
(
n
+
1
)
{\displaystyle n(n+1)}
. If we demand that the solution be regular at
x
=
±
1
{\displaystyle x=\pm 1}
, the differential operator on the left is Hermitian. The eigenvalues are found to be of the form
n(n + 1), with
n
=
0
,
1
,
2
,
…
{\displaystyle n=0,1,2,\ldots }
and the eigenfunctions are the
P
n
(
x
)
{\displaystyle P_{n}(x)}
. The orthogonality and completeness of this set of solutions follows at once from the larger framework of Sturm–Liouville theory.
The differential equation admits another, non-polynomial solution, the Legendre functions of the second kind
Q
n
{\displaystyle Q_{n}}
.
A two-parameter generalization of (Eq. 1) is called Legendre's general differential equation, solved by the Associated Legendre polynomials. Legendre functions are solutions of Legendre's differential equation (generalized or not) with non-integer parameters.
In physical settings, Legendre's differential equation arises naturally whenever one solves Laplace's equation (and related partial differential equations) by separation of variables in spherical coordinates. From this standpoint, the eigenfunctions of the angular part of the Laplacian operator are the spherical harmonics, of which the Legendre polynomials are (up to a multiplicative constant) the subset that is left invariant by rotations about the polar axis. The polynomials appear as
P
n
(
cos
θ
)
{\displaystyle P_{n}(\cos \theta )}
where
θ
{\displaystyle \theta }
is the polar angle. This approach to the Legendre polynomials provides a deep connection to rotational symmetry. Many of their properties which are found laboriously through the methods of analysis — for example the addition theorem — are more easily found using the methods of symmetry and group theory, and acquire profound physical and geometrical meaning.
= Rodrigues' formula and other explicit formulas
=An especially compact expression for the Legendre polynomials is given by Rodrigues' formula:
P
n
(
x
)
=
1
2
n
n
!
d
n
d
x
n
(
x
2
−
1
)
n
.
{\displaystyle P_{n}(x)={\frac {1}{2^{n}n!}}{\frac {d^{n}}{dx^{n}}}(x^{2}-1)^{n}\,.}
This formula enables derivation of a large number of properties of the
P
n
{\displaystyle P_{n}}
's. Among these are explicit representations such as
P
n
(
x
)
=
[
t
n
]
(
(
t
+
x
)
2
−
1
)
n
2
n
=
[
t
n
]
(
t
+
x
+
1
)
n
(
t
+
x
−
1
)
n
2
n
,
P
n
(
x
)
=
1
2
n
∑
k
=
0
n
(
n
k
)
2
(
x
−
1
)
n
−
k
(
x
+
1
)
k
,
P
n
(
x
)
=
∑
k
=
0
n
(
n
k
)
(
n
+
k
k
)
(
x
−
1
2
)
k
,
P
n
(
x
)
=
1
2
n
∑
k
=
0
⌊
n
/
2
⌋
(
−
1
)
k
(
n
k
)
(
2
n
−
2
k
n
)
x
n
−
2
k
,
P
n
(
x
)
=
2
n
∑
k
=
0
n
x
k
(
n
k
)
(
n
+
k
−
1
2
n
)
,
P
n
(
x
)
=
{
1
π
∫
0
π
(
x
+
x
2
−
1
⋅
cos
(
t
)
)
n
d
t
if
|
x
|
>
1
x
n
if
|
x
|
=
1
2
π
⋅
x
n
⋅
|
x
|
⋅
∫
|
x
|
1
t
−
n
−
1
t
2
−
x
2
⋅
cos
(
n
⋅
arccos
(
t
)
)
sin
(
arccos
(
t
)
)
d
t
if
0
<
|
x
|
<
1
(
−
1
)
n
/
2
⋅
2
−
n
⋅
(
n
n
/
2
)
if
x
=
0
and
n
even
0
if
x
=
0
and
n
odd
.
{\displaystyle {\begin{aligned}P_{n}(x)&=[t^{n}]{\frac {\left((t+x)^{2}-1\right)^{n}}{2^{n}}}=[t^{n}]{\frac {\left(t+x+1\right)^{n}\left(t+x-1\right)^{n}}{2^{n}}},\\[1ex]P_{n}(x)&={\frac {1}{2^{n}}}\sum _{k=0}^{n}{\binom {n}{k}}^{\!2}(x-1)^{n-k}(x+1)^{k},\\[1ex]P_{n}(x)&=\sum _{k=0}^{n}{\binom {n}{k}}{\binom {n+k}{k}}\left({\frac {x-1}{2}}\right)^{\!k},\\[1ex]P_{n}(x)&={\frac {1}{2^{n}}}\sum _{k=0}^{\left\lfloor n/2\right\rfloor }\left(-1\right)^{k}{\binom {n}{k}}{\binom {2n-2k}{n}}x^{n-2k},\\[1ex]P_{n}(x)&=2^{n}\sum _{k=0}^{n}x^{k}{\binom {n}{k}}{\binom {\frac {n+k-1}{2}}{n}},\\[1ex]P_{n}(x)&={\begin{cases}{\frac {1}{\pi }}\int _{0}^{\pi }{\left(x+{\sqrt {x^{2}-1}}\cdot \cos(t)\right)}^{n}\,dt&{\text{if }}|x|>1\\x^{n}&{\text{if }}|x|=1\\{\frac {2}{\pi }}\cdot x^{n}\cdot |x|\cdot \int _{|x|}^{1}{\frac {t^{-n-1}}{\sqrt {t^{2}-x^{2}}}}\cdot {\frac {\cos \left(n\cdot \arccos(t)\right)}{\sin \left(\arccos(t)\right)}}\,dt&{\text{if }}0<|x|<1\\(-1)^{n/2}\cdot 2^{-n}\cdot {\binom {n}{n/2}}&{\text{if }}x=0{\text{ and }}n{\text{ even}}\\0&{\text{if }}x=0{\text{ and }}n{\text{ odd}}\end{cases}}.\end{aligned}}}
Expressing the polynomial as a power series,
P
n
(
x
)
=
∑
a
k
x
k
{\textstyle P_{n}(x)=\sum a_{k}x^{k}}
, the coefficients of powers of
x
{\displaystyle x}
can also be calculated using a general formula:
a
k
+
2
=
−
(
n
−
k
)
(
n
+
k
+
1
)
(
k
+
2
)
(
k
+
1
)
a
k
.
{\displaystyle a_{k+2}=-{\frac {(n-k)(n+k+1)}{(k+2)(k+1)}}a_{k}.}
The Legendre polynomial is determined by the values used for the two constants
a
0
{\textstyle a_{0}}
and
a
1
{\textstyle a_{1}}
, where
a
0
=
0
{\textstyle a_{0}=0}
if
n
{\displaystyle n}
is odd and
a
1
=
0
{\textstyle a_{1}=0}
if
n
{\displaystyle n}
is even.
In the fourth representation,
⌊
n
/
2
⌋
{\displaystyle \lfloor n/2\rfloor }
stands for the largest integer less than or equal to
n
/
2
{\displaystyle n/2}
. The last representation, which is also immediate from the recursion formula, expresses the Legendre polynomials by simple monomials and involves the generalized form of the binomial coefficient.
The first few Legendre polynomials are:
The graphs of these polynomials (up to n = 5) are shown below:
Main properties
= Orthogonality
=The standardization
P
n
(
1
)
=
1
{\displaystyle P_{n}(1)=1}
fixes the normalization of the Legendre polynomials (with respect to the L2 norm on the interval −1 ≤ x ≤ 1). Since they are also orthogonal with respect to the same norm, the two statements can be combined into the single equation,
∫
−
1
1
P
m
(
x
)
P
n
(
x
)
d
x
=
2
2
n
+
1
δ
m
n
,
{\displaystyle \int _{-1}^{1}P_{m}(x)P_{n}(x)\,dx={\frac {2}{2n+1}}\delta _{mn},}
(where δmn denotes the Kronecker delta, equal to 1 if m = n and to 0 otherwise).
This normalization is most readily found by employing Rodrigues' formula, given below.
= Completeness
=That the polynomials are complete means the following. Given any piecewise continuous function
f
(
x
)
{\displaystyle f(x)}
with finitely many discontinuities in the interval [−1, 1], the sequence of sums
f
n
(
x
)
=
∑
ℓ
=
0
n
a
ℓ
P
ℓ
(
x
)
{\displaystyle f_{n}(x)=\sum _{\ell =0}^{n}a_{\ell }P_{\ell }(x)}
converges in the mean to
f
(
x
)
{\displaystyle f(x)}
as
n
→
∞
{\displaystyle n\to \infty }
, provided we take
a
ℓ
=
2
ℓ
+
1
2
∫
−
1
1
f
(
x
)
P
ℓ
(
x
)
d
x
.
{\displaystyle a_{\ell }={\frac {2\ell +1}{2}}\int _{-1}^{1}f(x)P_{\ell }(x)\,dx.}
This completeness property underlies all the expansions discussed in this article, and is often stated in the form
∑
ℓ
=
0
∞
2
ℓ
+
1
2
P
ℓ
(
x
)
P
ℓ
(
y
)
=
δ
(
x
−
y
)
,
{\displaystyle \sum _{\ell =0}^{\infty }{\frac {2\ell +1}{2}}P_{\ell }(x)P_{\ell }(y)=\delta (x-y),}
with −1 ≤ x ≤ 1 and −1 ≤ y ≤ 1.
Applications
= Expanding an inverse distance potential
=The Legendre polynomials were first introduced in 1782 by Adrien-Marie Legendre as the coefficients in the expansion of the Newtonian potential
1
|
x
−
x
′
|
=
1
r
2
+
r
′
2
−
2
r
r
′
cos
γ
=
∑
ℓ
=
0
∞
r
′
ℓ
r
ℓ
+
1
P
ℓ
(
cos
γ
)
,
{\displaystyle {\frac {1}{\left|\mathbf {x} -\mathbf {x} '\right|}}={\frac {1}{\sqrt {r^{2}+{r'}^{2}-2r{r'}\cos \gamma }}}=\sum _{\ell =0}^{\infty }{\frac {{r'}^{\ell }}{r^{\ell +1}}}P_{\ell }(\cos \gamma ),}
where r and r′ are the lengths of the vectors x and x′ respectively and γ is the angle between those two vectors. The series converges when r > r′. The expression gives the gravitational potential associated to a point mass or the Coulomb potential associated to a point charge. The expansion using Legendre polynomials might be useful, for instance, when integrating this expression over a continuous mass or charge distribution.
Legendre polynomials occur in the solution of Laplace's equation of the static potential, ∇2 Φ(x) = 0, in a charge-free region of space, using the method of separation of variables, where the boundary conditions have axial symmetry (no dependence on an azimuthal angle). Where ẑ is the axis of symmetry and θ is the angle between the position of the observer and the ẑ axis (the zenith angle), the solution for the potential will be
Φ
(
r
,
θ
)
=
∑
ℓ
=
0
∞
(
A
ℓ
r
ℓ
+
B
ℓ
r
−
(
ℓ
+
1
)
)
P
ℓ
(
cos
θ
)
.
{\displaystyle \Phi (r,\theta )=\sum _{\ell =0}^{\infty }\left(A_{\ell }r^{\ell }+B_{\ell }r^{-(\ell +1)}\right)P_{\ell }(\cos \theta )\,.}
Al and Bl are to be determined according to the boundary condition of each problem.
They also appear when solving the Schrödinger equation in three dimensions for a central force.
= In multipole expansions
=Legendre polynomials are also useful in expanding functions of the form (this is the same as before, written a little differently):
1
1
+
η
2
−
2
η
x
=
∑
k
=
0
∞
η
k
P
k
(
x
)
,
{\displaystyle {\frac {1}{\sqrt {1+\eta ^{2}-2\eta x}}}=\sum _{k=0}^{\infty }\eta ^{k}P_{k}(x),}
which arise naturally in multipole expansions. The left-hand side of the equation is the generating function for the Legendre polynomials.
As an example, the electric potential Φ(r,θ) (in spherical coordinates) due to a point charge located on the z-axis at z = a (see diagram right) varies as
Φ
(
r
,
θ
)
∝
1
R
=
1
r
2
+
a
2
−
2
a
r
cos
θ
.
{\displaystyle \Phi (r,\theta )\propto {\frac {1}{R}}={\frac {1}{\sqrt {r^{2}+a^{2}-2ar\cos \theta }}}.}
If the radius r of the observation point P is greater than a, the potential may be expanded in the Legendre polynomials
Φ
(
r
,
θ
)
∝
1
r
∑
k
=
0
∞
(
a
r
)
k
P
k
(
cos
θ
)
,
{\displaystyle \Phi (r,\theta )\propto {\frac {1}{r}}\sum _{k=0}^{\infty }\left({\frac {a}{r}}\right)^{k}P_{k}(\cos \theta ),}
where we have defined η = a/r < 1 and x = cos θ. This expansion is used to develop the normal multipole expansion.
Conversely, if the radius r of the observation point P is smaller than a, the potential may still be expanded in the Legendre polynomials as above, but with a and r exchanged. This expansion is the basis of interior multipole expansion.
= In trigonometry
=The trigonometric functions cos nθ, also denoted as the Chebyshev polynomials Tn(cos θ) ≡ cos nθ, can also be multipole expanded by the Legendre polynomials Pn(cos θ). The first several orders are as follows:
T
0
(
cos
θ
)
=
1
=
P
0
(
cos
θ
)
,
T
1
(
cos
θ
)
=
cos
θ
=
P
1
(
cos
θ
)
,
T
2
(
cos
θ
)
=
cos
2
θ
=
1
3
(
4
P
2
(
cos
θ
)
−
P
0
(
cos
θ
)
)
,
T
3
(
cos
θ
)
=
cos
3
θ
=
1
5
(
8
P
3
(
cos
θ
)
−
3
P
1
(
cos
θ
)
)
,
T
4
(
cos
θ
)
=
cos
4
θ
=
1
105
(
192
P
4
(
cos
θ
)
−
80
P
2
(
cos
θ
)
−
7
P
0
(
cos
θ
)
)
,
T
5
(
cos
θ
)
=
cos
5
θ
=
1
63
(
128
P
5
(
cos
θ
)
−
56
P
3
(
cos
θ
)
−
9
P
1
(
cos
θ
)
)
,
T
6
(
cos
θ
)
=
cos
6
θ
=
1
1155
(
2560
P
6
(
cos
θ
)
−
1152
P
4
(
cos
θ
)
−
220
P
2
(
cos
θ
)
−
33
P
0
(
cos
θ
)
)
.
{\displaystyle {\begin{alignedat}{2}T_{0}(\cos \theta )&=1&&=P_{0}(\cos \theta ),\\[4pt]T_{1}(\cos \theta )&=\cos \theta &&=P_{1}(\cos \theta ),\\[4pt]T_{2}(\cos \theta )&=\cos 2\theta &&={\tfrac {1}{3}}{\bigl (}4P_{2}(\cos \theta )-P_{0}(\cos \theta ){\bigr )},\\[4pt]T_{3}(\cos \theta )&=\cos 3\theta &&={\tfrac {1}{5}}{\bigl (}8P_{3}(\cos \theta )-3P_{1}(\cos \theta ){\bigr )},\\[4pt]T_{4}(\cos \theta )&=\cos 4\theta &&={\tfrac {1}{105}}{\bigl (}192P_{4}(\cos \theta )-80P_{2}(\cos \theta )-7P_{0}(\cos \theta ){\bigr )},\\[4pt]T_{5}(\cos \theta )&=\cos 5\theta &&={\tfrac {1}{63}}{\bigl (}128P_{5}(\cos \theta )-56P_{3}(\cos \theta )-9P_{1}(\cos \theta ){\bigr )},\\[4pt]T_{6}(\cos \theta )&=\cos 6\theta &&={\tfrac {1}{1155}}{\bigl (}2560P_{6}(\cos \theta )-1152P_{4}(\cos \theta )-220P_{2}(\cos \theta )-33P_{0}(\cos \theta ){\bigr )}.\end{alignedat}}}
Another property is the expression for sin (n + 1)θ, which is
sin
(
n
+
1
)
θ
sin
θ
=
∑
ℓ
=
0
n
P
ℓ
(
cos
θ
)
P
n
−
ℓ
(
cos
θ
)
.
{\displaystyle {\frac {\sin(n+1)\theta }{\sin \theta }}=\sum _{\ell =0}^{n}P_{\ell }(\cos \theta )P_{n-\ell }(\cos \theta ).}
= In recurrent neural networks
=A recurrent neural network that contains a d-dimensional memory vector,
m
∈
R
d
{\displaystyle \mathbf {m} \in \mathbb {R} ^{d}}
, can be optimized such that its neural activities obey the linear time-invariant system given by the following state-space representation:
θ
m
˙
(
t
)
=
A
m
(
t
)
+
B
u
(
t
)
,
{\displaystyle \theta {\dot {\mathbf {m} }}(t)=A\mathbf {m} (t)+Bu(t),}
A
=
[
a
]
i
j
∈
R
d
×
d
,
a
i
j
=
(
2
i
+
1
)
{
−
1
i
<
j
(
−
1
)
i
−
j
+
1
i
≥
j
,
B
=
[
b
]
i
∈
R
d
×
1
,
b
i
=
(
2
i
+
1
)
(
−
1
)
i
.
{\displaystyle {\begin{aligned}A&=\left[a\right]_{ij}\in \mathbb {R} ^{d\times d}{\text{,}}\quad &&a_{ij}=\left(2i+1\right){\begin{cases}-1&i
In this case, the sliding window of
u
{\displaystyle u}
across the past
θ
{\displaystyle \theta }
units of time is best approximated by a linear combination of the first
d
{\displaystyle d}
shifted Legendre polynomials, weighted together by the elements of
m
{\displaystyle \mathbf {m} }
at time
t
{\displaystyle t}
:
u
(
t
−
θ
′
)
≈
∑
ℓ
=
0
d
−
1
P
~
ℓ
(
θ
′
θ
)
m
ℓ
(
t
)
,
0
≤
θ
′
≤
θ
.
{\displaystyle u(t-\theta ')\approx \sum _{\ell =0}^{d-1}{\widetilde {P}}_{\ell }\left({\frac {\theta '}{\theta }}\right)\,m_{\ell }(t),\quad 0\leq \theta '\leq \theta .}
When combined with deep learning methods, these networks can be trained to outperform long short-term memory units and related architectures, while using fewer computational resources.
Additional properties
Legendre polynomials have definite parity. That is, they are even or odd, according to
P
n
(
−
x
)
=
(
−
1
)
n
P
n
(
x
)
.
{\displaystyle P_{n}(-x)=(-1)^{n}P_{n}(x)\,.}
Another useful property is
∫
−
1
1
P
n
(
x
)
d
x
=
0
for
n
≥
1
,
{\displaystyle \int _{-1}^{1}P_{n}(x)\,dx=0{\text{ for }}n\geq 1,}
which follows from considering the orthogonality relation with
P
0
(
x
)
=
1
{\displaystyle P_{0}(x)=1}
. It is convenient when a Legendre series
∑
i
a
i
P
i
{\textstyle \sum _{i}a_{i}P_{i}}
is used to approximate a function or experimental data: the average of the series over the interval [−1, 1] is simply given by the leading expansion coefficient
a
0
{\displaystyle a_{0}}
.
Since the differential equation and the orthogonality property are independent of scaling, the Legendre polynomials' definitions are "standardized" (sometimes called "normalization", but the actual norm is not 1) by being scaled so that
P
n
(
1
)
=
1
.
{\displaystyle P_{n}(1)=1\,.}
The derivative at the end point is given by
P
n
′
(
1
)
=
n
(
n
+
1
)
2
.
{\displaystyle P_{n}'(1)={\frac {n(n+1)}{2}}\,.}
The Askey–Gasper inequality for Legendre polynomials reads
∑
j
=
0
n
P
j
(
x
)
≥
0
for
x
≥
−
1
.
{\displaystyle \sum _{j=0}^{n}P_{j}(x)\geq 0\quad {\text{for }}\quad x\geq -1\,.}
The Legendre polynomials of a scalar product of unit vectors can be expanded with spherical harmonics using
P
ℓ
(
r
⋅
r
′
)
=
4
π
2
ℓ
+
1
∑
m
=
−
ℓ
ℓ
Y
ℓ
m
(
θ
,
φ
)
Y
ℓ
m
∗
(
θ
′
,
φ
′
)
,
{\displaystyle P_{\ell }\left(r\cdot r'\right)={\frac {4\pi }{2\ell +1}}\sum _{m=-\ell }^{\ell }Y_{\ell m}(\theta ,\varphi )Y_{\ell m}^{*}(\theta ',\varphi ')\,,}
where the unit vectors r and r′ have spherical coordinates (θ, φ) and (θ′, φ′), respectively.
The product of two Legendre polynomials
∑
p
=
0
∞
t
p
P
p
(
cos
θ
1
)
P
p
(
cos
θ
2
)
=
2
π
K
(
2
t
sin
θ
1
sin
θ
2
t
2
−
2
t
cos
(
θ
1
+
θ
2
)
+
1
)
t
2
−
2
t
cos
(
θ
1
+
θ
2
)
+
1
,
{\displaystyle \sum _{p=0}^{\infty }t^{p}P_{p}(\cos \theta _{1})P_{p}(\cos \theta _{2})={\frac {2}{\pi }}{\frac {\mathbf {K} \left(2{\sqrt {\frac {t\sin \theta _{1}\sin \theta _{2}}{t^{2}-2t\cos \left(\theta _{1}+\theta _{2}\right)+1}}}\right)}{\sqrt {t^{2}-2t\cos \left(\theta _{1}+\theta _{2}\right)+1}}}\,,}
where
K
(
⋅
)
{\displaystyle K(\cdot )}
is the complete elliptic integral of the first kind.
= Recurrence relations
=As discussed above, the Legendre polynomials obey the three-term recurrence relation known as Bonnet's recursion formula given by
(
n
+
1
)
P
n
+
1
(
x
)
=
(
2
n
+
1
)
x
P
n
(
x
)
−
n
P
n
−
1
(
x
)
{\displaystyle (n+1)P_{n+1}(x)=(2n+1)xP_{n}(x)-nP_{n-1}(x)}
and
x
2
−
1
n
d
d
x
P
n
(
x
)
=
x
P
n
(
x
)
−
P
n
−
1
(
x
)
{\displaystyle {\frac {x^{2}-1}{n}}{\frac {d}{dx}}P_{n}(x)=xP_{n}(x)-P_{n-1}(x)}
or, with the alternative expression, which also holds at the endpoints
d
d
x
P
n
+
1
(
x
)
=
(
n
+
1
)
P
n
(
x
)
+
x
d
d
x
P
n
(
x
)
.
{\displaystyle {\frac {d}{dx}}P_{n+1}(x)=(n+1)P_{n}(x)+x{\frac {d}{dx}}P_{n}(x)\,.}
Useful for the integration of Legendre polynomials is
(
2
n
+
1
)
P
n
(
x
)
=
d
d
x
(
P
n
+
1
(
x
)
−
P
n
−
1
(
x
)
)
.
{\displaystyle (2n+1)P_{n}(x)={\frac {d}{dx}}{\bigl (}P_{n+1}(x)-P_{n-1}(x){\bigr )}\,.}
From the above one can see also that
d
d
x
P
n
+
1
(
x
)
=
(
2
n
+
1
)
P
n
(
x
)
+
(
2
(
n
−
2
)
+
1
)
P
n
−
2
(
x
)
+
(
2
(
n
−
4
)
+
1
)
P
n
−
4
(
x
)
+
⋯
{\displaystyle {\frac {d}{dx}}P_{n+1}(x)=(2n+1)P_{n}(x)+{\bigl (}2(n-2)+1{\bigr )}P_{n-2}(x)+{\bigl (}2(n-4)+1{\bigr )}P_{n-4}(x)+\cdots }
or equivalently
d
d
x
P
n
+
1
(
x
)
=
2
P
n
(
x
)
‖
P
n
‖
2
+
2
P
n
−
2
(
x
)
‖
P
n
−
2
‖
2
+
⋯
{\displaystyle {\frac {d}{dx}}P_{n+1}(x)={\frac {2P_{n}(x)}{\left\|P_{n}\right\|^{2}}}+{\frac {2P_{n-2}(x)}{\left\|P_{n-2}\right\|^{2}}}+\cdots }
where ‖Pn‖ is the norm over the interval −1 ≤ x ≤ 1
‖
P
n
‖
=
∫
−
1
1
(
P
n
(
x
)
)
2
d
x
=
2
2
n
+
1
.
{\displaystyle \|P_{n}\|={\sqrt {\int _{-1}^{1}{\bigl (}P_{n}(x){\bigr )}^{2}\,dx}}={\sqrt {\frac {2}{2n+1}}}\,.}
= Asymptotics
=Asymptotically, for
ℓ
→
∞
{\displaystyle \ell \to \infty }
, the Legendre polynomials can be written as
P
ℓ
(
cos
θ
)
=
θ
sin
(
θ
)
{
J
0
[
(
ℓ
+
1
2
)
θ
]
−
(
1
θ
−
cot
θ
)
8
(
ℓ
+
1
2
)
J
1
[
(
ℓ
+
1
2
)
θ
]
}
+
O
(
ℓ
−
2
)
=
2
π
ℓ
sin
(
θ
)
cos
[
(
ℓ
+
1
2
)
θ
−
π
4
]
+
O
(
ℓ
−
3
/
2
)
,
θ
∈
(
0
,
π
)
,
{\displaystyle {\begin{aligned}P_{\ell }(\cos \theta )&={\sqrt {\frac {\theta }{\sin \left(\theta \right)}}}\left\{J_{0}{\left[\left(\ell +{\tfrac {1}{2}}\right)\theta \right]}-{\frac {\left({\frac {1}{\theta }}-\cot \theta \right)}{8(\ell +{\frac {1}{2}})}}J_{1}{\left[\left(\ell +{\tfrac {1}{2}}\right)\theta \right]}\right\}+{\mathcal {O}}\left(\ell ^{-2}\right)\\[1ex]&={\sqrt {\frac {2}{\pi \ell \sin \left(\theta \right)}}}\cos \left[\left(\ell +{\tfrac {1}{2}}\right)\theta -{\tfrac {\pi }{4}}\right]+{\mathcal {O}}\left(\ell ^{-3/2}\right),\quad \theta \in (0,\pi ),\end{aligned}}}
and for arguments of magnitude greater than 1
P
ℓ
(
cosh
ξ
)
=
ξ
sinh
ξ
I
0
(
(
ℓ
+
1
2
)
ξ
)
(
1
+
O
(
ℓ
−
1
)
)
,
P
ℓ
(
1
1
−
e
2
)
=
1
2
π
ℓ
e
(
1
+
e
)
ℓ
+
1
2
(
1
−
e
)
ℓ
2
+
O
(
ℓ
−
1
)
{\displaystyle {\begin{aligned}P_{\ell }\left(\cosh \xi \right)&={\sqrt {\frac {\xi }{\sinh \xi }}}I_{0}\left(\left(\ell +{\frac {1}{2}}\right)\xi \right)\left(1+{\mathcal {O}}\left(\ell ^{-1}\right)\right)\,,\\P_{\ell }\left({\frac {1}{\sqrt {1-e^{2}}}}\right)&={\frac {1}{\sqrt {2\pi \ell e}}}{\frac {(1+e)^{\frac {\ell +1}{2}}}{(1-e)^{\frac {\ell }{2}}}}+{\mathcal {O}}\left(\ell ^{-1}\right)\end{aligned}}}
where J0, J1, and I0 are Bessel functions.
= Zeros
=All
n
{\displaystyle n}
zeros of
P
n
(
x
)
{\displaystyle P_{n}(x)}
are real, distinct from each other, and lie in the interval
(
−
1
,
1
)
{\displaystyle (-1,1)}
. Furthermore, if we regard them as dividing the interval
[
−
1
,
1
]
{\displaystyle [-1,1]}
into
n
+
1
{\displaystyle n+1}
subintervals, each subinterval will contain exactly one zero of
P
n
+
1
{\displaystyle P_{n+1}}
. This is known as the interlacing property. Because of the parity property it is evident that if
x
k
{\displaystyle x_{k}}
is a zero of
P
n
(
x
)
{\displaystyle P_{n}(x)}
, so is
−
x
k
{\displaystyle -x_{k}}
. These zeros play an important role in numerical integration based on Gaussian quadrature. The specific quadrature based on the
P
n
{\displaystyle P_{n}}
's is known as Gauss-Legendre quadrature.
From this property and the facts that
P
n
(
±
1
)
≠
0
{\displaystyle P_{n}(\pm 1)\neq 0}
, it follows that
P
n
(
x
)
{\displaystyle P_{n}(x)}
has
n
−
1
{\displaystyle n-1}
local minima and maxima in
(
−
1
,
1
)
{\displaystyle (-1,1)}
. Equivalently,
d
P
n
(
x
)
/
d
x
{\displaystyle dP_{n}(x)/dx}
has
n
−
1
{\displaystyle n-1}
zeros in
(
−
1
,
1
)
{\displaystyle (-1,1)}
.
= Pointwise evaluations
=The parity and normalization implicate the values at the boundaries
x
=
±
1
{\displaystyle x=\pm 1}
to be
P
n
(
1
)
=
1
,
P
n
(
−
1
)
=
(
−
1
)
n
{\displaystyle P_{n}(1)=1\,,\quad P_{n}(-1)=(-1)^{n}}
At the origin
x
=
0
{\displaystyle x=0}
one can show that the values are given by
P
2
n
(
0
)
=
(
−
1
)
n
4
n
(
2
n
n
)
=
(
−
1
)
n
2
2
n
(
2
n
)
!
(
n
!
)
2
=
(
−
1
)
n
(
2
n
−
1
)
!
!
(
2
n
)
!
!
{\displaystyle P_{2n}(0)={\frac {(-1)^{n}}{4^{n}}}{\binom {2n}{n}}={\frac {(-1)^{n}}{2^{2n}}}{\frac {(2n)!}{\left(n!\right)^{2}}}=(-1)^{n}{\frac {(2n-1)!!}{(2n)!!}}}
P
2
n
+
1
(
0
)
=
0
{\displaystyle P_{2n+1}(0)=0}
Variants with transformed argument
= Shifted Legendre polynomials
=The shifted Legendre polynomials are defined as
P
~
n
(
x
)
=
P
n
(
2
x
−
1
)
.
{\displaystyle {\widetilde {P}}_{n}(x)=P_{n}(2x-1)\,.}
Here the "shifting" function x ↦ 2x − 1 is an affine transformation that bijectively maps the interval [0, 1] to the interval [−1, 1], implying that the polynomials P̃n(x) are orthogonal on [0, 1]:
∫
0
1
P
~
m
(
x
)
P
~
n
(
x
)
d
x
=
1
2
n
+
1
δ
m
n
.
{\displaystyle \int _{0}^{1}{\widetilde {P}}_{m}(x){\widetilde {P}}_{n}(x)\,dx={\frac {1}{2n+1}}\delta _{mn}\,.}
An explicit expression for the shifted Legendre polynomials is given by
P
~
n
(
x
)
=
(
−
1
)
n
∑
k
=
0
n
(
n
k
)
(
n
+
k
k
)
(
−
x
)
k
.
{\displaystyle {\widetilde {P}}_{n}(x)=(-1)^{n}\sum _{k=0}^{n}{\binom {n}{k}}{\binom {n+k}{k}}(-x)^{k}\,.}
The analogue of Rodrigues' formula for the shifted Legendre polynomials is
P
~
n
(
x
)
=
1
n
!
d
n
d
x
n
(
x
2
−
x
)
n
.
{\displaystyle {\widetilde {P}}_{n}(x)={\frac {1}{n!}}{\frac {d^{n}}{dx^{n}}}\left(x^{2}-x\right)^{n}\,.}
The first few shifted Legendre polynomials are:
= Legendre rational functions
=The Legendre rational functions are a sequence of orthogonal functions on [0, ∞). They are obtained by composing the Cayley transform with Legendre polynomials.
A rational Legendre function of degree n is defined as:
R
n
(
x
)
=
2
x
+
1
P
n
(
x
−
1
x
+
1
)
.
{\displaystyle R_{n}(x)={\frac {\sqrt {2}}{x+1}}\,P_{n}\left({\frac {x-1}{x+1}}\right)\,.}
They are eigenfunctions of the singular Sturm–Liouville problem:
(
x
+
1
)
d
d
x
(
x
d
d
x
[
(
x
+
1
)
v
(
x
)
]
)
+
λ
v
(
x
)
=
0
{\displaystyle \left(x+1\right){\frac {d}{dx}}\left(x{\frac {d}{dx}}\left[\left(x+1\right)v(x)\right]\right)+\lambda v(x)=0}
with eigenvalues
λ
n
=
n
(
n
+
1
)
.
{\displaystyle \lambda _{n}=n(n+1)\,.}
See also
Notes
References
External links
A quick informal derivation of the Legendre polynomial in the context of the quantum mechanics of hydrogen
"Legendre polynomials", Encyclopedia of Mathematics, EMS Press, 2001 [1994]
Wolfram MathWorld entry on Legendre polynomials
Dr James B. Calvert's article on Legendre polynomials from his personal collection of mathematics
The Legendre Polynomials by Carlyle E. Moore
Legendre Polynomials from Hyperphysics
Kata Kunci Pencarian:
- Daftar algoritme
- Legendre polynomials
- Associated Legendre polynomials
- Adrien-Marie Legendre
- Legendre function
- Gauss–Legendre quadrature
- Legendre
- Gegenbauer polynomials
- Legendre transform (integral transform)
- Classical orthogonal polynomials
- Spherical harmonics