Neha Patil (Editor)

Legendre polynomials

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Legendre polynomials

In mathematics, Legendre functions are solutions to Legendre's differential equation:

Contents

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 equation has regular singular points at x = ±1 so, in general, a series solution about the origin will only converge for |x| < 1. 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).

These solutions for n = 0, 1, 2, ... (with the normalization Pn(1) = 1) form a polynomial sequence of orthogonal polynomials called the Legendre polynomials. Each Legendre polynomial Pn(x) is an nth-degree polynomial. It may be expressed using Rodrigues' formula:

P n ( x ) = 1 2 n n ! d n d x n [ ( x 2 1 ) n ] .

That these polynomials satisfy the Legendre differential equation (1) follows by differentiating n + 1 times both sides of the identity

( x 2 1 ) d d x ( x 2 1 ) n = 2 n x ( x 2 1 ) n

and employing the general Leibniz rule for repeated differentiation. The Pn can also be defined as the coefficients in a Taylor series expansion:

In physics, this ordinary generating function is the basis for multipole expansions.

Recursive definition

Expanding the Taylor series in Equation (2) for the first two terms gives

P 0 ( x ) = 1 , P 1 ( x ) = x

for the first two Legendre Polynomials. To obtain further terms without resorting to direct expansion of the Taylor series, 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 .

Replacing the quotient of the square root with its definition in (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 ) .

This relation, along with the first two polynomials P0 and P1, allows the Legendre Polynomials to be generated recursively.

Explicit representations include

P n ( x ) = 1 2 n k = 0 n ( n k ) 2 ( x 1 ) n k ( x + 1 ) k = k = 0 n ( n k ) ( n 1 k ) ( 1 x 2 ) k = 2 n k = 0 n x k ( n k ) ( n + k 1 2 n ) ,

where the latter, which is immediate from the recursion formula, expresses the Legendre polynomials by simple monomials and involves the multiplicative formula of the binomial coefficient.

The first few Legendre polynomials are:

n P n ( x ) 0 1 1 x 2 1 2 ( 3 x 2 1 ) 3 1 2 ( 5 x 3 3 x ) 4 1 8 ( 35 x 4 30 x 2 + 3 ) 5 1 8 ( 63 x 5 70 x 3 + 15 x ) 6 1 16 ( 231 x 6 315 x 4 + 105 x 2 5 ) 7 1 16 ( 429 x 7 693 x 5 + 315 x 3 35 x ) 8 1 128 ( 6435 x 8 12012 x 6 + 6930 x 4 1260 x 2 + 35 ) 9 1 128 ( 12155 x 9 25740 x 7 + 18018 x 5 4620 x 3 + 315 x ) 10 1 256 ( 46189 x 10 109395 x 8 + 90090 x 6 30030 x 4 + 3465 x 2 63 )

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

Orthogonality

An important property of the Legendre polynomials is that they are orthogonal with respect to the L2-norm on the interval −1 ≤ x ≤ 1:

1 1 P m ( x ) P n ( x ) d x = 2 2 n + 1 δ m n

(where δmn denotes the Kronecker delta, equal to 1 if m = n and to 0 otherwise). In fact, an alternative derivation of the Legendre polynomials is by carrying out the Gram–Schmidt process on the polynomials {1, xx2, ...} with respect to this inner product. The reason for this orthogonality property is that the Legendre differential equation can be viewed as a Sturm–Liouville problem, where the Legendre polynomials are eigenfunctions of a Hermitian differential operator:

d d x [ ( 1 x 2 ) d d x P ( x ) ] = λ P ( x ) ,

where the eigenvalue λ corresponds to n(n + 1).

Applications of Legendre polynomials in physics

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 γ )

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 z ^ is the axis of symmetry and θ is the angle between the position of the observer and the z ^ axis (the zenith angle), the solution for the potential will be

Φ ( r , θ ) = = 0 [ A r + B r ( + 1 ) ] P ( cos θ ) .

A and B are to be determined according to the boundary condition of each problem.

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

Legendre polynomials 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 )

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 (Figure 2) varies like

