Approximating Areas: Learn It 3

Riemann Sums

So far we have been using rectangles to approximate the area under a curve. We’ve determined the heights of these rectangles by evaluating the function at either the right or left endpoints of each subinterval [xi1,xi].

However, we do not have to restrict the evaluation to just these points. We can evaluate the function at any point xi within the subinterval [xi1,xi], and use f(xi) as the height of our rectangle. This gives us an estimate for the area of the form:

Ai=1nf(xi)Δx.

A sum of this form is called a Riemann sum, named after the 19th-century mathematician Bernhard Riemann.

Riemann sum

Let f(x) be defined on a closed interval [a,b] and let P be a regular partition of [a,b]. Let Δx be the width of each subinterval [xi1,xi] and for each i, let xi be any point in [xi1,xi].

 
A Riemann sum is defined for f(x) as
i=1nf(xi)Δx.

When using left- and right-endpoint approximations, our estimates improve as we increase the number of subintervals n. The same idea applies to Riemann sums: the more subintervals we use, the better our approximation. Now, let’s define the area under a curve using Riemann sums.

area under a curve using Riemann sums

Let f(x) be a continuous, nonnegative function on an interval [a,b], and let i=1nf(xi)Δx be a Riemann sum for f(x).

 
Then, the area under the curve y=f(x) on [a,b] is given by
A=limni=1nf(xi)Δx.

Taking the limit of a sum is a bit different from taking the limit of a function f(x) as x goes to infinity. We discuss limits of sums in more detail in the chapter on Sequences and Series in Calculus 2. For now, assume that the techniques we use to compute limits of functions also apply to sums.

We must also consider what happens if our sum converges to different limits for different choices of xi. If f(x) is continuous on [a,b], the limit:

limni=1nf(xi)Δx

is unique and does not depend on the choice of xi.

Before we dive into examples, let’s discuss some specific choices for xi. Any choice for xi gives us an estimate of the area under the curve, but we might want to know if our estimate is too high or too low. We can choose xi to guarantee one result or the other.

  • Overestimate: Choose xi so that f(xi) is the maximum value on [xi1,xi]. This makes our Riemann sum an upper sum.
  • Underestimate: Choose xi so that f(xi) is the minimum value on [xi1,xi]. This makes our Riemann sum a lower sum.
  • If a function is increasing over an interval, using the right endpoints for the upper sum and the left endpoints for the lower sum gives us a good estimate.
  • If a function is decreasing, using the left endpoints for the upper sum and the right endpoints for the lower sum is effective.

Find a lower sum for f(x)=10x2 on [1,2]; use n=4 subintervals.

  1. Find an upper sum for f(x)=10x2 on [1,2]; let n=4.
  2. Sketch the approximation.