Midpoint and Trapezoidal Riemann Sums
We have seen Riemann sums that use the left or right endpoints on the intervals to find the height of the rectangles. On this page we explore two different methods. The midpoint method uses a point in the middle of the interval to find the height of the rectangle. The trapezoid method uses a trapezoid instead of a rectangle to approximate the area of each interval.
Try the following:
- The applet initially shows a line and a Riemann sum using 4 intervals with left endpoints. The height of each rectangle is determined by the value of the function at the left edge of each rectangle. Why is the third rectangle from the left missing? (Hint: what is the value of the function for x = 0?). Use the choice box to select "Right." Now the height of each rectangle is determined by the value of the function at the right edge of each rectangle. Next, select "MidPoint" and notice the heights of the rectangles. Lastly, select "Trapezoid" and notice that the rectangles now have become trapezoids, using both the left and right heights with a slanted top (which lies right along the line in this example). At the top of the graph is shown the area of the Riemann sum and the area under the curve (which may not be exactly 0 due to rounding errors). Which of the four methods is closest to the actual area? Which are over estimates? Underestimates?
- Select the second example from the drop down menu, showing a parabola. Explore the four different types of Riemann sums. On this example, it is easier to see the trapezoids. Which of the four methods is closest to the actual area? Which are over estimates? Underestimates?
- Repeat these explorations for the other examples (a cubic, a cosine, and a sine). You can also enter your own functions, changes a and b, and zoom/pan the graph.
For more information on rights and downloading, refer to http://www.calculusapplets.com/download.html.
© Copyright 2001 David J. Eck
© Copyright 2007 Thomas S. Downey
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
You must cause any files that you modify to carry prominent notices stating that you changed the files and the date of any change, and modified files must be put into a Java package different from edu.hws.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.






















