Gaussian quadrature
Encyclopedia : G : GA : GAU : 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
- [\int_^1 f(x)\,dx \approx \sum_^n w_i f(x_i)]
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 | Points, xi | Weights, wi |
|---|---|---|
| 1 | 0 | 2 |
| 2 | [\pm\sqrt] | 1 |
| 3 | 0 | 8/9 |
| [\pm\sqrt] | 5/9 | |
| 4 | ±0.339981044 | 0.652145155 |
| ±0.861136312 | 0.347854845 | |
| 5 | 0 | 0.568889 |
| ±0.538469 | 0.478629 | |
| ±0.906180 | 0.236927 |
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:
- [\int_a^b f(t)\,dt = \frac \int_^1 f\left(\fracx + \frac\right)\,dx ]
- [\frac \sum_^n w_i f\left(\fracx_i + \frac\right)]
Other forms of Gaussian quadrature
The integration problem can be expressed in a slightly more general way by introducing a positive weight function ω into the integrand, and allowing an interval other than [−1, 1]. That is, the problem is to calculate
- [ \int_a^b \omega(x)\,f(x)\,dx ]
| Interval | ω(x) | Orthogonal polynomials | A&S |
| [−1, 1] | [1\,] | Legendre polynomials | Eq. 25.4.29 |
| (−1, 1) | [(1-x)^\alpha (1+x)^\beta, \alpha > -1,\beta > -1\,] | Jacobi polynomials | Eq. 25.4.33 ([\beta=0]) |
| (−1, 1) | [ \frac} ] | Chebyshev polynomials (first kind) | Eq. 25.4.38 |
| [−1, 1] | [ \sqrt ] | Chebyshev polynomials (second kind) | Eq. 25.4.40 |
| [ [0, \infty) ] | [ e^\, ] | Laguerre polynomials | Eq. 25.4.45 |
| [ (-\infty, \infty) ] | [ e^ ] | 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,
- [ \int_a^b \omega(x)\,f(x)\,dx - \sum_^n w_i\,f(x_i) = \frac(\xi)} \, \|p_n\|^2 ]
Stoer and Bulirsch remark that this error estimate is inconvenient in practice,
since it may be difficult to estimate the 2n
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 rules are named after Alexander Kronrod who invented them in the 1960s. The algorithms in QUADPACK (see below) are based on Gauss-Kronrod rules.
References
- A.S. Kronrod, Nodes and weights of quadrature formulas. Sixteen-place tables, Authorized translation from the Russian, Consultants Bureau, New York, 1965.
- Milton Abramowitz and Irene A. Stegun, eds., Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables (Dover: New York, 1972)
- * [Section 25.4] Integration
- 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 [link], source code [link]. 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.
- [GNU Scientific Library] - includes C version of QUADPACK algorithms (see also GNU Scientific Library)
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
