Series Solution of Legendre Differential Equation: Legendre Polynomial
📂Odinary Differential EquationsSeries Solution of Legendre Differential Equation: Legendre Polynomial
Definition
The following differential equation is called the Legendre differential equation.
(1−x2)dx2d2y−2xdxdy+l(l+1)y=0
The solution to the Legendre differential equation is called the Legendre polynomial, commonly denoted as Pl(x). The first few Legendre polynomials according to l are as follows.
P0(x)=P1(x)=P2(x)=P3(x)=P4(x)=P5(x)=⋮ 1 x 21(3x2−1) 21(5x3−3x) 81(35x4−30x2+3) 81(63x5−70x3+15x)
Description
The Legendre differential equation is also introduced in the following form.
dxd[(1−x)2dxdy]+l(l+1)y=0
This is expressed in terms of Sturm-Liouville theory. Expanding and rearranging the first term yields the same equation. The generalized form of the Legendre differential equation as below is called the associated Legendre differential equation.
(1−x2)dx2d2y−2xdxdy+(1−x2−m2+l(l+1))y=0
Here, if m=0, it becomes the Legendre differential equation.
The Legendre equation appears in physics and engineering, especially when solving the Laplace equation in spherical coordinates. Physics majors may encounter it when calculating potential in spherical coordinates in electromagnetism, or when solving the Schrödinger equation in spherical coordinates in quantum mechanics. Because the solution process is lengthy, textbooks usually only write down the solution expressed by Rodrigues’ formula. In fact, physics students do not necessarily need to be too curious about the solution.
Solution
Assuming the solution has the form of a power series with the independent variable x, it can be solved.
(1−x2)y′′−2xy′+l(l+1)y=0
Assume the solution to the Legendre differential equation is as follows.
y=a0+a1(x−x0)+a2(x−x0)2+⋯=n=0∑∞an(x−x0)n
When x=0, the coefficient of y′′ becomes (1−x2)∣x=0=1=0, so we assume it as x0=0. Then the series solution is
y=a0+a1x+a2x2+⋯=n=0∑∞anxn
Although we assumed the solution as a series, at the end of the solution, we find that the terms of y are finite. Now, to substitute for (1), let’s find y′ and y′′.
y′=a1+2a2x+3a3x2+⋯=n=1∑∞nanxn−1
y′′=2a2+3⋅2a3x+4⋅3a4x2+⋯=n=2∑n(n−1)anxn−2
Now, substituting y,y′,y′′ into (1),
(1−x2)n=2∑∞n(n−1)anxn−2−2xn=1∑∞nanxn−1+l(l+1)n=0∑∞anxn=0
Expanding the coefficient of the first term (1−x2) and rearranging gives
n=2∑∞n(n−1)anxn−2−x2n=2∑∞n(n−1)anxn−2−2xn=1∑∞nanxn−1+l(l+1)n=0∑∞anxn=0
⟹n=2∑∞n(n−1)anxn−2−n=2∑∞n(n−1)anxn−2n=1∑∞nanxn+l(l+1)n=0∑∞anxn=0
The key here is matching the order of x. While the rest are expressed as xn, only the first series is expressed as xn−2, so substituting n+2 instead of n,
n=0∑∞(n+2)(n+1)an+2xn−n=2∑∞n(n−1)anxn−2n=1∑∞nanxn+l(l+1)n=0∑∞anxn=0
Since the second series starts from the x2 term, taking out the term where n=0,1 from the rest of the series and grouping constant terms with constant terms, and first-order terms with first-order terms,
[2⋅1a2+l(l+1)a0]+[3⋅2a3−2a1+l(l+1)a1]x+n=2∑∞[(n+2)(n+1)an+2−n(n+1)an−2nan+l(l+1)an]xn=0
For the above equation to hold, all coefficients must be 0.
2⋅1a2+l(l+1)a0=0
3⋅2a3−2a1+l(l+1)a1=0
(n+2)(n+1)an+2−n(n+1)an−2nan+l(l+1)an=0
Organizing each gives
a2=−2⋅1l(l+1)a0
a3=−3⋅2(l+2)(l−1)a1
an+2=−(n+2)(n+1)(l+n+1)(l−n)an
Using (3),(4),(5), knowing just the values of a0 and a1 allows us to determine all coefficients. Calculating the coefficients of even-order terms with (3) and (5),
a4=a6=⋮ −4⋯3(l+3)(l−2)a2=4!l(l−2)(l+1)(l+3)a0 −6⋅5(l+5)(l−4)a4=−6!l(l−2)(l−4)(l+1)(l+3)(l+5)a0
If we set n=2m (m=1,2,3,⋯),
an=a2m=(−1)m(2m)!l(l−2)⋯(l−2m+4)(l−2m+2)(l+1)(l+3)⋯(l+2m−3)(l+2m−1)a0
Similarly, calculating the coefficients of odd-order terms with (4) and (5),
a5=a7=⋮ −5⋅4(l+4)(l−3)a3=5!(l+2)(l+4)(l−1)(l−3)a1 −7⋅6(l+6)(l−5)a5=−7!(l+2)(l+4)(l+6)(l−1)(l−3)(l−5)a1
If we set n=2m+1 (m=1,2,3,⋯),
an=a2m+1=(−1)m(2m+1)!(l+2)(l+4)⋯(l+2m−2)(l+2m)(l−1)(l−3)⋯(l−2m+3)(l−2m+1)a1
Substituting these coefficients into (2) to find the solution,
y=\a0+a1x−2!l(l+1)a0x2−3!(l+2)(l−1)a1x3+4!l(l−2)(l+1)(l+3)a0x4+5!(l+2)(l+4)(l−1)(l−3)a1x5+⋯+(−1)m(2m)!l(l−2)⋯(l−2m+4)(l−2m+2)(l+1)(l+3)⋯(l+2m−3)(l+2m−1)a0x2m+(−1)m(2m+1)!(l+2)(l+4)⋯(l+2m−2)(l+2m)(l−1)(l−3)⋯(l−2m+3)(l−2m+1)a1x2m+1+⋯
Grouping even-order terms as a0 and odd-order terms as a1,
y=\a0[1−2!l(l+1)x2+4!l(l−2)(l+1)(l+3)x4+m=3∑∞(−1)m(2m)!l(l−2)⋯(l−2m+4)(l−2m+2)(l+1)(l+3)⋯(l+2m−3)(l+2m−1)x2m]+a1[x−3!(l+2)(l−1)x3+5!(l+2)(l+4)(l−1)(l−3)x5+m=3∑∞(−1)m(2m+1)!(l+2)(l+4)⋯(l+2m−2)(l+2m)(l−1)(l−3)⋯(l−2m+3)(l−2m+1)x2m+1]
Setting the first parenthesis as y0 and the second as y1, the general solution to the Legendre equation is as follows.
y=a0y0+a1y1
The two series y0 and y1 converge in the interval of ∣x∣<1 according to the ratio test. By (5), since anan+2=−(n+2)(n+1)(l+n+1)(l−n)=(n+2)(n+1)(n+l+1)(n−l), using the ratio test,
n→∞lim(n+2)(n+1)(n+l+1)(n−l)x2=x2<1
⟹−1<x<1
However, in many problems, x=cosθ and l appear as non-negative integers, and the goal is to find solutions that converge for all θ. That is, to find solutions that also converge at x=±1. Fortunately, when l is an integer, the desired solution exists, and depending on the value of l, only one of y0,y1 exists. If l is 0 or even, y1 diverges, and y0 becomes a finite-term polynomial with only even-order terms. If l is odd, y0 diverges, and y1 becomes a finite-term polynomial with only odd-order terms. The summary is as follows.
Value of l | y0 | y1 | Equation’s Solution |
---|
0 or even | Finite-term polynomial | Diverge | y=a0y0 |
Odd | Diverge | Finite-term polynomial | y=a1y1 |
Case 1. If l is 0 or even
For l=0, from the 2nd term, taking l as a factor, all become 0, so y0=1
For l=2, from the 4th term, taking (l−2) as a factor, all become 0, so y0=1−3x2
For l=4, from the 6th term, taking (l−4) as a factor, all become 0, so y0=1−10x2+335x4
When l=0, x2=1 becomes y1=1+31+51+⋯, which diverges by the integral test. The same applies to other even numbers. Thus, when l is 0 or even, the solution is a finite-term polynomial with only even-order terms. That is, we obtain a solution that only retains specific terms of the series y0.
Case 2. If l is odd
The opposite result appears compared to even cases.
For l=1, from the 3rd term, taking (l−1) as a factor, all become 0, so y1=x
For l=3, from the 5th term, taking (l−3) as a factor, all become 0, so y1=x−35x3
For l=5, from the 7th term, taking (l−5) as a factor, all become 0, so y1=x−314x3+521x5
When l=1, x2=1 diverges, and the same applies to other odd numbers. Thus, when l is odd, the solution is a finite-term polynomial with only odd-order terms. That is, we obtain a solution that only retains specific terms of the series y1.
And if l is negative, it is the same as when l is a non-zero integer, as can be seen by examining y0 and y1. For example, the case of l=2 is the same as that of l=−3, and the case of l=1 is the same as that of l=−2. Therefore, it suffices to consider only when l is a non-negative integer. Choosing the values of a0 and a1 wisely to make the solution x=1 when y(x)=1, this is called the Legendre polynomial, denoted as Pl(x). The first few Legendre polynomials are as follows.
P0(x)=P1(x)=P2(x)=P3(x)=P4(x)=P5(x)= 1 x 21(3x2−1) 21(5x3−3x) 81(35x4−30x2+3) 81(63x5−70x3+15x)
The above result can also be obtained directly using Rodrigues’ formula.
■