P₀ = 1, P₁ = x
P₁(0.5) = 0.5
Starting values.
The Legendre polynomials satisfy , starting from and .
This page is easier if you are comfortable with:
The recurrence builds each polynomial from the previous two. For : , so . For : , giving . For : . All satisfy and have parity . They are solutions of Legendre's equation.
Values come quickly: at , , , . The recurrence is numerically stable for , unlike direct evaluation of the expanded polynomials for large . It is similar in form to the recurrence for Chebyshev polynomials, .
The polynomials are orthogonal on , see Legendre orthogonality, and they can be obtained by applying the Gram–Schmidt process to with the integral inner product. They are used in Gaussian quadrature and in solving Laplace's equation in spherical coordinates.
The recurrence builds every Legendre polynomial from the first two with simple arithmetic.
Each polynomial ends at 1 on the right, and P₃ is odd.
These examples are worked by hand, step by step, so you can compare your own working.
Use the recurrence to find .
Use the recurrence to find .
Check that using the closed form .
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
P₁(0.5) = 0.5
Starting values.
(3x² − 1)/2
−0.125.
(5 × 0.5 × (−0.125) − 2 × 0.5)/3
−0.4375.
(7 × 0.5 × P₃ − 3P₂)/4
−0.2891.
(n + 1)Pₙ₊₁ = (2n + 1)xPₙ − nPₙ₋₁ with P₀ = 1 and P₁ = x generates all Legendre polynomials.
Use n = 1 at x = 0.5: 2P₂ = 3x·x − 1.
Use n = 2: 3P₃ = 5xP₂ − 2P₁.
Use n = 3: 4P₄ = 7xP₃ − 3P₂.
Check P₃(1) by recurrence: (5·1·1 − 2·1)/3.
nxPₙ ✗
(2n + 1)xPₙ ✓
Check.
wrong divisor ✗
n + 1 ✓
Next index.
Pₙ₋₁ as Pₙ ✗
use correct previous terms ✓
Track values.
P₁ = 1 ✗
P₁ = x ✓
Initial.
Try each one on paper, then open the answer. Use the solver above to see the full working.
-0.26
-0.44
1
0
1
-0.125
Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.
Solve: …
(n + 1)Pₙ₊₁ = (2n + 1)xPₙ − nPₙ₋₁.
P₀ = 1, P₁ = x.
1.
From n = 1.
Legendre orthogonality.
Legendre’s equation.
More in Analysis, algebra and topology and the formula sheets.