Newton-Cotes formulas
In numerical analysis, the Newton-Cotes formulas, also called the Newton-Cotes rules, are a group of formulas for numerical integration (also called quadrature).
Related Topics:
Numerical analysis - Numerical integration
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
They are named after Isaac Newton and Roger Cotes.
Related Topics:
Isaac Newton - Roger Cotes
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
It is assumed that the value of a function f is known at equally spaced points xi, for i = 0, ..., n.
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
(If the evaluation points are not assumed to be equally spaced,
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
another class of formulas, called Gaussian quadrature formulas,
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
can be derived.)
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
There are two types of Newton-Cotes formulas,
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
the "closed" type which uses the function value at all points,
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
and the "open" type which does not use the function values at the end points.
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
The closed Newton-Cotes formula of degree n is stated as
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
:int_a^b f(x) ,dx pprox sum_{i=0}^n w_i, f(x_i)
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
where xi = h i + x0,
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
with h (called the step size) equal to (xn - x0)/n. The w_i are called weights.
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
As can be seen in the following derivation the weights are derived from the Lagrange basis polynomials. This means they depend only on the xi and not on the function f. L(x) is the interpolation polynomial in the Lagrange form for the given data points (x0, f(x0) ),..,(xn, f(xn) )
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
:int_a^b f(x) ,dx pprox int_a^b L(x),dx = int_a^b sum_{i=0}^n f(x_i), l_i(x), dx
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
:=sum_{i=0}^n int_{x_{i-1}}^{x_i} f(x_i), l_i(x), dx =
~ ~ ~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~ ~ ~ ~ ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Notice that for the Newton-Cotes rules to be accurate, the step size h needs to be small, which means that the interval of integration
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
must be small itself, which is not true most of the time. For this reason, one usually
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
performs numerical integration by splitting 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.
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ Table of Content ~
| ► | Introduction |
| ► | References |
| ► | External links |
~ What's Hot ~
~ Community ~
| ► | History Forum Come and discuss about History, Civilizations, Historical Events and Figures |
| ► | History Web-Ring A community of sites, blogs and forums dedicated to History. Do not hesitate to submit your site. |
and are licensed under the GNU Free Documentation License.
Lexicon - Privacy Policy - Spiritus-Temporis.com ©2005.