Φ ( r , θ ) 1 R = 1 r 2 + a 2 2 a r cos θ

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 θ )

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 n θ , also denoted as the Chebyshev polynomials T n ( cos θ ) cos n θ , can also be multipole expanded by the Legendre polynomials P n ( 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 θ ) )

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

sin ( n + 1 ) θ sin θ = = 0 n P ( cos θ ) P n ( cos θ )

Additional properties of Legendre polynomials

Legendre polynomials are symmetric or antisymmetric, that is

P n ( x ) = ( 1 ) n P n ( x ) .

Since the differential equation and the orthogonality property are independent of scaling, the Legendre polynomials' definitions are "standardized" (sometimes called "normalization", but note that the actual norm is not unity) by being scaled so that

P n ( 1 ) = 1.

The derivative at the end point is given by

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

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

( n + 1 ) P n + 1 ( x ) = ( 2 n + 1 ) x P n ( x ) n P n 1 ( x )

and

x 2 1 n d d x P n ( x ) = x P n ( x ) P n 1 ( 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 ) ] .

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 ) +

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 +

where P n is the norm over the interval −1 ≤ x ≤ 1

P n = 1 1 ( P n ( x ) ) 2 d x = 2 2 n + 1 .

From Bonnet’s recursion formula one obtains by induction the explicit representation

P n ( x ) = k = 0 n ( 1 ) k ( n k ) 2 ( 1 + x 2 ) n k ( 1 x 2 ) k .

The Askey–Gasper inequality for Legendre polynomials reads

j = 0 n P j ( x ) 0 ( x 1 ) .

A sum of Legendre polynomials is related to the Dirac delta function for 1 y 1 and 1 x 1

δ ( y x ) = 1 2 = 0 ( 2 + 1 ) P ( y ) P ( x ) .

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 ( θ , ϕ ) .

where the unit vectors r and r' have spherical coordinates ( θ , ϕ ) and ( θ , ϕ ) , respectively.

Asymptotically for for arguments less than unity

P ( cos θ ) = J 0 ( θ ) + O ( 1 ) = 2 2 π sin θ cos [ ( + 1 2 ) θ π 4 ] + O ( 1 )

and for arguments greater than unity

P ( 1 1 e 2 ) = I 0 ( e ) + O ( 1 ) = 1 2 π e ( 1 + e ) ( + 1 ) / 2 ( 1 e ) / 2 + O ( 1 ) ,

where J 0 and I 0 are Bessel functions.

Shifted Legendre polynomials

The shifted Legendre polynomials are defined as P n ~ ( x ) = P n ( 2 x 1 ) . Here the "shifting" function x 2 x 1 (in fact, it is an affine transformation) is chosen such that it 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 .

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 .

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

The first few shifted Legendre polynomials are:

n P n ~ ( x ) 0 1 1 2 x 1 2 6 x 2 6 x + 1 3 20 x 3 30 x 2 + 12 x 1 4 70 x 4 140 x 3 + 90 x 2 20 x + 1

Legendre functions of the second kind ( Q n ) {displaystyle (Q_{n})}

As well as polynomial solutions, the Legendre equation has non-polynomial solutions represented by infinite series. These are the Legendre functions of the second kind, denoted by Q n ( x ) .

Q n ( x ) = n ! 1 3 ( 2 n + 1 ) [ x ( n + 1 ) + ( n + 1 ) ( n + 2 ) 2 ( 2 n + 3 ) x ( n + 3 ) + ( n + 1 ) ( n + 2 ) ( n + 3 ) ( n + 4 ) 2 4 ( 2 n + 3 ) ( 2 n + 5 ) x ( n + 5 ) + ]

The differential equation

d d x [ ( 1 x 2 ) d d x f ( x ) ] + n ( n + 1 ) f ( x ) = 0

has the general solution

f ( x ) = A P n ( x ) + B Q n ( x ) ,

where A and B are constants.

Legendre functions of fractional degree

Legendre functions of fractional degree exist and follow from insertion of fractional derivatives as defined by fractional calculus and non-integer factorials (defined by the gamma function) into the Rodrigues' formula. The resulting functions continue to satisfy the Legendre differential equation throughout (−1,1), but are no longer regular at the endpoints. The fractional degree Legendre function Pn agrees with the associated Legendre polynomial P0
n
.

References

Legendre polynomials Wikipedia