STEM-TutorLearn • Practice • ExcelBook Free DemoFree demo

Riemann sums, explained with examples

A Riemann sum estimates the area under a curve by adding up the areas of rectangles. It is how the definite integral is defined, and AP Calculus asks about Riemann sums every year, often using a table of data.

On this page
  1. The idea
  2. The four sums you need
  3. Worked example with a formula
  4. Overestimate or underestimate?
  5. Riemann sums from a table
  6. Explaining what the sum means
  7. Sigma notation and the definite integral
  8. Common mistakes
  9. Practice questions
  10. Frequently asked questions
  11. Key takeaways
  12. Related guides

The idea

Finding the exact area under a curve is hard, but finding the area of a rectangle is easy. So split the interval [a, b] into pieces, build a rectangle on each piece, and add up their areas. The height of each rectangle comes from the function at some point in its piece. Different choices of that point give different Riemann sums. As the pieces get thinner, every type of sum gets closer to the exact area, which is the definite integral.

The four sums you need

xy0–11–22–33–4y = ½x² + 1
A left Riemann sum with four rectangles. Each height is the function value at the left end of its interval. The curve is increasing, so the rectangles sit under it and the sum underestimates the area.

Worked example with a formula

Use f(x) = ½x² + 1 on [0, 4] with four subintervals of width 1, as in the diagram.

Left sum

Find the left Riemann sum.

Right sum

Find the right Riemann sum.

Midpoint sum

Find the midpoint Riemann sum.

Trapezoidal sum

Find the trapezoidal sum.

Overestimate or underestimate?

AP questions often ask whether an approximation is too big or too small, and you must justify it.

In the example, f is increasing and concave up on [0, 4], which matches the results: L = 11 and M = 14.5 are below 14.67, while R = 19 and T = 15 are above it.

Riemann sums from a table

Free-response questions usually give a table of values rather than a formula, often with unequal intervals. Then you cannot factor out a common width; multiply each height by its own width.

Example: a table with unequal widths

Water flows into a tank at rate r(t) litres per minute. r(0) = 10, r(2) = 14, r(5) = 20, r(9) = 18. Use a right Riemann sum to estimate the total water that flows in from t = 0 to t = 9.

Example: trapezoidal sum from the same table

Use a trapezoidal sum with the same intervals.

Explaining what the sum means

AP questions often follow a calculation with “explain the meaning of your answer in the context of the problem”. A full answer names the quantity, the time interval and the units: “Approximately 160 litres of water flowed into the tank from t = 0 to t = 9 minutes.” Saying only “the area under the curve” does not earn the point.

Sigma notation and the definite integral

A right Riemann sum with n equal subintervals on [a, b] can be written as Σk=1n f(a + kΔx)Δx, where Δx = (b − a)/n. The definite integral is the limit of these sums as n → ∞. AP questions sometimes give a limit of a sum and ask you to write it as an integral. For example, limn→∞ Σk=1n (1 + 2k/n)² · (2/n) is ∫13 x² dx: the width 2/n tells you the interval has length 2, and 1 + 2k/n starts just above 1.

Common mistakes

Practice questions

Try each one before opening the answer.

Q1. Find the left sum for f(x) = x² on [0, 3] with three equal subintervals.

Show answer
0 + 1 + 4 = 5.

Q2. Find the right sum for the same function and intervals.

Show answer
1 + 4 + 9 = 14.

Q3. f is decreasing on [a, b]. Does a left Riemann sum overestimate or underestimate the integral?

Show answer
Overestimate, because each left height is the largest value on its interval.

Q4. f is concave down. Is the trapezoidal sum an overestimate or underestimate?

Show answer
Underestimate: the trapezoids lie below the curve.

Frequently asked questions

Are Riemann sums on AP Calculus AB?

Yes. They are in Unit 6 of both AB and BC, and a table-based Riemann sum question appears on the free-response section most years.

Do I need to know the trapezium rule for A level Maths?

Yes. A level Maths calls it the trapezium rule and uses it to estimate integrals, including whether the estimate is too high or too low based on concavity.

Key takeaways