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

8.1 Calculating average flow rate from volume

 
 
 

8.1.1 Implementing an average_flow_rate function

 
 
 
 

8.1.2 Picturing the average flow rate with a secant line

 
 
 

8.1.3 Negative rates of change

 
 
 
 

8.1.4 Exercises

 
 

8.2 Plotting the average flow rate over time

 

8.2.1 Finding the average flow rate in different time intervals

 
 

8.2.2 Plotting the interval flow rates

 
 

8.2.3 Exercises

 
 
 

8.3 Approximating instantaneous flow rates

 

8.3.1 Finding the slope of small secant lines

 

8.3.2 Building the instantaneous flow rate function

 
 
 

8.3.3 Currying and plotting the instantaneous flow rate function

 
 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage