2 The simple trapezium rule
The first approximation we shall look at involves finding the area under a straight line, rather than the area under a curve . Figure 6 shows it best.
Figure 6
We approximate as follows
Key Point 5
Simple Trapezium Rule
The simple trapezium rule for approximating
is given by approximating the area under the graph of
by the area of a trapezium.
The formula is:
Or, to put it another way that may prove helpful a little later on,
Next we show some instances of implementing this method.
Example 10
Approximate each of these integrals using the simple trapezium rule
Solution
-
,
-
,
-
,
where all three answers are given to 5 decimal places.
It is important to note that, although we have given these integral approximations to 5 decimal places, this does not mean that they are accurate to that many places. We will deal with the accuracy of our approximations later in this Section. Next are some Tasks for you to try.
Task!
Approximate the following integrals using the simple trapezium method
The answer you obtain for this next Task can be checked against the table of results in HELM booklet 39 concerning the Normal distribution or in a standard statistics textbook.
Task!
Use the simple trapezium method to approximate
We find that
to 5 decimal places.
So we have a means of approximating . The question remains whether or not it is a good approximation.
2.1 How good is the simple trapezium rule?
We define , the error in the simple trapezium rule to be the difference between the actual value of the integral and our approximation to it, that is
It is enough for our purposes here to omit some theory and skip straight to the result of interest. In many different textbooks on the subject it is shown that
where is some number between and . (The principal drawback with this expression for is that we do not know what is, but we will find a way to work around that difficulty later.)
It is worth pausing to ask what meaning we can attach to this expression for . There are two factors which can influence :
- If is small then, clearly, will most probably also be small. This seems sensible enough - if the integration interval is a small one then there is “less room" to accumulate a large error. (This observation forms part of the motivation for the composite trapezium rule discussed later in this Section.)
- If is small everywhere in then will be small. This reflects the fact that we worked out the integral of a straight line function, instead of the integral of . If is a long way from being a straight line then will be large and so we must expect the error to be large too.
We noted above that the expression for is less useful than it might be because it involves the unknown quantity . We perform a trade-off to get around this problem. The expression above gives an exact value for , but we do not know enough to evaluate it. So we replace the expression with one we can evaluate, but it will not be exact. We replace with a worst case value to obtain an upper bound on . This worst case value is the largest (positive or negative) value that achieves for . This leads to
We summarise this in Key Point 6.
Key Point 6
Error in the Simple Trapezium Rule
The error, , in the simple trapezium approximation to is bounded above by
Example 11
Work out the error bound (to 6 decimal places) for the simple trapezium method approximations to
Solution
In each case the trickiest part is working out the maximum value of .
-
Here
, therefore
and
. The function
takes values between 0 and
when
varies between
and
. Hence
-
If
then
too. The maximum value of
for
between 0 and 2 will be
, to 6 decimal places. Hence, in this case,
(In Example 11 we used a rounded value of . To be on the safe side, it is best to round this number up to make sure that we still have an upper bound on . In this case, of course, rounding up is what we would naturally do, because the seventh decimal place was a 6.)
Task!
Work out the error bound (to 5 significant figures) for the simple trapezium method approximations to
If then and .
The negative power here means that takes its biggest value in magnitude at the left-hand end of the interval and we see that . Therefore
Here hence and .
It follows then that and we conclude that
One deficiency in the simple trapezium rule is that there is nothing we can do to improve it. Having computed an error bound to measure the quality of the approximation we have no way to go back and work out a better approximation to the integral. It would be preferable if there were a parameter we could alter to tune the accuracy of the method. The following approach uses the simple trapezium method in a way that allows us to improve the accuracy of the answer we obtain.