8 Understanding rates of change
This chapter covers
- Calculating the average rate of change in a mathematical function
- Approximating the instantaneous rate of change at a point
- Picturing how the rate of change is itself changing
- Reconstructing a function from its rate of change
In this chapter, I introduce you to two of the most important concepts from calculus: the derivative and the integral. Both of these are operations that work with functions. The derivative takes a function and gives you another function measuring its rate of change. The integral does the opposite; it takes a function representing a rate of change and gives you back a function measuring the original, cumulative value.
I focus on a simple example from my own work in data analysis for oil production. The set up we’ll picture is a pump lifting crude oil out of a well, which then flows through a pipe into a tank. The pipe is equipped with a meter that continuously measures the rate of fluid flow, and the tank is equipped with a sensor that detects the height of fluid in the tank and reports the volume of oil stored within (figure 8.1).
Figure 8.1: Schematic diagram of a pump lifting oil from a well and pumping it into a tank.
