HOME

TheInfoList



OR:

In physical science and
mathematics Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern 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 function In mathematics, the associated Legendre polynomials are the canonical solutions of the general Legendre equation \left(1 - x^2\right) \frac P_\ell^m(x) - 2 x \frac P_\ell^m(x) + \left \ell (\ell + 1) - \frac \rightP_\ell^m(x) = 0, or equivalentl ...
s.


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/math>. That is, P_n(x) is a polynomial of degree n, such that \int_^1 P_m(x) P_n(x) \,dx = 0 \quad \text n \ne m. With the additional standardization condition P_n(1) = 1, all the polynomials can be uniquely determined. We then start the construction process: P_0(x) = 1 is the only correctly standardized polynomial of degree 0. P_1(x) must be orthogonal to P_0, leading to P_1(x) = x, and P_2(x) is determined by demanding orthogonality to P_0 and P_1, and so on. P_n is fixed by demanding orthogonality to all P_m with m < n . This gives n conditions, which, along with the standardization P_n(1) = 1 fixes all n+1 coefficients in P_n(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 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, \ldots. 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 ,\infty), and the Hermite polynomials, orthogonal over the full line (-\infty,\infty), 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 The coefficient of t^n is a polynomial in x of degree n with , x, <=1. Expanding up to t^1 gives 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's without resorting to direct expansion of the Taylor series, however. Eq.  is differentiated with respect to on both sides and rearranged to obtain \frac = \left(1-2xt+t^2\right) \sum_^\infty n P_n(x) t^ \,. Replacing the quotient of the square root with its definition in Eq. , and equating the coefficients of powers of in the resulting expansion gives ''Bonnet’s recursion formula'' (n+1) P_(x) = (2n+1) x P_n(x) - n P_(x)\,. This relation, along with the first two polynomials and , 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 In mathematics, a differential equation is an equation that relates one or more unknown functions and their derivatives. In applications, the functions generally represent physical quantities, the derivatives represent their rates of change, ...
has regular singular points at so if a solution is sought using the standard Frobenius or
power series In mathematics, a power series (in one variable) is an infinite series of the form \sum_^\infty a_n \left(x - c\right)^n = a_0 + a_1 (x - c) + a_2 (x - c)^2 + \dots where ''an'' represents the coefficient of the ''n''th term and ''c'' is a con ...
method, a series about the origin will only converge for in general. When is an integer, the solution that is regular at is also regular at , 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 In mathematics and its applications, classical Sturm–Liouville theory is the theory of ''real'' second-order ''linear'' ordinary differential equations of the form: for given coefficient functions , , and , an unknown function ''y = y''(''x'') ...
. We rewrite the differential equation as an eigenvalue problem, \frac \left( \left(1-x^2\right) \frac \right) P(x) = -\lambda P(x) \,, with the eigenvalue \lambda in lieu of n(n+1). If we demand that the solution be regular at x = \pm 1, the differential operator on the left is Hermitian. The eigenvalues are found to be of the form , with n = 0, 1, 2, \ldots and the eigenfunctions are the 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. A two-parameter generalization of (Eq. ) is called Legendre's ''general'' differential equation, solved by the Associated Legendre polynomials.
Legendre functions In physical science and mathematics, the Legendre functions , and associated Legendre functions , , and Legendre functions of the second kind, , are all solutions of Legendre's differential equation. The Legendre polynomials and the associated ...
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 In mathematics and physical science, spherical harmonics are special functions defined on the surface of a sphere. They are often employed in solving partial differential equations in many scientific fields. Since the spherical harmonics form ...
, 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\theta) where \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.


Orthogonality and completeness

The standardization P_n(1) = 1 fixes the normalization of the Legendre polynomials (with respect to the norm on the interval ). Since they are also orthogonal with respect to the same norm, the two statements can be combined into the single equation, \int_^1 P_m(x) P_n(x)\,dx = \frac \delta_, (where denotes the Kronecker delta, equal to 1 if 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 , the sequence of sums f_n(x) = \sum_^n a_\ell P_\ell(x) converges in the mean to f(x) as n \to \infty , provided we take a_\ell = \frac \int_^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 \sum_^\infty \frac P_\ell(x)P_\ell(y) = \delta(x-y), with and .


Rodrigues' formula and other explicit formulas

An especially compact expression for the Legendre polynomials is given by Rodrigues' formula: P_n(x) = \frac \frac (x^2 -1)^n \,. This formula enables derivation of a large number of properties of the P_n's. Among these are explicit representations such as \begin P_n(x)&= \frac \sum_^n \binom^2 (x-1)^(x+1)^k, \\ P_n(x)&=\sum_^n \binom \binom \left( \frac \right)^k, \\ P_n(x)&=\frac1\sum_^(-1)^k\binom nk\binomn x^,\\ P_n(x)&= 2^n \sum_^n x^k \binom \binom. \end In the third representation, ⌊n/2⌋ stands for the largest integer less than or equal to 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 ) are shown below:


