The Composite Trapezoidal Rule
- If we are getting the integral of a known function over a larger span of -values, say, from to , we subdivide [a,b] into smaller intervals with , apply the rule to each subinterval, and add. This gives the composite trapezoidal rule;
The error is not the local error but the global error, the sum of local errors;
In this equation, each of the is somewhere within each subinterval. If is continuous in [a, b], there is some point within [a,b] at which the sum of the is equal to , where in [a, b]. We then see that, because ,
An Algorithm for Integration by the Composite Trapezoidal Rule:
- Example: Given the values for and in Table3, use the trapezoidal rule to estimate the integral
from to . Applying the trapezoidal rule:
Table 3:
Example for the trapezoidal rule.
|
The data in Table 3 are for and the true value is
. The trapezoidal rule value is off by ; there are three digits of accuracy. How does this compare to the estimated error?
Alternatively,
The actual error was .
2004-12-21