## Learning Objectives

- Use the Trapezoidal Rule to solve problems
- Estimate errors for the Trapezoidal Rule
- Use Simpson’s Rule to solve problems
- Estimate Errors for Simpson’s Rule

## Introduction

Recall that we used different ways to approximate the value of integrals. These included Riemann Sums using left and right endpoints, as well as midpoints for finding the length of each rectangular tile. In this lesson we will learn two other methods for approximating integrals. The first of these, the Trapezoidal Rule, uses areas of trapezoidal tiles to approximate the integral. The second method, Simpson’s Rule, uses parabolas to make the approximation.

*Trapezoidal Rule*

Let’s recall how we would use the midpoint rule with rectangles to approximate the area under the graph of from to

If instead of using the midpoint value within each sub-interval to find the length of the corresponding rectangle, we could have instead formed trapezoids by joining the maximum and minimum values of the function within each sub-interval:

The area of a trapezoid is , where and are the lengths of the parallel sides and is the height. In our trapezoids the height is and and are the values of the function. Therefore in finding the areas of the trapezoids we actually average the left and right endpoints of each sub-interval. Therefore a typical trapezoid would have the area

To approximate with of these trapezoids, we have

**Example 1:**

Use the Trapezoidal Rule to approximate with .

**Solution:**

We find

Of course, this estimate is not nearly as accurate as we would like. For functions such as we can easily find an antiderivative with which we can apply the Fundamental Theorem that But it is not always easy to find an antiderivative. Indeed, for many integrals it is impossible to find an antiderivative. Another issue concerns the questions about the accuracy of the approximation. In particular, how large should we take n so that the Trapezoidal Estimate for is accurate to within a given value, say ? As with our Linear Approximations in the Lesson on Approximation Errors, we can state a method that ensures our approximation to be within a specified value.

*Error Estimates for Simpson's Rule*

We would like to have confidence in the approximations we make. Hence we can choose to ensure that the errors are within acceptable boundaries. The following method illustrates how we can choose a sufficiently large

Suppose for Then the error estimate is given by

**Example 2:**

Find so that the Trapezoidal Estimate for is accurate to

**Solution:**

We need to find such that We start by noting that for Hence we can take to find our error bound.

We need to solve the following inequality for :

Hence we must take to achieve the desired accuracy.

From the last example, we see one of the weaknesses of the Trapezoidal Rule—it is not very accurate for functions where straight line segments (and trapezoid tiles) do not lead to a good estimate of area. It is reasonable to think that other methods of approximating curves might be more applicable for some functions. ** Simpson’s Rule** is a method that uses parabolas to approximate the curve.

** Simpson’s Rule**:

As was true with the Trapezoidal Rule, we divide the interval into sub-intervals of length We then construct parabolas through each group of three consecutive points on the graph. The graph below shows this process for the first three such parabolas for the case of sub-intervals. You can see that every interval except the first and last contains two estimates, one too high and one too low, so the resulting estimate will be more accurate.

Using parabolas in this way produces the following estimate of the area from Simpson’s Rule:

We note that it has a similar appearance to the Trapezoidal Rule. However, there is one distinction we need to note. The process of using three consecutive to approximate parabolas will require that we assume that must always be an even number.

*Error Estimates for the Trapezoidal Rule*

As with the Trapezoidal Rule, we have a formula that suggests how we can choose to ensure that the errors are within acceptable boundaries. The following method illustrates how we can choose a sufficiently large

Suppose for Then the error estimate is given by

**Example 3:**

a. Use Simpson’s Rule to approximate with .

**Solution:**

We find

This turns out to be a pretty good estimate, since we know that

Therefore the error is less than .

b. Find so that the Simpson Rule Estimate for is accurate to

**Solution:**

We need to find such that We start by noting that for Hence we can take to find our error bound:

Hence we need to solve the following inequality for :

We find that

Hence we must take to achieve the desired accuracy.

**Technology Note: Estimating a Definite Integral with a TI-83/84 Calculator**

We will estimate the value of .

- Graph the function with the [WINDOW] setting shown below.
- The graph is shown in the second screen.
- Press
**2nd****[CALC]**and choose option**7**(see menu below) - When the fourth screen appears, press
**[1]****[ENTER]**then**[4]****[ENTER]**to enter the lower and upper limits. - The final screen gives the estimate, which is accurate to 7 decimal places.

## Lesson Summary

- We used the Trapezoidal Rule to solve problems.
- We estimated errors for the Trapezoidal Rule.
- We used Simpson’s Rule to solve problems.
- We estimated Errors for Simpson’s Rule.

## Multimedia Links

For video presentations of Simpson's Rule **(21.0)**, see Simpson's Rule, Approximate Integration (7:21)

and Math Video Tutorials by James Sousa, Simpson's Rule of Numerical Integration (8:48).

## Review Questions

- Use the Trapezoidal Rule to approximate with
- Use the Trapezoidal Rule to approximate with
- Use the Trapezoidal Rule to approximate with
- Use the Trapezoidal Rule to approximate with
- How large should you take so that the Trapezoidal Estimate for is accurate to within ?
- Use Simpson’s Rule to approximate with
- Use Simpson’s Rule to approximate with
- Use Simpson’s Rule to approximate with
- Use Simpson’s Rule to approximate with
- How large should you take so that the Simpson Estimate for is accurate to within ?

## Review Answers

- Take
- Take

## Texas Instruments Resources

*In the CK-12 Texas Instruments Calculus FlexBook, there are graphing calculator activities designed to supplement the objectives for some of the lessons in this chapter. See http://www.ck12.org/flexr/chapter/9729.*