Gaussian quadrature

In numerical analysis, a quadrature rule is an approximation of the definite integral of a function, usually stated as a weighted sum of function values at specified points within the domain of integration. (See numerical integration for more on quadrature rules.) An n-point Gaussian quadrature rule, named after Carl Friedrich Gauss, is a quadrature rule constructed to yield an exact result for polynomials of degree 2n − 1, by a suitable choice of the n points xi and n weights wi. The domain of integration for such a rule is conventionally taken as [-1, 1], so the rule is stated as

<math>\int_{-1}^1 f(x)\,dx \approx \sum_{i=1}^n w_i f(x_i)<math>

It can be shown (see Press, et al., or Stoer and Bulirsch) that the evaluation points are just the roots of a polynomial belonging to a class of orthogonal polynomials.

Contents

Rules for the basic problem

For the integration problem stated above, the associated polynomials are Legendre polynomials. Some low-order rules for solving the integration problem are listed below.

Number of points, n Weights, wi Points, xi
1 2 0
2 1, 1 -√(1/3), √(1/3)
3 5/9, 8/9, 5/9 -√(3/5), 0, √(3/5)

Change of interval for Gaussian quadrature

An integral over [a, b] must be changed into an integral over [-1, 1] before applying the Gaussian quadrature rule. This change of interval can be done in the following way:

<math>

\int_a^b f(t)\,dt = \frac{b-a}{2} \int_{-1}^1 f\left(\frac{b-a}{2}x + \frac{a+b}{2}\right)\,dx <math>

After applying the Gaussian quadrature rule, the following approximation is obtained:

<math>

\frac{b-a}{2} \sum_{i=1}^n w_i f\left(\frac{b-a}{2}x_i + \frac{a+b}{2}\right) <math>

Other forms of Gaussian quadrature

The integration problem can be expressed in a slightly more general way by introducing a weight function ω into the integrand, and allowing an interval other than [-1, 1]. That is, the problem is to calculate

<math> \int_a^b \omega(x)\,f(x)\,dx <math>

for some choices of a, b, and ω. For a = -1, b = 1, and ω(x) = 1, the problem is the same as that considered above. Other choices lead to other integration rules. Some of these are tabulated below. Equation numbers are given for Abramowitz and Stegun (A&S).

Interval ω(x) Orthogonal polynomials A&S
[-1, 1] <math>1\,<math> Legendre polynomials Eq. 25.4.29
[-1, 1] <math> \frac{1}{\sqrt{1 - x^2}} <math> Chebyshev polynomials Eq. 25.4.38
[0, ∞) <math> e^{-x}\, <math> Laguerre polynomials Eq. 25.4.45
(-∞, ∞) <math> e^{-x^2} <math> Hermite polynomials Eq. 25.4.46

Error estimates

The error of a Gaussian quadrature rule can be stated as follows (theorem 3.6.24 in Stoer and Bulirsch). For an integrand which has 2n continuous derivatives,

<math> \int_a^b \omega(x)\,f(x)\,dx - \sum_{i=1}^n w_i\,f(x_i)
= \frac{f^{(2n)}(\xi)}{(2n)!} \, \|p_n\|^2 <math>

for some ξ in (a, b), where pn is the orthogonal polynomial of order n.

Stoer and Bulirsch remark that this error estimate is inconvenient in practice, since it may be difficult to estimate the 2n'th derivative, and furthermore the actual error may be much less than a bound established by the derivative. Another approach is to use two Gaussian quadrature rules of different orders, and to estimate the error as the difference between the two results. For this purpose, Gauss-Kronrod rules can be useful.

Gauss-Kronrod rules

If the interval [a, b] is subdivided, the evaluation points of the new subintervals generally do not coincide with the previous evaluation points, and thus the integrand must be evaluated at every point. Gauss-Kronrod rules are Gaussian quadrature rules that are modified to make some of the evaluation points coincide after subdivision. The difference between the results before and after subdivision can be taken as an estimate of the error of approximation, so such an approach can increase the accuracy achieved for a given number of function evaluations. The algorithms in QUADPACK (see below) are based on Gauss-Kronrod rules.