Applications of Legendre polynomials


Expanding a 1/''r'' potential

The Legendre polynomials were first introduced in 1782 by Adrien-Marie Legendre as the coefficients in the expansion of the
Newtonian potential In mathematics, the Newtonian potential or Newton potential is an operator in vector calculus that acts as the inverse to the negative Laplacian, on functions that are smooth and decay rapidly enough at infinity. As such, it is a fundamental object ...
\frac = \frac = \sum_^\infty \frac P_\ell(\cos \gamma), where and are the lengths of the vectors and respectively and is the angle between those two vectors. The series converges when . The expression gives the gravitational potential associated to a point mass or the Coulomb potential associated to a
point charge A point particle (ideal particle or point-like particle, often spelled pointlike particle) is an idealization of particles heavily used in physics. Its defining feature is that it lacks spatial extension; being dimensionless, it does not take u ...
. 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, , in a charge-free region of space, using the method of
separation of variables In mathematics, separation of variables (also known as the Fourier method) is any of several methods for solving ordinary and partial differential equations, in which algebra allows one to rewrite an equation so that each of two variables occurs ...
, where the boundary conditions have axial symmetry (no dependence on an
azimuthal angle An azimuth (; from ar, اَلسُّمُوت, as-sumūt, the directions) is an angular measurement in a spherical coordinate system. More specifically, it is the horizontal angle from a cardinal direction, most commonly north. Mathematically, ...
). 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 \Phi(r,\theta) = \sum_^\infty \left( A_\ell r^\ell + B_\ell r^ \right) P_\ell(\cos\theta) \,. and are to be determined according to the boundary condition of each problem. They also appear when solving the
Schrödinger equation The Schrödinger equation is a linear partial differential equation that governs the wave function of a quantum-mechanical system. It is a key result in quantum mechanics, and its discovery was a significant landmark in the development of th ...
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): \frac = \sum_^\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 The electric potential (also called the ''electric field potential'', potential drop, the electrostatic potential) is defined as the amount of work energy needed to move a unit of electric charge from a reference point to the specific point in ...
(in spherical coordinates) due to a
point charge A point particle (ideal particle or point-like particle, often spelled pointlike particle) is an idealization of particles heavily used in physics. Its defining feature is that it lacks spatial extension; being dimensionless, it does not take u ...
located on the -axis at (see diagram right) varies as \Phi (r, \theta ) \propto \frac = \frac. If the radius of the observation point is greater than , the potential may be expanded in the Legendre polynomials \Phi(r, \theta) \propto \frac \sum_^\infty \left( \frac \right)^k P_k(\cos \theta), where we have defined and . This expansion is used to develop the normal multipole expansion. Conversely, if the radius of the observation point is smaller than , the potential may still be expanded in the Legendre polynomials as above, but with and exchanged. This expansion is the basis of interior multipole expansion.


Legendre polynomials in trigonometry

The trigonometric functions , also denoted as the Chebyshev polynomials , can also be multipole expanded by the Legendre polynomials . The first several orders are as follows: \begin T_0(\cos\theta)&=1 &&=P_0(\cos\theta),\\ ptT_1(\cos\theta)&=\cos \theta&&=P_1(\cos\theta),\\ ptT_2(\cos\theta)&=\cos 2\theta&&=\tfrac\bigl(4P_2(\cos\theta)-P_0(\cos\theta)\bigr),\\ ptT_3(\cos\theta)&=\cos 3\theta&&=\tfrac\bigl(8P_3(\cos\theta)-3P_1(\cos\theta)\bigr),\\ ptT_4(\cos\theta)&=\cos 4\theta&&=\tfrac\bigl(192P_4(\cos\theta)-80P_2(\cos\theta)-7P_0(\cos\theta)\bigr),\\ ptT_5(\cos\theta)&=\cos 5\theta&&=\tfrac\bigl(128P_5(\cos\theta)-56P_3(\cos\theta)-9P_1(\cos\theta)\bigr),\\ ptT_6(\cos\theta)&=\cos 6\theta&&=\tfrac\bigl(2560P_6(\cos\theta)-1152P_4(\cos\theta)-220P_2(\cos\theta)-33P_0(\cos\theta)\bigr). \end Another property is the expression for , which is \frac=\sum_^n P_\ell(\cos\theta) P_(\cos\theta).


