When working with Riemann sums, we use a left endpoint, right endpoint, or midpoint to set up our rectangles. These rectangles are occasionally equally spaced (Δx=(b−a)/n), but this may not always be the case.
The approximations we found using these rectangles were decent, but why settle for decent?
This leads us to ask the questions:
What ways are we able to improve the area approximation a Riemann sum gives us?
Would shapes other than rectangles prove to be more useful?
The Trapezoidal Rule
With the Trapezoidal Rule, we use trapezoids instead of rectangles to better fit the region. That is, we move from using rectangles to approximate area (which corresponds to using constant functions to fit f(x)) to using trapezoids to approximate area (which corresponds to using linear functions to fit f(x)).
Recall that the area of a trapezoid with heights h1 and h2 and width w is given by:
Therefore, an approximation of the area of the entire region can be found by adding up/accumulating the area of all trapezoids of the form above. That is:
Note the 1-2--2-1 pattern for the Trapezoidal Rule.
Example 1
Use the Trapezoidal Rule with n=4 to estimate ∫12x2dx. Compare the estimate with the exact value.
View Answer
3275≈2.344 (compared to 37≈2.333).
Simpson's Rule
With Simpson's Rule, we use parabolas instead of trapezoids to better fit the region. That is, we move from using trapezoids to approximate area (which corresponds to using linear functions to fit f(x)) to using parabolas to approximate area (which corresponds to using quadratic functions to fit f(x)).
We won't go through the full derivation for this rule. However, the area of the parabolic section given by the points (xk,f(xk)), (xk+1,f(xk+1)), and (xk+1,f(xk+1)) is given by:
Therefore, an approximation of the area of the entire region can be found by adding up/accumulating the area of all parabolic sectors of the form above. That is:
Also note that the number of subintervals, n, must be even to apply Simpson's Rule because each parabolic arc uses two subintervals.
Example 2
Use Simpson's Rule with n=4 to estimate ∫025x4dx. Compare the estimate with the exact value.
View Answer
12385≈32.083 (compared to 32).
Error Bounds
When using approximation methods, it is important to determine how accurate the results are. While we may not know the exact error, we can compute an upper bound for the error.
Error Formulas
Example 3
Find an upper bound for the error in estimating ∫025x4dx using Simpson's Rule with n=4. What value of n should we pick so that the error is within 0.001 of the true value?