Legendre polynomials: Difference between revisions
imported>OAbot m Open access bot: url-access=subscription updated in citation with #oabot. |
imported>WereSpielChequers typo |
||
| Line 14: | Line 14: | ||
<math display="block">\int_{-1}^1 P_m(x) P_n(x) \,dx = 0 \quad \text{if } n \ne m.</math> | <math display="block">\int_{-1}^1 P_m(x) P_n(x) \,dx = 0 \quad \text{if } n \ne m.</math> | ||
With the additional standardization condition <math>P_n(1) = 1</math>, all the polynomials can be uniquely determined. We then start the construction process: <math>P_0(x) = 1</math> is the only correctly standardized polynomial of degree 0. <math>P_1(x)</math> must be orthogonal to <math>P_0</math>, leading to <math>P_1(x) = x</math>, and <math>P_2(x)</math> is determined by demanding orthogonality to <math>P_0</math> and <math>P_1</math>, and so on. <math>P_n</math> is fixed by demanding orthogonality to all <math>P_m</math> with <math> m < n </math>. This gives <math> n </math> conditions, which, along with the standardization <math> P_n(1) = 1</math> fixes all <math> n+1</math> coefficients in <math> P_n(x)</math>. With work, all the coefficients of every polynomial can be systematically determined, leading to the explicit representation in powers of <math>x</math> given below. | With the additional standardization condition <math>P_n(1) = 1</math>, all the polynomials can be uniquely determined. We then start the construction process: <math>P_0(x) = 1</math> is the only correctly standardized polynomial of degree 0. <math>P_1(x)</math> must be orthogonal to <math>P_0</math>, leading to <math>P_1(x) = x</math>, and <math>P_2(x)</math> is determined by demanding orthogonality to <math>P_0</math> and <math>P_1</math>, and so on. <math>P_n</math> is fixed by demanding orthogonality to all <math>P_m</math> with <math>m < n</math>. This gives <math> n </math> conditions, which, along with the standardization <math> P_n(1) = 1</math> fixes all <math> n+1</math> coefficients in <math> P_n(x)</math>. With work, all the coefficients of every polynomial can be systematically determined, leading to the explicit representation in powers of <math>x</math> given below. | ||
This definition of the <math>P_n</math>'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, <math> x, x^2, x^3, \ldots</math>. Finally, by defining them via orthogonality with respect to the [[Lebesgue measure]] on <math> [-1, 1] </math>, it sets up the Legendre polynomials as one of the three [[classical orthogonal polynomials|classical orthogonal polynomial systems]]. The other two are the [[Laguerre polynomials]], which are orthogonal over the half line <math>[0,\infty)</math> with the weight <math> e^{-x} </math>, and the [[Hermite polynomials]], orthogonal over the full line <math>(-\infty,\infty)</math> with weight <math> e^{-x^2} </math>. | This definition of the <math>P_n</math>'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, <math> x, x^2, x^3, \ldots</math>. Finally, by defining them via orthogonality with respect to the [[Lebesgue measure]] on <math> [-1, 1] </math>, it sets up the Legendre polynomials as one of the three [[classical orthogonal polynomials|classical orthogonal polynomial systems]]. The other two are the [[Laguerre polynomials]], which are orthogonal over the half line <math>[0,\infty)</math> with the weight <math> e^{-x} </math>, and the [[Hermite polynomials]], orthogonal over the full line <math>(-\infty,\infty)</math> with weight <math> e^{-x^2} </math>. | ||
| Line 28: | Line 28: | ||
It is possible to obtain the higher <math>P_n</math>'s without resorting to direct expansion of the [[Taylor series]], however. Equation {{EquationNote|2}} is differentiated with respect to {{mvar|t}} on both sides and rearranged to obtain | It is possible to obtain the higher <math>P_n</math>'s without resorting to direct expansion of the [[Taylor series]], however. Equation {{EquationNote|2}} is differentiated with respect to {{mvar|t}} on both sides and rearranged to obtain | ||
<math display="block">\frac{x-t}{\sqrt{1-2xt+t^2}} = \left(1-2xt+t^2\right) \sum_{n=1}^\infty n P_n(x) t^{n-1} \,.</math> | <math display="block">\frac{x-t}{\sqrt{1-2xt+t^2}} = \left(1-2xt+t^2\right) \sum_{n=1}^\infty n P_n(x) t^{n-1} \,.</math> | ||
Replacing the quotient of the square root with its definition in Eq. {{EquationNote|2}}, and [[equating the coefficients]] of powers of {{math|''t''}} in the resulting expansion gives '' | Replacing the quotient of the [[square root]] with its definition in Eq. {{EquationNote|2}}, and [[equating the coefficients]] of powers of {{math|''t''}} in the resulting expansion gives ''Bonnet's recursion formula'' | ||
<math display="block"> (n+1) P_{n+1}(x) = (2n+1) x P_n(x) - n P_{n-1}(x)\,.</math> | <math display="block"> (n+1) P_{n+1}(x) = (2n+1) x P_n(x) - n P_{n-1}(x)\,.</math> | ||
This relation, along with the first two polynomials {{math|''P''<sub>0</sub>}} and {{math|''P''<sub>1</sub>}}, allows all the rest to be generated recursively. | This relation, along with the first two polynomials {{math|''P''<sub>0</sub>}} and {{math|''P''<sub>1</sub>}}, allows all the rest to be generated recursively. | ||
| Line 39: | Line 39: | ||
This [[differential equation]] has [[regular singular point]]s at {{math|1=''x'' = ±1}} so if a solution is sought using the standard [[Frobenius method|Frobenius]] or [[power series]] method, a series about the origin will only converge for {{math|{{abs|''x''}} < 1}} in general. When {{math|''n''}} is an integer, the solution {{math|''P<sub>n</sub>''(''x'')}} that is regular at {{math|1=''x'' = 1}} is also regular at {{math|1=''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, | This [[differential equation]] has [[regular singular point]]s at {{math|1=''x'' = ±1}} so if a solution is sought using the standard [[Frobenius method|Frobenius]] or [[power series]] method, a series about the origin will only converge for {{math|{{abs|''x''}} < 1}} in general. When {{math|''n''}} is an integer, the solution {{math|''P<sub>n</sub>''(''x'')}} that is regular at {{math|1=''x'' = 1}} is also regular at {{math|1=''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, | ||
<math display="block">\frac{d}{dx} \left( \left(1-x^2\right) \frac{d}{dx} | <math display="block">\frac{d}{dx} \left( \left(1-x^2\right) \frac{d}{dx} P(x) \right) = -\lambda P(x) \,,</math> | ||
with the eigenvalue <math>\lambda</math> in lieu of <math> n(n+1)</math>. If we demand that the solution be regular at | with the eigenvalue <math>\lambda</math> in lieu of <math> n(n+1)</math>. This is a Sturm–Liouville equation with <math>p = 1-x^2, q = 0, w = 1</math>. | ||
If we demand that the solution be regular at | |||
<math>x = \pm 1</math>, the [[differential operator]] on the left is [[Hermitian]]. The eigenvalues are found to be of the form | <math>x = \pm 1</math>, the [[differential operator]] on the left is [[Hermitian]]. The eigenvalues are found to be of the form | ||
{{math|''n''(''n'' + 1)}}, with <math>n = 0, 1, 2, \ldots</math> and the eigenfunctions are the <math>P_n(x)</math>. The orthogonality and completeness of this set of solutions follows at once from the larger framework of Sturm–Liouville theory. | {{math|''n''(''n'' + 1)}}, with <math>n = 0, 1, 2, \ldots</math> and the eigenfunctions are the <math>P_n(x)</math>. The orthogonality and completeness of this set of solutions follows at once from the larger framework of Sturm–Liouville theory. | ||
| Line 55: | Line 57: | ||
This formula enables derivation of a large number of properties of the <math>P_n</math>'s. Among these are explicit representations such as | This formula enables derivation of a large number of properties of the <math>P_n</math>'s. Among these are explicit representations such as | ||
<math display="block">\begin{align} | <math display="block">\begin{align} | ||
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)&= \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)&= \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)&= \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)&= 2^n \sum_{k=0}^n x^k \binom{n}{k} \binom{\frac{n+k-1}{2}}{n}, \\[1ex] | ||
P_n(x)&=\frac{1}{2^n | P_n(x)&=\frac{1}{2^n}\sum_{k=\lceil n/2 \rceil}^{n}\frac{(-1)^{k+n}(2k)!}{(2k-n)!(n-k)!k!}x^{2k-n}, \\[1ex] | ||
P_n(x)&= \begin{cases} | P_n(x)&= \begin{cases} | ||
\displaystyle\frac{1}{\pi}\int_0^\pi {\left(x+\sqrt{x^2-1}\cdot\cos (t) \right)}^n\,dt & \text{if } |x|>1, \\ | \displaystyle\frac{1}{\pi}\int_0^\pi {\left(x+\sqrt{x^2-1}\cdot\cos (t) \right)}^n\,dt & \text{if } |x|>1, \\ | ||
| Line 91: | Line 92: | ||
</math> | </math> | ||
for <math>m=0,1,2,\ldots</math>, where an empty product in the numerator (last factor less than the first factor) evaluates to 1. | for <math>m=0,1,2,\ldots</math>, where an [[empty product]] in the numerator (last factor less than the first factor) evaluates to 1. | ||
The first few Legendre polynomials are: | The first few Legendre polynomials are: | ||
| Line 125: | Line 126: | ||
== Main properties == | == Main properties == | ||
=== Orthogonality === | === Orthogonality and normalization === | ||
The standardization <math>P_n(1) = 1</math> fixes the normalization of the Legendre polynomials (with respect to the [[L2-norm|{{math|''L''<sup>2</sup>}} norm]] on the interval {{math|−1 ≤ ''x'' ≤ 1}}). | The standardization <math>P_n(1) = 1</math> fixes the normalization of the Legendre polynomials (with respect to the [[L2-norm|{{math|''L''<sup>2</sup>}} norm]] on the interval {{math|−1 ≤ ''x'' ≤ 1}}). Rodrigues' formula may be employed to give the normalization integral | ||
<math display="block">\int_{-1}^1 P_n(x)^2\,dx = \frac{2}{2n + 1}.</math> | |||
The statements of normalization and orthogonality can then be compactly written in a single equation: | |||
<math display="block">\int_{-1}^1 P_m(x) P_n(x)\,dx = \frac{2}{2n + 1} \delta_{mn},</math> | <math display="block">\int_{-1}^1 P_m(x) P_n(x)\,dx = \frac{2}{2n + 1} \delta_{mn},</math> | ||
where {{math|''δ<sub>mn</sub>''}} denotes the [[Kronecker delta]]. | |||
=== Completeness === | === Completeness === | ||
| Line 148: | Line 150: | ||
{{main|Laplace expansion (potential)}} | {{main|Laplace expansion (potential)}} | ||
The Legendre polynomials were first introduced in 1782 by [[Adrien-Marie Legendre]]<ref>{{cite book |first1=A.-M. |last1=Legendre |chapter=Recherches sur l'attraction des sphéroïdes homogènes |title=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 |volume=X |pages=411–435 |location=Paris |date=1785 |orig- | The Legendre polynomials were first introduced in 1782 by [[Adrien-Marie Legendre]]<ref>{{cite book |first1=A.-M. |last1=Legendre |chapter=Recherches sur l'attraction des sphéroïdes homogènes |title=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 |volume=X |pages=411–435 |location=Paris |date=1785 |orig-date=1782 |language=fr |chapter-url=http://edocs.ub.uni-frankfurt.de/volltexte/2007/3757/pdf/A009566090.pdf |archive-url=https://web.archive.org/web/20090920070434/http://edocs.ub.uni-frankfurt.de/volltexte/2007/3757/pdf/A009566090.pdf |archive-date=2009-09-20 }}</ref> as the coefficients in the expansion of the [[Newtonian potential]] | ||
<math display="block">\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),</math> | <math display="block">\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),</math> | ||
where {{math|''r''}} and {{math|''r''′}} are the lengths of the vectors {{math|'''x'''}} and {{math|'''x'''′}} respectively and {{math|''γ''}} is the angle between those two vectors. The series converges when {{math|''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. | where {{math|''r''}} and {{math|''r''′}} are the lengths of the vectors {{math|'''x'''}} and {{math|'''x'''′}} respectively and {{math|''γ''}} is the angle between those two vectors. The series converges when {{math|''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. | ||
| Line 198: | Line 200: | ||
where <math>\hat n\equiv \lfloor n/2\rfloor</math>, | where <math>\hat n\equiv \lfloor n/2\rfloor</math>, | ||
<math>n'\equiv \lfloor (n+1)/2\rfloor</math>, and where the products | <math>n'\equiv \lfloor (n+1)/2\rfloor</math>, and where the products with the steps of two in the numerator and denominator are | ||
with the steps of two in the numerator and denominator are | to be interpreted as 1 if they are empty, i.e., if the last factor is smaller than the first factor. | ||
to be interpreted as 1 if | |||
first factor. | |||
| Line 222: | Line 222: | ||
\end{align}</math> | \end{align}</math> | ||
In this case, the sliding window of <math>u</math> across the past <math>\theta</math> units of time is [[Approximation theory|best approximated]] by a linear combination of the first <math>d</math> shifted Legendre polynomials, weighted together by the elements of <math>\mathbf{m}</math> at time <math>t</math>: | In this case, the sliding window of <math>u</math> across the past <math>\theta</math> units of time is [[Approximation theory|best approximated]] by a [[linear combination]] of the first <math>d</math> shifted Legendre polynomials, weighted together by the elements of <math>\mathbf{m}</math> at time <math>t</math>: | ||
<math display="block">u(t - \theta') \approx \sum_{\ell=0}^{d-1} \widetilde{P}_\ell \left(\frac{\theta'}{\theta} \right) \, m_{\ell}(t) , \quad 0 \le \theta' \le \theta .</math> | <math display="block">u(t - \theta') \approx \sum_{\ell=0}^{d-1} \widetilde{P}_\ell \left(\frac{\theta'}{\theta} \right) \, m_{\ell}(t) , \quad 0 \le \theta' \le \theta .</math> | ||
| Line 235: | Line 235: | ||
which follows from considering the orthogonality relation with <math>P_0(x) = 1</math>. It is convenient when a Legendre series <math display="inline">\sum_i a_i P_i</math> is used to approximate a function or experimental data: the ''average'' of the series over the interval {{closed-closed|−1, 1}} is simply given by the leading expansion coefficient <math>a_0</math>. | which follows from considering the orthogonality relation with <math>P_0(x) = 1</math>. It is convenient when a Legendre series <math display="inline">\sum_i a_i P_i</math> is used to approximate a function or experimental data: the ''average'' of the series over the interval {{closed-closed|−1, 1}} is simply given by the leading expansion coefficient <math>a_0</math>. | ||
The | The antiderivative is<ref> | ||
{{cite journal|first1=Orion|last1=Ciftja|title=Integrals of Legendre Polynomials over half range and their relation to the electrostatic potential in hemispherical geometry|year=2022|journal=Results in Physics|volume=40| | {{cite journal|first1=Orion|last1=Ciftja|title=Integrals of Legendre Polynomials over half range and their relation to the electrostatic potential in hemispherical geometry|year=2022|journal=Results in Physics|volume=40|article-number=105838|doi=10.1016/j.rinp.2022.105838|bibcode=2022ResPh..4005838C |doi-access=free}} | ||
</ref> | </ref> | ||
| Line 291: | Line 291: | ||
<math display="block">\frac{d}{dx} P_{n+1}(x) = \frac{2 P_n(x)}{\left\| P_n \right\|^2} + \frac{2 P_{n-2}(x)}{\left\| P_{n-2} \right\|^2} + \cdots</math> | <math display="block">\frac{d}{dx} P_{n+1}(x) = \frac{2 P_n(x)}{\left\| P_n \right\|^2} + \frac{2 P_{n-2}(x)}{\left\| P_{n-2} \right\|^2} + \cdots</math> | ||
where {{math|{{norm|''P<sub>n</sub>''}}}} is the norm over the interval {{math|−1 ≤ ''x'' ≤ 1}} | where {{math|{{norm|''P<sub>n</sub>''}}}} is the norm over the interval {{math|−1 ≤ ''x'' ≤ 1}} | ||
<math display="block">\| P_n \| = \sqrt{\int_{-1}^1 \bigl(P_n(x)\bigr)^2 \,dx} = \sqrt{\frac{2}{2 n + 1}} \,.</math>More generally, all orders of derivatives are expressible as a sum of Legendre polynomials:<ref>{{Cite journal |last=Doha |first=E. H. |date=1991-01-01 |title=The coefficients of differentiated expansions and derivatives of ultraspherical polynomials | <math display="block">\| P_n \| = \sqrt{\int_{-1}^1 \bigl(P_n(x)\bigr)^2 \,dx} = \sqrt{\frac{2}{2 n + 1}} \,.</math>More generally, all orders of derivatives are expressible as a sum of Legendre polynomials:<ref>{{Cite journal |last=Doha |first=E. H. |date=1991-01-01 |title=The coefficients of differentiated expansions and derivatives of ultraspherical polynomials |journal=Computers & Mathematics with Applications |volume=21 |issue=2 |pages=115–122 |doi=10.1016/0898-1221(91)90089-M |issn=0898-1221}}</ref><math display="block">\begin{aligned} | ||
&\begin{aligned} | &\begin{aligned} | ||
& \frac{d^q}{dx^q} P_{q+2 j}(x)=\frac{2^{q-1}}{(q-1)!} \sum_{i=0}^j(4 i+1) \frac{(q+j-i-1)!\Gamma\left(q+j+i+\frac{1}{2}\right)}{(j-i)!\Gamma(j+i+3 / 2)} P_{2 i}(x) \\ | & \frac{d^q}{dx^q} P_{q+2 j}(x)=\frac{2^{q-1}}{(q-1)!} \sum_{i=0}^j(4 i+1) \frac{(q+j-i-1)!\Gamma\left(q+j+i+\frac{1}{2}\right)}{(j-i)!\Gamma(j+i+3 / 2)} P_{2 i}(x) \\ | ||
| Line 304: | Line 304: | ||
===Asymptotics=== | ===Asymptotics=== | ||
Asymptotically, for <math>\ell \to \infty</math>, the Legendre polynomials can be written as <ref name=":0">{{Cite book |last=Szegő |first=Gábor |title=Orthogonal polynomials |date=1975 |publisher=American Mathematical Society |isbn= | Asymptotically, for <math>\ell \to \infty</math>, the Legendre polynomials can be written as the '''Hilb's formula''':<ref name=":0">{{Cite book |last=Szegő |first=Gábor |title=Orthogonal polynomials |date=1975 |publisher=American Mathematical Society |isbn=0-8218-1023-5 |edition=4th |location=Providence |oclc=1683237}}</ref>{{Pg|location=Theorem 8.21.2|page=194}} | ||
<math display="block">\begin{align} | <math display="block">\begin{align} | ||
P_\ell (\cos \theta) &= \sqrt{\frac{\theta}{\sin\left(\theta\right)}} | P_\ell (\cos \theta) &= \sqrt{\frac{\theta}{\sin\left(\theta\right)}} | ||
Revision as of 13:18, 1 November 2025
Template:Short description Script error: No such module "Distinguish".
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 over the interval . That is, is a polynomial of degree , such that
With the additional standardization condition , all the polynomials can be uniquely determined. We then start the construction process: is the only correctly standardized polynomial of degree 0. must be orthogonal to , leading to , and is determined by demanding orthogonality to and , and so on. is fixed by demanding orthogonality to all with . This gives conditions, which, along with the standardization fixes all coefficients in . With work, all the coefficients of every polynomial can be systematically determined, leading to the explicit representation in powers of given below.
This definition of the '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, . Finally, by defining them via orthogonality with respect to the Lebesgue measure on , 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 with the weight , and the Hermite polynomials, orthogonal over the full line with weight .
Definition via generating function
The Legendre polynomials can also be defined as the coefficients in a formal expansion in powers of of the generating function[1] Template:NumBlk
The coefficient of is a polynomial in of degree with . Expanding up to gives 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 's without resorting to direct expansion of the Taylor series, however. Equation 2 is differentiated with respect to Template:Mvar on both sides and rearranged to obtain Replacing the quotient of the square root with its definition in Eq. 2, and equating the coefficients of powers of tScript error: No such module "Check for unknown parameters". in the resulting expansion gives Bonnet's recursion formula This relation, along with the first two polynomials P0Script error: No such module "Check for unknown parameters". and P1Script error: No such module "Check for unknown parameters"., 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: Template:NumBlk
This differential equation has regular singular points at x = ±1Script error: No such module "Check for unknown parameters". so if a solution is sought using the standard Frobenius or power series method, a series about the origin will only converge for Template:Abs < 1Script error: No such module "Check for unknown parameters". in general. When nScript error: No such module "Check for unknown parameters". is an integer, the solution Pn(x)Script error: No such module "Check for unknown parameters". that is regular at x = 1Script error: No such module "Check for unknown parameters". is also regular at x = −1Script error: No such module "Check for unknown parameters"., 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, with the eigenvalue in lieu of . This is a Sturm–Liouville equation with .
If we demand that the solution be regular at , the differential operator on the left is Hermitian. The eigenvalues are found to be of the form n(n + 1)Script error: No such module "Check for unknown parameters"., with and the eigenfunctions are the . 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 . 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 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.
Rodrigues' formula and other explicit formulas
An especially compact expression for the Legendre polynomials is given by Rodrigues' formula:
This formula enables derivation of a large number of properties of the 's. Among these are explicit representations such as
Expressing the polynomial as a power series, , the coefficients of powers of can also be calculated using the recurrences
or
The Legendre polynomial is determined by the values used for the two constants and , where if is odd and if is even.[2]
In the fourth representation, stands for the largest integer less than or equal to . The fifth 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 reversal of the representation as a power series is [3][4]
for , where an empty product in the numerator (last factor less than the first factor) evaluates to 1.
The first few Legendre polynomials are:
| 0 | |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 |
The graphs of these polynomials (up to n = 5Script error: No such module "Check for unknown parameters".) are shown below:
Main properties
Orthogonality and normalization
The standardization fixes the normalization of the Legendre polynomials (with respect to the L2Script error: No such module "Check for unknown parameters". norm on the interval −1 ≤ x ≤ 1Script error: No such module "Check for unknown parameters".). Rodrigues' formula may be employed to give the normalization integral The statements of normalization and orthogonality can then be compactly written in a single equation: where δmnScript error: No such module "Check for unknown parameters". denotes the Kronecker delta.
Completeness
That the polynomials are complete means the following. Given any piecewise continuous function with finitely many discontinuities in the interval Template:Closed-closed, the sequence of sums converges in the mean to as , provided we take
This completeness property underlies all the expansions discussed in this article, and is often stated in the form with −1 ≤ x ≤ 1Script error: No such module "Check for unknown parameters". and −1 ≤ y ≤ 1Script error: No such module "Check for unknown parameters"..
Applications
Expanding an inverse distance potential
Script error: No such module "Labelled list hatnote".
The Legendre polynomials were first introduced in 1782 by Adrien-Marie Legendre[5] as the coefficients in the expansion of the Newtonian potential where rScript error: No such module "Check for unknown parameters". and r′Script error: No such module "Check for unknown parameters". are the lengths of the vectors xScript error: No such module "Check for unknown parameters". and x′Script error: No such module "Check for unknown parameters". respectively and γScript error: No such module "Check for unknown parameters". is the angle between those two vectors. The series converges when r > r′Script error: No such module "Check for unknown parameters".. 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) = 0Script error: No such module "Check for unknown parameters"., 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 ẑScript error: No such module "Check for unknown parameters". is the axis of symmetry and θScript error: No such module "Check for unknown parameters". is the angle between the position of the observer and the ẑScript error: No such module "Check for unknown parameters". axis (the zenith angle), the solution for the potential will be
AlScript error: No such module "Check for unknown parameters". and BlScript error: No such module "Check for unknown parameters". are to be determined according to the boundary condition of each problem.[6]
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): 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,θ)Script error: No such module "Check for unknown parameters". (in spherical coordinates) due to a point charge located on the zScript error: No such module "Check for unknown parameters".-axis at z = aScript error: No such module "Check for unknown parameters". (see diagram right) varies as
If the radius rScript error: No such module "Check for unknown parameters". of the observation point PScript error: No such module "Check for unknown parameters". is greater than aScript error: No such module "Check for unknown parameters"., the potential may be expanded in the Legendre polynomials where we have defined η = Template:Sfrac < 1Script error: No such module "Check for unknown parameters". and x = cos θScript error: No such module "Check for unknown parameters".. This expansion is used to develop the normal multipole expansion.
Conversely, if the radius rScript error: No such module "Check for unknown parameters". of the observation point PScript error: No such module "Check for unknown parameters". is smaller than aScript error: No such module "Check for unknown parameters"., the potential may still be expanded in the Legendre polynomials as above, but with aScript error: No such module "Check for unknown parameters". and rScript error: No such module "Check for unknown parameters". exchanged. This expansion is the basis of interior multipole expansion.
In trigonometry
The trigonometric functions cos nθScript error: No such module "Check for unknown parameters"., also denoted as the Chebyshev polynomials Tn(cos θ) ≡ cos nθScript error: No such module "Check for unknown parameters"., can also be multipole expanded by the Legendre polynomials Pn(cos θ)Script error: No such module "Check for unknown parameters".. The first several orders are as follows:
This can be summarized for as
where , , and where the products with the steps of two in the numerator and denominator are to be interpreted as 1 if they are empty, i.e., if the last factor is smaller than the first factor.
Another property is the expression for sin (n + 1)θScript error: No such module "Check for unknown parameters"., which is
In recurrent neural networks
A recurrent neural network that contains a dScript error: No such module "Check for unknown parameters".-dimensional memory vector, , can be optimized such that its neural activities obey the linear time-invariant system given by the following state-space representation:
In this case, the sliding window of across the past units of time is best approximated by a linear combination of the first shifted Legendre polynomials, weighted together by the elements of at time :
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.[7]
Additional properties
Legendre polynomials have definite parity. That is, they are even or odd,[8] according to
Another useful property is which follows from considering the orthogonality relation with . It is convenient when a Legendre series is used to approximate a function or experimental data: the average of the series over the interval Template:Closed-closed is simply given by the leading expansion coefficient .
The antiderivative is[9]
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
The derivative at the end point is given by
The product expansion is [10]
where .
The Askey–Gasper inequality for Legendre polynomials reads
The Legendre polynomials of a scalar product of unit vectors can be expanded with spherical harmonics using where the unit vectors rScript error: No such module "Check for unknown parameters". and r′Script error: No such module "Check for unknown parameters". have spherical coordinates (θ, φ)Script error: No such module "Check for unknown parameters". and (θ′, φ′)Script error: No such module "Check for unknown parameters"., respectively.
The product of two Legendre polynomials [11] where is the complete elliptic integral of the first kind.
The formulas of Dirichlet-Mehler:[12][13][14]Template:Pg[15]which has generalizations for associated Legendre polynomials.[16][17]
The Fourier-Legendre series:[18]where is the Bessel function 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 and or, with the alternative expression, which also holds at the endpoints
Useful for the integration of Legendre polynomials is
From the above one can see also that or equivalently where Template:NormScript error: No such module "Check for unknown parameters". is the norm over the interval −1 ≤ x ≤ 1Script error: No such module "Check for unknown parameters". More generally, all orders of derivatives are expressible as a sum of Legendre polynomials:[19]
Asymptotics
Asymptotically, for , the Legendre polynomials can be written as the Hilb's formula:[14]Template:Pg and for arguments of magnitude greater than 1[20] where J0Script error: No such module "Check for unknown parameters"., J1Script error: No such module "Check for unknown parameters"., and I0Script error: No such module "Check for unknown parameters". are Bessel functions.
Zeros
All zeros of are real, distinct from each other, and lie in the interval . Furthermore, if we regard them as dividing the interval into subintervals, each subinterval will contain exactly one zero of . This is known as the interlacing property. Because of the parity property it is evident that if is a zero of , so is . These zeros play an important role in numerical integration based on Gaussian quadrature. The specific quadrature based on the 's is known as Gauss-Legendre quadrature.
The zeros of are distributed nearly uniformly over the range of , in the sense that there is one zero per .[21] This can be proved by looking at the first formula of Dirichlet-Mehler.[22]
From this property and the facts that , it follows that has local minima and maxima in . Equivalently, has zeros in .
Pointwise evaluations
The parity and normalization implicate the values at the boundaries to be At the origin one can show that the values are given by
Variants with transformed argument
Shifted Legendre polynomials
The shifted Legendre polynomials are defined as Here the "shifting" function x ↦ 2x − 1Script error: No such module "Check for unknown parameters". is an affine transformation that bijectively maps the interval Template:Closed-closed to the interval Template:Closed-closed, implying that the polynomials P̃n(x)Script error: No such module "Check for unknown parameters". are orthogonal on Template:Closed-closed:
An explicit expression for the shifted Legendre polynomials is given by
The analogue of Rodrigues' formula for the shifted Legendre polynomials is
The first few shifted Legendre polynomials are:
| 0 | |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 |
Legendre rational functions
Script error: No such module "Labelled list hatnote".
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:
They are eigenfunctions of the singular Sturm–Liouville problem: with eigenvalues
See also
<templatestyles src="Div col/styles.css"/>
Notes
<templatestyles src="Reflist/styles.css" />
- ↑ Script error: No such module "Footnotes".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "Footnotes".
- ↑ Script error: No such module "Citation/CS1".
- ↑ Script error: No such module "Citation/CS1".
- ↑ Script error: No such module "Citation/CS1".
- ↑ Script error: No such module "Citation/CS1".
- ↑ Script error: No such module "Citation/CS1".
- ↑ a b Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "Citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Lord Rayleigh, Theory of sound, Volume II, p. 273
- ↑ Script error: No such module "Citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "Citation/CS1".
- ↑ Script error: No such module "Citation/CS1".
Script error: No such module "Check for unknown parameters".
References
<templatestyles src="Refbegin/styles.css" />
- Script error: No such module "citation/CS1". See also chapter 22.
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1"..
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1"..
External links
- A quick informal derivation of the Legendre polynomial in the context of the quantum mechanics of hydrogen
- Template:Springer
- 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