Gaussian quadrature Created 2026-09-24 Updated 2026-10-14
Gaussian quadrature is a quadrature rule that chooses both sample locations and coefficients to achieve unusually high polynomial exactness. For a finite interval with , assume the integration weight is integrable and positive almost everywhere. Define
Let be the monic orthogonal polynomial of polynomial degree for the inner product : it satisfies for every polynomial of polynomial degree below . The polynomial roots of are distinct and inside ; take them as the nodes . Integrate the Lagrange cardinal polynomials to obtain . These coefficients are positive, and
The integration weight and the discrete coefficients play different roles: specifies the integral being approximated, while tell us how much each sample contributes.[ref]
A proof outline explains the gain over simply integrating an arbitrary polynomial interpolation. Use polynomial division to write , with and . Orthogonality makes , and sampling at the polynomial roots of makes . The Lagrange cardinal polynomials recover exactly, so both expressions agree. Also , since has polynomial degree . This is the mechanism behind positive weights of Gaussian quadrature.
For a concrete two-node example, set on . The Legendre polynomial has polynomial roots . Its monic polynomial version has zero integral against both and , as required. Symmetry and exactness for the constant polynomial give . Thus the Gauss–Legendre instance of Gaussian quadrature is
Direct evaluation on gives , exactly their integrals. For the polynomial , two samples therefore give exactly. But for the rule gives , whereas the integral is : the error is .
Figure 1.
Analytical illustration of two-node Gauss–Legendre sampling: exact monomial integrals through degree three and failure at degree four
. Details.
The ceiling is sharp for distinct real nodes under the positive-weight assumptions. Their squared nodal polynomial has polynomial degree , is zero at every sample, and has a strictly positive weighted integral. Thus no such quadrature rule integrates every polynomial of polynomial degree exactly. Nor does Gaussian quadrature integrate every nonpolynomial function exactly: the same two-node example gives , while .
Gaussian quadrature is useful when evaluations are costly and a modest polynomial captures the integrand well. More precisely, for a continuous function and any polynomial of polynomial degree at most , positivity and constant exactness give
The uniform norm on measures the approximation between samples. This bound connects quadrature rule accuracy to uniform approximation, rather than promising an error from sample count alone. Corners, sharp unresolved features and roundoff error require their own assessment; the absolute value function example already shows why polynomial exactness is a qualified guarantee.
Orthogonal polynomial Created 2026-09-24 Updated 2026-10-18
An orthogonal polynomial family chooses polynomials that do not overlap under a specified inner product. For real polynomials on an interval , use the weighted inner product
Assume , the weight is measurable and positive almost everywhere, and its absolute moments are finite for every integer . These conditions make the integrals finite and give every nonzero polynomial positive squared norm. A sequence is an orthogonal polynomial family when has real coefficients and polynomial degree exactly , and for .[ref]
Here and is the Kronecker delta. Orthogonality does not require : an orthonormal set is obtained only after replacing by . Multiplying each member by any nonzero real constant preserves orthogonality, but changes its norm and the corresponding expansion coefficient. The monic orthogonal polynomial convention instead fixes each leading coefficient to one.
The first four Legendre polynomials, named for Adrien-Marie Legendre, use on and the normalization :
Their orthogonality and squared norms are
Thus their Gram matrix has a positive diagonal and zero entries elsewhere, although their function graphs cross and overlap on the page. Orthogonality measures an integral of products, rather than separation of function graphs.[ref]
Figure 1.
The first four Legendre polynomials and their exact integral Gram matrix: orthogonal, with unequal squared norms
. Details.
For these four polynomials, a short verification expands each product and uses and . For example, and . The same calculation gives the diagonal entries . More generally, apply the Gram-Schmidt process to the monomial basis : at step , subtract projections onto the earlier polynomials. The result retains its leading term, has degree , and has positive norm, proving existence without a differential equation. Different degrees also give linear independence, so form a basis of the polynomials of degree at most .
This basis turns least-squares solutions for functions into independent scalar calculations, as the decoupled coefficients of orthogonal polynomial projections show. In a spectral method, increasing the degree enlarges the approximation space while keeping earlier projection coefficients fixed. Weighted integrals also connect the same orthogonal polynomials to Gaussian quadrature: its nodes are polynomial roots of a member of the family. The projection problem minimizes an integrated squared error; Gaussian quadrature uses the family to choose evaluation points for an integral.
For real monic orthogonal polynomials with squared weighted norms under a positive weight , the functions form an orthonormal set for the unweighted reference measure. Their finite-rank projection kernel turns the squared weighted Vandermonde determinant into a kernel determinant. Normalization on the full labelled configuration space is .
For the inner product obtained by integrating with weight on , odd moments vanish and the moment of is . The first monic orthogonal polynomials are , and . Positive definiteness follows because the weight is positive almost everywhere and a nonzero polynomial cannot vanish almost everywhere.
Let be the distinct roots in at which changes sign, and put . Both and change sign at each such point, while roots of even multiplicity do not change sign. Consequently has one constant sign on except at its zeros, and is not identically zero. Its integral cannot vanish.
If , however, orthogonality of the monic orthogonal polynomial to every polynomial of lower degree gives , a contradiction. Hence . Since , there must be exactly such roots, each of multiplicity one. They exhaust the degree, leaving no complex, exterior, or endpoint roots. Thus all roots are simple and lie strictly in , which proves the requested weaker inclusion in . This is the sign-change proof of the zeros of orthogonal polynomials theorem.
The monic orthogonal polynomials form a basis of , ordered by degree. Since is monic of degree ,
For , symmetry of multiplication by gives , because . Only and remain. Taking inner products with yields .
Similarly,
since has degree at most . Rearranging proves the three-term recurrence for monic orthogonal polynomials:
The monic orthogonal polynomial is orthogonal to every polynomial of degree less than , since form a basis of that polynomial space. Let be its distinct interior roots at which its sign changes, and put , with if . The real polynomial has constant sign throughout : multiplication by each linear factor removes its corresponding sign change, while even-multiplicity roots do not change sign. It is not identically zero. Since , its weighted integral is nonzero.
If , orthogonality instead gives , a contradiction. Thus . Degree also gives , so and all roots have multiplicity one, with no roots left outside the interval. Therefore there are exactly distinct simple zeros in . The weighted inner products are understood to exist, as required by the stipulated orthogonality.
Choose real monic orthogonal polynomials of degree , , for on , and let
Extend each by zero to negative . The resulting functions form an orthonormal set in . Define the orthogonal polynomial projection kernel
The formula on the right is for nonnegative arguments; the kernel is zero when either argument is negative. With , the kernel evaluation matrix is . By the determinant multiplication identity and the preceding monic basis change,
Thus initially .
Use the symmetric labelled joint probability density on the full orthant. Expanding the two copies of into permutations and integrating all variables, orthonormality makes a term vanish unless the two permutations agree. Each of the surviving terms integrates to . Hence
If the eigenvalues are instead listed in increasing order on a single ordered chamber, that chamber's density is times this symmetric density. We keep the full-orthant convention throughout.
An explicit choice is in terms of the Generalized Laguerre polynomials. To verify the normalization independently, their Rodrigues' formula gives
Integrating by parts times proves orthogonality to every lower-degree polynomial. The boundary terms vanish at zero and infinity for . Taking the other factor to be and using gives , where is the Gamma function. The Laguerre projection kernel is therefore
for .
A sequence of real orthogonal polynomials consists of real polynomials with degree of a polynomial and
Orthogonality is relative to the specified inner product, rather than to the ordinary coefficients. A monic polynomial has leading coefficient one, so a monic orthogonal polynomial has the form . In particular, the monic degree-zero polynomial is .
This is the Gram-Schmidt process applied degree by degree. Inductively, subtracting projections onto makes orthogonal to every earlier polynomial. Since every subtracted polynomial has degree at most , the leading coefficient of the monic remains one, so is a real monic orthogonal polynomial of degree exactly .
Now take . For , symmetry of the inner product gives
because has degree at most . Only the and projections remain, yielding the three-term recurrence for monic orthogonal polynomials
where
The second identity uses plus lower-degree terms.
For the symmetric Legendre inner product, parity gives . Starting with , one obtains , then
Thus the first four monic Legendre polynomials are