What Are Riemann Sums?

Illustrated · 2 min

Riemann Sums are very similar to Darboux Sums, but defined slightly differently.

The basic idea for Riemann Sums is the same as that for Darboux sums: fitting rectangles under or over a curve.

However, the definition uses not the maximum or minimum value within each interval, but any arbitrary constant rule.

Formally, when we partition the interval [a,b][a,b] (just like we did last time) into {x0,x1,…xn}\{x_0,x_1,\ldots x_n\}, the Riemann sum is defined as

∑i=1nf(ci)(xi−xi−1)\sum_{i=1}^{n}f(c_i)(x_i-x_{i-1})where cic_i is an arbitrary constant that satisfies xi−1≤ci≤xix_{i-1}\le c_i\le x_i.

For example, when ci=xi−1c_i=x_{i-1}, we obtain the Left Riemann Sum. The above diagram is an example of this type of sum. When ci=xic_i=x_i, we obtain the Right Riemann Sum. This sum, when used on the same curve as in our previous example, looks like this:

Do you see why these are called the Left Riemann Sum and Right Riemann Sum, respectively?

Usually, we partition the interval [a,b][a,b] into equal parts. That is, xi−xi−1=xj−xj−1x_i-x_{i-1}=x_j-x_{j-1} for all possible integers i,ji,j. However, this is not necessary.

See if you can figure out how cic_i is defined for these two Riemann sums:

Middle Riemann Sum

cici is defined as ci=xi+xi−12ci=\dfrac{xi+x{i-1}}{2}. Note that this is because cic_i is taken to be the middle of each interval.

Trapezoidal Sum

This one is defined as ci=f(xi)+f(xi−1)2ci=\dfrac{f(xi)+f(x{i-1})}{2}. This can be figured out by recalling the formula for the area of a trapezoid: average of the bases times the height. We already have the height as (xi−xi−1)(xi-x{i-1}), so we need cici to be the average of the bases. This is clearly the expression above.

To illustrate the subtle difference between the Riemann sum and the Darboux sum, observe the diagram below, comparing the upper Darboux sum and the Left Riemann sum:

Note that the upper Darboux sum is guaranteed to be greater than the actual integral and the lower Darboux sum is guaranteed to be less, while the types of Riemann sums depend on the shape of the curve.

In the next topic you will learn more about the Left, Right, and Middle Riemann Sums

Interactive · 4 questions

Here's an exercise about finding Riemann sums. We're going to do Riemann sums on the function f(x)=xf(x) = x for 0≤x≤10 \le x \le 1.

The triangle is the area that we want to approximate. What is the actual area here?

What is the area of the triangle in the diagram?

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems