A.1 Context 1: Liquid Flow into, out of a Container
Here's a simple but important thing to say about integrals: they sum, or accumulate, what you put inside them. For instance, on this screen we will start to develop an integral that sums, or accumulates, the amount of liquid that flows into, and then out of, a container. The reason we need to develop the relevant integral is that we are given the rate at which the liquid flows, so rather than saying, for example, that "10 gallons of liquid enter," we are told that "liquid flows in at 6 gallons per minute," or that "liquid flows out at a rate that varies with time according to ....." As we'll see below and as we proceed, this is a classic case of needing an integral to complete the calculation we're after.
Note: This activity is based on work done by the CLEAR Calculus Project at Oklahoma State University. From the Project's website: "Project CLEAR Calculus is a research-based effort to make calculus conceptually accessible to more students while simultaneously increasing the coherence, rigor, and applicability of the content learned in the courses."
We at Matheno appreciate the work CLEAR Calculus has done to help students learn Calculus better, and are happy to build off of their efforts.

Suppose we have a cylindrical storage tank that holds some liquid. Sometimes we're filling the tank; at other times, we drain it of the stored liquid.
Part I. Filling the tank at a constant rate
Let's start with the simplest case, in which we fill the tank at a constant flow rate F. Specifically, in this particular situation water flows into the tank at the constant flow rate of F = 6 gallons/minute.
Given that the flow rate is
(Click "Start graphs" below to see the answer choices.)
Now that we have a correct graphical representation of the rate at which we're filling the storage tank, let's consider the following question:
How much water accumulates over a given period of time,
given this constant rate of accumulation?
The answer may well be obvious to you, but we're going to build up slowly in order to extend step-by-step to more complicated scenarios from here.

Let's start with this concrete and straightforward question: Given that the water flows in at the rate
Solution.
Let's not over-complicate the required computation: If your intuition told you to simply multiply the rate and the time to find
For a visual of what's going on here, we can draw from the area model of multiplication. The animation may seem obvious, but please take the time to note what it shows because we'll be using more involved versions soon.
Let's now extend the time interval of interest. The flowrate is again F = 6 gal/min. The amount of water that's accumulated after
Solution.You probably did the quick and correct calculation in your head:
Let's take this opportunity to shift our thinking to focus on what's happening in each 1-minute subinterval that passes: in each of those one minutes, we add 6 gallons to the tank. So after the full interval of 5 minutes, we have
As a final calculation for this constant-rate filling with F = 6 gal/min, after
Solution.To compute the requested value, we first need to convert the 422 seconds into minutes, since our flowrate is in gallons per minute.
Since our flow rate is
Part II: Draining the tank with a changing flowrate
Imagine now that we want to transfer the liquid in the tank elsewhere, so we turn the source off and open the valve on the bottom of the tank. The liquid flows out and into another container where it accumulates.
It turns out that water doesn't drain out of its container at a constant rate. Instead, the flowrate-out depends on how much water is currently in the tank. Specifically, as you may have noticed, liquid drains out faster when a container is full (and there's a lot of volume pressing down on the liquid at the bottom that's about to leave), and more and more slowly as time passes and less liquid remains.
Rather than model this flowrate exactly, we're going to pretend that the flowrate decreases linearly with time according to the made-up equation

Note: Typically, flowrates into a tank are represented as positive values, while flowrates out of a tank are negative. Later we'll make use of this convention, but for now let's make this flowrate-out a positive value so we can focus on other key issues without the complication of negative signs on various values.
We're going to start to address a very similar question to the one we posed above:
How much water drains from the tank over time?
Specifically, we're going to work to determine how much water flows out of the tank in the 3 minutes after we open the drain. We'll refer to the amount of water that's drained out as an "accumulated value," which you can think of as either the sum of the water that has left the tank, or equivalently as the amount of water that is now in the other container to which it's been transferred.
Note: Depending on your experience in perhaps a previous Calculus or Physics class, you may immediately know how to calculate the value we're after here since the flowrate changes linearly. If so, we ask that you please pretend that you don't, and instead complete the calculations as we're laying them out. We purposefully started with a simple function so we can keep our focus on the new tools that we're going to be developing because, well, really they lie at the heart of integral Calculus. We know you want to understand deeply what an integral is all about, and building that understanding begins right here.
Two students discuss how to calculate how much water has left the tank after 3 minutes.
BANU: This is easy. Just like we did above, we can just multiply
NEVA: I don't think that's right, because the flowrate constantly changes. Multiplying
As Question 1 illustrates, since the flowrate changes as time passes, we can't do the same simple calculation we did above when the flowrate was constant. Instead we need to account somehow for the changing rate.
As a first step toward tackling this challenge, let's compute the flow rate at the times
The two Questions above emphasize the point that the flowrate out of the tank changes continually, which means there is no obvious single value we can use as "the rate" over the entire 3-minute interval we're interested in.
The secret to Calculus: approximate to create a simpler problem.
But as we've seen time and again, we can make good progress by approximating the function's behavior with something simpler. And, what could be simpler than the calculations we did above in "Part I: Filling the tank at a constant rate"? Those calculations were so simple because the rate was constant, so let's adopt the same approach here and, for approximation purposes, replace our flowrate function with one that is constant over 1-minute subintervals. Specifically, we'll take the rate at the start of each 1-minute subinterval, its leftmost point, and pretend that the rate maintains that same value for the rest of that minute. The following animation illustrates.

Using this approximation approach, our calculation is now simple: for each 1-minute subinterval, we can use our simple relation
accumulation = (rate at the start of the subinterval) โข (subinterval length).
We then just add up what happens for each of the three minutes:
Left sum: use the function's value at each subinterval's leftmost point
Since for each subinterval we have used the flowrate function's value at the start, or left-most point, the quantity we computed is known as a left sum, which we denote
By using the first point in each 1-minute subinterval as the function's value for the entire 60 seconds means โ for this particular decreasing linear function โ that we're using the function's maximum value on the subinterval, which leads to the overestimate we found. Since this is an overestimate, we know that the true value must be less than our left-sum overestimate of 16.72 gallons:
Calculating an underestimate
Our choice of using the first instant in each 1-minute subinterval to approximate the flowrate over the entire subinterval was actually arbitrary: we could have used the moment halfway through (t = 0.5 minutes, 1.5 minutes, and 2.5 minutes), or one-quarter of the way through, or.... Indeed, later we'll explore what happens when we make different choices to use as the representative value for each subinterval instead.
For now, we have a clear task at hand: we want to choose the point in the subinterval that has the minimum value. And for the actual flowrate function, the minimum value on each subinterval occurs . . . where?
Since our flowrate function is linear, the answer is easy to see: while the maximum value occurs at the start of the subinterval, the minimum value occurs at the end. That is, we pick the final, rightmost instant in each of our subintervals:

