Newton–Cotes formulas
   HOME

TheInfoList



OR:

In
numerical analysis Numerical analysis is the study of algorithms that use numerical approximation (as opposed to symbolic manipulations) for the problems of mathematical analysis (as distinguished from discrete mathematics). It is the study of numerical methods ...
, the Newton–Cotes formulas, also called the Newton–Cotes quadrature rules or simply Newton–Cotes rules, are a group of formulas for
numerical integration In analysis, numerical integration comprises a broad family of algorithms for calculating the numerical value of a definite integral, and by extension, the term is also sometimes used to describe the numerical solution of differential equatio ...
(also called ''quadrature'') based on evaluating the integrand at equally spaced points. They are named after
Isaac Newton Sir Isaac Newton (25 December 1642 – 20 March 1726/27) was an English mathematician, physicist, astronomer, alchemist, Theology, theologian, and author (described in his time as a "natural philosophy, natural philosopher"), widely ...
and Roger Cotes. Newton–Cotes formulas can be useful if the value of the integrand at equally spaced points is given. If it is possible to change the points at which the integrand is evaluated, then other methods such as
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 mor ...
and Clenshaw–Curtis quadrature are probably more suitable.


Description

It is assumed that the value of a function defined on , b/math> is known at n + 1 equally spaced points: a \leq x_0 < x_1 < \ldots < x_n \leq b. There are two classes of Newton–Cotes quadrature: they are called "closed" when x_0 = a and x_n = b, i.e. they use the function values at the interval endpoints, and "open" when x_0 > a and x_n < b, i.e. they do not use the function values at the endpoints. Newton–Cotes formulas using n+1 points can be defined (for both classes) as : \int_a^b f(x)\, dx \approx \sum_^n w_i\, f(x_i), where * for a closed formula, x_i = a + ih, with h = \frac, * for an open formula, x_i = a + (i + 1)h, with h = \frac. The number is called ''step size'', w_i are called ''weights''. The weights can be computed as the integral of Lagrange basis polynomials. They depend only on x_i and not on the function . Let L(x) be the interpolation polynomial in the Lagrange form for the given data points (x_0, f(x_0)), (x_1, f(x_1)), \ldots, (x_n, f(x_n)), then : \int_a^b f(x)\, dx \approx \int_a^b L(x)\, dx = \int_a^b \left(\sum_^n f(x_i) l_i(x)\right)\, dx = \sum_^n f(x_i) \underbrace_.


Instability for high degree

A Newton–Cotes formula of any degree can be constructed. However, for large a Newton–Cotes rule can sometimes suffer from catastrophic Runge's phenomenon where the error grows exponentially for large . Methods such as Gaussian quadrature and Clenshaw–Curtis quadrature with unequally spaced points (clustered at the ''endpoints'' of the integration interval) are stable and much more accurate, and are normally preferred to Newton–Cotes. If these methods cannot be used, because the integrand is only given at the fixed equidistributed grid, then Runge's phenomenon can be avoided by using a composite rule, as explained below. Alternatively, stable Newton–Cotes formulas can be constructed using least-squares approximation instead of interpolation. This allows building numerically stable formulas even for high degrees.


Closed Newton–Cotes formulas

This table lists some of the Newton–Cotes formulas of the closed type. For 0 \le i \le n, let x_i = a + ih where h = \frac, and f_i = f(x_i). Boole's rule is sometimes mistakenly called Bode's rule, as a result of the propagation of a typographical error in
Abramowitz and Stegun ''Abramowitz and Stegun'' (''AS'') is the informal name of a 1964 mathematical reference work edited by Milton Abramowitz and Irene Stegun of the United States National Bureau of Standards (NBS), now the ''National Institute of Standards and ...
, an early reference book.Booles Rule at Wolfram Mathworld, with typo in year "1960" (instead of "1860")
/ref> The exponent of the step size ''h'' in the error term gives the rate at which the approximation error decreases. The order of the derivative of ''f'' in the error term gives the lowest degree of a polynomial which can no longer be integrated exactly (i.e. with error equal to zero) with this rule. The number \xi must be taken from the interval , therefore, the error bound is equal to the error term when f(\xi) = max(f(x)), a.


Open Newton–Cotes formulas

This table lists some of the Newton–Cotes formulas of the open type. For 0 \le i \le n, let x_i = a + (i + 1)h where h = \frac, and f_i = f(x_i).


Composite rules

For the Newton–Cotes rules to be accurate, the step size needs to be small, which means that the interval of integration , b/math> must be small itself, which is not true most of the time. For this reason, one usually performs numerical integration by splitting , b/math> into smaller subintervals, applying a Newton–Cotes rule on each subinterval, and adding up the results. This is called a ''composite rule''. See
Numerical integration In analysis, numerical integration comprises a broad family of algorithms for calculating the numerical value of a definite integral, and by extension, the term is also sometimes used to describe the numerical solution of differential equatio ...
.


See also

* Quadrature (mathematics) *
Interpolation In the mathematical field of numerical analysis, interpolation is a type of estimation, a method of constructing (finding) new data points based on the range of a discrete set of known data points. In engineering and science, one often has ...
* Spline interpolation


References

* M. Abramowitz and I. A. Stegun, eds. ''Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables''. New York: Dover, 1972. ''(See Section 25.4.)'' * George E. Forsythe, Michael A. Malcolm, and Cleve B. Moler. ''Computer Methods for Mathematical Computations''. Englewood Cliffs, NJ: Prentice–Hall, 1977. ''(See Section 5.1.)'' * * Josef Stoer and Roland Bulirsch. ''Introduction to Numerical Analysis''. New York: Springer-Verlag, 1980. ''(See Section 3.1.)''


External links

*
Newton–Cotes formulas
on www.math-linux.com *

numericalmathematics.com {{DEFAULTSORT:Newton-Cotes formulas Numerical integration (quadrature)