Differential EquationsSeries Solutions5 of 5
Series Solutions · 5

Legendre's Equation and Sphere Modes

We want to find the wave and temperature patterns on a sphere when those patterns depend only on latitude.

1

Waves on a Sphere and Shrinking Latitude Rings

On a flat guitar string of uniform density, a standing wave y\wave{y} satisfies y′′+λy=0\bend{y''} + \lambda \wave{y} = 0, and its modes are ordinary sine waves with equal loops from one end to the other. On a sphere of radius 11, we measure latitude by the angle θ\theta from the North Pole (θ=0\theta = 0), through the Equator (θ=π2\theta = \tfrac{\pi}{2}), down to the South Pole (θ=π\theta = \pi).

x=1x = 1
x=−1x = -1
θ\theta
11
x=cos⁡θx = \cos\theta
sin⁡θ\htmlClass{lc-violet}{\sin\theta}
Waves on a Sphere and Shrinking Latitude Rings
y′′+λy=0\bend{y''} + \lambda\wave{y} = 0
??

Because a horizontal latitude ring at angle θ\theta has radius sin⁡θ\ringsize{\sin\theta}, a wave moving toward either pole gets squeezed into a smaller and smaller circle. Weighting the slope dydθ\rate{\frac{dy}{d\theta}} by the ring radius sin⁡θ\ringsize{\sin\theta} turns the wave equation on the sphere into

1sin⁡θddθ ⁣(sin⁡θ dydθ)+λy\displaystyle \frac{1}{\ringsize{\sin\theta}}\frac{d}{d\theta}\!\left(\ringsize{\sin\theta}\,\rate{\frac{dy}{d\theta}}\right) + \lambda \wave{y} =0\displaystyle = 0
2

Height Coordinates and Legendre's Equation

Solving a differential equation with sin⁡θ\ringsize{\sin\theta} inside the derivative is awkward, so we switch from the angle θ\theta to the vertical height x=cos⁡θx = \cos\theta along the sphere's axis, running from x=−1x = -1 at the South Pole, through x=0x = 0 at the Equator, to x=1x = 1 at the North Pole.

By the Pythagorean identity sin⁡2θ+cos⁡2θ=1\sin^2\theta + \cos^2\theta = 1, the squared radius of the latitude ring at height xx is sin⁡2θ=1−x2\ringsize{\sin^2\theta} = \ringsize{1 - x^2}. Since dxdθ=−sin⁡θ\frac{dx}{d\theta} = -\ringsize{\sin\theta}, the chain rule gives ddθ=−sin⁡θ ddx\frac{d}{d\theta} = -\ringsize{\sin\theta}\,\frac{d}{dx}. So the outer 1sin⁡θddθ\frac{1}{\ringsize{\sin\theta}}\frac{d}{d\theta} becomes −ddx-\frac{d}{dx}, the inner sin⁡θ dydθ\ringsize{\sin\theta}\,\rate{\frac{dy}{d\theta}} becomes −sin⁡2θ dydx=−(1−x2)dydx-\ringsize{\sin^2\theta}\,\rate{\frac{dy}{dx}} = -\ringsize{(1 - x^2)}\rate{\frac{dy}{dx}}, and the two minus signs cancel.

Height Coordinates and Legendre's Equation
1sin⁡θddθ(sin⁡θ dydθ)+λy=0in the height x=cos⁡θ:  ?\displaystyle \begin{gathered} \frac{1}{\ringsize{\sin\theta}}\frac{d}{d\theta}\left(\ringsize{\sin\theta}\,\rate{\frac{dy}{d\theta}}\right)+\lambda\wave{y}=0 \\[4pt] \text{in the height } x = \cos\theta\text{:}\ \ ? \end{gathered}

Rewriting the sphere equation in terms of height xx and expanding the derivative with the product rule gives Legendre's differential equation:

ddx ⁣[(1−x2)dydx]+λy=0(1−x2)y′′⏟bending weighted bysquared ring radius−2xy′⏟shrinking-ringcorrection+λy⏟waveterm=0\displaystyle \begin{aligned} \frac{d}{dx}\!\left[\ringsize{(1 - x^2)}\rate{\frac{dy}{dx}}\right] + \lambda \wave{y} &= 0 \\[6pt] \underbrace{\ringsize{(1 - x^2)}\bend{y''}}_{\substack{\text{bending weighted by} \\ \text{squared ring radius}}} - \underbrace{2x\rate{y'}}_{\substack{\text{shrinking-ring} \\ \text{correction}}} + \underbrace{\lambda \wave{y}}_{\substack{\text{wave} \\ \text{term}}} &= 0 \end{aligned}

To see where the solutions are smooth and where they can blow up, divide by 1−x2\ringsize{1 - x^2} so y′′\bend{y''} is by itself:

y′′−2x1−x2y′+λ1−x2y\displaystyle \bend{y''} - \frac{2x}{\ringsize{1 - x^2}}\rate{y'} + \frac{\lambda}{\ringsize{1 - x^2}}\wave{y} =0\displaystyle = 0

At the Equator (x=0x = 0), the denominators equal 11, so x=0x = 0 is an ordinary point. At the North and South poles (x=±1x = \pm 1), the squared ring radius 1−x2\ringsize{1 - x^2} drops to 00, making x=1x = 1 and x=−1x = -1 regular singular points.

As the height xx moves from the Equator (x=0x = 0) to either pole (x=±1x = \pm 1), the squared ring radius 1−x2\ringsize{1 - x^2} shrinks from 11 down to 00 and squeezes the wave into a single point, even though tilting the sphere shows that the surface at the poles is just as smooth as anywhere else.

The highlighted factor in Legendre’s equation is the squared radius of the latitude ring at that height, which shrinks to zero at both poles even though the sphere itself is smooth there.
3

Power Series at the Equator and the Two Chains

Because the Equator x=0x = 0 is an ordinary point, we can find the solutions y(x)\wave{y(x)} by expanding in a power series centered at x=0x = 0:

y(x)\displaystyle \wave{y(x)} =a0+a1x+a2x2+a3x3+a4x4+⋯\displaystyle = a_0 + a_1 x + a_2 x^2 + a_3 x^3 + a_4 x^4 + \cdots
Power Series at the Equator and the Two Chains
(1−x2) y′′−2x y′+λy\displaystyle (1-x^2)\,\bend{y''}-2x\,\rate{y'}+\lambda\wave{y} =0\displaystyle = 0
y(x)=a0+a1x+a2x2+⋯ak+2=  ?\displaystyle \begin{aligned} \wave{y(x)} &= a_0+a_1x+a_2x^2+\cdots \\ a_{k+2} &= \;? \end{aligned}
Text solution
Plug a single power xkx^k into each part of Legendre's equationDifferentiating xkx^k twice drops its power to xk−2x^{k-2}, while the remaining terms −x2y′′−2xy′-x^2 \bend{y''} - 2x\rate{y'} drop the power and then multiply by x2x^2 or xx to bring the power right back to xkx^k:
1⋅(xk)′′=k(k−1)xk−2−x2(xk)′′−2x(xk)′=[−k(k−1)−2k]xk=−k(k+1)xkλ(xk)=λxk\displaystyle \begin{aligned} 1 \cdot \bend{(x^k)''} &= k(k - 1)x^{k-2} \\ -x^2\bend{(x^k)''} - 2x\rate{(x^k)'} &= \bigl[-k(k - 1) - 2k\bigr]x^k = -k(k + 1)x^k \\ \lambda\wave{(x^k)} &= \lambda x^k \end{aligned}
Combine all the xkx^k terms and set the total to zeroThe term akxka_k x^k gives [λ−k(k+1)]akxk[\lambda - k(k + 1)]a_k x^k, and the term ak+2xk+2a_{k+2}x^{k+2} in y′′\bend{y''} drops down two powers to give (k+2)(k+1)ak+2xk(k + 2)(k + 1)a_{k+2}x^k. Together, they must add to zero:
(k+2)(k+1)ak+2+[λ−k(k+1)]ak\displaystyle (k + 2)(k + 1)a_{k+2} + \bigl[\lambda - k(k + 1)\bigr]a_k =0\displaystyle = 0
Solve for ak+2a_{k+2} to get the recurrence relationDividing by (k+2)(k+1)(k + 2)(k + 1) gives each coefficient in terms of the one two steps before it:
ak+2\displaystyle a_{k+2} =k(k+1)−λ(k+2)(k+1) ak,k\displaystyle = \frac{k(k + 1) - \lambda}{(k + 2)(k + 1)}\,a_k, \qquad k =0,1,2,…\displaystyle = 0, 1, 2, \dots

Because the index steps by 22, the power series splits into two independent chains: an even chain y1(x)\evenchain{y_1(x)} built from a0=y(0)\evenchain{a_0} = \wave{y(0)} and an odd chain y2(x)\oddchain{y_2(x)} built from a1=y′(0)\oddchain{a_1} = \rate{y'(0)}:

y(x)\displaystyle \wave{y(x)} =a0(1+0−λ2⋅1x2+⋯ )⏟even chain y1(x)+a1(x+2−λ3⋅2x3+⋯ )⏟odd chain y2(x)\displaystyle = \evenchain{a_0} \underbrace{\left(1 + \frac{0 - \lambda}{2 \cdot 1}x^2 + \cdots\right)}_{\text{even chain } \evenchain{y_1(x)}} + \oddchain{a_1} \underbrace{\left(x + \frac{2 - \lambda}{3 \cdot 2}x^3 + \cdots\right)}_{\text{odd chain } \oddchain{y_2(x)}}
4

Blow-Up at the Poles and Quantization

The series converges inside −1<x<1-1 < x < 1, but we need to see what happens to the two chains right at the poles x=±1x = \pm 1.

Blow-Up at the Poles and Quantization
a0\evenchain{a_0}
a2\evenchain{a_2}
a4\evenchain{a_4}
a6\evenchain{a_6}
⋯\evenchain{\cdots}
ak+2=k(k+1)−λ(k+2)(k+1) aka_{k+2} = \dfrac{k(k+1)-\lambda}{(k+2)(k+1)}\,a_k
North Pole\text{North Pole}
x=1x = 1
00
x=−1x = -1
South Pole\text{South Pole}
y(±1)=  ?\wave{y}(\pm 1) = \;?

For large kk, the ratio of consecutive coefficients in a chain is

ak+2ak\displaystyle \frac{a_{k+2}}{a_k} =k(k+1)−λ(k+2)(k+1)≈kk+2\displaystyle = \frac{k(k + 1) - \lambda}{(k + 2)(k + 1)} \approx \frac{k}{k + 2}

Multiplying by kk+2\frac{k}{k + 2} at each step makes the coefficients aka_k shrink like 1k\frac{1}{k}. At x=1x = 1 (and at x=−1x = -1, where the terms in the tail of a single even or odd chain all have the same sign), an infinite chain behaves like the harmonic series ∑1k\sum \frac{1}{k} and blows up to infinity.

The only way a chain stays finite at the poles is if the numerator k(k+1)−λk(k + 1) - \lambda equals zero at some integer step k=nk = n:

λ\displaystyle \lambda =n(n+1),n\displaystyle = n(n + 1), \qquad n =0,1,2,3,…\displaystyle = 0, 1, 2, 3, \dots

When λ=n(n+1)\lambda = n(n + 1), the coefficient an+2a_{n+2} becomes 00, cutting that chain off at xnx^n to form the Legendre polynomial Pn(x)\legendre{P_n(x)}. Meanwhile, the other chain steps by twos right past k=nk = n, never hits zero, and remains an infinite series Qn(x)\secondkind{Q_n(x)} (Legendre function of the second kind) that diverges at x=±1x = \pm 1.

y(x)=c1Pn(x)⏟terminating polynomial,finite at x=±1+c2Qn(x)⏟infinite series,blows up at x=±1\displaystyle \begin{aligned} \wave{y(x)} &= \legendre{c_1} \underbrace{\legendre{P_n(x)}}_{\substack{\text{terminating polynomial,} \\ \text{finite at } x = \pm 1}} + \secondkind{c_2} \underbrace{\secondkind{Q_n(x)}}_{\substack{\text{infinite series,} \\ \text{blows up at } x = \pm 1}} \end{aligned}

On a full sphere that includes both poles, we must set c2=0\secondkind{c_2} = 0 and keep only Pn(x)\legendre{P_n(x)}.

Because a physical wave on a full sphere cannot blow up at the poles, only the special values λ=n(n+1)\lambda = n(n + 1) and their polynomial modes Pn(x)\legendre{P_n(x)} are allowed on a sphere.

Almost every wave built from the Equator blows up at both poles, except at the exact bendings where one power-series chain stops as a smooth polynomial with nodal rings while the other steps past and still blows up.
5

The First Four Legendre Polynomials and Sphere Modes

We now use the recurrence relation to build P0(x)\legendre{P_0(x)}, P1(x)\legendre{P_1(x)}, P2(x)\legendre{P_2(x)}, and P3(x)\legendre{P_3(x)}, choosing the starting constant each time so that the polynomial equals 11 at the North Pole:

Pn(1)\displaystyle \legendre{P_n(1)} =1\displaystyle = 1
The First Four Legendre Polynomials and Sphere Modes
ak+2=k(k+1)−λ(k+2)(k+1) akλ=n(n+1)Pn(x)=  ?n=0,1,2,3\displaystyle \begin{aligned} a_{k+2} &= \frac{k(k+1)-\lambda}{(k+2)(k+1)}\,a_k \\ \lambda &= n(n+1) \\ \legendre{P_n(x)} &= \;? \qquad n = 0, 1, 2, 3 \end{aligned}
Text solution
Degree 0 (n=0n = 0, λ=0\lambda = 0): constant modeSet a1=0\oddchain{a_1} = 0 to drop the odd chain; in the even chain, k=0k = 0 gives a2=0\evenchain{a_2} = 0, and setting a0=1\evenchain{a_0} = 1 so P0(1)=1\legendre{P_0(1)} = 1 gives a constant wave with 00 nodal rings:
P0(x)\displaystyle \legendre{P_0(x)} =1\displaystyle = 1
Degree 1 (n=1n = 1, λ=2\lambda = 2): one equatorial nodal ringSet a0=0\evenchain{a_0} = 0 to drop the even chain; in the odd chain, k=1k = 1 gives a3=1(2)−23⋅2a1=0\oddchain{a_3} = \frac{1(2) - 2}{3 \cdot 2}\oddchain{a_1} = 0, and setting a1=1\oddchain{a_1} = 1 so P1(1)=1\legendre{P_1(1)} = 1 gives 11 nodal ring at the Equator x=0x = 0:
P1(x)\displaystyle \legendre{P_1(x)} =x\displaystyle = x =cos⁡θ\displaystyle = \cos\theta
Degree 2 (n=2n = 2, λ=6\lambda = 6): two nodal ringsSet a1=0\oddchain{a_1} = 0; in the even chain, k=0k = 0 gives a2=−3a0\evenchain{a_2} = -3\evenchain{a_0} and k=2k = 2 gives a4=0\evenchain{a_4} = 0, so choosing a0=−12\evenchain{a_0} = -\frac{1}{2} makes y(1)=−2a0=1\wave{y(1)} = -2\evenchain{a_0} = 1:
a2=0(1)−62⋅1 a0=−3a0y(x)=a0(1−3x2)P2(x)=12(3x2−1)\displaystyle \begin{aligned} \evenchain{a_2} &= \frac{0(1) - 6}{2 \cdot 1}\,\evenchain{a_0} = -3\evenchain{a_0} \\[4pt] \wave{y(x)} &= \evenchain{a_0}(1 - 3x^2) \\[4pt] \legendre{P_2(x)} &= \frac{1}{2}(3x^2 - 1) \end{aligned}
Degree 3 (n=3n = 3, λ=12\lambda = 12): three nodal ringsSet a0=0\evenchain{a_0} = 0; in the odd chain, k=1k = 1 gives a3=−53a1\oddchain{a_3} = -\frac{5}{3}\oddchain{a_1} and k=3k = 3 gives a5=0\oddchain{a_5} = 0, so choosing a1=−32\oddchain{a_1} = -\frac{3}{2} makes y(1)=−23a1=1\wave{y(1)} = -\frac{2}{3}\oddchain{a_1} = 1:
a3=1(2)−123⋅2 a1=−53a1y(x)=a1 ⁣(x−53x3)P3(x)=12(5x3−3x)\displaystyle \begin{aligned} \oddchain{a_3} &= \frac{1(2) - 12}{3 \cdot 2}\,\oddchain{a_1} = -\frac{5}{3}\oddchain{a_1} \\[4pt] \wave{y(x)} &= \oddchain{a_1}\!\left(x - \frac{5}{3}x^3\right) \\[4pt] \legendre{P_3(x)} &= \frac{1}{2}(5x^3 - 3x) \end{aligned}
6

Shortcuts: Rodrigues' Formula and Bonnet's Recurrence

Running the power series from x=0x = 0 and rescaling at x=1x = 1 gets tedious for higher degrees. Instead, we can find any Pn(x)\legendre{P_n(x)} directly by differentiating (x2−1)n(x^2 - 1)^n, or build the next polynomial Pn+1(x)\legendre{P_{n+1}(x)} algebraically from the previous two.

Remember Rolle's theorem: between any two points where a smooth function is zero, its derivative must also have a zero. Because (x2−1)n(x^2 - 1)^n has nn repeated roots at x=−1x = -1 and nn repeated roots at x=1x = 1, differentiating nn times creates nn distinct roots inside (−1,1)(-1, 1) and drops the degree from 2n2n down to nn.

Shortcuts: Rodrigues' Formula and Bonnet's Recurrence
P0(x)=1P1(x)=xP2(x)=12(3x2−1)P3(x)=12(5x3−3x)P4(x)=  ?P5(x)=  ?\displaystyle \begin{aligned} \legendre{P_0(x)} &= 1 \\ \legendre{P_1(x)} &= x \\ \legendre{P_2(x)} &= \tfrac12(3x^2-1) \\ \legendre{P_3(x)} &= \tfrac12(5x^3-3x) \\ \legendre{P_4(x)} &= \;? \\ \legendre{P_5(x)} &= \;? \end{aligned}

Dividing by 2nn!2^n n! so the polynomial equals 11 at x=1x = 1 gives Rodrigues' formula:

Pn(x)\displaystyle \legendre{P_n(x)} =12nn!dndxn ⁣[(x2−1)n]\displaystyle = \frac{1}{2^n n!}\frac{d^n}{dx^n}\!\left[(x^2 - 1)^n\right]

When we already have two consecutive polynomials and want the next one, Bonnet's recurrence relation connects any three in a row:

(n+1)Pn+1(x)\displaystyle (n + 1)\legendre{P_{n+1}(x)} =(2n+1)xPn(x)−nPn−1(x)\displaystyle = (2n + 1)x\legendre{P_n(x)} - n\legendre{P_{n-1}(x)}

Here is a quick way to check the coefficients in Bonnet's recurrence: at x=1x = 1, every Pk(1)=1\legendre{P_k(1)} = 1, so the coefficients on the right, (2n+1)−n(2n + 1) - n, must add up to n+1n + 1 on the left.

Text solution
Finding P2(x)\legendre{P_2(x)} with Rodrigues' formula (n=2n = 2)Expand (x2−1)2(x^2 - 1)^2, take two derivatives, and divide by 22⋅2!=82^2 \cdot 2! = 8:
(x2−1)2=x4−2x2+1ddx(x4−2x2+1)=4x3−4xd2dx2(x4−2x2+1)=12x2−4P2(x)=12x2−48=12(3x2−1)\displaystyle \begin{aligned} (x^2 - 1)^2 &= x^4 - 2x^2 + 1 \\[4pt] \frac{d}{dx}(x^4 - 2x^2 + 1) &= 4x^3 - 4x \\[4pt] \frac{d^2}{dx^2}(x^4 - 2x^2 + 1) &= 12x^2 - 4 \\[4pt] \legendre{P_2(x)} &= \frac{12x^2 - 4}{8} = \frac{1}{2}(3x^2 - 1) \end{aligned}
Finding P4(x)\legendre{P_4(x)} from P3(x)\legendre{P_3(x)} and P2(x)\legendre{P_2(x)} with Bonnet's recurrence (n=3n = 3)Set n=3n = 3 so n+1=4n + 1 = 4, substitute P3(x)\legendre{P_3(x)} and P2(x)\legendre{P_2(x)}, and collect powers of xx:
4P4(x)=7xP3(x)−3P2(x)P4(x)=14 ⁣[7x⋅12(5x3−3x)−3⋅12(3x2−1)]=18[(35x4−21x2)−(9x2−3)]=18(35x4−30x2+3)\displaystyle \begin{aligned} 4\legendre{P_4(x)} &= 7x\legendre{P_3(x)} - 3\legendre{P_2(x)} \\[4pt] \legendre{P_4(x)} &= \frac{1}{4}\!\left[7x \cdot \frac{1}{2}(5x^3 - 3x) - 3 \cdot \frac{1}{2}(3x^2 - 1)\right] \\[4pt] &= \frac{1}{8}\bigl[(35x^4 - 21x^2) - (9x^2 - 3)\bigr] \\[4pt] &= \frac{1}{8}(35x^4 - 30x^2 + 3) \end{aligned}
7

Building Functions and Sphere Interiors from Legendre Modes

We now want to break any surface pattern f(x)\wave{f(x)} on a unit sphere into a sum of Legendre polynomials and find the resulting steady-state temperature T(r,θ)\wave{T(r, \theta)} at any radius rr inside the sphere (0≤r≤10 \le r \le 1).

Building Functions and Sphere Interiors from Legendre Modes
x2\displaystyle \wave{x^2} =? P0+? P1+? P2\displaystyle = {?}\,\legendre{P_0} + {?}\,\legendre{P_1} + {?}\,\legendre{P_2}
Text solution
Subtract from the highest power down to break up a polynomial f(x)=5x3+3x2−x+1\wave{f(x)} = 5x^3 + 3x^2 - x + 1Match 5x35x^3 using 2P3(x)=5x3−3x2\legendre{P_3(x)} = 5x^3 - 3x, subtract it from f(x)\wave{f(x)}, and work down degree by degree to P0(x)=1\legendre{P_0(x)} = 1:
(5x3+3x2−x+1)−(5x3−3x)⏟2P3(x)=3x2+2x+1(3x2+2x+1)−(3x2−1)⏟2P2(x)=2x+2=2P1(x)+2P0(x)5x3+3x2−x+1=2P0(x)+2P1(x)+2P2(x)+2P3(x)\displaystyle \begin{aligned} \wave{(5x^3 + 3x^2 - x + 1)} - \underbrace{(5x^3 - 3x)}_{2\legendre{P_3(x)}} &= 3x^2 + 2x + 1 \\[4pt] (3x^2 + 2x + 1) - \underbrace{(3x^2 - 1)}_{2\legendre{P_2(x)}} &= 2x + 2 = 2\legendre{P_1(x)} + 2\legendre{P_0(x)} \\[4pt] \wave{5x^3 + 3x^2 - x + 1} &= 2\legendre{P_0(x)} + 2\legendre{P_1(x)} + 2\legendre{P_2(x)} + 2\legendre{P_3(x)} \end{aligned}
Multiply each surface mode by rnr^n inside the sphere for T(1,θ)=cos⁡2θ=x2\wave{T(1, \theta)} = \cos^2\theta = \wave{x^2}Solve P2(x)=12(3x2−1)\legendre{P_2(x)} = \frac{1}{2}(3x^2 - 1) for x2\wave{x^2}, then multiply each Pn(cos⁡θ)\legendre{P_n(\cos\theta)} term by rnr^n to get the interior temperature T(r,θ)\wave{T(r, \theta)}:
x2=13P0(x)+23P2(x)T(r,θ)=13P0(cos⁡θ)+23r2P2(cos⁡θ)\displaystyle \begin{aligned} \wave{x^2} &= \frac{1}{3}\legendre{P_0(x)} + \frac{2}{3}\legendre{P_2(x)} \\[4pt] \wave{T(r, \theta)} &= \frac{1}{3}\legendre{P_0(\cos\theta)} + \frac{2}{3}r^2\legendre{P_2(\cos\theta)} \end{aligned}

When f(x)\wave{f(x)} is not a polynomial, we expand f(x)=∑n=0∞cnPn(x)\wave{f(x)} = \sum_{n=0}^\infty c_n \legendre{P_n(x)} using the orthogonality of Legendre polynomials on [−1,1][-1, 1]:

∫−11Pm(x)Pn(x) dx\displaystyle \int_{-1}^1 \legendre{P_m(x)}\legendre{P_n(x)}\,dx =0(m≠n),∫−11[Pn(x)]2 dx\displaystyle = 0 \quad (m \ne n), \qquad \int_{-1}^1 \bigl[\legendre{P_n(x)}\bigr]^2\,dx =22n+1\displaystyle = \frac{2}{2n + 1}

Multiplying f(x)\wave{f(x)} by Pn(x)\legendre{P_n(x)} and integrating from −1-1 to 11 isolates the coefficient cnc_n:

cn\displaystyle c_n =2n+12∫−11f(x)Pn(x) dx\displaystyle = \frac{2n + 1}{2}\int_{-1}^1 \wave{f(x)}\legendre{P_n(x)}\,dx

As we move inward from the surface (r=1r = 1) to the center (r=0r = 0), each Legendre term gets multiplied by rnr^n. Because r2r^2 and r3r^3 shrink quickly toward zero, the higher-degree P2\legendre{P_2} and P3\legendre{P_3} ripples die out fast, while the constant P0\legendre{P_0} term stays the same all the way to the center.

As you go deeper inside the sphere, surface ripples with more rings fade out faster, leaving only the simplest patterns near the center.

Key concepts

Sphere coordinates and Legendre's equation

Replace the polar angle θ\theta with vertical height x=cos⁡θ∈[−1,1]x = \cos\theta \in [-1, 1], so the horizontal latitude ring at height xx has radius sin⁡θ=1−x2\ringsize{\sin\theta} = \sqrt{\ringsize{1 - x^2}} (for example, at x=13x = \frac{1}{\sqrt{3}}, the ring radius is 1−13=23\sqrt{1 - \frac{1}{3}} = \sqrt{\frac{2}{3}}). Waves that depend only on latitude satisfy

(1−x2)y′′−2xy′+λy\displaystyle \ringsize{(1 - x^2)}\bend{y''} - 2x\rate{y'} + \lambda \wave{y} =0\displaystyle = 0

Power series at x=0x = 0 and quantization at the poles x=±1x = \pm 1

The recurrence

ak+2\displaystyle a_{k+2} =k(k+1)−λ(k+2)(k+1) ak\displaystyle = \frac{k(k + 1) - \lambda}{(k + 2)(k + 1)}\,a_k
splits the series into an even chain from a0=y(0)\evenchain{a_0} = \wave{y(0)} and an odd chain from a1=y′(0)\oddchain{a_1} = \rate{y'(0)}. Any infinite chain has coefficients that shrink like 1k\frac{1}{k} and blows up at both poles x=±1x = \pm 1. When λ=n(n+1)\lambda = n(n + 1), the even or odd chain that matches nn hits k=nk = n and stops as the degree-nn polynomial Pn(x)\legendre{P_n(x)} (scaled so Pn(1)=1\legendre{P_n(1)} = 1), while the other chain Qn(x)\secondkind{Q_n(x)} steps past k=nk = n and still blows up (for example, for λ=6=2(3)\lambda = 6 = 2(3), setting a1=0\oddchain{a_1} = 0 and a0=−12\evenchain{a_0} = -\frac{1}{2} gives P2(x)=12(3x2−1)\legendre{P_2(x)} = \frac{1}{2}(3x^2 - 1), whereas a0=0\evenchain{a_0} = 0 and a1=1\oddchain{a_1} = 1 give x−23x3−15x5−⋯x - \frac{2}{3}x^3 - \frac{1}{5}x^5 - \cdots, which diverges at x=±1x = \pm 1). On a full sphere, drop Qn(x)\secondkind{Q_n(x)}.

Finding Pn(x)\legendre{P_n(x)} from scratch vs. building from the previous two

Starting from P0(x)=1\legendre{P_0(x)} = 1 and P1(x)=x\legendre{P_1(x)} = x:

  • To find a single Pn(x)\legendre{P_n(x)} directly from scratch, differentiate (x2−1)n(x^2 - 1)^n with Rodrigues' formula:
    Pn(x)\displaystyle \legendre{P_n(x)} =12nn!dndxn ⁣[(x2−1)n]\displaystyle = \frac{1}{2^n n!}\frac{d^n}{dx^n}\!\left[(x^2 - 1)^n\right]
    (for example, for n=2n = 2, 18d2dx2(x4−2x2+1)=12(3x2−1)\frac{1}{8}\frac{d^2}{dx^2}(x^4 - 2x^2 + 1) = \frac{1}{2}(3x^2 - 1)).
  • When you already have two consecutive polynomials Pn−1(x)\legendre{P_{n-1}(x)} and Pn(x)\legendre{P_n(x)}, don't differentiate from scratch; get Pn+1(x)\legendre{P_{n+1}(x)} with Bonnet's recurrence:
    (n+1)Pn+1(x)\displaystyle (n + 1)\legendre{P_{n+1}(x)} =(2n+1)xPn(x)−nPn−1(x)\displaystyle = (2n + 1)x\legendre{P_n(x)} - n\legendre{P_{n-1}(x)}
    (for example, setting n=2n = 2 gives 3P3(x)=5xP2(x)−2P1(x)3\legendre{P_3(x)} = 5x\legendre{P_2(x)} - 2\legendre{P_1(x)}, so P3(x)=12(5x3−3x)\legendre{P_3(x)} = \frac{1}{2}(5x^3 - 3x)).
Breaking up surface patterns and scaling inside the sphere

  • When f(x)\wave{f(x)} is already a polynomial in x=cos⁡θx = \cos\theta, don't integrate; match the highest power using Pn(x)\legendre{P_n(x)} and subtract your way down (for example, x2=13P0(x)+23P2(x)\wave{x^2} = \frac{1}{3}\legendre{P_0(x)} + \frac{2}{3}\legendre{P_2(x)}).
  • When f(x)\wave{f(x)} is not a polynomial (such as a step function), find each coefficient with
    cn\displaystyle c_n =2n+12∫−11f(x)Pn(x) dx\displaystyle = \frac{2n + 1}{2}\int_{-1}^1 \wave{f(x)}\legendre{P_n(x)}\,dx
  • Inside a unit sphere (0≤r≤10 \le r \le 1), multiply each Pn(cos⁡θ)\legendre{P_n(\cos\theta)} term by rnr^n (for example, T(1,θ)=cos⁡2θ\wave{T(1, \theta)} = \cos^2\theta gives T(r,θ)=13P0(cos⁡θ)+23r2P2(cos⁡θ)\wave{T(r, \theta)} = \frac{1}{3}\legendre{P_0(\cos\theta)} + \frac{2}{3}r^2\legendre{P_2(\cos\theta)}).
8

Practice

1

On a sphere of radius 11, the mode P2(cos⁡θ)=12(3cos⁡2θ−1)\legendre{P_2(\cos\theta)} = \frac{1}{2}(3\cos^2\theta - 1) depends only on latitude. Using the vertical height coordinate x=cos⁡θx = \cos\theta, find the heights xx of the two nodal latitude rings where P2(x)=0\legendre{P_2(x)} = 0, and find the horizontal radius sin⁡θ\ringsize{\sin\theta} of those rings on the sphere.

Set P2(x)=0\legendre{P_2(x)} = 0 to solve for x2x^2, then use the Pythagorean identity relating the ring radius sin⁡θ\ringsize{\sin\theta} to the height xx.

Set P2(x)=0\legendre{P_2(x)} = 0 to find the heights of the nodal rings:
12(3x2−1)=0x2=13x=13andx=−13\displaystyle \begin{aligned} \frac{1}{2}(3x^2 - 1) &= 0 \\[4pt] x^2 &= \frac{1}{3} \\[4pt] x &= \frac{1}{\sqrt{3}} \quad \text{and} \quad x = -\frac{1}{\sqrt{3}} \end{aligned}
Now use sin⁡2θ=1−x2\ringsize{\sin^2\theta} = \ringsize{1 - x^2} to find the horizontal ring radius (be careful not to stop at sin⁡2θ=23\ringsize{\sin^2\theta} = \frac{2}{3} without taking the square root, and not to write 1−x=1−131 - x = 1 - \frac{1}{\sqrt{3}} in place of 1−x2\ringsize{1 - x^2}):
sin⁡2θ=1−13=23sin⁡θ=23\displaystyle \begin{aligned} \ringsize{\sin^2\theta} &= 1 - \frac{1}{3} = \frac{2}{3} \\[4pt] \ringsize{\sin\theta} &= \sqrt{\frac{2}{3}} \end{aligned}
2

Consider Legendre's equation (1−x2)y′′−2xy′+6y=0(1 - x^2)\bend{y''} - 2x\rate{y'} + 6\wave{y} = 0 expanded as a power series around the Equator x=0x = 0. (a) Using the recurrence relation ak+2=k(k+1)−λ(k+2)(k+1) aka_{k+2} = \frac{k(k + 1) - \lambda}{(k + 2)(k + 1)}\,a_k, find the initial values y(0)=a0\wave{y(0)} = a_0 and y′(0)=a1\rate{y'(0)} = a_1 that produce the polynomial mode P2(x)\legendre{P_2(x)} with P2(1)=1\legendre{P_2(1)} = 1. (b) If instead y(0)=0\wave{y(0)} = 0 and y′(0)=1\rate{y'(0)} = 1, find the first three non-zero terms of the series solution and explain what happens to this solution at the poles x=±1x = \pm 1.

Compare λ=6\lambda = 6 to n(n+1)n(n + 1) to see which chain stops, and find y(1)\wave{y(1)} in terms of a0a_0 before choosing a0a_0.

(a) Here λ=6=2(3)\lambda = 6 = 2(3), so n=2n = 2 is even. To drop the odd chain (which never stops), set y′(0)=a1=0\rate{y'(0)} = \oddchain{a_1} = 0. In the even chain:
a2=0(1)−62⋅1 a0=−3a0a4=2(3)−64⋅3 a2=0y(x)=a0(1−3x2)\displaystyle \begin{aligned} \evenchain{a_2} &= \frac{0(1) - 6}{2 \cdot 1}\,\evenchain{a_0} = -3\evenchain{a_0} \\[4pt] \evenchain{a_4} &= \frac{2(3) - 6}{4 \cdot 3}\,\evenchain{a_2} = 0 \\[4pt] \wave{y(x)} &= \evenchain{a_0}(1 - 3x^2) \end{aligned}
Now set P2(1)=1\legendre{P_2(1)} = 1 at the North Pole x=1x = 1 (watch out: setting a0=1\evenchain{a_0} = 1 at the Equator instead of setting y(1)=1\wave{y(1)} = 1 at the North Pole gives y(1)=−2\wave{y(1)} = -2 and the wrong polynomial 1−3x21 - 3x^2):
y(1)=a0(1−3)=−2a0=1y(0)=a0=−12,y′(0)=a1=0\displaystyle \begin{aligned} \wave{y(1)} &= \evenchain{a_0}(1 - 3) = -2\evenchain{a_0} = 1 \\[4pt] \wave{y(0)} &= \evenchain{a_0} = -\frac{1}{2}, \qquad \rate{y'(0)} = \oddchain{a_1} = 0 \end{aligned}
(b) With a0=0\evenchain{a_0} = 0 and a1=1\oddchain{a_1} = 1, only the odd chain runs (k=1,3,5,…k = 1, 3, 5, \dots). Watch out when computing a5\oddchain{a_5}: plug k=3k = 3 into the recurrence and multiply by a3=−23\oddchain{a_3} = -\frac{2}{3}, rather than multiplying by a1=1\oddchain{a_1} = 1 (which would give +310x5+\frac{3}{10}x^5):
a3=1(2)−63⋅2(1)=−46=−23a5=3(4)−65⋅4 ⁣(−23)=620 ⁣(−23)=−15y(x)=x−23x3−15x5−⋯\displaystyle \begin{aligned} \oddchain{a_3} &= \frac{1(2) - 6}{3 \cdot 2}(1) = -\frac{4}{6} = -\frac{2}{3} \\[4pt] \oddchain{a_5} &= \frac{3(4) - 6}{5 \cdot 4}\!\left(-\frac{2}{3}\right) = \frac{6}{20}\!\left(-\frac{2}{3}\right) = -\frac{1}{5} \\[4pt] \wave{y(x)} &= x - \frac{2}{3}x^3 - \frac{1}{5}x^5 - \cdots \end{aligned}
Because kk is always odd in this chain, k(k+1)−6k(k + 1) - 6 never hits zero; the coefficients shrink like 1k\frac{1}{k} for large kk, so the series behaves like the harmonic series and blows up at both poles x=±1x = \pm 1.
3

Use Rodrigues' formula, Pn(x)=12nn!dndxn ⁣[(x2−1)n]\legendre{P_n(x)} = \frac{1}{2^n n!}\frac{d^n}{dx^n}\!\left[(x^2 - 1)^n\right], to compute P3(x)\legendre{P_3(x)} directly by differentiation.

Expand (x2−1)3(x^2 - 1)^3 into powers of xx first, then differentiate three times with respect to xx.

For n=3n = 3, find the number out front, 23⋅3!2^3 \cdot 3! (be careful: 3!=63! = 6, so 23⋅3!=8⋅6=482^3 \cdot 3! = 8 \cdot 6 = 48; writing 3!=33! = 3 divides by 2424 and doubles the final polynomial to 5x3−3x5x^3 - 3x):
(x2−1)3=x6−3x4+3x2−1ddx(x6−3x4+3x2−1)=6x5−12x3+6xd2dx2(x6−3x4+3x2−1)=30x4−36x2+6d3dx3(x6−3x4+3x2−1)=120x3−72xP3(x)=120x3−72x48=12(5x3−3x)\displaystyle \begin{aligned} (x^2 - 1)^3 &= x^6 - 3x^4 + 3x^2 - 1 \\[4pt] \frac{d}{dx}(x^6 - 3x^4 + 3x^2 - 1) &= 6x^5 - 12x^3 + 6x \\[4pt] \frac{d^2}{dx^2}(x^6 - 3x^4 + 3x^2 - 1) &= 30x^4 - 36x^2 + 6 \\[4pt] \frac{d^3}{dx^3}(x^6 - 3x^4 + 3x^2 - 1) &= 120x^3 - 72x \\[4pt] \legendre{P_3(x)} &= \frac{120x^3 - 72x}{48} = \frac{1}{2}(5x^3 - 3x) \end{aligned}
4

Given P3(x)=12(5x3−3x)\legendre{P_3(x)} = \frac{1}{2}(5x^3 - 3x) and P4(x)=18(35x4−30x2+3)\legendre{P_4(x)} = \frac{1}{8}(35x^4 - 30x^2 + 3), use Bonnet's recurrence relation (n+1)Pn+1(x)=(2n+1)xPn(x)−nPn−1(x)(n + 1)\legendre{P_{n+1}(x)} = (2n + 1)x\legendre{P_n(x)} - n\legendre{P_{n-1}(x)} to find P5(x)\legendre{P_5(x)}.

To make Pn+1(x)\legendre{P_{n+1}(x)} equal P5(x)\legendre{P_5(x)}, choose the value of nn so that n+1=5n + 1 = 5.

Set n=4n = 4 so that n+1=5n + 1 = 5 (watch out: plugging n=5n = 5 into the right-hand side instead of n=4n = 4 gives 16[11xP4(x)−5P3(x)]=148(385x5−430x3+93x)\frac{1}{6}[11x\legendre{P_4(x)} - 5\legendre{P_3(x)}] = \frac{1}{48}(385x^5 - 430x^3 + 93x)):
5P5(x)=9xP4(x)−4P3(x)P5(x)=15 ⁣[98x(35x4−30x2+3)−4⋅12(5x3−3x)]\displaystyle \begin{aligned} 5\legendre{P_5(x)} &= 9x\legendre{P_4(x)} - 4\legendre{P_3(x)} \\[4pt] \legendre{P_5(x)} &= \frac{1}{5}\!\left[\frac{9}{8}x(35x^4 - 30x^2 + 3) - 4 \cdot \frac{1}{2}(5x^3 - 3x)\right] \end{aligned}
Put both parts over the common denominator 4040 and distribute the minus sign across −2(5x3−3x)=−168(5x3−3x)-2(5x^3 - 3x) = -\frac{16}{8}(5x^3 - 3x) (forgetting to flip the sign on −3x-3x gives −21x-21x instead of +75x+75x in the numerator):
P5(x)=140[(315x5−270x3+27x)−(80x3−48x)]=140(315x5−350x3+75x)=18(63x5−70x3+15x)\displaystyle \begin{aligned} \legendre{P_5(x)} &= \frac{1}{40}\bigl[(315x^5 - 270x^3 + 27x) - (80x^3 - 48x)\bigr] \\[4pt] &= \frac{1}{40}(315x^5 - 350x^3 + 75x) \\[4pt] &= \frac{1}{8}(63x^5 - 70x^3 + 15x) \end{aligned}
5

The surface of a sphere of radius r=1r = 1 is held at temperature T(1,θ)=5cos⁡3θ−3cos⁡2θ+2\wave{T(1, \theta)} = 5\cos^3\theta - 3\cos^2\theta + 2. Rewrite this surface temperature as a combination of Legendre polynomials Pn(cos⁡θ)\legendre{P_n(\cos\theta)}, and find the steady-state temperature T(r,θ)\wave{T(r, \theta)} everywhere inside the sphere (0≤r≤10 \le r \le 1).

Write x=cos⁡θx = \cos\theta, match 5x35x^3 using 2P3(x)=5x3−3x2\legendre{P_3(x)} = 5x^3 - 3x, and subtract the entire polynomial 2P3(x)2\legendre{P_3(x)} from 5x3−3x2+2\wave{5x^3 - 3x^2 + 2}.

With x=cos⁡θx = \cos\theta, the surface temperature is 5x3−3x2+2\wave{5x^3 - 3x^2 + 2}. Subtract 2P3(x)=5x3−3x2\legendre{P_3(x)} = 5x^3 - 3x first, then −2P2(x)=−3x2+1-2\legendre{P_2(x)} = -3x^2 + 1 (be careful: simply replacing 5x35x^3 with 2P3(x)2\legendre{P_3(x)} and −3x2-3x^2 with −2P2(x)-2\legendre{P_2(x)} without subtracting their lower-degree −3x-3x and +1+1 terms misses 3P13\legendre{P_1} and gives 2P0−2P2+2P32\legendre{P_0} - 2\legendre{P_2} + 2\legendre{P_3}):
(5x3−3x2+2)−(5x3−3x)⏟2P3(x)=−3x2+3x+2(−3x2+3x+2)−(−3x2+1)⏟−2P2(x)=3x+1=3P1(x)+P0(x)\displaystyle \begin{aligned} \wave{(5x^3 - 3x^2 + 2)} - \underbrace{(5x^3 - 3x)}_{2\legendre{P_3(x)}} &= -3x^2 + 3x + 2 \\[4pt] (-3x^2 + 3x + 2) - \underbrace{(-3x^2 + 1)}_{-2\legendre{P_2(x)}} &= 3x + 1 = 3\legendre{P_1(x)} + \legendre{P_0(x)} \end{aligned}
Rewriting in terms of cos⁡θ\cos\theta and multiplying each mode Pn(cos⁡θ)\legendre{P_n(\cos\theta)} by rnr^n gives the surface and interior temperatures:
T(1,θ)=P0(cos⁡θ)+3P1(cos⁡θ)−2P2(cos⁡θ)+2P3(cos⁡θ)T(r,θ)=P0(cos⁡θ)+3rP1(cos⁡θ)−2r2P2(cos⁡θ)+2r3P3(cos⁡θ)\displaystyle \begin{aligned} \wave{T(1, \theta)} &= \legendre{P_0(\cos\theta)} + 3\legendre{P_1(\cos\theta)} - 2\legendre{P_2(\cos\theta)} + 2\legendre{P_3(\cos\theta)} \\[4pt] \wave{T(r, \theta)} &= \legendre{P_0(\cos\theta)} + 3r\legendre{P_1(\cos\theta)} - 2r^2\legendre{P_2(\cos\theta)} + 2r^3\legendre{P_3(\cos\theta)} \end{aligned}
6

Suppose a sphere's Northern Hemisphere (0<x<10 < x < 1) is held at f(x)=1\wave{f(x)} = 1 and its Southern Hemisphere (−1<x<0-1 < x < 0) is held at f(x)=0\wave{f(x)} = 0. Using the orthogonality formula cn=2n+12∫−11f(x)Pn(x) dxc_n = \frac{2n + 1}{2}\int_{-1}^1 \wave{f(x)}\legendre{P_n(x)}\,dx, find the coefficients c0,c1,c2c_0, c_1, c_2, and c3c_3 in the Legendre series expansion f(x)=∑cnPn(x)\wave{f(x)} = \sum c_n \legendre{P_n(x)}.

Use f(x)=0\wave{f(x)} = 0 on (−1,0)(-1, 0) and f(x)=1\wave{f(x)} = 1 on (0,1)(0, 1) to update the integration bounds before integrating each Pn(x)\legendre{P_n(x)}.

Because f(x)=0\wave{f(x)} = 0 on (−1,0)(-1, 0) and f(x)=1\wave{f(x)} = 1 on (0,1)(0, 1), the integral runs only from 00 to 11, while the factor in front stays 2n+12\frac{2n + 1}{2} (watch out: integrating from −1-1 to 11 makes c1c_1 and c3c_3 equal 00, and dropping the 2n+12\frac{2n + 1}{2} factor gives 12\frac{1}{2} instead of 34\frac{3}{4} for c1c_1 and −18-\frac{1}{8} instead of −716-\frac{7}{16} for c3c_3):
cn\displaystyle c_n =2n+12∫01Pn(x) dx\displaystyle = \frac{2n + 1}{2}\int_0^1 \legendre{P_n(x)}\,dx
Evaluate the integral for n=0,1,2,3n = 0, 1, 2, 3:
c0=12∫011 dx=12c1=32∫01x dx=32 ⁣[x22]01=34c2=52∫0112(3x2−1) dx=54[x3−x]01=0c3=72∫0112(5x3−3x) dx=74 ⁣[54x4−32x2]01=74 ⁣(−14)=−716\displaystyle \begin{aligned} c_0 &= \frac{1}{2}\int_0^1 1\,dx = \frac{1}{2} \\[6pt] c_1 &= \frac{3}{2}\int_0^1 x\,dx = \frac{3}{2}\!\left[\frac{x^2}{2}\right]_0^1 = \frac{3}{4} \\[6pt] c_2 &= \frac{5}{2}\int_0^1 \frac{1}{2}(3x^2 - 1)\,dx = \frac{5}{4}\bigl[x^3 - x\bigr]_0^1 = 0 \\[6pt] c_3 &= \frac{7}{2}\int_0^1 \frac{1}{2}(5x^3 - 3x)\,dx = \frac{7}{4}\!\left[\frac{5}{4}x^4 - \frac{3}{2}x^2\right]_0^1 = \frac{7}{4}\!\left(-\frac{1}{4}\right) = -\frac{7}{16} \end{aligned}