Riemann Sums

Page
Riemann Sums – HMC Calculus Tutorial

Suppose that a function f is continuous and non-negative on an interval [a,b].

Let’s compute the area of the region R bounded above by the curve y=f(x), below by the x-axis, and on the sides by the lines x=a and x=b.

Follow the image link for a complete description of the image

We will obtain this area as the limit of a sum of areas of rectangles as follows:

First, we will divide the interval [a,b] into n subintervals [x0,x1],[x1,x2],,[xn1,xn] where a=x0<x1<<xn=b. (This is called a partition of the interval.) The intervals need not all be the same length, so call the lengths of the intervals Δx1, Δx2, \ldots, Δxn, respectively. This partition divides the region R into n strips.

Follow the image link for a complete description of the image

Next, let’s approximate each strip by a rectangle with height equal to the height of the curve y=f(x) at some arbitrary point in the subinterval. That is, for the first subinterval [x0,x1], select some x1 contained in that subinterval and use f(x1) as the height of the first rectangle. The area of that rectangle is then f(x1)Δx1.

Follow the image link for a complete description of the image

Similarly, for each subinterval [xi1,xi], we will choose some xi and calculate the area of the corresponding rectangle to be f(xi)Δxi. The approximate area of the region R is then the sum ni=1f(xi)Δxi of these rectangles.

Follow the image link for a complete description of the image

Depending on what points we select for the xi, our estimate may be too large or too small. For example, if we choose each xi to be the point in its subinterval giving the maximum height, we will overestimate the area of R. (This is called a upper sum.)

Follow the image link for a complete description of the image

If, on the other hand, we choose each xi to be the point in its subinterval giving the mimimum height, we will underestimate the area of R. (This is called a lower sum.)

Follow the image link for a complete description of the image

When the points xi are chosen randomly, the sum ni=1f(xi)Δxi is called a Riemann Sum

Follow the image link for a complete description of the image

and will give an approximation for the area of R that is in between the lower and upper sums. The upper and lower sums may be considered specific Riemann sums.

As we decrease the widths of the rectangles, we expect to be able to approximate the area of R better. In fact, as max Δxi0, we get the exact area of R, which we denote by the definite integral baf(x)dx. That is, baf(x)dx=limmaxΔxi0(ni=1f(xi)Δxi).

Notes

  • This definition of the definite integral still holds if f(x) assumes both positive and negative values on [a,b]. It even holds if f(x) has finitely many discontinuities but is bounded.

  • For a more rigorous treatment of Riemann sums, consult your calculus text.

The following Exploration allows you to approximate the area under various curves under the interval [0,5]. You can create a partition of the interval and view an upper sum, a lower sum, or another Riemann sum using that partition. The Exploration will give you the exact area and calculate the area of your approximation. To create a partition, choose which type of sum you would like to see and click the mouse between the partition labels x0 and x1.

Let f be defined on [a,b] and let x0,x1,,xn be a partition of [a,b].

For each [xi1,xi], let xi[xi1,xi].

Then the definite integral of f over [a,b] as defined as baf(x)dx=limmaxΔxi0(ni=1f(xi)Δxi).


[I’m ready to take the quiz.] [I need to review more.]