Average versus instantaneous rate
A rate of change compares the change in a function's output with the change in its input. Over an interval this gives an average rate, and at a single input a limit of average rates. This topic finds both rates, reads their sign and units, and compares them.
From average rates to the derivative
A curve that rises, falls and rises again. An orange point P sits on it at the input a, with an orange tangent line through it. Two chalk secant lines run from P to chalk points on the curve at the inputs a + h and a − h. With the secant to a + h, a dashed horizontal side of length h and a vertical side form a triangle. The vertical side is green when the curve is higher at a + h than at a and red when it is lower. Faint dashed lines drop from the three points to the axis, where they are labeled a − h, a and a + h. A button puts a corner in the curve at P, where the tangent disappears.
For two different inputs \(a\) and \(b\) of a function \(f\), the average rate of change of \(f\) from \(a\) to \(b\) is \(\frac{f(b)-f(a)}{b-a}\). Some books call it a difference quotient. It is the slope of the secant line through \(\big(a,f(a)\big)\) and \(\big(b,f(b)\big)\), the line through these two points of the graph.
Swapping \(a\) and \(b\) changes the sign of the top and of the bottom, so the order of the ends does not matter. With a formula, evaluate \(f\) at \(a\) and \(b\). With a table, use only the values at \(a\) and \(b\). In both cases, divide by the whole change in input, \(b-a\).
In Figure 1, \(\cy{P}\) is the orange point \(\big(a,f(a)\big)\), and a chalk point on the graph lies at \(a+h\), for a step \(h>0\). With \(b=a+h\), the average rate is
With the chalk secant through \(\cy{P}\) and that point, a dashed side and a vertical side form a triangle. The dashed side has length \(h\), and the vertical side shows the change \(f(a+h)-f(a)\).
At the single input \(a\), the step would be 0 and the quotient \(\frac00\), which has no value. The rate at \(a\) comes from intervals that shrink toward \(a\) from both sides. A step \(h<0\) gives the interval from \(a+h\) to \(a\). The quotient is still its average rate, because the order of the ends does not matter. In Figure 1, the secant through \(\cy{P}\) and the point at \(a-h\) shows the step \(-h\).
Shrink \(h\) with the slider or the button. Both secants turn toward the orange line through \(\cy{P}\), and the two averages under the figure approach its slope. The instantaneous rate of change of \(f\) at \(a\) is the limit of the averages, \(\lim_{h\to0}\frac{f(a+h)-f(a)}{h}\). It is written \(\cy{f'(a)}\), read “f prime of a”, and called the derivative of \(f\) at \(a\).
If the limit exists, the tangent line at \(\cy{P}\) is the line through \(\cy{P}\) with slope \(\cy{f'(a)}\), the orange line in Figure 1. The limit is two-sided, so \(f\) must be defined on an open interval around \(a\), and the averages from both sides must approach one number.
A corner is a point where a graph turns sharply. Use the button under Figure 1 to put a corner in the graph at \(\cy{P}\). Then shrink \(h\). The secants approach two different lines, and the averages two different numbers. The limit does not exist, so \(f\) has no derivative at \(a\), and the graph has no tangent at \(\cy{P}\).
To find \(f'(a)\) from a formula, do not substitute \(h=0\), which gives \(\frac00\). Simplify the quotient while \(h\neq0\) until a factor \(h\) cancels from its top and bottom (topic 1.6). Then use the limit laws (topic 1.5). A table of averages for small \(h\) suggests the limit but does not prove it (topic 1.4).
Sign and units
The graph of the temperature in degrees Fahrenheit from t = 0 (6 a.m.) to t = 12 (6 p.m.). It rises from 50 degrees to a peak of about 74 degrees at t = 9, where it is green, and falls to 68 degrees at t = 12, where it is red. A chalk secant joins the points at t = 0 and t = 12. An orange point at the input c, which can be dragged, carries an orange tangent line. When the tangent is parallel to the secant, both lines show two short marks.
An average rate divides a change in output by a change in input, so its unit is the output unit per input unit. The instantaneous rate, a limit of averages, has the same unit. In Figure 2, rates are in degrees Fahrenheit per hour, because \(T\) is in degrees and \(t\) in hours.
An average rate is positive when the larger input has the higher output, and negative when it has the lower one. The sign of \(f'(a)\) tells the direction at \(a\) itself. Suppose that \(f'(a)>0\). By the definition of a limit, the averages over short enough intervals that start or end at \(a\) lie closer to \(f'(a)\) than 0 is. They are therefore positive.
A positive average with \(h>0\) means that \(f(a+h)>f(a)\), and with \(h<0\) it means that \(f(a+h)<f(a)\). Near \(a\), the output is higher on the right of \(a\) than at \(a\) and lower on the left. This is what it means for \(f\) to be increasing at \(a\). In the same way, if \(f'(a)<0\), then \(f\) is decreasing at \(a\).
In Figure 2, move the orange point at \(\cy{c}\). The tangent slopes up where the curve is green and down where it is red, and it is horizontal at the top. The size of a rate, without its sign, tells how fast the output changes.
To interpret a rate, name the input with its unit, the quantity, the direction from the sign, and the size with its unit. At \(c=11\) the rate under Figure 2 is \(-2.8\), so at 5 p.m. the temperature is decreasing at 2.8 degrees Fahrenheit per hour.
What each rate describes
An average rate describes a whole interval, and an instantaneous rate a single input. In Figure 2, the chalk secant joins the points at \(t=0\) and \(t=12\), where the temperature is 50 and 68 degrees. Its slope is the average rate, \(\frac{68-50}{12}=1.5\) degrees Fahrenheit per hour, which a steady rise would need for the same change.
The average alone does not tell the rate at any one time: at \(c=11\) the temperature is falling, although it rose over the whole interval. The two rates are equal where the tangent has the same slope as the secant, so that the lines are parallel. In Figure 2 this happens once, and not at the midpoint \(t=6\).
If \(f\) is linear, \(f(x)=mx+k\), then \(f(b)-f(a)=m(b-a)\), so every average rate is \(m\), and every instantaneous rate, a limit of these averages, is \(m\) too. When \(f'(a)\) exists, an average over a short interval from \(a\) is close to \(f'(a)\), the limit of such averages. Over a long interval it can be far from \(f'(a)\).
Example 1
Calculate an average rate from a formula or table
The table gives the volume \(V(t)\) of water in a tank, in liters, at selected times \(t\), in minutes. Find the average rate of change of \(V\) over the interval \(1\le t\le 9\), and give its units. \[\begin{array}{c|ccccc} t & 0 & 1 & 4 & 9 & 12\\ \hline V(t) & 32 & 35 & 62 & 83 & 80\end{array}\]
Solution
The interval runs from \(t=1\) to \(t=9\), so the average uses only the values at those two times, \(V(1)=35\) and \(V(9)=83\). The volume rises by 48 liters while 8 minutes pass:
The change is in liters and the time in minutes, so the average rate of change of \(V\) over \(1\le t\le 9\) is 6 liters per minute.
Example 2
Calculate an instantaneous rate
Let \(g(x)=x^3-4x\). Find the instantaneous rate of change of \(g\) at \(x=3\).
Solution
The function \(g\) is a polynomial, so it is defined for every \(x\). Its value at 3 is \(g(3)=27-12=15\). For \(h\neq0\), expand \(g(3+h)\):
Every term of \(g(3+h)-g(3)\) has the factor \(h\), which cancels because \(h\neq0\):
As \(h\) approaches 0, the terms \(9h\) and \(h^2\) approach 0, so by the limit laws
Example 3
Interpret the sign and units
The depth of snow on the ground is \(D(t)\) centimeters, where \(t\) is the number of hours after midnight. Using correct units, explain the meaning of \(D'(4)=2.5\) and \(D'(9)=-1.2\) in the context of the problem.
Solution
The depth is in centimeters and the time in hours, so \(D'\) is in centimeters per hour. Each value is a rate at one moment.
Because \(D'(4)=2.5\) is positive, at 4 a.m. the depth of the snow is increasing at 2.5 centimeters per hour.
Because \(D'(9)=-1.2\) is negative, at 9 a.m. the depth is decreasing at 1.2 centimeters per hour. The word decreasing gives the sign, so the sentence states the size 1.2.
Example 4
Compare the two kinds of rate
A particle moves along a line, and its position at time \(t\) seconds is \(s(t)=3t^3-18t^2+36t\) meters. Find the average velocity of the particle over \(0\le t\le 4\) and its instantaneous velocity at \(t=2\). Explain what each value describes.
Solution
Velocity is the rate of change of position, in meters per second. The polynomial \(s\) is defined for every \(t\). With \(s(0)=0\) and \(s(4)=192-288+144=48\), the average velocity is
Expanding \(3(t-2)^3=3t^3-18t^2+36t-24\) shows that \(s(t)=3(t-2)^3+24\). Then \(s(2)=24\) and \(s(2+h)=3h^3+24\), so for \(h\neq0\)
As \(h\) approaches 0, \(3h^2\) approaches 0, so the instantaneous velocity at \(t=2\) is 0 meters per second.
The average describes the whole 4 seconds. The velocity 0 describes one moment, when the particle is at rest for an instant. The velocity at a moment equals the average only where the tangent is parallel to the secant from \((0,0)\) to \((4,48)\). At \(t=2\) the tangent is horizontal.
Each example is one of the four skills of topic 2.1 in Which & Why: AP Calculus.