Legendre polynomials in recurrent neural networks

A recurrent neural network that contains a -dimensional memory vector, \mathbf \in \R^d, can be optimized such that its neural activities obey the linear time-invariant system given by the following
state-space representation In control engineering, a state-space representation is a mathematical model of a physical system as a set of input, output and state variables related by first-order differential equations or difference equations. State variables are variables ...
: \theta \dot(t) = A\mathbf(t) + Bu(t), \begin A &= \left a \right \in \R^ \text \quad && a_ = \left(2i + 1\right) \begin -1 & i < j \\ (-1)^ & i \ge j \end,\\ B &= \left b \righti \in \R^ \text \quad && b_i = (2i + 1) (-1)^i . \end In this case, the sliding window of u across the past \theta units of time is best approximated by a linear combination of the first d shifted Legendre polynomials, weighted together by the elements of \mathbf at time t: u(t - \theta') \approx \sum_^ \widetilde_\ell \left(\frac \right) \, m_(t) , \quad 0 \le \theta' \le \theta . When combined with
deep learning Deep learning (also known as deep structured learning) is part of a broader family of machine learning methods based on artificial neural networks with representation learning. Learning can be supervised, semi-supervised or unsupervised. ...
methods, these networks can be trained to outperform
long short-term memory Long short-term memory (LSTM) is an artificial neural network used in the fields of artificial intelligence and deep learning. Unlike standard feedforward neural networks, LSTM has feedback connections. Such a recurrent neural network (RNN) c ...
units and related architectures, while using fewer computational resources.


Additional properties of Legendre polynomials

Legendre polynomials have definite parity. That is, they are even or odd, according to P_n(-x) = (-1)^n P_n(x) \,. Another useful property is \int_^1 P_n(x)\,dx = 0 \text n\ge1, which follows from considering the orthogonality relation with P_0(x) = 1. It is convenient when a Legendre series \sum_i a_i P_i is used to approximate a function or experimental data: the ''average'' of the series over the interval is simply given by the leading expansion coefficient 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 \,. The derivative at the end point is given by P_n'(1) = \frac \,. The Askey–Gasper inequality for Legendre polynomials reads \sum_^n P_j(x) \ge 0 \quad \text\quad x\ge -1 \,. The Legendre polynomials of a scalar product of unit vectors can be expanded with
spherical harmonics In mathematics and physical science, spherical harmonics are special functions defined on the surface of a sphere. They are often employed in solving partial differential equations in many scientific fields. Since the spherical harmonics form ...
using P_\ell \left(r \cdot r'\right) = \frac \sum_^\ell Y_(\theta,\varphi) Y_^*(\theta',\varphi')\,, where the unit vectors and 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 given by (n+1) P_(x) = (2n+1) x P_n(x) - n P_(x) and \frac \frac P_n(x) = xP_n(x) - P_(x) or, with the alternative expression, which also holds at the endpoints \frac P_(x) = (n+1)P_n(x) + x \fracP_(x) \,. Useful for the integration of Legendre polynomials is (2n+1) P_n(x) = \frac \bigl( P_(x) - P_(x) \bigr) \,. From the above one can see also that \frac P_(x) = (2n+1) P_n(x) + \bigl(2(n-2)+1\bigr) P_(x) + \bigl(2(n-4)+1\bigr) P_(x) + \cdots or equivalently \frac P_(x) = \frac + \frac + \cdots where is the norm over the interval \, P_n \, = \sqrt = \sqrt \,.


Asymptotics

Asymptotically, for \ell \to \infty, the Legendre polynomials can be written as \begin P_\ell (\cos \theta) &= \sqrt \, J_0((\ell+1/2)\theta) + \mathcal\left(\ell^\right) \\ &= \frac\cos\left(\left(\ell + \tfrac12\right)\theta - \frac\right) + \mathcal\left(\ell^\right), \quad \theta \in (0,\pi), \end and for arguments of magnitude greater than 1 \begin P_\ell \left(\cosh\xi\right) &= \sqrt I_0\left(\left(\ell+\frac\right)\xi\right)\left(1+\mathcal\left(\ell^\right)\right)\,,\\ P_\ell \left(\frac\right) &= \frac \frac + \mathcal\left(\ell^\right) \end where and are
Bessel functions Bessel functions, first defined by the mathematician Daniel Bernoulli and then generalized by Friedrich Bessel, are canonical solutions of Bessel's differential equation x^2 \frac + x \frac + \left(x^2 - \alpha^2 \right)y = 0 for an arbitrar ...
.


Zeros

All n zeros of P_n(x) are real, distinct from each other, and lie in the interval (-1,1). Furthermore, if we regard them as dividing the interval 1,1/math> into n+1 subintervals, each subinterval will contain exactly one zero of P_. This is known as the interlacing property. Because of the parity property it is evident that if x_k is a zero of P_n(x), so is -x_k. These zeros play an important role in numerical integration based on Gaussian quadrature. The specific quadrature based on the P_n's is known as Gauss-Legendre quadrature. From this property and the facts that P_n(\pm 1) \ne 0 , it follows that P_n(x) has n-1 local minima and maxima in (-1,1) . Equivalently, dP_n(x)/dx has n -1 zeros in (-1,1) .


Pointwise evaluations

The parity and normalization implicate the values at the boundaries x=\pm 1 to be P_n(1) = 1 \,, \quad P_n(-1) = \begin 1 & \text \quad n = 2m \\ -1 & \text \quad n = 2m+1 \,. \end At the origin x=0 one can show that the values are given by P_n(0) = \begin \frac \tbinom = \frac \frac & \text \quad n = 2m \\ 0 & \text \quad n = 2m+1 \,. \end


Legendre polynomials with transformed argument


Shifted Legendre polynomials

The shifted Legendre polynomials are defined as \widetilde_n(x) = P_n(2x-1) \,. Here the "shifting" function is an affine transformation that bijectively maps the interval to the interval , implying that the polynomials are orthogonal on : \int_0^1 \widetilde_m(x) \widetilde_n(x)\,dx = \frac \delta_ \,. An explicit expression for the shifted Legendre polynomials is given by \widetilde_n(x) = (-1)^n \sum_^n \binom \binom (-x)^k \,. The analogue of Rodrigues' formula for the shifted Legendre polynomials is \widetilde_n(x) = \frac \frac \left(x^2 -x \right)^n \,. The first few shifted Legendre polynomials are:


Legendre rational functions

The
Legendre rational functions In mathematics the Legendre rational functions are a sequence of orthogonal functions on  , ∞). They are obtained by composing the Cayley transform with Legendre polynomials">Cayley_transform.html" ;"title=", ∞). They are obtai ...
are a sequence of
orthogonal functions In mathematics, orthogonal functions belong to a function space that is a vector space equipped with a bilinear form. When the function space has an interval as the domain, the bilinear form may be the integral of the product of functions over the ...
on , ∞). They are obtained by composing the Cayley transform with Legendre polynomials. A rational Legendre function of degree ''n'' is defined as: R_n(x) = \frac\,P_n\left(\frac\right)\,. They are eigenfunctions of the singular Sturm–Liouville problem: (x+1)\partial_x(x\partial_x((x+1)v(x)))+\lambda v(x)=0 with eigenvalues \lambda_n=n(n+1)\,.


See also

* Gaussian quadrature * Gegenbauer polynomials * Turán's inequalities *
Legendre wavelet In functional analysis, compactly supported wavelets derived from Legendre polynomials are termed Legendre wavelets or spherical harmonic wavelets. Legendre functions have widespread applications in which spherical coordinate system is appropriate. ...
* Jacobi polynomials * Romanovski polynomials *
Laplace expansion (potential) In physics, the Laplace expansion of potentials that are directly proportional to the inverse of the distance ( 1/r ), such as Newton's gravitational potential or Coulomb's electrostatic potential, expresses them in terms of the spherical Legen ...


Notes


References

* * * * * * * *


External links


A quick informal derivation of the Legendre polynomial in the context of the quantum mechanics of hydrogen
*

* ttps://web.archive.org/web/20181009221546/http://www.morehouse.edu/facstaff/cmoore/Legendre%20Polynomials.htm The Legendre Polynomials by Carlyle E. Moorebr>Legendre Polynomials from Hyperphysics
{{DEFAULTSORT:Legendre Polynomials Special hypergeometric functions Orthogonal polynomials Polynomials