AP® Calculus AB trainer

Riemann sums

Fill the area with rectangles and trapezoids.

About this tool

A Riemann sum estimates the area under a curve with strips: each strip is a width times a height. Pick the kind of sum, change the number of strips, and watch how close the sum gets to the exact area, and from which side.

How the sums are built and checked

Every strip on the picture is the exact shape the sum adds up: a rectangle of width Δx\Delta x and height ff at the left end, the right end or the middle, or a trapezoid whose top joins the two end heights. Strips below the axis are drawn in the second tone and count as negative. The exact value is computed to many decimal places by adaptive Simpson's rule, so the error you see is the sum's own.

  • Over or under. Left and right sums are decided by whether ff increases or decreases; midpoint and trapezoidal sums by concavity. When neither holds on the whole interval, the tool says so.
  • Tables. A table fixes the subintervals, and on the exam their widths are often unequal: each term uses its own width. A midpoint sum from a table needs the subintervals in pairs, with the middle value given.
  • Units. Width times rate is an amount: minutes times liters per minute is liters.

Test yourself makes new problems from a seed (the problem code), checks every step against a key the validator recomputes independently, and names the usual slip when an answer misses.

Notes for this topic: Estimating Area with Riemann Sums