3 The composite trapezium rule
The general idea here is to split the interval into a sequence of smaller subintervals of equal width . Then we apply the simple trapezium rule to each of the subintervals.
Figure 7 below shows the case where (and ). To simplify notation later on we let , and .
Figure 7
Applying the simple trapezium rule to each subinterval we get
where we remember that the width of each of the subintervals is , rather than the we had in the simple trapezium rule.
The next improvement will come from taking subintervals (Figure 8). Here is smaller than in Figure 7 above and we denote , , and . (Notice that and mean something different from what they did in the case.)
Figure 8
As Figure 8 shows, the approximation is getting closer to the grey shaded area and in this case we have
The pattern is probably becoming clear by now, but here is one more improvement. In Figure 9 , and we denote , , , and .
Figure 9
This leads to
We generalise this idea into the following Key Point.
Key Point 7
Composite Trapezium Rule
The composite trapezium rule for approximating is carried out as follows:
- Choose , the number of subintervals,
-
,
where
Example 12
Using 4 subintervals in the composite trapezium rule, and working to 6 decimal
places, approximate
Solution
In this case
.
We require
evaluated at five
-values and the results are tabulated below to 6 d.p.
It follows that
Task!
Using 4 subintervals in the composite trapezium rule approximate
In this case
.
We require
evaluated at five
-values and the results are tabulated below t0 6 d.p.
It follows that
3.1 How good is the composite trapezium rule?
We can work out an upper bound on the error incurred by the composite trapezium method. Fortunately, all we have to do here is apply the method for the error in the simple rule over and over again. Let denote the error in the composite trapezium rule with subintervals. Then
This is all very well as a piece of theory, but it is awkward to use in practice. The process of working out the maximum value of separately in each subinterval is very time-consuming. We can obtain a more user-friendly, if less accurate, error bound by replacing each term in the last bracket above with the biggest one. Hence we obtain
This upper bound can be rewritten by recalling that , and we now summarise the result in a Key Point.
Key Point 8
Error in the Composite Trapezium Rule
The error, , in the -subinterval composite trapezium approximation to is bounded above by
Note: the special case when is the simple trapezium rule, in which case (refer to Key Point 6 to compare).
The formula in Key Point 8 can be used to decide how many subintervals to use to guarantee a specific accuracy.
Example 13
The function is known to have a second derivative with the property that
for between 0 and 4.
Using the error bound given in Key Point 8 determine how many subintervals are required so that the composite trapezium rule used to approximate
can be guaranteed to be in error by less than .
Solution
We require that
that is
This implies that
and therefore
.
Now
and it follows that
Clearly, must be a whole number and we conclude that the smallest number of subintervals which guarantees an error smaller than 0.0005 is .
It is worth remembering that the error bound we are using here is a pessimistic one. We effectively use the same (worst case) value for all the way through the integration interval. Odds are that fewer subintervals will give the required accuracy, but the value for we found here will guarantee a good enough approximation.
Next are two Tasks for you to try.
Task!
The function is known to have a second derivative with the property that
for between and 4.
Using the error bound given in Key Point 8 determine how many subintervals are required so that the composite trapezium rule used to approximate
can be guaranteed to have an error less than 0.0001.
We require that
that is
This implies that
and therefore
.
Now
and it follows that
Clearly, must be a whole number and we conclude that the smallest number of subintervals which guarantees an error smaller than 0.00001 is .
Task!
It is given that the function has a second derivative that is never greater than 1 in absolute value.
-
Use this fact to determine how many subintervals are required for the composite trapezium method to deliver an approximation to
that is guaranteed to have an error less than .
- Find an approximation to the integral that is in error by less than .
We require that . This means that and therefore, since , it is necessary for for the error bound to be less than .
To carry out the composite trapezium rule, with we need to evaluate at . This evaluation gives
all to 5 decimal places. It follows that
We know from part 1. that this approximation is in error by less than .
Example 14
Determine the minimum number of steps needed to guarantee an error not
exceeding , when evaluating
using the trapezium rule.
Solution
Using the error formula in Key Point 8
occurs when
Task!
Determine the minimum of strips, , needed to evaluate by the trapezium rule:
such that the error is guaranteed not to exceed .
We need
Now so
We need so required