Our calculation is again simple: we're now simply using the rate at the end of each subinterval, so for every 1-minute we have "accumulation = (rate at the end of the subinterval) โข (subinterval length)." As before, we then just add up what happens for each of the three minutes:
Right sum: use the function's value at the subinterval's rightmost point
No surprise: since we are now using the flowrate function's value at the right-most point as the representative value in each subinterval, the quantity we just computed is known as a right sum, which we denote
From our reasoning above we know that this right-sum value is a lower-bound to the amount of water actually drained over the 3 minutes:
Before we start down that path, let's first stop and for a brief overview of what we've done so far. We'll be building up a lot of ideas in the coming screens, and want to make sure you're with us in developing these Big Ideas.
Overview of our approximation approach
Our approximation approach consists of two big steps to develop the overestimate of the accumulated amount of liquid:
- Determine the overestimate for the amount accumulated in each 1-minute subinterval:
a m o u n t a c c u m u l a t e d o v e r t h i s 1 - m i n u t e s u b i n t e r v a l = ( ๐ ๐ ๐ฅ r a t e o n t h i s s u b i n t e r v a l ) โ ( d u r a t i o n o f t h e s u b i n t e r v a l ) - Sum the overestimated amounts accumulated for the three 1-minute subintervals.
The approach for finding the underestimate is the same, except that in Step 1 we use the minimum rate instead of the maximum rate for each subinterval.
Integrals are sums of pieces of a something bigger
If you're thinking this seems straightforward, you are well on your way to understanding how integrals work. We'll let you in on the key understanding of integrals now: they are always a Sum of pieces of a bigger something. (As we'll see, that's why integrals are written with a big fancy "S,"
Everything we do in this chapter will involve a Sum of something. The question you should always have in mind for yourself:
What is it that I'm summing here?
For now, let's try a practice problem that continues with 1-minute subintervals. Problems like this are common on exams.
| t: | 3 | 4 | 5 | 6 | 7 | 8 |
| 4.720 | 4.294 | 3.867 | 3.441 | 3.014 | 2.588 |
Once we've sketched that, we can remind ourselves that the question is asking for the lower bound for the amount of water that flows during this interval, which means we should choose the minimum flowrate value for each of the four subintervals. For instance, when we think about drawing the rectangle for the first subinterval, from t = 3 to t = 4 minutes, we see we should use the value at the end of the interval, at its rightmost point, 
| t: | 3 | 4 | 5 | 6 | 7 | 8 |
| 4.720 | 4.294 | 3.867 | 3.441 | 3.014 | 2.588 |
When we go to sketch in the rectangle for the first subinterval, from t = 3 to t = 4 min, since we now want the upper bound for the amount of water that flows we use the flowrate value at the start of the subinterval, at its leftmost point, 
For additional practice, let's apply the same ideas to a different scenario.
The rate at which students enter a large auditorium is given by | t [minutes] |
0 | 5 | 10 | 15 | 20 | 25 | 30 | 35 |
|---|---|---|---|---|---|---|---|---|
[students per minute] |
7 | 8 | 10 | 14 | 27 | 38 | 41 | 42 |
We are told to develop a Left Sum, Furthermore, since the rate at which students enter is increasing, the leftmost value is the minimum rate for each subinterval and so this value represents an underestimate of the actual number of students who entered.
As in the preceding problem, the rate at which students enter a large auditorium is given by | t [minutes] |
0 | 5 | 10 | 15 | 20 | 25 | 30 | 35 |
|---|---|---|---|---|---|---|---|---|
[students per minute] |
7 | 8 | 10 | 14 | 27 | 38 | 41 | 42 |
We are told to develop a Right Sum, Hence the approximation for the number of students who enter the auditorium over the 30 minutes using the Right Sum is
Before we leave this screen, let's step back to take an overview of what the process we're now using. As we did earlier in the course, we'll use our Questions for Approximations to frame our work. Use the work we did above to answer these questions for yourself before revealing our answers.
Questions for Approximations [Reference]
1. What are you approximating? Why can't you find the exact value immediately?
2. How do you generate an overestimate for the value we're after? An underestimate?
We'll focus more on the remaining two questions in a bit. For now, as a reminder they are:
3. What is the difference between your current overestimate and underestimate values is your "error bound." What is its current value?
We calculated this value for our interval of
4. How can the error bound be made smaller than any predetermined value?
We'll see in a few screens how the magic of Calculus answers this question! (And you may well already have your own answer in mind....)
The Upshot
- Calculating the amount of "stuff" accumulated over a subinterval is completely straightforward if the accumulation-rate is constant:
accumulation = (constant rate) โข (interval length)
- When a rate changes from moment to moment (i.e., is not constant), we can approximate the actual total accumulation by (1) using a constant rate over each smaller subinterval to approximate the accumulation during that single subinterval, and then (2) summing those subinterval approximations to approximate the total value.
- The approximations for these smaller, bit-by-bit accumulations can be visualized on a graph as rectangles, since they are calculated by multiplying the function's representative value (the height of the rectangle) by the subinterval's duration (the rectangle's width).
- If we use the function's value at the start of each subinterval, at its leftmost point, we are computing a left sum,
Similarly, if we use the function's value at the end of each subinterval, at its rightmost point, we are computing a right sum,๐ ๐ฟ . ๐ ๐ .
We're well on our way to developing a strong understanding of what an integral is. We'll continue that development on the coming screens, starting on the next where we'll review (or perhaps introduce) how to use sigma notation, like
For now, there are already some Big Ideas on this screen. What questions or thoughts do you have? Please head over to the Forum and let us know!
Reference for Oehrtman's Five Questions: Oehrtman, M. (2008). Layers of abstraction: Theory and design for the instruction of limit concepts. In M. P. Carlson & C. Rasmussen (Eds.), Making the Connection: Research and Teaching in Undergraduate Mathematics Education, (MAA Notes, Vol. 73, pp. 65-80). Washington, DC: Mathematical Association of America.
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.