On this page
Legendre polynomials are a family of polynomials P₀, P₁, P₂, … with one special property on the interval from −1 to 1. If you multiply any two different ones and integrate the product over that interval, you get exactly zero. The NIST Digital Library of Mathematical Functions (DLMF) lists them with weight 1 on (−1, 1) and gives the integral of P_n² as 2/(2n + 1) (DLMF §18.3). According to the MacTutor biography of Legendre, Adrien-Marie Legendre's 1784 paper *Recherches sur la figure des planètes*, on the shape of the planets, contains them.
How do you get P₀ to P₃ from Rodrigues' formula?
Rodrigues' formula is P_n(x) = (1/(2ⁿ n!)) · dⁿ/dxⁿ (x² − 1)ⁿ. DLMF states an equivalent form in equation 18.5.5 and Table 18.5.1 (DLMF §18.5).
n = 0: no derivative and a constant of 1, so P₀ = 1.
n = 1: (1/2) · d/dx (x² − 1) = x, so P₁ = x.
n = 2: (x² − 1)² = x⁴ − 2x² + 1. Differentiating twice gives 12x² − 4. Dividing by 2²·2! = 8 gives P₂ = (3x² − 1)/2.
n = 3: (x² − 1)³ = x⁶ − 3x⁴ + 3x² − 1. Differentiating three times gives 120x³ − 72x. Dividing by 2³·3! = 48 gives P₃ = (5x³ − 3x)/2.
As a check, each result equals 1 at x = 1.
How do you check orthogonality by hand?
The claim is that the integral of P_m·P_n from −1 to 1 is 0 whenever m ≠ n. Symmetry settles four of the six pairs.
P₀P₁, P₀P₃, P₁P₂ and P₂P₃ are each an even polynomial times an odd one. The product is odd, so its integral over [−1, 1] is zero.
P₀P₂: an antiderivative of (3x² − 1)/2 is (x³ − x)/2, which is 0 at both ends.
P₁P₃: an antiderivative of (5x⁴ − 3x²)/2 is (x⁵ − x³)/2, which is also 0 at both ends.
P₂ with itself: (1/4) × the integral of (9x⁴ − 6x² + 1) is (1/4)(18/5 − 4 + 2) = 2/5. That matches 2/(2n + 1) for n = 2 in DLMF §18.3.
The same idea lets sines and cosines build a square wave in a Fourier series. Running Gram–Schmidt orthogonalisation on 1, x, x², x³, with this integral as the dot product, gives the same four polynomials up to a scale factor.
What is the three-term recurrence for Legendre polynomials?
The recurrence is (n + 1)P_{n+1} = (2n + 1)x·P_n − n·P_{n−1}, from the coefficients in Table 18.9.1 of DLMF §18.9.
Try it with n = 2: 3P₃ = 5x · (3x² − 1)/2 − 2x = (15x³ − 9x)/2. So P₃ = (5x³ − 3x)/2, the same answer Rodrigues' formula gave. Unlike Rodrigues' formula, it needs no high-order derivatives.
How does Gaussian quadrature use Legendre polynomials?
The Gauss–Legendre rule samples a function at the n zeros of P_n and adds the samples with weights. According to DLMF, it is exact for every polynomial of degree up to 2n − 1 (DLMF §3.5).
The zeros of P₂ are ±1/√3. By symmetry the two weights are equal, and since the integral of 1 over [−1, 1] is 2, each weight is 1. For x², the rule gives 1/3 + 1/3 = 2/3, which is exact. For x⁴, it gives 2/9 against the true 2/5, because degree 4 is above 2n − 1 = 3.
How do Legendre polynomials give the potential of a point charge?
DLMF gives the generating function (1 − 2xz + z²)^(−1/2) = Σ P_n(x)zⁿ for |z| < 1 (DLMF §18.12, equation 18.12.11).
Put a charge q on the z-axis at distance a from the origin, and a field point at distance r > a and angle θ from that axis. By the cosine rule, the squared distance between them is r² − 2ar cos θ + a² = r²(1 − 2xz + z²), with x = cos θ and z = a/r. So V = (kq/r)[P₀ + (a/r)P₁(cos θ) + (a/r)²P₂(cos θ) + …]. The terms are a point charge, then a dipole correction, then a quadrupole correction.
Take a/r = 0.2 and θ = 60°. The exact bracket is 1/√0.84 ≈ 1.09109, and four terms give 1 + 0.1 − 0.005 − 0.0035 = 1.0915, within about 0.04%. How fast a cut-off series closes in is the question behind the Taylor polynomial remainder bound.
A 20-minute practice plan
Derive P₀ to P₃ from Rodrigues' formula with your notes closed.
Use the recurrence to get P₄ = (35x⁴ − 30x² + 3)/8, then check that P₄(1) = 1.
Show that the integral of P₂P₄ over [−1, 1] is 0.
Apply the two-point Gauss rule to x³ + x² and get 2/3.
Redo the potential at θ = 90°, where P₁ and P₃ vanish.
The Fermi Concept Library covers every concept in physics, chemistry, biology, mathematics and computing, each with its own lesson and its place in the map. If an integral here will not come out, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer.



