Legendre polynomials form a sequence of orthogonal polynomials on the interval . They arise naturally in solving Laplace's equation in spherical coordinates and play a central role in physics and engineering. Their orthogonality property means the integral is zero whenever and are different. This property makes them ideal as basis functions in spectral methods and other numerical schemes.
The polynomials satisfy the Legendre differential equation . Solutions that remain finite on are precisely the Legendre polynomials. The lowest-order cases are , , and . Higher degrees follow a recurrence relation.
The standard recurrence relation is
This formula enables efficient computation by building polynomials of higher degree from two previous ones. Because the coefficients remain rational, the polynomials feature integer powers of with rational multipliers, making them straightforward to evaluate.
Legendre polynomials appear across theoretical and applied mathematics. In potential theory and electrostatics, they emerge when separating variables in Laplace's equation with spherical symmetry. They also provide a basis for representing functions on the sphere in spherical harmonics. In numerical analysis, expansions in Legendre polynomials offer spectral accuracy, enabling highly precise approximations with relatively few terms.
The calculator on this page allows you to choose a non-negative integer degree and a real value . It then computes using the recurrence relation. The algorithm starts with and , repeatedly applying the formula until it reaches the requested degree. The result is displayed with four decimal places, offering quick feedback for classroom exercises or self‑study.
Legendre polynomials also satisfy orthogonality: . This property means any reasonable function defined on can be approximated as a sum of Legendre polynomials. The coefficients in such an expansion derive from inner products with .
Orthogonal polynomials like Legendre's minimize approximation error in the sense. When projecting a function onto the space spanned by the first few polynomials, the coefficients produce the best approximation. This concept underlies spectral methods, where high-order polynomials model physical phenomena such as fluid flow or electromagnetic fields with exceptional accuracy.
Historically, Adrien-Marie Legendre introduced these polynomials while studying gravitational potentials. They soon found applications in celestial mechanics, where expansions in Legendre polynomials help compute planetary motions. Today, they remain fundamental in numerical integration techniques like Gauss–Legendre quadrature, which achieves exactness for polynomials up to degree using only sample points.
By experimenting with this calculator, you gain practical experience with special functions that influence many branches of mathematics. Observing how behaves for various degrees builds intuition for the oscillatory nature of higher-order polynomials. Because the polynomials are normalized, their magnitude remains bounded on , illustrating how orthogonality controls growth even as the degree increases. This interplay between algebraic structure and analytic behavior continues to captivate mathematicians and scientists alike.
Once you become comfortable computing individual polynomials, you can explore their connections to other families like Chebyshev and Hermite polynomials. These families satisfy similar recurrence relations and differential equations, revealing deep links between seemingly distinct areas of mathematics. Many algorithms in approximation theory and numerical computation rely on understanding such relationships. Ultimately, Legendre polynomials exemplify how simple recursions lead to rich mathematical structures with far-reaching implications.
Use the copy button to save evaluated polynomial values when checking homework or compiling tables.
Suppose you want to evaluate the third-degree polynomial at . Enter and in the form. The recurrence builds and , ultimately yielding . The calculator reports the same value with four decimal places, confirming the algebra.
The first few Legendre polynomials illustrate the pattern of coefficients and symmetry:
n | |
---|---|
0 | 1 |
1 | |
2 | |
3 | |
4 |
Notice how only even or odd powers appear depending on the degree, reflecting the polynomials’ parity: is even when is even and odd otherwise.
Legendre polynomials are one member of a broader family of orthogonal polynomials. Chebyshev polynomials emphasize minimax approximation, while Hermite polynomials arise in quantum mechanics. The choice depends on weighting functions and boundary conditions. The table below contrasts key properties.
Family | Weight Function | Common Application |
---|---|---|
Legendre | 1 | Spherical harmonics, Gauss–Legendre quadrature |
Chebyshev | Polynomial approximation, FFT algorithms | |
Hermite | Quantum harmonic oscillator, probability |
Understanding these distinctions helps analysts select the most effective basis for a given problem. While this page focuses on Legendre forms, experimenting with other families reveals how orthogonality adapts to different contexts.
For very high degrees, recurrence relations can suffer from numerical instability due to finite precision. Techniques such as Clenshaw recurrences or arbitrary-precision arithmetic mitigate the issue. Additionally, Legendre polynomials assume the domain ; mapping other intervals requires a linear transformation where lies in . When evaluating outside the standard range, numerical errors may grow quickly.
Explore further special functions with the Chebyshev Polynomial Calculator or convert between angular coordinates using the Spherical Coordinate Converter.
Compute the Legendre transform of a convex function at a given slope.
Compute Chebyshev polynomials of the first kind for a given degree and value.
Compute generalized Laguerre polynomials for given order and variable, with context on orthogonality and series forms.