Legendre polynomials

From LaTeX CAS translator demo
Jump to navigation Jump to search
The six first Legendre polynomials.

In physical science and mathematics, Legendre polynomials (named after Adrien-Marie Legendre, who discovered them in 1782) are a system of complete and orthogonal polynomials, with a vast 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, and associated Legendre functions.

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 over the interval [1,1]. That is, Pn(x) is a polynomial of degree n, such that

11Pm(x)Pn(x)dx=0if nm.

This determines the polynomials completely up to an overall scale factor, which is fixed by the standardization Pn(1)=1. That this is a constructive definition is seen thus: P0(x)=1 is the only correctly standardized polynomial of degree 0. P1(x) must be orthogonal to P0, leading to P1(x)=x, and P2(x) is determined by demanding orthogonality to P0 and P1, and so on. Pn is fixed by demanding orthogonality to all Pm with m<n. This gives n conditions, which, along with the standardization Pn(1)=1 fixes all n+1 coefficients in Pn(x). With work, all the coefficients of every polynomial can be systematically determined, leading to the explicit representation in powers of x given below.

This definition of the Pn'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,x2,x3,. Finally, by defining them via orthogonality with respect to the most obvious weight function on a finite interval, 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,), and the Hermite polynomials, orthogonal over the full line (,), with weight functions that are the most natural analytic functions that ensure convergence of all integrals.

Definition via generating function

The Legendre polynomials can also be defined as the coefficients in a formal expansion in powers of t of the generating function[1]

 

 

 

 

(2)

The coefficient of tn is a polynomial in x of degree n. Expanding up to t1 gives

