No history yet

The Legendre ODE

The Legendre Equation

In physics and engineering, problems involving spherical shapes—like calculating the electric field around a sphere or modeling the vibrations of a planet—often lead to the same mathematical challenge. That challenge is the Legendre differential equation.

(1 - x^2) \frac{d^2y}{dx^2} - 2x \frac{dy}{dx} + n(n+1) y = 0

This is a second-order linear ODE. The variable xx often represents a spatial coordinate (like the cosine of an angle in spherical coordinates), while nn is a constant that is determined by the physical constraints of the problem. Our goal is to find the function y(x)y(x) that satisfies this equation.

Finding a Series Solution

A quick look at the coefficient of yy'', which is (1x2)(1-x^2), tells us we have singular points at x=±1x = \text{±}1. At these points, the equation behaves strangely. However, the point x=0x=0 is an ordinary point, making it a good place to build a solution using a power series.

We'll assume the solution can be written as an infinite polynomial, or power series, centered at x=0x=0: y(x)=k=0akxk=a0+a1x+a2x2+y(x) = \sum_{k=0}^{\infty} a_k x^k = a_0 + a_1 x + a_2 x^2 + \dots

To substitute this into the Legendre equation, we need its first and second derivatives:

y(x)=k=1kakxk1andy(x)=k=2k(k1)akxk2y'(x) = \sum_{k=1}^{\infty} k a_k x^{k-1} \quad \text{and} \quad y''(x) = \sum_{k=2}^{\infty} k(k-1) a_k x^{k-2}

Plugging these into the equation and re-indexing the sums so that each term contains xkx^k leads to a single, unified expression. After some algebra, we find that for the entire series to equal zero, the coefficient of each power of xx must be zero. This requirement gives us a powerful tool: a recurrence relation.

The Key Relationship

The algebraic work yields the following recurrence relation connecting the coefficients:

ak+2=k(k+1)n(n+1)(k+1)(k+2)aka_{k+2} = \frac{k(k+1) - n(n+1)}{(k+1)(k+2)} a_k

Notice this relation links coefficients that are two indices apart. a2a_2 depends on a0a_0, a4a_4 depends on a2a_2, and so on. Similarly, a3a_3 depends on a1a_1, a5a_5 depends on a3a_3, etc. This splits our solution into two independent parts:

  1. An even solution (yeveny_{even}) built from a0a_0 with only even powers of xx (x0,x2,x4,...x^0, x^2, x^4, \text{...}).
  2. An odd solution (yoddy_{odd}) built from a1a_1 with only odd powers of xx (x1,x3,x5,...x^1, x^3, x^5, \text{...}).

The general solution is the sum of these two: y(x)=yeven(x)+yodd(x)y(x) = y_{even}(x) + y_{odd}(x). The initial coefficients, a0a_0 and a1a_1, are arbitrary constants we would determine from initial conditions.

Why Physical Solutions Must Terminate

For most values of nn, both the even and odd series continue infinitely. When analyzed, these infinite series solutions diverge (go to infinity) at the singular points x=±1x = \text{±}1. In physical contexts where xx often relates to cos(θ)\cos(\theta), these points correspond to the poles of a sphere. A physical quantity like temperature or potential cannot be infinite, so these solutions are not physically meaningful.

There's a special case, however. Look at the numerator of the recurrence relation: k(k+1)n(n+1)k(k+1) - n(n+1). If the constant nn is an integer, say n=Nn=N, then when kk reaches NN, the numerator becomes zero.

aN+2=N(N+1)N(N+1)(N+1)(N+2)aN=0aN=0a_{N+2} = \frac{N(N+1) - N(N+1)}{(N+1)(N+2)} a_N = 0 \cdot a_N = 0

When aN+2a_{N+2} becomes zero, the recurrence relation ensures that all subsequent coefficients in that series (aN+4,aN+6,...a_{N+4}, a_{N+6}, \text{...}) will also be zero. The infinite series truncates, becoming a finite polynomial of degree NN.

  • If NN is an even integer, the even series terminates, becoming a polynomial. The odd series remains an infinite, divergent series.
  • If NN is an odd integer, the odd series terminates. The even series remains infinite.

In physical applications, we select the value of nn to be an integer NN and discard the divergent series, keeping only the finite polynomial solution. These terminating solutions are known as the Legendre polynomials, denoted Pn(x)P_n(x). They are the well-behaved, physically realistic solutions to the Legendre equation on the interval [1,1][-1, 1], first studied by Adrien-Marie Legendre.

nTerminating SeriesLegendre Polynomial Pn(x)P_n(x)
0Even11
1Oddxx
2Even12(3x21)\frac{1}{2}(3x^2 - 1)
3Odd12(5x33x)\frac{1}{2}(5x^3 - 3x)

By requiring our solutions to be physically sensible, we discover that only integer values of nn produce valid results. This process of finding special values (eigenvalues) that lead to well-behaved solutions (eigenfunctions) is a recurring theme in mathematical physics.

Ready to test your understanding?

Quiz Questions 1/6

The Legendre differential equation, (1x2)y2xy+n(n+1)y=0(1-x^2)y'' - 2xy' + n(n+1)y = 0, is best described as which type of equation?

Quiz Questions 2/6

Why is the power series method centered at x=0x=0 a suitable technique for solving the Legendre equation?

This foundational understanding of the Legendre equation and its polynomial solutions is a stepping stone to solving complex problems in fields ranging from quantum mechanics to geophysics.