Mathwords logoMathwords

Legendre's Equation — Definition, Formula & Example

Legendre's equation is a second-order differential equation whose solutions that stay finite on the interval from −1-1 to 11 are the Legendre polynomials. It appears whenever you separate variables in a problem with spherical symmetry.

For a constant nn, Legendre's equation is the linear ODE (1−x2)y′′−2xy′+n(n+1)y=0(1-x^2)y'' - 2xy' + n(n+1)y = 0. In Sturm–Liouville form it reads ddx[(1−x2)y′]+n(n+1)y=0\frac{d}{dx}\left[(1-x^2)y'\right] + n(n+1)y = 0. The point x=0x = 0 is an ordinary point. The points x=±1x = \pm 1 and x=∞x = \infty are regular singular points. Power series about x=0x = 0 give two independent solutions that converge for ∣x∣<1|x| < 1. When nn is a nonnegative integer, exactly one of these series stops after finitely many terms. Scaling that polynomial so its value at x=1x = 1 is 11 gives Pn(x)P_n(x).

Key Formula

(1−x2) y′′−2x y′+n(n+1) y=0(1-x^2)\,y'' - 2x\,y' + n(n+1)\,y = 0
Where:
  • yy = Unknown function of xx
  • xx = Independent variable, usually x=cos⁡θx = \cos\theta with −1≤x≤1-1 \le x \le 1
  • nn = Constant parameter (the order). Nonnegative integer values give polynomial solutions.
  • y′,y′′y', y'' = First and second derivatives of yy with respect to xx

Worked Example

Problem: Use a power series y=∑akxky = \sum a_k x^k to find the polynomial solution of Legendre's equation for n=3n = 3. Start with a0=0a_0 = 0 and a1=1a_1 = 1, then scale the result so that y(1)=1y(1) = 1.
Step 1: Substitute the series into the equation. Here n(n+1)=12n(n+1) = 12, and the coefficients satisfy this recurrence.
ak+2=k(k+1)−12(k+2)(k+1) aka_{k+2} = \frac{k(k+1) - 12}{(k+2)(k+1)}\,a_k
Step 2: Since a0=0a_0 = 0, every even coefficient is zero. Use k=1k = 1 and then k=3k = 3 to get the odd coefficients. The factor k(k+1)−12k(k+1) - 12 equals zero at k=3k = 3, so the series stops there.
a3=2−126(1)=−53,a5=12−1220 a3=0a_3 = \frac{2 - 12}{6}(1) = -\frac{5}{3}, \qquad a_5 = \frac{12 - 12}{20}\,a_3 = 0
Step 3: The solution is y=x−53x3y = x - \frac{5}{3}x^3, so y(1)=−23y(1) = -\frac{2}{3}. Multiply by −32-\frac{3}{2} to make the value at x=1x = 1 equal to 11.
P3(x)=−32(x−53x3)=5x3−3x2P_3(x) = -\frac{3}{2}\left(x - \frac{5}{3}x^3\right) = \frac{5x^3 - 3x}{2}
Answer: P3(x)=5x3−3x2P_3(x) = \dfrac{5x^3 - 3x}{2}. To check it, substitute it into the equation. The left side simplifies to 00 for every xx.

Why It Matters

When you solve Laplace's equation in spherical coordinates with symmetry about an axis, the angular part is Legendre's equation in x=cos⁡θx = \cos\theta. That is how PnP_n enters the multipole expansion in electrostatics and models of Earth's gravitational field. In a physics or engineering math-methods course, its associated form also gives the angular part of the hydrogen atom's wavefunctions.

Common Mistakes

Mistake: Assuming every solution of Legendre's equation is a polynomial.
Correction: The equation is second order, so it has a second independent solution, Qn(x)Q_n(x). That solution blows up logarithmically at x=±1x = \pm 1. Only the bounded solutions on [−1,1][-1, 1] are multiples of Pn(x)P_n(x), and those exist only when nn is a nonnegative integer.

Related Terms