The Trapezoidal Rule
by M. Bourne
Interactive exploration
See an applet where you can explore Simpson’s Rule and other numerical techniques:
Riemann Sums Applet
Problem: Find
We put then .
But the question does not contain an `x dx` term so we cannot solve it using any of the integration methods we have met so far.
We need to use numerical approaches. (This is usually how software like Mathcad or graphics calculators perform definite integrals).
We can use one of two methods:
- Trapezoidal rule
- Simpson’s Rule (in the next section: Simpson’s Rule)
Continues below ⇩
The Trapezoidal Rule
We saw the basic idea in our first attempt at solving the area under the arches problem earlier.
Instead of using rectangles as we did in the arches problem, we’ll use trapezoids (trapeziums) and we’ll find that it gives a better approximation to the area.
The approximate area under the curve is found by adding the area of all the trapezoids.
(Recall that we write “Δx” to mean “a small change in x“.)
Area of a trapezoid
Now, the area of a trapezoid (trapezium) is given by:
We need “right” trapezoids (which means the parallel sides are at right angles to the base), and they are rotated 90° so that their new base is actually h, as follows, and h = Δx.
A “typical” trapezoid
So the total area is given by:
We can simplify this to give us the Trapezoidal Rule, for trapezoids:
To find for the area from to , we use:
and we also need
Note
- We get a better approximation if we take more trapezoids [up to a limit!].
- The more trapezoids we take, will tend to , that is,
- We can write (if the curve is above the x-axis only between and ):
Don’t miss…
There is an interactive applet where you can explore the Trapezoid Rule, here:
Exercise
Using , approximate the integral:
Answer
This is the situation:
I have joined each of the points at the top of the vertical segments with a straight line.
Here, and , and the width of each trapezoid is given by:
I have joined each of the points at the top of the vertical segments with a straight line.
Here, and , and the width of each trapezoid is given by:
So we have:
So
We can see in the graph above the trapezoids are very close to the original curve, so our approximation should be close to the real value. In fact, to 3 decimal places, the integral value is 1.148.