P0(x)=1,P1(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 Pn's without resorting to direct expansion of the Taylor series, however. Eq. 2 is differentiated with respect to t on both sides and rearranged to obtain

xt12xt+t2=(12xt+t2)n=1nPn(x)tn1.

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)Pn+1(x)=(2n+1)xPn(x)nPn1(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

 

 

 

 

(1)

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,

ddx((1x2)ddx)P(x)=λP(x),

with the eigenvalue λ in lieu of n(n+1). If we demand that the solution be regular at x=±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,, and the eigenfunctions are the Pn(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 Qn. 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 Pn(cosθ) where θ 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.

Orthonormality and completeness

The standardization Pn(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,

11Pm(x)Pn(x)dx=22n+1δ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.

That the polynomials are complete means the following. Given any piecewise continuous function f(x) with finitely many discontinuities in the interval [−1,1], the sequence of sums

fn(x)==0naP(x)

converges in the mean to f(x) as n, provided we take

a=2+1211f(x)P(x)dx.

This completeness property underlies all the expansions discussed in this article, and is often stated in the form

=02+12P(x)P(y)=δ(xy),

with −1 ≤ x ≤ 1 and −1 ≤ y ≤ 1.

Rodrigues' formula and other explicit formulas

An especially compact expression for the Legendre polynomials is given by Rodrigues' formula:

Pn(x)=12nn!dndxn(x21)n.

This formula enables derivation of a large number of properties of the Pn's. Among these are explicit representations such as

Pn(x)=12nk=0n(nk)2(x1)nk(x+1)k,Pn(x)=k=0n(nk)(n+kk)(x12)k,Pn(x)=12nk=0[n2](1)k(nk)(2n2kn)xn2k,Pn(x)=2nk=0nxk(nk)(n+k12n),

where the last, 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:

nPn(x)011x212(3x21)312(5x33x)418(35x430x2+3)518(63x570x3+15x)6116(231x6315x4+105x25)7116(429x7693x5+315x335x)81128(6435x812012x6+6930x41260x2+35)91128(12155x925740x7+18018x54620x3+315x)101256(46189x10109395x8+90090x630030x4+3465x263)

The graphs of these polynomials (up to n = 5) are shown below:

Plot of the six first Legendre polynomials.
Plot of the six first Legendre polynomials.

Applications of Legendre polynomials

Expanding a 1/r potential

The Legendre polynomials were first introduced in 1782 by Adrien-Marie Legendre[2] as the coefficients in the expansion of the Newtonian potential

1|xx|=1r2+r22rrcosγ==0rr+1P(cosγ),

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(Ar+Br(+1))P(cosθ).

Al and Bl are to be determined according to the boundary condition of each problem.[3]

They also appear when solving the Schrödinger equation in three dimensions for a central force.

Legendre polynomials in multipole expansions

Diagram for the multipole expansion of electric potential.
Diagram for the multipole expansion of electric potential.

Legendre polynomials are also useful in expanding functions of the form (this is the same as before, written a little differently):

11+η22ηx=k=0ηkPk(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,θ)1R=1r2+a22arcosθ.

If the radius r of the observation point P is greater than a, the potential may be expanded in the Legendre polynomials

Φ(r,θ)1rk=0(ar)kPk(cosθ),

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.

Legendre polynomials in trigonometry

The trigonometric functions cos , also denoted as the Chebyshev polynomials Tn(cos θ) ≡ cos , can also be multipole expanded by the Legendre polynomials Pn(cos θ). The first several orders are as follows:

T0(cosθ)=1=P0(cosθ),T1(cosθ)=cosθ=P1(cosθ),T2(cosθ)=cos2θ=13(4P2(cosθ)P0(cosθ)),T3(cosθ)=cos3θ=15(8P3(cosθ)3P1(cosθ)),T4(cosθ)=cos4θ=1105(192P4(cosθ)80P2(cosθ)7P0(cosθ)),T5(cosθ)=cos5θ=163(128P5(cosθ)56P3(cosθ)9P1(cosθ)),T6(cosθ)=cos6θ=11155(2560P6(cosθ)1152P4(cosθ)220P2(cosθ)33P0(cosθ)).

Another property is the expression for sin (n + 1)θ, which is

sin(n+1)θsinθ==0nP(cosθ)Pn(cosθ).

Legendre polynomials in recurrent neural networks

A recurrent neural network that contains a d-dimensional memory vector, md, can be optimized such that its neural activities obey the linear time-invariant system given by the following state-space representation:

θm˙(t)=Am(t)+Bu(t)
A=[a]ijd×d,aij=(2i+1){1i<j(1)ij+1ijB=[b]id×1,bi=(2i+1)(1)i.

In this case, the sliding window of u across the past θ units of time is best approximated by a linear combination of the first d shifted Legendre polynomials, weighted together by the elements of m at time t:

u(tθ)=0d1P~(θθ)m(t),0θθ.

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.[4]

Additional properties of Legendre polynomials

Legendre polynomials have definite parity. That is, they are even or odd,[5] according to

Pn(x)=(1)nPn(x).

Another useful property is

11Pn(x)dx=0 for n1,

which follows from considering the orthogonality relation with P0(x)=1. It is convenient when a Legendre series iaiPi 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 a0.

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

Pn(1)=1.

The derivative at the end point is given by

Pn(1)=n(n+1)2.

The Askey–Gasper inequality for Legendre polynomials reads

j=0nPj(x)0for x1.

The Legendre polynomials of a scalar product of unit vectors can be expanded with spherical harmonics using

P(rr)=4π2+1m=Ym(θ,φ)Ym*(θ,φ),

where the unit vectors r and r have spherical coordinates (θ,φ) and (θ′,φ′), respectively.

Recurrence relations

As discussed above, the Legendre polynomials obey the three-term recurrence relation known as Bonnet’s recursion formula

(n+1)Pn+1(x)=(2n+1)xPn(x)nPn1(x)

and

x21nddxPn(x)=xPn(x)Pn1(x)

or, with the alternative expression, which also holds at the endpoints

ddxPn+1(x)=(n+1)Pn(x)+xddxPn(x).

Useful for the integration of Legendre polynomials is

(2n+1)Pn(x)=ddx(Pn+1(x)Pn1(x)).

From the above one can see also that

ddxPn+1(x)=(2n+1)Pn(x)+(2(n2)+1)Pn2(x)+(2(n4)+1)Pn4(x)+

or equivalently

ddxPn+1(x)=2Pn(x)Pn2+2Pn2(x)Pn22+

where ||Pn|| is the norm over the interval −1 ≤ x ≤ 1

Pn=11(Pn(x))2dx=22n+1.

Asymptotes

Asymptotically for [6]

P(cosθ)=θsinθJ0((+1/2)θ)+𝒪(1)=22πsinθcos((+12)θπ4)+𝒪(3/2),θ(0,π),

and for arguments of magnitude greater than 1

P(11e2)=I0(e)+𝒪(1)=12πe(1+e)+12(1e)2+𝒪(1),

where J0 and I0 are Bessel functions.

Zeros

All n zeros of Pn(x) are real, distinct from each other, and lie in the interval (1,1). Further, if we regard them as dividing the interval [1,1] into n+1 subintervals, each subinterval will contain exactly one zero of Pn+1. This is known as the interlacing property. Because of the parity property it is evident that if xk is a zero of Pn(x), so is xk. These zeros play an important role in numerical integration based on Gaussian quadrature. The specific quadrature based on the Pn's is known as Gauss-Legendre quadrature.

From this property and the facts that Pn(±1)0, it follows that Pn(x) has n1 local minima and maxima in (1,1). Equivalently, dPn(x)/dx has n1 zeros in (1,1).

Pointwise evaluations

The parity and normalization implicate the values at the boundaries x=±1 to be

Pn(1)=1,Pn(1)={1forn=2m1forn=2m+1.

At the origin x=0 one can show that the values are given by

Pn(0)={(1)m4m(2mm)=(1)m22m(2m)!(m!)2forn=2m0forn=2m+1.

Legendre polynomials with transformed argument

Shifted Legendre polynomials

The shifted Legendre polynomials are defined as

P~n(x)=Pn(2x1).

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 n(x) are orthogonal on [0,1]:

01P~m(x)P~n(x)dx=12n+1δmn.

An explicit expression for the shifted Legendre polynomials is given by

P~n(x)=(1)nk=0n(nk)(n+kk)(x)k.

The analogue of Rodrigues' formula for the shifted Legendre polynomials is

P~n(x)=1n!dndxn(x2x)n.

The first few shifted Legendre polynomials are:

nP~n(x)0112x126x26x+1320x330x2+12x1470x4140x3+90x220x+15252x5630x4+560x3210x2+30x1

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:

Rn(x)=2x+1Pn(x1x+1).

They are eigenfunctions of the singular Sturm–Liouville problem:

(x+1)x(xx((x+1)v(x)))+λv(x)=0

with eigenvalues

λn=n(n+1).

See also

Notes

  1. Arfken & Weber 2005, p.743
  2. Legendre, A.-M. (1785) [1782]. "Recherches sur l'attraction des sphéroïdes homogènes" (PDF). Mémoires de Mathématiques et de Physique, présentés à l'Académie Royale des Sciences, par divers savans, et lus dans ses Assemblées (in French). X. Paris. pp. 411–435. Archived from the original (PDF) on 2009-09-20.CS1 maint: unrecognized language (link)
  3. Jackson, J. D. (1999). Classical Electrodynamics (3rd ed.). Wiley & Sons. p. 103. ISBN 978-0-471-30932-1.
  4. Voelker, Aaron R.; Kajić, Ivana; Eliasmith, Chris (2019). Legendre Memory Units: Continuous-Time Representation in Recurrent Neural Networks (PDF). Advances in Neural Information Processing Systems. Cite uses deprecated parameter |conferenceurl= (help)
  5. Arfken & Weber 2005, p.753
  6. 1895–1985., Szegő, Gábor (1975). Orthogonal polynomials (4th ed.). Providence: American Mathematical Society. pp. 194 (Theorem 8.21.2). ISBN 0821810235. OCLC 1683237.CS1 maint: numeric names: authors list (link)

References

External links