33 Change & accumulation
Every 10 years, starting in 1790, the US Census Bureau carries out a constitutionally mandated census: a count of the current population. The overall count as a function of year is shown in Figure 33.1. [Source]
In the 230 years spanned by the census data, the US population has grown 100-fold, from about 4 million in 1790 to about 330,000,000 in 2020.
It is tempting to look for simple patterns in such data. Perhaps the US population has been growing exponentially. A semi-log plot of the same data suggests that the growth is only very roughly exponential. A truly exponential process would present as a curve with a constant derivative, but the derivative of the function in the graph is decreasing over the centuries.
Insofar as the slope over the semi-log graph is informative, it amounts to this quantity:
The dots in the graph are a direct calculation from the census data. There is a lot of fluctuation, but an overall trend stands out: the population growth rate has been declining since the mid-to late 1800s. The deviations from the trend are telling and correspond to historical events. There is a relatively low growth rate seen from 1860 to 1870: that is the effect of the US Civil War. The Great depression is seen in the very low growth from 1930 to 1940. Baby Boom: look at the growth from 1950-1960. The bump from 1990 to 2000? Not coincidentally, the 1990 Immigration Act substantially increased the yearly rate of immigration.
If the trend in the growth rate continues, the US will reach zero net growth about 2070, then continue with negative growth. Of course, negative growth is just decline. A simple prediction from Figure 33.2 is that the argmax of the US population—that is, the year that the growth rate reaches zero—will occur around 2070.
How large will the population be when it reaches its maximum?
In Block 2, we dealt with situations where we know the function
The process of figuring out
In this block we will explore the methods for calculating anti-derivatives and some of the settings in which anti-derivative problems arrive.
33.1 Accumulation
Imagine a simple setting: water flowing out of a tap into a basin or tank. The amount of water in the basin will be measured in a unit of volume, say liters. Measurement of the flow
There is a relationship between the two functions
Other examples of accumulation and change:
- velocity is the rate of change of position with respect to time. Likewise, position is the accumulation of velocity over time.
- force is the rate of energy with respect to position. Likewise energy is the accumulation of force as position changes.
- deficit is the rate of change of debt with respect to time. Likewise, debt is the accumulation of deficit over time.
33.2 Notation for anti-differentiation
For differentiation we are using the notation
- The [
]{style=“color: magenta;} symbol which identifies the operation as partial differentiation. - The name of the with-respect-to input
written as a subscript to . - The function to be differentiated,
.
For anti-differentiation, our notation must also specify the three pieces of information. It might be tempting to use the same notation as differentiation but replace the
Convention has something different in store. The notation for anti-differentiation is
For those starting out with anti-differentiation, the conventional notation can be confusing, especially the
Think of the
Remember that just as
33.3 R/mosaic notation
Recall that the notation for differentiation in R/mosaic is D(f(x) ~ x)
. The R/mosaic notation for anti-differentiation is very similar:
D(f(x) ~ x)
This has the same three pieces of information as
D()
signifies differentiation whereasantiD()
signifies anti-differentiation.~ x
identifies the with-respect-to input.f(x) ~
is the function on which the operation is to be performed.
Remember that just as D(f(x) ~ x)
creates a new function out of f(x) ~ x
, so does antiD(f(x) ~ x)
.
33.4 Dimension and anti-differentiation
This entire block will be about anti-differentiation, its properties and its uses. You already know that anti-differentiation (as the name suggests) is the inverse of differentiation. There is one consequence of this that is helpful to keep in mind as we move on to other chapters. This being calculus, the functions that we construct and operate upon have inputs that are quantities and outputs that are also quantities. Every quantity has a dimension, as discussed in Chapter 15. When you are working with any quantity, you should be sure that you know its dimension and its units.
The dimension of the input to a function does not by any means have to be the same as the dimension of the output. For instance, we have been using many functions where the input has dimension time and the output is position (dimension L) or velocity (dimension L/T) or acceleration (dimension L/T
Imagine working with some function
The function
The output of the function
How about the dimension of the anti-derivative
To summarize:
- The dimension of derivative
will be . - The dimension of the anti-derivative
will be .
Or, more concisely:
Differentiation is like division, anti-differentiation is like multiplication.
Paying attention to the dimensions (and units!) of input and output can be a boon to the calculus student. Often students have some function
To illustrate, imagine that you have constructed
Dimension of result | Calculus operation |
---|---|
M / T | differentiate |
M T | anti-differentiate |
M | find max or min |
T | find argmax/argmin or a function zero |
M T |
anti-differentiate twice in succession |
M / T |
differentiate twice in succession |
For example, suppose the output of the accelerometer on your rocket has dimension L / T
33.5 From Calculus Made Easy
Calculus Made Easy, by Silvanus P. Thompson, is a classic, concise, and elegant textbook from 1910. It takes a common-sense approach, sometimes lampooning the traditional approach to teaching calculus.
Some calculus-tricks are quite easy. Some are enormously difficult. The fools who write the textbooks of advanced mathematics—and they are mostly clever fools—seldom take the trouble to show you how easy the easy calculations are. On the contrary, they seem to desire to impress you with their tremendous cleverness by going about it in the most difficult way. — From the preface
Thompson’s first chapter starts with the notation of accumulation, which he calls “the preliminary terror.”
The preliminary terror … can be abolished once for all by simply stating what is the meaning—in common-sense terms—of the two principal symbols that are used in calculating.
These dreadful symbols are:
which merely means “a little bit of.”
Thus
which is merely a long , and may be called (if you like) “the sum of.”
Thus
When you see an expression that begins with this terrifying symbol, you will henceforth know that it is put there merely to give you instructions that you are now to perform the operation (if you can) of totaling up all the little bits that are indicated by the symbols that follow.
The next chapter shows what it means to “total up all the little bits” of a function.