Calculus · Grade 12 and undergraduate

Riemann Sums and the Accumulation of Change

Quick answer

When a rate is constant, amount equals rate times time. When it varies, split the time into short pieces, treat the rate as constant on each, and add the products: that is a Riemann sum, and it approximates the area under the rate's graph. Heights can come from the left ends, right ends or midpoints of the pieces, and averaging left and right gives the trapezoidal sum. For an increasing function the left sum underestimates and the right sum overestimates, so the true value lies between them.

What you'll learn

  • Interpret the area under a rate graph as accumulated change
  • Compute left, right, midpoint and trapezoidal sums, including from tables
  • Write a Riemann sum in sigma notation
  • Decide whether a sum overestimates or underestimates

Adding up a changing rate

Water flows into a tank at r(t)r(t) liters per minute. If the rate were a steady 55 liters per minute for 44 minutes, the tank would gain 5×4=205 \times 4 = 20 liters — the area of a rectangle 44 wide and 55 tall under the rate’s graph.

When the rate changes, cut the time into short pieces. On each piece the rate is nearly constant, so the water gained is about rate × time. Add up the pieces. The accumulated change is the area under the rate graph, and the sum of thin rectangles approximates it.

Riemann sums

Divide [a,b][a, b] into nn subintervals of width Δx=b−an\Delta x = \tfrac{b - a}{n} with endpoints x0=a,x1,…,xn=bx_0 = a, x_1, \dots, x_n = b. A Riemann sum is

∑i=1nf(xi∗) Δx\sum_{i=1}^{n} f(x_i^*)\,\Delta x

where each xi∗x_i^* is a point of the ii-th subinterval. The common choices name the sum:

SumHeight of the ii-th rectangle
leftf(xi−1)f(x_{i-1}), the left end
rightf(xi)f(x_i), the right end
midpointf ⁣(xi−1+xi2)f\!\left(\tfrac{x_{i-1} + x_i}{2}\right), the middle

The trapezoidal sum replaces each rectangle by a trapezoid; it equals the average of the left and right sums.

A right Riemann sum under y = x² The curve y = x squared from 0 to 4 with four rectangles of width 1 whose heights are the values at their right ends: 1, 4, 9 and 16. Every rectangle rises above the curve. 123451015xy
  • y = x²
A right Riemann sum under y = x²

Why left and right sums trap the area

Take an increasing function. On each subinterval its smallest value is at the left end and its largest at the right end. So every left rectangle fits under the curve, and every right rectangle reaches above it.

Add them up: the left sum is too small and the right sum is too large. For an increasing function, left sum ≤ area ≤ right sum; for a decreasing function, the order flips. As the pieces get thinner, both sums close in on the area from opposite sides — which is how the exact area is defined in the next lesson.

Sigma notation

∑\sum means “add up”. The right sum above is

∑i=14f(xi) Δx=∑i=14i2⋅1=1+4+9+16=30\sum_{i=1}^{4} f(x_i)\,\Delta x = \sum_{i=1}^{4} i^2 \cdot 1 = 1 + 4 + 9 + 16 = 30

In general, with xi=a+i Δxx_i = a + i\,\Delta x, the right sum is ∑i=1nf(a+i Δx) Δx\sum_{i=1}^{n} f(a + i\,\Delta x)\,\Delta x.

Worked examples

Common mistakes

