Riemann Sums and Accumulation

Construct weighted sums from a partition and distinguish their finite approximation from an integral.

Builds on Antiderivatives and Initial Values

The bigger question: How do tiny changes add up to a total?

On this page

Add many small contributions

Suppose a rate is measured in liters per minute. Over a short interval of width Δt\Delta t, the contribution is approximately rate times duration. Adding these contributions suggests a sum. For a function on [a,b][a,b], a tagged partition gives

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

Each sample xi∗x_i^* lies in its subinterval. If these sums approach one value as the largest subinterval width tends to zero, independent of the samples, that value is the Riemann integral. Continuous functions on closed bounded intervals satisfy this condition.

Equal-width recipes

With nn equal intervals, Δx=(b−a)/n\Delta x=(b-a)/n and xi=a+iΔxx_i=a+i\Delta x. Left sums use xi−1x_{i-1}, right sums use xix_i, and midpoint sums use (xi−1+xi)/2(x_{i-1}+x_i)/2. The sample choice changes a finite approximation, even though all three converge for a continuous function.

For an increasing function, left sums underestimate and right sums overestimate the signed integral. This conclusion comes from interval-wise inequalities, not merely from a picture. Without monotonicity, the same bracketing claim need not hold.

Worked example: four pieces

Approximate ∫01x2 dx\int_0^1x^2\,dx with four intervals. The width is 1/41/4. The right sum is

R4=14[(14)2+(12)2+(34)2+1]=1532.R_4=\frac14\left[\left(\frac14\right)^2+\left(\frac12\right)^2+\left(\frac34\right)^2+1\right]=\frac{15}{32}.

The left sum is 7/327/32. They bracket the exact value 1/31/3. The midpoint sum is 21/6421/64, closer in this example but still not exact.

The sum must include the width. Adding heights alone has the wrong units and grows with the number of samples instead of approaching the accumulated quantity.

Worked example: pass to a limit

For the right sum with nn pieces,

Rn=1n3∑i=1ni2=(n+1)(2n+1)6n2.R_n=\frac1{n^3}\sum_{i=1}^n i^2=\frac{(n+1)(2n+1)}{6n^2}.

Dividing by n2n^2 and taking the limit gives 1/31/3. The finite error is 1/(2n)+1/(6n2)1/(2n)+1/(6n^2), which is positive and approaches zero. This calculation explicitly connects the rectangles to the integral rather than using an antiderivative in advance.

Signed contributions

Rectangles below the horizontal axis contribute negative values. The integral is net accumulation; total geometric area uses ∣f∣|f|. If a velocity changes sign, its integral gives displacement, while integrating speed gives distance traveled.

Practice

  1. Find the left sum for f(x)=xf(x)=x on [0,2][0,2] with two pieces.
  2. Find the corresponding midpoint sum.
  3. Why must the largest width approach zero for a general partition?
Show worked solutions
  1. Width 11, left samples 0,10,1: the sum is 11.
  2. Samples 1/2,3/21/2,3/2 give 22, the exact integral of this linear function.
  3. Otherwise a large interval can keep a fixed sampling error even while many tiny intervals are added elsewhere.

Explore

Rectangles and exact area

Try this. Increase the rectangle count and compare left, midpoint and right samples. On this increasing curve, left sums underestimate and right sums overestimate.

Rectangles and exact area0123400.511.52xy
∫₀² x² dx = 8/3 ≈ 2.667. 4 left rectangles: 1.75. Signed error: -0.917. Width Δx = 0.5.

This explorer uses f(x)=x2f(x)=x^2 on [0,2][0,2], whose exact integral is 8/38/3. Compare its interval and value with the [0,1][0,1] worked example above.

PAUSE & THINKA quick check, not a grade

Try it yourself.

Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.

A Riemann sum uses three intervals of width 2 and sampled heights 1, 4 and 2. What is the sum?

Hint 1 · Find a starting point

Each sample is weighted by its interval width.

Hint 2 · Take the next step

Compute 2×1+2×4+2×2.

Show the reasoning

Answer: 14

The accumulated approximation is 2(1+4+2)=14, not just the sum of heights.

Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.

MAKE IT YOURS

Pause before the next idea.

Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.

Optional marks, not a grade. Saved in this browser only. Open notebook →