Orthogonal Polynomials


Function Library Home
Orthogonal Polynomials

    Terminology

    Given a field K, let K[x] be the vector space of polynomials over K and endow K[x] with an inner product < , >. Two polynomials p,q ∈ K[x] are said to be orthogonal (with respect to the inner product < , >) if <p,q> = 0. Generate a sequence of monic orthogonal polynomials by applying the Gram-Schmidt orthogonalization process to the basis {x0, x1, x2,…} of K[x]. If during the Gram-Schmidt process a 0 is generated, the process terminates and the monic orthogonal polynomials only span a finite dimensional subspace of K[x]. A sequence of orthogonal polynomials can then be generated by multiplying each monic polynomial by an arbitrary nonzero constant. The result is a sequence of orthogonal polynomials.
    The orthogonal polynomials programmed here are over the reals R. The inner products are expressed as integrals with respect to some measure or as a weighted sum. Given a non-decreasing real-valued function of a real variable F(x) with finite limits as x→-∞ and x→∞ and let dF(x) be the induced measure associated with F(x). The support of F is the set {x∈R : F(x+ε) > F(x - ε) for all ε>0}. The support interval of F is the convex hull of the support of F.
    For the orthogonal polynomials programmed below, the inner product of two polynomials p,q ∈ R[x] is defined as
    <p,q> = ∫R p(x) q(x) dF(x).
    If the measure dF is absolutely continuous (with respect to Lebesque measure) then dF(x) = w(x) dx for some function w(x) called the weight function and
    <p,q> = ∫R p(x) q(x) w(x) dx.
    If F is a step function, then dF(x) can be represented as a linear combination of translated Dirac δ functions. Assume that
    dF(x) = Σn wn δ(x - xn)
    then
    <p,q> = ∫R p(x) q(x) dF(x) = Σn p(xn) q(xn) wn.
    The zeros of the orthogonal polynomials are contained within the support interval. Further the zeros of the orthogonal polynomial of degree n+1 alternate with the zeros of the orthogonal polynomial of degree n, for n≥1. A consequence of this is that in the neighborhood of a zero of the orthogonal polynomial, while the absolute error may be small, the relative error can be large. Further when evaluating an orthogonal polynomial with large degree, the slope will be large near a zero so that an error in the argument of the orthogonal polynomial will lead to a large error in the evaluation of that polynomial.

    Table of Available Orthogonal Polynomials

    Orthogonal Polynomials of a Continuous Variable

    Orthogonal Polynomials of a Discrete Variable