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 [latex][x_{i-1},x_i][/latex].
However, we do not have to restrict the evaluation to just these points. We can evaluate the function at any point [latex]x_i^*[/latex] within the subinterval [latex][x_{i-1},x_i][/latex], and use [latex]f(x_i^*)[/latex] as the height of our rectangle. This gives us an estimate for the area of the form:
A sum of this form is called a Riemann sum, named after the 19th-century mathematician Bernhard Riemann.
Riemann sum
Let [latex]f(x)[/latex] be defined on a closed interval [latex][a,b][/latex] and let [latex]P[/latex] be a regular partition of [latex][a,b][/latex]. Let [latex]\Delta x[/latex] be the width of each subinterval [latex][x_{i-1},x_i][/latex] and for each [latex]i[/latex], let [latex]x_i^*[/latex] be any point in [latex][x_{i-1},x_i][/latex].
When using left- and right-endpoint approximations, our estimates improve as we increase the number of subintervals [latex]n[/latex]. 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 [latex]f(x)[/latex] be a continuous, nonnegative function on an interval [latex][a,b][/latex], and let [latex]\displaystyle\sum_{i=1}^{n} f(x_i^*)\Delta x[/latex] be a Riemann sum for [latex]f(x)[/latex].
Taking the limit of a sum is a bit different from taking the limit of a function [latex]f(x)[/latex] as [latex]x[/latex] 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 [latex]x_i^*[/latex]. If [latex]f(x)[/latex] is continuous on [latex][a,b][/latex], the limit:
[latex]\underset{n\to \infty }{\lim}\displaystyle\sum_{i=1}^{n} f(x_i^*)\Delta x[/latex]
is unique and does not depend on the choice of [latex]x_i^*[/latex].
Before we dive into examples, let’s discuss some specific choices for [latex]x_i^*[/latex]. Any choice for [latex]x_i^*[/latex] 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 [latex]x_i^*[/latex] to guarantee one result or the other.
- Overestimate: Choose [latex]x_i^*[/latex] so that [latex]f(x_i^*)[/latex] is the maximum value on [latex][x_{i-1},x_i][/latex]. This makes our Riemann sum an upper sum.
- Underestimate: Choose [latex]x_i^*[/latex] so that [latex]f(x_i^*)[/latex] is the minimum value on [latex][x_{i-1},x_i][/latex]. 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 [latex]f(x)=10-x^2[/latex] on [latex][1,2][/latex]; use [latex]n=4[/latex] subintervals.
- Find an upper sum for [latex]f(x)=10-x^2[/latex] on [latex][1,2][/latex]; let [latex]n=4[/latex].
- Sketch the approximation.