A.7 Summary: Riemann Sums
On this screen we summarize the work we have done in this Section so far, and then generalize to define the all-important "Riemann Sum."
Throughout this Section we have explored how to handle accumulation when the rate at which the quantity of interest changes varies. The techniques we've used were pioneered by Bernhard Riemann, who was on a quest to devise a rigorous method to recover a function
Let's now look across our previous work to find commonalities, and then we'll generalize the mathematical structure that we see.
Looking Across the Contexts
We have used the same basic 2-step process for each of our accumulation procedures:
1. Approximate the accumulation during each subinterval:
2. Sum accumulations for all of the subintervals.
Notice that we subdivided an overall interval of interest corresponding to the input variable of the function we were given, as illustrated by the following table. (Tapping on the Context name in each row will open that page in a separate browser tab if you'd like to review.)
| Context | Input interval of interest we subdivided | We split the interval up into |
|---|---|---|
| 1. Liquid filling a tank | time t in the flowrate function | 3 subintervals: |
| 2. Force exerted on a water tower | depth d in the pressure function | 5 subintervals: |
| 3. Distance fallen during skydive | time t in the velocity function | 5 subintervals: |
| 4. Upper and lower sums | x in the bell-curve function | 4 subintervals: |
| General | Input x in the function | n subintervals: |
Note that in the last row of the table we are generalizing to any function
Remember the fundamental "this is Calculus!" step we then take: To approximate the accumulation over each subinterval, we assume (pretend) that the rate at which the quantity accumulates is constant over that subinterval. That is, we use a single representative rate for each subinterval, a move which produces some unknown amount of error between our approximate value and the true, actual amount accumulated.
Reflection Question: Constant rate assumption
Why do we start these calculations by assuming that the accumulation rate is constant over each subinterval?
The following table summarizes how we developed our sum for each of the Contexts:
| Context | How we quantified the accumulation over each subinterval | How we quantified the total accumulation: The All-Important Sum(!) |
|---|---|---|
| Liquid filling a tank | Flowrate at a representative moment during the subinterval, multiplied by the subinterval time-duration: | Total accumulated water that flows out: |
| Force exerted on a water tower | Pressure at a representative depth, multiplied by the strip-width over which that pressure acts: | Total force on water tower's walls: |
| Distance fallen during skydive | Velocity at a representative moment during the subinterval, multiplied by the subinterval time-duration: | Total distance Gabriel falls in 10 seconds: |
| Upper and Lower Sums | Maximum value | Total accumulation for bell curve function: |
| General | The function evaluated at some point in the subinterval, multiplied by the subinterval-width: | which we represent in sigma notation as |
The last row again generalizes the ideas to apply to any function
Important Notation: In that final row, the function's input value is written with a superscript "star" or asterisk, like
The generalized sum in the table's final entry is known as the famous Riemann Sum (pronounced "Ree-mahn sum"):
Given a real-valued function
where the interval
and where each subinterval is non-zero such that
That compact definition for S packs a lot of information in it, since it encapsulates the 2-step procedure we've been developing and then using over the previous screens. Please don't lose sight of the meaning just because the definition looks (perhaps) abstract: it is simply a representation of the types of sums you have been creating, using a general process that we hope is starting to feel routine for you.
Left, Right, and Midpoint Sums
Let's summarize our work with Left, Right, and Midpoint Sums. Remember that these sums are convenient for us to use because we can easily define a list ofReview and Generalization of Left, Right and Midpoint Sums
Summarizing the discussion in the preceding animations, as long as we have partitioned the interval
Note that in each sum, the terms still have the form (representative function value) • (subinterval width), which is the important characteristic of the Riemann sum. The only difference is where in the subinterval we evaluate the function: for a left sum we evaluate the function at the beginning of the interval
As part of our summarizing here, the following interactive graph lets you choose which sum to display and calculate, and you can set the number of subintervals n using the slider beneath the graph. Please make sure that the heights of rectangles make sense to you for the different sum types.
Note that we are not showing "error bound" boxes on the graph above because we are not guaranteed that the Left and Right (or Midpoint) Sums give us a valid overestimate or underestimate. For instance, with n = 6 and looking at the Left Sum, you see that while the subintervals i = 1, 2, and 3 are using the function's minimum value on each subinterval, while subintervals 4, 5, and 6 are using the function's maximum value on each subinterval. We thus can't use the resulting sum value to bound anything at all. (Which isn't to say it isn't useful . . . as we'll see in a few screens.) But this limitation brings us to Darboux Sums.
Darboux sums
Because the Left, Right (and Midpoint) Sums fail to give us a guaranteed underestimate or overestimate, in Context 4 introduced a new approach and chose
When
where
The graph below duplicates the one in Context 4 to produce those sums for the value of n subintervals you set, except we've set the interval to
Let's consider a brief Reflection Question now that we're clear on the various choices we currently have for
Reflection Question: Choice of
Does it matter where
Riemann and Darboux Sums
Note that a Riemann Sum can use any value
With this notational distinction in mind, let's think about how the Upper and Lower Sum values compare to the value of any Riemann Sum.
Check Question: Inequality Among Darboux and Riemann Sums
The insight of the preceding Check Question — that any Riemann Sum value will lie between the Upper and Lower Sum values, or be equal to one of them — will be of great importance in a few screens. Please keep it in mind as we proceed.
As a preview of what's to come, which probably won't surprise you: In exploring the calculations above, you may have noticed that as you increased the number of subintervals n (which decreases the subinterval size
Before we take the next natural step with that insight, let's address one last bit regarding these sum computations.
Unequal Subinterval Widths
Reflection Question: Unequal Subinterval Widths
So far we have always subdivided our overall interval
- Could we partition the overall interval into different-sized subintervals
and still compute a meaningful sum?Δ 𝑥 𝑖 - Why is it generally convenient to use a uniform
, the same width for each subinterval?Δ 𝑥 𝑖 = Δ 𝑥
Problems that require you to use subintervals with unequal spacing are common on exams, so we've included several for you to practice with on the next screen.
For now, we've completed our work developing what a Riemann Sum is. At the start of the next Section we'll take the enormous step of turning the Riemann Sum into an integral. Before then, now that you've seen this summary of the work we've done so far to develop Riemann Sums, what thoughts and questions do you have? Please let us know over on the Forum!
The Upshot
- We have now defined the Riemann Sum: Given a real-valued function
on the closed interval𝑓 ( 𝑥 ) we define the Riemann Sum as[ 𝑎 , 𝑏 ] , where the interval𝑆 = 𝑛 ∑ 𝑖 = 1 𝑓 ( 𝑥 ∗ 𝑖 ) ⋅ Δ 𝑥 𝑖 is subdivided (partitioned) into n subintervals[ 𝑎 , 𝑏 ] where each subinterval is non-zero such that[ 𝑥 0 , 𝑥 1 ] , [ 𝑥 1 , 𝑥 2 ] , … , [ 𝑥 𝑛 − 2 , 𝑥 𝑛 − 1 ] , [ 𝑥 𝑛 − 1 , 𝑥 𝑛 ] (Note that the Riemann Sum does not require that the subintervals be of equal width.)𝑎 = 𝑥 0 < 𝑥 1 < 𝑥 2 < ⋯ < 𝑥 𝑛 = 𝑏 . - Over the course of this Section we developed the following types of Riemann Sums:
L e f t S u m : 𝑆 𝐿 = 𝑛 ∑ 𝑖 = 1 𝑓 ( 𝑎 + ( 𝑖 − 1 ) ⋅ Δ 𝑥 ) ⋅ Δ 𝑥 R i g h t S u m : 𝑆 𝑅 = 𝑛 ∑ 𝑖 = 1 𝑓 ( 𝑎 + ( 𝑖 + 0 ) ⋅ Δ 𝑥 ) ⋅ Δ 𝑥 M i d p o i n t S u m : 𝑆 𝑀 = 𝑛 ∑ 𝑖 = 1 𝑓 ( 𝑎 + ( 𝑖 − 1 2 ) ⋅ Δ 𝑥 ) ⋅ Δ 𝑥 U p p e r S u m : 𝑆 u p p e r = 𝑛 ∑ 𝑖 = 1 𝑀 𝑖 ⋅ Δ 𝑥 𝑖 L o w e r S u m : 𝑆 l o w e r = 𝑛 ∑ 𝑖 = 1 𝑚 𝑖 ⋅ Δ 𝑥 𝑖 - We are guaranteed that the actual accumulation value lies between the bounds of the Lower and Upper Sums. Furthermore, because the Upper and Lower Sums get closer and closer to each other the more terms n we use, we can estimate the actual accumulation to whatever accuracy we like by choosing n sufficiently large.
The last point there suggests that we take
How helpful was this page?
Our goal is to provide the best content we can, for free to any student looking to learn well, and your feedback helps us improve.
There's nothing to stop us from dividing up the interval in whatever way we need to. In fact, giving ourselves that freedom gives us more flexibility in the functions that we can examine. Consider the function shown, which has four discontinuities which aren't evenly spaced apart. Since the function doesn't have values at the points of discontinuity, we would need to avoid them when computing our sums. To do so, we could subdivide the overall interval such that the points