Mathwords logoMathwords

Legendre Function — Definition, Formula & Example

A Legendre function is any solution of Legendre's differential equation, where the degree can be any number, not just a whole number. The familiar Legendre polynomials are the special case of integer degree. Other degrees, and the second independent solution, give functions that are not polynomials.

For complex degree ν\nu and order μ\mu, the Legendre functions Pνμ(x)P_\nu^\mu(x) (first kind) and Qνμ(x)Q_\nu^\mu(x) (second kind) are two linearly independent solutions of the associated Legendre equation on −1<x<1-1<x<1. For μ=0\mu = 0, and for integer orders μ=m≥0\mu = m \ge 0, PνμP_\nu^\mu is the solution that stays bounded at x=1x = 1. Setting μ=0\mu = 0 gives Legendre's equation. Its first-kind solution is Pν(x)=2F1 ⁣(−ν, ν+1; 1; 1−x2)P_\nu(x) = {}_2F_1\!\left(-\nu,\, \nu+1;\, 1;\, \tfrac{1-x}{2}\right). This series ends, making PνP_\nu a polynomial, exactly when ν\nu is an integer. In that case P−n−1=PnP_{-n-1} = P_n.

Key Formula

(1−x2) y′′−2x y′+[ν(ν+1)−μ21−x2]y=0(1-x^2)\,y'' - 2x\,y' + \left[\nu(\nu+1) - \frac{\mu^2}{1-x^2}\right] y = 0
Where:
  • xx = Independent variable, usually x = cos θ for a polar angle θ, so −1 < x < 1
  • ν\nu = Degree; any real or complex number
  • μ\mu = Order; μ = 0 gives the ordinary Legendre equation
  • yy = Unknown function; its solutions are the Legendre functions

Worked Example

Problem: The Legendre function of the second kind with degree 0 is Q0(x)=12ln⁡1+x1−xQ_0(x) = \tfrac{1}{2}\ln\dfrac{1+x}{1-x}. Verify that it solves Legendre's equation with ν=0\nu = 0 and μ=0\mu = 0. Then evaluate Q0 ⁣(12)Q_0\!\left(\tfrac{1}{2}\right).
Step 1: Differentiate twice. The logarithm splits as 12[ln⁡(1+x)−ln⁡(1−x)]\tfrac{1}{2}[\ln(1+x) - \ln(1-x)], which makes the first derivative easy.
Q0′(x)=11−x2,Q0′′(x)=2x(1−x2)2Q_0'(x) = \frac{1}{1-x^2}, \qquad Q_0''(x) = \frac{2x}{(1-x^2)^2}
Step 2: Substitute into (1−x2)y′′−2xy′+0⋅y(1-x^2)y'' - 2xy' + 0\cdot y. The last term vanishes because ν(ν+1)=0\nu(\nu+1) = 0. The other two terms cancel.
(1−x2)⋅2x(1−x2)2−2x⋅11−x2=2x1−x2−2x1−x2=0(1-x^2)\cdot\frac{2x}{(1-x^2)^2} - 2x\cdot\frac{1}{1-x^2} = \frac{2x}{1-x^2} - \frac{2x}{1-x^2} = 0
Step 3: Evaluate at x=12x = \tfrac{1}{2}.
Q0 ⁣(12)=12ln⁡3/21/2=12ln⁡3≈0.5493Q_0\!\left(\tfrac{1}{2}\right) = \frac{1}{2}\ln\frac{3/2}{1/2} = \frac{1}{2}\ln 3 \approx 0.5493
Answer: Q0Q_0 satisfies Legendre's equation with ν=0\nu = 0, and Q0 ⁣(12)=12ln⁡3≈0.5493Q_0\!\left(\tfrac{1}{2}\right) = \tfrac{1}{2}\ln 3 \approx 0.5493. The other solution for this degree is the constant P0(x)=1P_0(x) = 1. The function Q0Q_0 is not a polynomial, and it grows without bound as x→±1x \to \pm 1.

Why It Matters

When you separate variables in Laplace's equation in spherical coordinates, the polar-angle part is exactly the associated Legendre equation. That is why associated Legendre functions form the angular part of spherical harmonics. You use them for hydrogen-atom orbitals in quantum mechanics and for models of Earth's gravity field. Non-integer degrees and the QQ functions appear when a region leaves out the poles, such as the space between two cones.

Common Mistakes

Mistake: Assuming every Legendre function is a polynomial, the way the Legendre polynomials are.
Correction: The function PνP_\nu is a polynomial only when ν\nu is an integer. For other degrees it has a logarithmic singularity at x=−1x = -1. The second-kind functions QnQ_n with n=0,1,2,…n = 0, 1, 2, \dots are never polynomials. They contain ln⁡1+x1−x\ln\frac{1+x}{1-x} and blow up at both x=1x = 1 and x=−1x = -1. For a problem on the whole sphere, you therefore discard QnQ_n.

Related Terms