The Legendre polynomials, sometimes called Legendre functions of the first kind, Legendre coefficients, or zonal harmonics
(Whittaker and Watson 1990, p. 302), are solutions to the Legendre differential equation. If is an integer, they are polynomials.
The Legendre polynomials are illustrated
above for and , 2, ..., 5.
They are implemented in Mathematica as LegendreP[n, x].
The Legendre polynomial can be defined
by the contour integral
 |
(1)
|
where the contour encloses the origin and is traversed in a counterclockwise direction (Arfken 1985, p. 416).
The first few Legendre polynomials are
When ordered from smallest to largest powers and with the denominators factored out, the triangle of nonzero coefficients is 1, 1, , 3, , 5, 3, , ... (Sloane's
A008316).
The leading denominators are 1, 1, 2, 2, 8, 8, 16, 16, 128, 128, 256, 256, ... (Sloane's
A060818).
The first few powers in terms of Legendre
polynomials are
(Sloane's A008317 and A001790).
A closed form for these is given by
 |
(16)
|
(R. Schmied, pers. comm., Feb. 27, 2005). For Legendre polynomials and powers up to exponent 12, see Abramowitz
and Stegun (1972, p. 798).
The Legendre polynomials can also be generated using Gram-Schmidt
orthonormalization in the open
interval with the weighting function 1.
Normalizing so that gives the
expected Legendre polynomials.
The "shifted" Legendre polynomials are a set of functions analogous to the Legendre polynomials, but defined on the interval (0, 1). They obey the orthogonality relationship
 |
(24)
|
The first few are
The Legendre polynomials are orthogonal over with weighting function 1 and satisfy
 |
(29)
|
where is the Kronecker delta.
The Legendre polynomials are a special case of the ultraspherical functions with , a special
case of the Jacobi polynomials with , and
can be written as a hypergeometric
function using Murphy's formula
 |
(30)
|
(Bailey 1933; 1935, p. 101; Koekoek and Swarttouw 1998).
The Rodrigues representation
provides the formula
 |
(31)
|
which yields upon expansion
where is the floor function. Additional sum formulas include
(Koepf 1998, p. 1). In terms of hypergeometric
functions, these can be written
(Koepf 1998, p. 3).
A generating function for is given by
 |
(42)
|
Take ,
 |
(43)
|
Multiply (43) by ,
 |
(44)
|
and add (42) and (44),
![(1-2xt+t^2)^(-3/2)[(2xt-2t^2)+(1-2xt+t^2)]=sum_(n=0)^infty(2n+1)P_n(x)t^n](/images/equations/LegendrePolynomial/NumberedEquation10.gif) |
(45)
|
This expansion is useful in some physical problems, including expanding the Heyney-Greenstein phase function and computing the charge distribution on a sphere. Another generating
function is given by
 |
(46)
|
where is a zeroth order Bessel function of the first kind (Koepf 1998, p. 2).
The Legendre polynomials satisfy the recurrence
relation
 |
(47)
|
(Koepf 1998, p. 2). In addition,
 |
(48)
|
(correcting Hildebrand 1956, p. 324).
A complex generating function is
 |
(49)
|
and the Schläfli integral is
 |
(50)
|
Integrals over the interval include the
general formula
 |
(51)
|
for (Byerly 1959, p. 172), from
which the special case
follows (Sloane's A002596 and A046161;
Byerly 1959, p. 172). For the integral over a product of Legendre functions,
![int_x^1P_m(x)P_n(x)dx=((1-x^2)[P_n(x)P_m^'(x)-P_m(x)P_n^'(x)])/(m(m+1)-n(n+1))](/images/equations/LegendrePolynomial/NumberedEquation17.gif) |
(54)
|
for (Byerly 1959, p. 172), which
gives the special case
 |
(55)
|
where
![f_(m,n)=((-1)^((m+n+1)/2)m!n!)/(2^(m+n-1)(m-n)(m+n+1)[(1/2m)!]^2{[1/2(n-1)]!}^2)](/images/equations/LegendrePolynomial/NumberedEquation19.gif) |
(56)
|
(Sloane's A078297 and A078298;
Byerly 1959, p. 172). The latter is a special case of
 |
(57)
|
where
 |
(58)
|
and is a gamma function (Gradshteyn and Ryzhik 2000, p. 762, eqn.
7.113.1)
Integrals over with weighting functions and are given by
(Arfken 1985, p. 700).
The Laplace transform is given
by
={1/2sqrt(pi)[sqrt(2/z)I_(-n-1/2)(z)-1/2z_1F_2(1;2+1/2n,1/2(3-n);1/4z^2)] for n even; 1/2sqrt(pi)[sqrt(2/z)I_(-n-1/2)(z)+_1F_2(1;1/2(3+n),1-1/2n;1/4z^2)] for n odd,](/images/equations/LegendrePolynomial/NumberedEquation22.gif) |
(61)
|
where is a modified Bessel function of the first kind.
An sum identity is given by
![1-[P_n(x)]^2=sum_(nu=1)^n(1-x^2)/(1-x_nu^2)[(P_n(x))/(P_n^'(x_nu)(x-x_nu))]^2,](/images/equations/LegendrePolynomial/NumberedEquation23.gif) |
(62)
|
where is the th root of (Szegö 1975, p. 348). A similar
identity is
![sum_(nu=1)^n(1-x_nu^2)/((n+1)^2[P_(n+1)(x_nu)]^2)=1,](/images/equations/LegendrePolynomial/NumberedEquation24.gif) |
(63)
|
which is responsible for the fact that the sum of weights in Legendre-Gauss quadrature is always equal to 2.
The associated Legendre polynomials and are solutions to the associated Legendre differential equation, where is a positive integer and , ..., . They are implemented
in Mathematica
as LegendreP[l,
m, x]. For positive , they can be given
in terms of the unassociated polynomials by
where are the unassociated Legendre polynomials.
The associated Legendre polynomials for negative are then defined
by
 |
(66)
|
There are two sign conventions for associated Legendre polynomials. Some authors (e.g., Arfken 1985, pp. 668-669) omit the Condon-Shortley phase , while others
include it (e.g., Abramowitz and Stegun 1972, Press et al. 1992, and the LegendreP[l,
m, z] command of Mathematica). Care is therefore needed in comparing
polynomials obtained from different sources. One possible way to distinguish the
two conventions is due to Abramowitz and Stegun (1972, p. 332), who use the
notation
 |
(67)
|
to distinguish the two.
Associated polynomials are sometimes called Ferrers' functions (Sansone 1991, p. 246). If , they reduce to the unassociated polynomials. The associated Legendre
functions are part of the spherical
harmonics, which are the solution of Laplace's
equation in spherical
coordinates. They are orthogonal
over with the weighting function 1
 |
(68)
|
and orthogonal over with respect to with the weighting function ,
 |
(69)
|
The associated Legendre polynomials also obey the following recurrence relations
 |
(70)
|
Letting (commonly denoted in this context),
 |
(71)
|
 |
(72)
|
Additional identities are
 |
(73)
|
 |
(74)
|
Including the factor of , the first
few associated Legendre polynomials are
Written in terms (commonly written ), the
first few become
The derivative about the origin is
![[(dP_nu^mu(x))/(dx)]_(x=0)=(2^(mu+1)sin[1/2pi(nu+mu)]Gamma(1/2nu+1/2mu+1))/(pi^(1/2)Gamma(1/2nu-1/2mu+1/2))](/images/equations/LegendrePolynomial/NumberedEquation34.gif) |
(101)
|
(Abramowitz and Stegun 1972, p. 334), and the logarithmic derivative is
![[(dlnP_lambda^mu(z))/(dz)]_(z=0)=2tan[1/2pi(lambda+mu)]([1/2(lambda+mu)]![1/2(lambda-mu)]!)/([1/2(lambda+mu-1)]![1/2(lambda-mu-1)]!).](/images/equations/LegendrePolynomial/NumberedEquation35.gif) |
(102)
|
(Binney and Tremaine 1987, p. 654).
http://functions.wolfram.com/Polynomials/LegendreP/, http://functions.wolfram.com/Polynomials/LegendreP/
Abramowitz, M. and Stegun, I. A. (Eds.). "Legendre Functions" and "Orthogonal Polynomials." Ch. 22 in Chs. 8 and 22 in Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical
Tables, 9th printing. New York: Dover, pp. 331-339 and 771-802, 1972.
Arfken, G. "Legendre Functions." Ch. 12 in Mathematical Methods for Physicists, 3rd ed. Orlando, FL:
Academic Press, pp. 637-711, 1985.
Bailey, W. N. "On the Product of Two Legendre Polynomials." Proc.
Cambridge Philos. Soc. 29, 173-177, 1933.
Bailey, W. N. Generalised Hypergeometric Series. Cambridge, England:
Cambridge University Press, 1935.
Binney, J. and Tremaine, S. "Associated Legendre Functions." Appendix 5 in Galactic Dynamics. Princeton, NJ: Princeton University
Press, pp. 654-655, 1987.
Byerly, W. E. "Zonal Harmonics." Ch. 5 in An Elementary Treatise on Fourier's Series, and Spherical, Cylindrical,
and Ellipsoidal Harmonics, with Applications to Problems in Mathematical Physics.
New York: Dover, pp. 144-194, 1959.
Gradshteyn, I. S. and Ryzhik, I. M. Tables of Integrals, Series, and Products, 6th ed. San
Diego, CA: Academic Press, 2000.
Hildebrand, F. B. Introduction to Numerical Analysis. New York: McGraw-Hill,
1956.
Iyanaga, S. and Kawada, Y. (Eds.). "Legendre Function" and "Associated Legendre Function." Appendix A, Tables 18.II and 18.III in Encyclopedic Dictionary of Mathematics. Cambridge, MA:
MIT Press, pp. 1462-1468, 1980.
Koekoek, R. and Swarttouw, R. F. "Legendre / Spherical." §1.8.3 in The Askey-Scheme of Hypergeometric Orthogonal Polynomials and its -Analogue. Delft, Netherlands: Technische
Universiteit Delft, Faculty of Technical Mathematics and Informatics Report 98-17,
p. 44, 1998.
Koepf, W. Hypergeometric Summation: An Algorithmic Approach to Summation
and Special Function Identities. Braunschweig, Germany: Vieweg, 1998.
Lagrange, R. Polynomes et fonctions de Legendre. Paris: Gauthier-Villars,
1939.
Legendre, A. M. "Sur l'attraction des Sphéroides." Mém. Math. et Phys. présentés à l'Ac. r. des. sc. par divers savants 10,
1785.
Morse, P. M. and Feshbach, H. Methods of Theoretical Physics, Part I. New York: McGraw-Hill,
pp. 593-597, 1953.
Press, W. H.; Flannery, B. P.; Teukolsky, S. A.; and Vetterling, W. T. Numerical Recipes in FORTRAN: The Art of Scientific Computing,
2nd ed. Cambridge, England: Cambridge University Press, p. 252, 1992.
Sansone, G. "Expansions in Series of Legendre Polynomials and Spherical Harmonics." Ch. 3 in Orthogonal Functions, rev. English ed. New York: Dover,
pp. 169-294, 1991.
Sloane, N. J. A. Sequences A001790/M2508, A002596/M3768, A008316, A008317, A046161, A060818, A078297, and A078298 in "The On-Line Encyclopedia of Integer Sequences."
Snow, C. Hypergeometric and Legendre Functions with Applications to Integral
Equations of Potential Theory. Washington, DC: U. S. Government Printing
Office, 1952.
Spanier, J. and Oldham, K. B. "The Legendre Polynomials " and
"The Legendre Functions and ." Chs. 21 and 59 in An Atlas of Functions. Washington, DC: Hemisphere, pp. 183-192
and 581-597, 1987.
Strutt, J. W. "On the Values of the Integral ,
, being LaPlace's
Coefficients of the orders , , with an Application
to the Theory of Radiation." Philos. Trans. Roy. Soc. London 160,
579-590, 1870.
Szegö, G. Orthogonal Polynomials, 4th ed. Providence, RI: Amer. Math.
Soc., 1975.
Whittaker, E. T. and Watson, G. N. A Course in Modern Analysis, 4th ed. Cambridge, England:
Cambridge University Press, 1990.
|