References

  • Milton Abramowitz and Irene A. Stegun, eds. Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables. New York: Dover, 1972. (See Section 25.4.)
  • Robert Piessens, Elise de Doncker-Kapenga, C.W. Überhuber, D.K. Kahaner. QUADPACK, A subroutine package for automatic integration. Springer Verlag, 1983. (Reference guide for QUADPACK.)
  • William H. Press, Brian P. Flannery, Saul A. Teukolsky, William T. Vetterling. Numerical Recipes in C. Cambridge, UK: Cambridge University Press, 1988. (See Section 4.5.)
  • Josef Stoer and Roland Bulirsch. Introduction to Numerical Analysis. New York: Springer-Verlag, 1980. (See Section 3.6.)

External links

  • QUADPACK (part of SLATEC): description [1] (http://www.netlib.org/slatec/src/qpdoc.f), source code [2] (http://www.netlib.org/slatec/src). QUADPACK is a collection of algorithms, in Fortran, for numerical integration based on Gauss-Kronrod rules. SLATEC (at Netlib) is a large public domain library for numerical computing.fr:Méthodes de quadrature de Gauss
Navigation

  • Art and Cultures
    • Art (https://academickids.com/encyclopedia/index.php/Art)
    • Architecture (https://academickids.com/encyclopedia/index.php/Architecture)
    • Cultures (https://www.academickids.com/encyclopedia/index.php/Cultures)
    • Music (https://www.academickids.com/encyclopedia/index.php/Music)
    • Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
  • Biographies (http://www.academickids.com/encyclopedia/index.php/Biographies)
  • Clipart (http://www.academickids.com/encyclopedia/index.php/Clipart)
  • Geography (http://www.academickids.com/encyclopedia/index.php/Geography)
    • Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
    • Maps (http://www.academickids.com/encyclopedia/index.php/Maps)
    • Flags (http://www.academickids.com/encyclopedia/index.php/Flags)
    • Continents (http://www.academickids.com/encyclopedia/index.php/Continents)
  • History (http://www.academickids.com/encyclopedia/index.php/History)
    • Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
    • Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
    • Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
    • Prehistory (http://www.academickids.com/encyclopedia/index.php/Prehistory)
    • Renaissance (http://www.academickids.com/encyclopedia/index.php/Renaissance)
    • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
    • United States (http://www.academickids.com/encyclopedia/index.php/United_States)
    • Wars (http://www.academickids.com/encyclopedia/index.php/Wars)
    • World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
  • Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
  • Mathematics (http://www.academickids.com/encyclopedia/index.php/Mathematics)
  • Reference (http://www.academickids.com/encyclopedia/index.php/Reference)
  • Science (http://www.academickids.com/encyclopedia/index.php/Science)
    • Animals (http://www.academickids.com/encyclopedia/index.php/Animals)
    • Aviation (http://www.academickids.com/encyclopedia/index.php/Aviation)
    • Dinosaurs (http://www.academickids.com/encyclopedia/index.php/Dinosaurs)
    • Earth (http://www.academickids.com/encyclopedia/index.php/Earth)
    • Inventions (http://www.academickids.com/encyclopedia/index.php/Inventions)
    • Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
    • Plants (http://www.academickids.com/encyclopedia/index.php/Plants)
    • Scientists (http://www.academickids.com/encyclopedia/index.php/Scientists)
  • Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
    • Anthropology (http://www.academickids.com/encyclopedia/index.php/Anthropology)
    • Economics (http://www.academickids.com/encyclopedia/index.php/Economics)
    • Government (http://www.academickids.com/encyclopedia/index.php/Government)
    • Religion (http://www.academickids.com/encyclopedia/index.php/Religion)
    • Holidays (http://www.academickids.com/encyclopedia/index.php/Holidays)
  • Space and Astronomy
    • Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)
    • Planets (http://www.academickids.com/encyclopedia/index.php/Planets)
  • Sports (http://www.academickids.com/encyclopedia/index.php/Sports)
  • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
  • Weather (http://www.academickids.com/encyclopedia/index.php/Weather)
  • US States (http://www.academickids.com/encyclopedia/index.php/US_States)

Information

  • Home Page (http://academickids.com/encyclopedia/index.php)
  • Contact Us (http://www.academickids.com/encyclopedia/index.php/Contactus)

  • Clip Art (http://classroomclipart.com)
Toolbox
Personal tools