Practice problems

  1. Find the left sum for f(x)=2x+1f(x) = 2x + 1 on [0,3][0, 3] with n=3n = 3.

    Answer

    99

    Full solution

    Δx=1\Delta x = 1. Left ends 0,1,20, 1, 2: f=1,3,5f = 1, 3, 5. Sum: 1+3+5=91 + 3 + 5 = 9.

  2. Find the right sum for the same function and interval.

    Answer

    1515

    Full solution

    Right ends 1,2,31, 2, 3: f=3,5,7f = 3, 5, 7. Sum: 1515.

  3. For the function in problem 1, find the trapezoidal sum. Why is it exact here?

    Answer

    1212; the graph is a straight line, so each trapezoid matches the area exactly.

    Full solution

    9+152=12\tfrac{9 + 15}{2} = 12. The region is a trapezoid itself: 1+72⋅3=12\tfrac{1 + 7}{2} \cdot 3 = 12.

  4. Find the midpoint sum for f(x)=x3f(x) = x^3 on [0,2][0, 2] with n=2n = 2.

    Answer

    3.53.5

    Full solution

    Δx=1\Delta x = 1, midpoints 0.50.5 and 1.51.5: 0.125+3.375=3.50.125 + 3.375 = 3.5. (The exact area is 44.)

  5. Water flows into a tank at the rates in the table. Estimate the water added from t=0t = 0 to t=6t = 6 minutes with a right sum.

    tt (min)00224466
    r(t)r(t) (L/min)33556688
    Answer

    3838 liters

    Full solution

    Each width is 22: 5(2)+6(2)+8(2)=385(2) + 6(2) + 8(2) = 38.

  6. For the table in problem 5, is the right sum an overestimate or underestimate, if rr is increasing?

    Answer

    An overestimate

    Full solution

    For an increasing rate, the right end of each piece has the largest value, so each rectangle is too tall.

  7. Write the right sum for f(x)=x2f(x) = x^2 on [0,2][0, 2] with nn pieces in sigma notation.

    Answer

    ∑i=1n(2in)22n\sum_{i=1}^{n} \left(\tfrac{2i}{n}\right)^2 \tfrac{2}{n}

    Full solution

    Δx=2n\Delta x = \tfrac{2}{n} and xi=2inx_i = \tfrac{2i}{n}, so the sum is ∑f(xi) Δx\sum f(x_i)\,\Delta x with those values.

  8. Evaluate ∑i=15(2i−1)\sum_{i=1}^{5} (2i - 1).

    Answer

    2525

    Full solution

    1+3+5+7+9=251 + 3 + 5 + 7 + 9 = 25.

  9. A table gives v(0)=4v(0) = 4, v(1)=7v(1) = 7, v(3)=9v(3) = 9 and v(7)=5v(7) = 5. Estimate the distance traveled from t=0t = 0 to t=7t = 7 with a trapezoidal sum.

    Answer

    49.549.5

    Full solution

    Widths 11, 22, 44: 4+72(1)+7+92(2)+9+52(4)=5.5+16+28=49.5\tfrac{4 + 7}{2}(1) + \tfrac{7 + 9}{2}(2) + \tfrac{9 + 5}{2}(4) = 5.5 + 16 + 28 = 49.5.

  10. A student computes the left sum for x2x^2 on [0,4][0, 4] with n=4n = 4 as 1+4+9+16=301 + 4 + 9 + 16 = 30. What went wrong?

    Hint

    Which endpoints does a left sum use?

    Answer

    That is the right sum. The left sum uses 0,1,2,30, 1, 2, 3 and equals 1414.

    Full solution

    The left ends of [0,1],[1,2],[2,3],[3,4][0,1], [1,2], [2,3], [3,4] are 0,1,2,30, 1, 2, 3.

    f(0)+f(1)+f(2)+f(3)=0+1+4+9=14f(0) + f(1) + f(2) + f(3) = 0 + 1 + 4 + 9 = 14.

Frequently asked questions

What is a Riemann sum?

A sum of products f(xᵢ*) · Δx over small subintervals of [a, b]. Each product is the area of a thin rectangle, and the sum approximates the area under the curve.

What is the difference between left, right and midpoint sums?

They take each rectangle's height from a different point of its subinterval: the left end, the right end or the middle.

What is the trapezoidal sum?

It uses trapezoids instead of rectangles, and it equals the average of the left and right sums.

When does a left sum underestimate?

When the function is increasing: each rectangle's height is the smallest value on its piece, so it sits under the curve.

How do I compute a Riemann sum from a table with uneven spacing?

Multiply each height by the width of its own subinterval; the widths are not all the same.

What to learn next