A.6 Upper & Lower (Darboux) Sums
On this screen we'll explore Upper and Lower Sums, also known as Darboux Sums. These are fundamentally important since they give us a new way to bound the true value within these two sum values we can calculate.
You might have noticed that each of the Contexts we've used in this section has been either strictly decreasing or strictly increasing:
- In Context 1, the water drains out of the container at a rate that decreases linearly with time.
- In Context 2, the pressure inside the water tower increases linearly with depth.
- In Context 3, as Gabriel falls his velocity only increases during the 10 seconds of interest.
On this screen we're going to see how to handle situations in which the max or min does not necessary occur at either endpoint of every subinterval. To do so we're going to use as our example the perhaps-familiar bell curve function
Quick note on abstraction
In each of our previous three Contexts, we presented a physical scenario with real, tangible quantities, to make it easy (we hope) to envsision how much water, or force, or distance we "accumulated" as we summed over our subintervals. By contrast, the bell-curve function we're using on this screen has no such associated physical scenario. We're thus now taking another abstracting-step toward more general use of our new tools.
That is, we're generalizing. Imagine that the quantity y tells you how much the output-variable "something" changes based on a change in input-variable x. Our goal remains to estimate how much of that "something" accumulates over each subinterval interval change
If this shift toward abstraction is uncomfortable for you, that's ok. Embrace the challenge! Delving further into layers of abstraction is often very difficult, and yet crucial work to develop deeper understanding.
We are going to to approximate the total accumulation for our bell-curve function over the interval
1. Approximate the accumulation during each subinterval:
2. Sum accumulations for all of the subintervals.
Since ![Same graph, now with dashed lines showing the subintervals [-2, -0.5], [-0.5, 1], [1, 2.5], [2.5, 4]](https://res.cloudinary.com/dmutw7qs5/image/upload/b_white/c_limit,w_703/f_auto/q_auto/v1/remote_images/int-Darboux-normalDistWithN4.png?_a=BBGAGRGX0)
Developing an overestimate
Let's first develop the overestimate for the total accumulated amount.
Choosing an approach
As Question 1 illustrates, we need to develop a new way to choose
The key realization here is that, to develop our guaranteed overestimate, we need to find a way to determine the function's maximum value on each subinterval. Let's introduce a bit of new notation to capture this idea:
We need to choose
where
For instance, looking at the graph above you can see that for subinterval
The Upper Sum,
With this choice, we are guaranteed an overestimate, because by definition
Let's again emphasize that in our earlier Contexts 1-3, either the Left Sum or Right Sum was automatically the Upper Sum because the maximum occurs at either the leftmost or rightmost on each subinterval since those were all strictly increasing or strictly decreasing functions. It's only as we broaden to be able to work with other functions, including our bell curve here, that we need to extend how we craft the Upper Sum more generally.
With that said, what comes to mind for you as an approach or approaches for how to determine the maximum output value on each and every subinterval, no matter how many of those there are? (Again, please take a moment....)
We'll look at two possibilities; there are certainly others, which you can explore in depth (among other topics!) in a "Numerical Methods" math course if you'd like. Since this is not a numerical methods course, we're not going to dive into any of these in-depth; instead, we want to make sure you understand the basic ideas behind the approach to finding an Upper Sum more than actually learning how to implement them. With that said, we could:
- Use our Calculus tools to find the global max (and min) on each subinterval. For our given function
we can certainly take our usual approach and find its derivative𝑦 ( 𝑥 ) , find the local max (or min), and then determine where each subinterval's max (or min) is. We're actually only using the bell curve function to illustrate some key points here and don't care enough about it to proceed with this approach, but know you can imagine how you would proceed . . . although you may be daunted by the idea of having to find the global max (or min) for hundreds or thousands (or even more) subintervals. And if you aren't daunted by the idea for this particular function (since it actually only has one local max at𝑦 ′ ( 𝑥 ) , as you can verify) you can imagine more complicated functions where this idea quickly becomes unfeasible.𝑥 = 0 , - Determine "by hand" the location of the subinterval's max (or min). You could, for instance, use the interactive calculator below to simply read off the function's maximum value for each subinterval and use that. This is a perfectly reasonable method to use with a small number of subintervals (like
), but again becomes unfeasible for large n.𝑛 = 4
We'll introduce another method to find the function's maximum value on each subinterval below. But for now, let's use the approach we just discussed because, well really because it's so easy we'd might as well.
Build Upper Sum
You can drag the red dot that's on the x-axis to determine the function's value
Then drag the appropriate pieces to their correct locations in the sum-builder below.
Now that we've built the sum using the function's maximum value, let's complete the calculation:
Note that little has changed from our calculations in the preceding Contexts: the only new bit is that our representative value for each subinterval is the function's maximum value on that subinterval. This means that, as before, we can visually represent each term of the sum on a graph of y versus x as a rectangle of height

We'll look at another way to find all of the
Developing an underestimate
The Lower Sum,
To calculate the guaranteed underestimate, we can similarly choose
Build Lower Sum
![Figure repeated from above showing the subintervals [-2, -0.5], [-0.5, 1], [1, 2.5], [2.5, 4]](https://res.cloudinary.com/dmutw7qs5/image/upload/b_white/c_limit,w_703/f_auto/q_auto/v1/remote_images/int-Darboux-normalDistWithN4.png?_a=BBGAGRGX0)
You can use the figure below to determine visually where the minimum occurs on each subinterval. Or, if you'd rather, you can use the interactive calculator in the 'Build Upper Sum' activity above.
Either way, as before drag the appropriate pieces below to build the correct Lower Sum for n = 4.
We'll use the sum you just built to find the Lower Sum's value for
Having found the Lower Sum value, we have now bounded the true value such that
Focus on Error Bound
As usual, let's now consider the error bound and see how we can improve it.
Error bound value
The way in which we calculate the error bound hasn't changed at all from previous screens.
As we've done in each of our Contexts, now that we have our initial calculations in place we can work to reduce the error bound and squeeze in on the actual accumulation that occurs over
In our earlier Contexts, since we were using Left and Right Sums we could develop nice formulas to specify
Now, however, the maximum
What other option(s) come to mind for how to proceed for any function you are given, especially with the computing power that lies in your browser? (If you code, how might you find the function's maximum and minimum values on every subinterval?) Again take a moment to think this through for yourself . . .
Once again, if you are interested in how to proceed in clever ways that maximize computing resources and minimize computation time, consider taking a numerical methods course. There you will learn various effective and clever ways to deal with questions such as this.
For our purposes, behind-the-scenes we are going to take a "brute force" approach, and in Step 1 of our approximation method we use your browser (with JavaScript as the coding language) to simply compute the function's values at a large sampling of points over each subinterval, and thereby determine the maximum and minimum values for that subinterval. We then take those values and use them when we build our sum in Step 2.
This will all be invisible to you when you use the interactive calculator below: Use the sliders to set the values of the interval's start-pointa and end-point b, and the number of subintervals n. Then hit the "Calculate Upper & Lower Sums" button, and your browser will start computing.
Warning: Depending on your device, these calculations may take several seconds or more. Please be patient.
You might start with n = 4 to recreate the sum values we found above. Note that you must set the values for a and b to match our interval of
Necessary number of subintervals and corresponding subinterval width
We could of course choose a smaller tolerance level and have you find the new number of required subintervals, but you get the idea.
Stepping Back: The Big Picture
What we've done here may all seem rather routine to you by now, so let's stop and acknowledge an enormous accomplishment, one that actually marks a major milestone in the development of Calculus: starting with (almost) any rate-function, we can compute the resulting "accumulation" that happens over a given interval to within whatever tolerance we desire. We do this by squeezing in on the true value by the Lower and Upper Sums, and choosing an appropriate number n of subintervals, as we have just done.
This clever formulation of approximation sums is attributed to Jean Gaston Darboux (pronounced "Dar-boo"), and so these kinds of sums are aptly named Darboux Sums:
Darboux Sums, or Upper and Lower Sums
where
In an unusual move, we're not going to provide any further Practice Problems for you to develop your skills at computing Darboux Sums. (The reality: since this isn't a coding class, what could we do other than provide you with more calculators and sliders to implement code we've written? There's just not a lot to practice here.) That said, the understanding of Darboux sums you've developed will be foundational as we transition to integrals — and if you continue to more advanced mathematics, you will learn more about the important role that Darboux sums have.
The Upshot
- We are still following the same basic approach we have been throughout this Section. That is, to approximate the accumulation of something that varies over the interval of interest, we divide the interval into n subintervals, and then first (1) approximate the accumulation during each subinterval:
Having done that, we (2) sum the accumulations of all of the subintervals.A p p r o x i m a t e a c c u m u l a t i o n d u r i n g s u b i n t e r v a l 𝑖 : ( r e p r e s e n t a t i v e f u n c t i o n v a l u e s u b i n t e r v a l ) ⋅ ( s u b i n t e r v a l d u r a t i o n )
The only new — but crucial! — ideas on this screen are: - For the "representative function value for the subinterval," we can choose the Maximum value
in which case we develop the Upper Sum,𝑀 𝑖 , or we can choose the minimum value𝑆 u p p e r , in which case we develop the Lower Sum,𝑚 𝑖 , 𝑆 l o w e r . - The exact accumulated value is guaranteed to lie between the Lower and Upper Sum values. Furthermore, we can determine our approximation to the true value to within whatever tolerance we choose by making the number of subintervals, n, sufficiently large.
On the next screen we will summarize our work in this Section, at which point we'll be ready, finally, to take the big step of defining the Definite Integral.
For now, what thoughts or questions do you have about Upper and Lower (Darboux) Sums? Or about any other Calculus-related items? Please head on over to the Forum and share with the rest of our learning community!
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.