$\newcommand{\dollar}{\} \DeclareMathOperator{\erf}{erf} \DeclareMathOperator{\arctanh}{arctanh} \newcommand{\lt}{<} \newcommand{\gt}{>} \newcommand{\amp}{&}$

## Section2.1The Average Rate of Change

###### Motivating Questions
• How is the average rate of change of a function on a given interval defined, and what does this quantity measure?

• How is the instantaneous rate of change of a function at a particular point defined? How is the instantaneous rate of change linked to average rate of change?

• What is the derivative of a function at a given point? What does this derivative value measure? How do we interpret the derivative value graphically?

• How are limits used formally in the computation of derivatives?

The instantaneous rate of change of a function is an idea that sits at the foundation of calculus. The instantaneous rate of change could measure the number of cells added to a bacteria culture per day, the number of additional gallons of gasoline consumed upon increasing a car's velocity by one mile per hour, or the number of dollars added to a mortgage payment for each percentage point increase in interest rate. The instantaneous rate of change can also be interpreted geometrically on the function's graph, and this connection is fundamental to many of the main ideas in calculus.

To determine the instantaneous rate of change, we must first examine the average rate of change of a function. We make the following definition for an arbitrary function $y = f(x)\text{.}$

###### Average Rate of Change

For a function $f\text{,}$ the average rate of change of $f$ on the interval $[a,b]$ is given by the formula

\begin{equation*} AV_{[a,b]} = \frac{f(b)-f(a)}{b-a}\text{.} \end{equation*}

###### Example2.1

Consider the function $f(x)=4x^2+4x+1\text{.}$ Compute the average rate of change of $f(x)$ on the following intervals: $[0,3]\text{,}$ $[1,3]\text{,}$ and $[2,3]\text{.}$

Solution

The average rate of change is given by the formula:

\begin{equation*} AV_{[a,b]} = \frac{f(b)-f(a)}{b-a}\text{.} \end{equation*}

Thus the average rate of change of $f(x)$ on the interval $[0,3]$ is

\begin{equation*} AV_{[0,3]} = \frac{f(3)-f(0)}{3-0}=\frac{(4(3)^2+4(3)+1)-(4(0)^2+4(0)+1)}{3}=\frac{48}{3}=16\text{.} \end{equation*}

The average rate of change of $f(x)$ on the interval $[1,3]$ is

\begin{equation*} AV_{[1,3]} = \frac{f(3)-f(1)}{3-1}=\frac{(4(3)^2+4(3)+1)-(4(1)^2+4(1)+1)}{2}=\frac{40}{2}=20\text{.} \end{equation*}

The average rate of change of $f(x)$ on the interval $[2,3]$ is

\begin{equation*} AV_{[2,3]} = \frac{f(3)-f(2)}{3-2}=\frac{(4(3)^2+4(3)+1)-(4(2)^2+4(2)+1)}{1}=\frac{28}{1}=28\text{.} \end{equation*}

In Example2.1 we note that the average rate of change varied greatly depending on the interval over which it was evaluated. To understand what the average rate of change tells you, it is essential that you understand how the average rate of change of $f$ on an interval is connected to its graph.

###### Example2.2

Suppose that the height $s$ of a ball at time $t$ (in seconds) is given by the formula $s(t) = 64 - 16(t-1)^2$ (in feet).

1. Construct a graph of $y = s(t)$ on the time interval $0 \le t \le 3\text{.}$ Label at least six distinct points on the graph, including the three points showing when the ball was released, when the ball reaches its highest point, and when the ball lands.

2. Describe the behavior of the ball on the time interval $0 \lt t \lt 1$ and on the time interval $1 \lt t \lt 3\text{.}$ What occurs at the instant $t = 1\text{?}$

3. Consider the expression

\begin{equation*} AV_{[0.5,1]} = \frac{s(1) - s(0.5)}{1-0.5}\text{.} \end{equation*}

Compute the value of $AV_{[0.5,1]}\text{.}$ What does this value measure on the graph? What does this value tell us about the motion of the ball? In particular, what are the units on $AV_{[0.5,1]}\text{?}$

Hint
1. $s$ is a quadratic function, so its graph is a parabola. Where is the vertex? What are the $t$-intercepts?
2. Where is the vertex?
3. How does this value relate to the points $(1,s(1))$ and $(0.5,s(0.5))$ on the graph? What are the units of $s(t)\text{?}$ What are the units of $t\text{?}$ How might these units inform the units of $AV_{[0.5,1]}\text{?}$
1. The ball reaches its highest point at $t=1\text{,}$ rising until then and falling after.

2. $AV_{[0.5,1]}=8$ ft/s measures the slope of the line between $(0.5,s(0.5))$ and $(1,s(1))\text{,}$ and is the average velocity of the ball between $t=0.5$ seconds and $t=1$ second.

Solution
1. The ball is rising on the interval $0\lt t\lt1$ and falling on the interval $1\lt t\lt3\text{.}$ At the instant $t=1\text{,}$ the ball reaches its highest point, stops, and changes direction.

2. We first compute $s(1)=64-16(1-1)^2=64$ and $s(0.5)=64-16(0.5-1)^2=60\text{.}$ With these values, we can say

\begin{align*} AV_{[0.5,1]}=\mathstrut \amp \frac{s(1)-s(0.5)}{1-0.5}\\ =\mathstrut \amp \frac{64-60}{0.5}\\ =\mathstrut \amp \frac{4}{0.5}\\ =\mathstrut \amp 8\text{.} \end{align*}

Notice that in the numerator we have the values $s(1)$ and $s(0.5)\text{,}$ both measured in feet. In the denominator we have the corresponding time values $t=1$ and $t=0.5\text{,}$ both measured in seconds. The units of the quotient, then, should be feet per second. These are units of velocity, and in fact the value of $AV_{[0.5,1]}$ is the average velocity on the time interval $0.5\le t\le1\text{.}$ Moreover, the formula for $AV_{[0.5,1]}$ is precisely the slope formula between the points $(0.5,s(0.5))$ and $(1,s(1))\text{.}$

###### Example2.5

The following questions concern the position function given by $s(t) = 64 - 16(t-1)^2\text{,}$ which we previously considered in Example2.2.

1. Compute the average velocity of the ball on each of the following time intervals: $[0.4,0.8]\text{,}$ $[0.7,0.8]\text{,}$ $[0.79, 0.8]\text{,}$ $[0.799,0.8]\text{,}$ $[0.8,1.2]\text{,}$ $[0.8,0.9]\text{,}$ $[0.8,0.81]\text{,}$ and $[0.8,0.801]\text{.}$ Include units for each value.

2. On the graph provided below in Figure2.6, sketch the line that passes through the points $A=(0.4, s(0.4))$ and $B=(0.8, s(0.8))\text{.}$ What is the meaning of the slope of this line? In light of this meaning, what is a geometric way to interpret each of the values computed in the preceding question?

3. Use a graphing utility to plot the graph of $s(t) = 64 - 16(t-1)^2$ on an interval containing the value $t = 0.8\text{.}$ Then, zoom in repeatedly on the point $(0.8, s(0.8))\text{.}$ What do you observe about how the graph appears as you view it more and more closely?

4. What do you think the velocity of the ball at the instant $t = 0.8$ is? Why? Figure2.6A partial plot of $s(t) = 64 - 16(t-1)^2\text{.}$
Hint
1. On $[0.4,0.8]\text{,}$ the average velocity is $AV_{[0.4,0.8]} = \frac{s(0.8)-s(0.4)}{0.8-0.4}$ ft/sec.

2. Remember that the slope of a line can be found by taking rise over run. In this context, the slope is found by computing change in $s$ over change in $t\text{.}$

3. Overall, the curve $y=s(t)$ is a parabola; how does it look up close on a very small interval?

4. Instantaneous velocity can be approximated by average velocity on a very small interval.

1. $AV_{[0.4,0.8]} = 12.8$ ft/sec; $AV_{[0.7,0.8]} = 8$ ft/sec; the other average velocities are, respectively, 6.56, 6.416, 0, 4.8, 6.24, 6.384, all in ft/sec.

2. $m = 12.8$ is the average velocity of the ball between $t = 0.4$ and $t = 0.8\text{.}$ 3. Like a straight line with slope about 6.4.

4. About 6.4 feet per second.

Solution
1. On $[0.4,0.8]\text{,}$ the average velocity is $AV_{[0.4,0.8]} = \frac{s(0.8)-s(0.4)}{0.8-0.4} = \frac{63.36-58.24}{0.4} = 12.8$ ft/sec. On $[0.7,0.8]\text{,}$ the average velocity is 8 ft/sec. The other average velocities are, respectively (in the order of the intervals listed in the problem statement), 6.56, 6.416, 0, 4.8, 6.24, 6.384, all measured in feet per second.

2. The slope of the line between $A=(0.4, s(0.4))$ and $B=(0.8, s(0.8))$ is $\frac{s(0.8)-s(0.4)}{0.8-0.4} = 12.8\text{.}$ This is precisely the average velocity of the ball between $t = 0.4$ and $t = 0.8\text{,}$ and indeed each of the average velocities computed in (a) can be viewed as the slope of the line joining the points $(a,s(a))$ and $(b,s(b))\text{.}$ 3. As we zoom in on the graph of $y=s(t)$ at the point $(0.5, 60)\text{,}$ the graph begins to look like a straight line. Specifically, it appears to look like a straight line with slope about 6.4.

4. Observe that the average velocity of the ball on the intervals $[0.799,0.8]$ and $[0.8,0.801]$ is 6.416 and 6.384 feet/sec respectively. Hence it appears that the ball's velocity at the instant $t = 0.8$ should be about 6.4 feet per second.

Our goal is to understand how a function is changing at a particular point. In order to do so we will reconsider the average rate of change of a function by looking at the an interval $[a,a+h]\text{.}$

###### Example2.7

Suppose that $f$ is the function given by the graph below and that $a$ and $a+h$ are the input values as labeled on the $x$-axis. Use the graph in Figure2.8 to answer the following questions. Figure2.8Plot of $y = f(x)$ for Example2.7.
1. Locate and label the points $(a,f(a))$ and $(a+h, f(a+h))$ on the graph.

2. Construct a right triangle whose hypotenuse is the line segment from $(a,f(a))$ to $(a+h,f(a+h))\text{.}$ What are the lengths of the respective legs of this triangle?

3. What is the slope of the line that connects the points $(a,f(a))$ and $(a+h, f(a+h))\text{?}$

4. Write a meaningful sentence that explains how the average rate of change of the function on a given interval and the slope of a related line are connected.

Hint
1. What are the coordinates of the two marked points on the graph of $f\text{?}$
2. Draw the triangle so that one of its legs is horizontal and the other is vertical.
3. Remember that the slope of a line segment can be thought of as rise over run.
4. How does the slope you found in (c) compare to the formula for the average rate of change of $f$ on the interval $[a,a+h]\text{?}$
1. The left marked point on the graph in Figure2.8 is the point $(a,f(a))\text{,}$ the right marked point on the graph is $(a+h,f(a+h))\text{.}$
2. The lengths of the legs of this triangle are $f(a+h)-f(a)$ and $h\text{.}$
3. $\frac{f(a+h)-f(a)}{h}$
4. The average rate of change of the function $f$ on the interval $[a,a+h]$ is the same as the slope of the line segment from $(a,f(a))$ to $(a+h,f(a+h))\text{.}$
Solution
1. The left marked point on the graph in Figure2.8 is the point $(a,f(a))\text{,}$ the right marked point on the graph is $(a+h,f(a+h))\text{.}$
2. The length of the vertical leg of this triangle is $f(a+h)-f(a)\text{,}$ and the length of the horizontal leg of this triangle is $a+h-a=h\text{.}$
3. The slope of the line connecting the two points is $\frac{f(a+h)-f(a)}{h}\text{,}$ as shown by the triangle drawn in the previous part: the rise is the length of the vertical leg, and the run is the length of the horizontal leg.
4. The average rate of change of the function $f$ on the interval $[a,a+h]$ is $AV_{[a,a+h]}=\frac{f(a+h)-f(a)}{h}\text{,}$ which is exactly what we found in the previous part as the slope of the line segment connecting the points $(a,f(a))$ and $(a+h,f(a+h))\text{.}$

Thus we have determined a second way to write the average rate of change.

###### Average Rate of Change

For a function $f\text{,}$ the average rate of change of $f$ on the interval $[a,a+h]$ is given by the formula

\begin{equation*} AV_{[a,a+h]} = \frac{f(a+h)-f(a)}{h}\text{.} \end{equation*}

The purpose of rewriting the average rate of change in this manner is to be able to understand the instantaneous rate of change of a function at a particular point.

As we saw in the examples above, the average rate of change is the slope of the line connecting the points $(a,f(a))$ and $(a+h,f(a+h))\text{.}$ We call this line the secant line, the slope of the secant line is $m = \frac{f(a+h) - f(a)}{h}\text{,}$ or in other words the average rate of change is the slope of the secant line.

To compute an instantaneous rate of change, we allow the interval $[a,a+h]$ to shrink as $h \to 0\text{.}$ We can think of one endpoint of the interval as sliding towards the other. In particular, provided that $f$ has a derivative at $(a,f(a))\text{,}$ the point $(a+h,f(a+h))$ will approach $(a,f(a))$ as $h \to 0\text{.}$ Because the process of taking a limit is a dynamic one, it can be helpful to visualize it.

Figure2.9 below shows a sequence of figures with several different lines through the points $(a, f(a))$ and $(a+h,f(a+h))\text{,}$ generated by different values of $h\text{.}$ Figure2.9A sequence of secant lines approaching the tangent line to $f$ at $(a,f(a))\text{.}$

###### Instantaneous Rate of Change

Let $f$ be a function and $x = a$ a value in the function's domain. The instantaneous rate of change of $f$ with respect to $x$ evaluated at $x = a$ is defined by the formula

\begin{equation*} \lim_{h \to 0} \frac{f(a+h)-f(a)}{h}\text{,} \end{equation*}

provided this limit exists.

The instantaneous rate of change tells us how the function is changing at the point $x=a\text{.}$ Another way to think about the instantaneous rate of change is the the slope of the curve at $x=a\text{,}$ visualized as the green curve in the figure below.

The instantaneous rate of change of $f$ with respect to $x$ at $x = a\text{,}$ which is the derivative value $f'(a)\text{,}$ also measures the slope of the tangent line to the curve $y = f(x)$ at $(a,f(a))\text{.}$ Figure2.10Shown here is a sequence of secant lines approaching the tangent line to $f$ at $(a,f(a))\text{.}$ At right, we zoom in on the point $(a,f(a))\text{.}$ The slope of the tangent line (in green) to $f$ at $(a,f(a))$ is given by $f'(a)\text{.}$

We call this line the tangent line. Thus the instantaneous rate of change of $f(x)$ gives the slope of the tangent line at $x=a\text{,}$ that is, the slope of the curve at the point $x=a\text{.}$

###### Example2.11Finding the Instantaneous Rate of Change

For the function $f(x) = x - x^2\text{,}$ use the limit definition to compute the instantaneous rate of change of $f(x)$ at $x=2\text{.}$ In addition, discuss the meaning of this value and draw a labeled graph that supports your explanation.

Hint

The instantaneous rate of change of $f$ with respect to $x$ evaluated at $x=a$ is

\begin{equation*} \lim_{h\to0}\frac{f(a+h)-f(a)}{h}\text{.} \end{equation*}
\begin{equation*} Instantaneous rate of change at is \end{equation*}

The slope of the tangent line to $f$ through the point $(2,-2)$ is $-3\text{.}$

Solution

From the limit definition, we know that the instantaneous rate of change is

\begin{equation*} \lim_{h \to 0} \frac{f(2+h)-f(2)}{h}\text{.} \end{equation*}

Now we use the rule for $f\text{,}$ and observe that $f(2) = 2 - 2^2 = -2$ and $f(2+h) = (2+h) - (2+h)^2\text{.}$ Substituting these values into the limit definition, we have that

\begin{equation*} \lim_{h \to 0} \frac{(2+h) - (2+h)^2 - (-2)}{h}\text{.} \end{equation*}

In order to evaluate the limit, we must simplify the quotient. Expanding and distributing in the numerator gives us

\begin{equation*} \lim_{h \to 0} \frac{2+h - 4 - 4h - h^2 + 2}{h}\text{.} \end{equation*}

Combining like terms, we have

\begin{equation*} \lim_{h \to 0} \frac{ -3h - h^2}{h}\text{.} \end{equation*}

Next, because $h\neq0$ within the limit, we may remove a common factor of $h$ in both the numerator and denominator and find that

\begin{equation*} \lim_{h \to 0} (-3-h)\text{.} \end{equation*}

Finally, we are able to take the limit as $h$ approaches $0\text{,}$ and thus conclude that the instantaneous rate of change is $-3\text{.}$ this is also the slope of the tangent line to the graph of $y = x - x^2$ at the point $(2,-2)\text{.}$ Figure2.12 below shows both the function and the line through $(2,-2)$ with slope $m = -3\text{.}$ Figure2.12The tangent line to $y = x - x^2$ at the point $(2,-2)\text{.}$

### SubsectionThe Derivative of a Function at a Point

We define the instantaneous rate of change of a function at a point in terms of the average rate of change of the function $f$ over related intervals. This instantaneous rate of change of $f$ at $a$ is called the derivative of $f$ at $a\text{,}$ and is denoted by $f'(a)\text{.}$

###### Derivative at a Point

Let $f$ be a function and $x = a$ a value in the function's domain. The derivative of $f$ with respect to $x$ evaluated at $x = a$, denoted $f'(a)\text{,}$ is defined by the formula

\begin{equation*} f'(a) = \lim_{h \to 0} \frac{f(a+h)-f(a)}{h}\text{,} \end{equation*}

provided this limit exists.

This is sometimes referred to as the limit definition of the derivative at a point.

Aloud, we read the symbol $f'(a)$ as either $f$-prime of $a$ or the derivative of $f$ evaluated at $x = a\text{.}$ The next several chapters will be devoted to understanding, computing, applying, and interpreting derivatives. For now, we observe the following important things.

###### Note2.13
• The derivative of $f$ at the value $x = a$ is defined as the limit of the average rate of change of $f$ on the interval $[a,a+h]$ as $h \to 0\text{.}$ This limit depends on both the function $f$ and the point $x=a\text{.}$ Since this limit may not exist, not every function has a derivative at every point.
• We say that a function is differentiable at $x = a$ if it has a derivative at $x = a\text{.}$
• Because the units of $\frac{f(a+h)-f(a)}{h}$ are units of $f(x)$ per unit of $x\text{,}$ the derivative has these same units. For instance, if $s$ measures position in feet and $t$ measures time in seconds, the units on $s'(a)$ are feet per second.
• The quantity $\frac{f(a+h)-f(a)}{h}$ represents the slope of the line through $(a,f(a))$ and $(a+h, f(a+h))\text{.}$ When we compute the derivative, we are actually taking the limit of a collection of slopes of lines. Thus, the derivative itself represents the slope of a particularly important line.

We first consider the derivative at a given value as the slope of a certain line at that value.

The following examples will help you explore a variety of key ideas related to derivatives.

###### Example2.14

Consider the function $f$ whose formula is $\displaystyle f(x) = 3 - 2x\text{.}$

1. What familiar type of function is $f\text{?}$ What can you say about the slope of $f$ at every value of $x\text{?}$
2. Compute the average rate of change of $f$ on the intervals $[1,4]\text{,}$ $[3,7]\text{,}$ and $[5,5+h]\text{;}$ simplify each result as much as possible. What do you notice about these quantities?
3. Use the limit definition of the derivative to compute the exact instantaneous rate of change of $f$ with respect to $x$ at the value $a = 1\text{.}$ That is, compute $f'(1)$ using the limit definition. Show your work. Is your result surprising?
4. Without doing any additional computations, what are the values of $f'(2)\text{,}$ $f'(\pi)\text{,}$ and $f'(-\sqrt{2})\text{?}$ Why?
Hint
1. If $f(x) = 3x^2 + 2x - 4\text{,}$ we say $f$ is quadratic. If $f(x) = 5 e^{2x-1}\text{,}$ we say $f$ is exponential. What do we say about $f(x) = 3-2x\text{?}$
2. Remember that to compute the average rate of change of $f$ on $[a,b]\text{,}$ we calculate $\frac{f(b)-f(a)}{b-a}\text{.}$
3. Observe that $f(1+h) = 3 - 2(1+h) = 3 - 2 - 2h = 1 - 2h\text{.}$
4. Think about the how the graph of $f$ appears. What is the same at every point?
1. $f$ is linear.
2. The average rate of change on $[1,4]\text{,}$ $[3,7]\text{,}$ and $[5,5+h]$ is $-2\text{.}$
3. $f'(1)=-2\text{.}$
4. $f'(2)=-2\text{,}$ $f'(\pi)=-2\text{,}$ and $f'(-\sqrt{2})=-2\text{,}$ since the slope of a linear function is the same at every point.
Solution
1. Because $f(x) = 3 - 2x$ is of the form $f(x) = mx + b\text{,}$ we call $f$ a linear function.
2. The average rate of change on $[1,4]$ is $\frac{f(4)-f(1)}{4-1} = \frac{-5 - 1}{3} = -2\text{.}$ Similar calculations show the average rate of change on $[3,7]$ is also $-2\text{.}$ On $[5,5+h]\text{,}$ observe that
\begin{align*} \frac{f(5+h)-f(5)}{h} \amp = \frac{(3-2(5+h)) - (3-10)}{h}\\ \amp = \frac{3 - 10 - 2h + 7}{h}\\ \amp = \frac{-2h}{h}\\ \amp = -2\text{.} \end{align*}
3. Using the limit definition of the derivative, we find that
\begin{align*} f'(1) = \amp \lim_{h \to 0} \frac{f(1+h) - f(1)}{h}\\ = \amp \lim_{h \to 0} \frac{(3 - 2(1+h)) - (3-2)}{h}\\ = \amp \lim_{h \to 0} \frac{3 - 2 - 2h - 1}{h}\\ = \amp \lim_{h \to 0} \frac{-2h}{h}\\ = \amp \lim_{h \to 0} -2\\ = \amp -2\text{.} \end{align*}
###### Example2.15

A water balloon is tossed vertically in the air from a window. The balloon's height in feet $t$ seconds after being launched is given by $s(t) = -16t^2 + 16t + 32\text{.}$ Use this function to respond to each of the following questions.

1. Sketch an accurate, labeled graph of $y=s(t)$ for $t=0$ to $t=2\text{.}$ Label the scale on the axes carefully. You should be able to do this without using computing technology.

2. Compute the average rate of change of $s$ on the time interval $[1,2]\text{.}$ Include units in your answer and write one sentence to explain the meaning of the value you found.
3. Use the limit definition of the derivative to compute the instantaneous rate of change of $s$ with respect to time, $t\text{,}$ at the instant $a = 1\text{.}$ Show your work using proper notation, include units in your answer, and write one sentence to explain the meaning of the value you found.
4. On your graph in (a), sketch two lines: one whose slope represents the average rate of change of $s$ on $[1,2]\text{,}$ the other whose slope represents the instantaneous rate of change of $s$ at the instant $a=1\text{.}$ Label each line clearly.
5. For what values of $a$ do you expect $s'(a)$ to be positive? Why? Answer the same questions when positive is replaced by negative and zero.
Hint
1. Observe that $(t^2 - t - 2) = (t-2)(t+1)$ and that $s(t)$ has its vertex at $t = \frac{1}{2}\text{.}$
2. Recall the formula for average rate of change.
3. Note that $s(1+h) = -16(1+h)^2 + 16(1+h) + 32\text{.}$
4. Think about a secant line and a tangent line.
5. A line with positive slope is one that is rising; a line with negative slope is one that is falling.
1. The vertex is $(\frac{1}{2},36)\text{;}$ the full graph is below in (d).
2. $\frac{s(2)-s(1)}{2-1} = -32$ feet per second.
3. $s'(1) = -16\text{.}$
4. 5. $s'(a)$ is positive whenever $0 \le a \lt \frac{1}{2}\text{;}$ $s'(a)$ is negative whenever $\frac{1}{2} \lt a \lt 2\text{;}$ $s'(\frac{1}{2}) = 0\text{.}$
Solution
1. Since
\begin{align*} s(t) \amp= -16t^2 + 16t + 32 \\ \amp= -16(t^2 - t - 2) \\ \amp= -16(t-2)(t+1)\text{,} \end{align*}
$s$ has $t$-intercepts at $(2,0)$ and $(-1,0)\text{;}$ the $s$-intercept is clearly $(0,32)\text{;}$ and the vertex is $(\frac{1}{2},36)\text{.}$ See the full graph of $y=s(t)$ in part (d).
2. Observe that $\frac{s(2)-s(1)}{2-1} = \frac{0 - 32}{1} = -32$ feet per second. This value represents the average rate at which the balloon is falling over the time interval from $t = 1$ to $t = 2\text{.}$
3. We compute $s'(1)$ as follows:
\begin{align*} s'(1) = \amp \lim_{h \to 0} \frac{s(1+h)-s(1)}{h}\\ = \amp \lim_{h \to 0} \frac{(-16(1+h)^2 + 16(1+h) + 32) - (-16(1)^2 + 16(1) + 32)}{h}\\ = \amp \lim_{h \to 0} \frac{-16 - 32h - 16h^2 + 16 + 16h + 32 - 32}{h}\\ = \amp \lim_{h \to 0} \frac{-16h - 16h^2}{h}\\ = \amp \lim_{h \to 0} (-16-16h)\\ = \amp -16\text{.} \end{align*}
4. We plot and label the secant line through $(1,s(1))$ and $(2,s(2))\text{,}$ as well as the tangent line through $(1,s(1))$ with slope $s'(1)\text{.}$ 5. Observe that whenever the balloon is rising, its position function is rising, and thus the slope of its tangent line at any such point will be positive. This means that we should find $s'(a)$ to be positive whenever $0 \le a \lt \frac{1}{2}\text{,}$ and similarly $s'(a)$ to be negative whenever $\frac{1}{2} \lt a \lt 2$ (which is when the balloon is falling). At the instant $a = \frac{1}{2}\text{,}$ the balloon is at its vertex and is neither rising nor falling, and at that point, $s'(\frac{1}{2}) = 0\text{.}$

### SubsectionSummary

• The average rate of change of a function $f$ on the interval $[a,b]$ is $\frac{f(b)-f(a)}{b-a}\text{.}$ The units on the average rate of change are units of $f(x)$ per unit of $x\text{,}$ and the numerical value of the average rate of change represents the slope of the secant line between the points $(a,f(a))$ and $(b,f(b))$ on the graph of $y = f(x)\text{.}$ If we view the interval as being $[a,a+h]$ instead of $[a,b]\text{,}$ the meaning is still the same, but the average rate of change is now computed by $\frac{f(a+h)-f(a)}{h}\text{.}$
• The instantaneous rate of change with respect to $x$ of a function $f$ at a value $x = a$ is denoted $f'(a)$ (read the derivative of $f$ evaluated at $a$ or $f$-prime of $a$) and is defined by the formula
\begin{equation*} f'(a) = \lim_{h \to 0} \frac{f(a+h)-f(a)}{h}\text{,} \end{equation*}
provided this limit exists. Note particularly that the instantaneous rate of change at $x = a$ is the limit of the average rate of change on $[a,a+h]$ as $h$ approaches $0\text{.}$
• Provided the derivative $f'(a)$ exists, its value tells us the instantaneous rate of change of $f$ with respect to $x$ at $x = a\text{,}$ which geometrically is the slope of the tangent line to the curve $y = f(x)$ at the point $(a,f(a))\text{.}$ We even say that $f'(a)$ is the slope of the curve at the point $(a,f(a))\text{.}$
• Limits allow us to move from the rate of change over an interval to the rate of change at a single point.

### SubsectionExercises

Consider the graph of $y = f(x)$ provided in Figure2.16.

1. On the graph of $y = f(x)\text{,}$ sketch and label the following quantities:

• the secant line to $y = f(x)$ on the interval $[-3,-1]$ and the secant line to $y = f(x)$ on the interval $[0,2]\text{.}$
• the tangent line to $y = f(x)$ at $x = -3$ and the tangent line to $y = f(x)$ at $x = 0\text{.}$
2. What is the approximate value of the average rate of change of $f$ on $[-3,-1]\text{?}$ On $[0,2]\text{?}$ How are these values related to your work in (a)?
3. What is the approximate value of the instantaneous rate of change of $f$ at $x = -3\text{?}$ At $x = 0\text{?}$ How are these values related to your work in (a)? For each of the following prompts, sketch a graph on the provided axes in Figure2.17 of a function that has the stated properties. Figure2.17Axes for plotting $y = f(x)$ in (a) and $y = g(x)$ in (b).
1. $y = f(x)$ such that

• the average rate of change of $f$ on $[-3,0]$ is $-2$ and the average rate of change of $f$ on $[1,3]$ is 0.5, and
• the instantaneous rate of change of $f$ at $x = -1$ is $-1$ and the instantaneous rate of change of $f$ at $x = 2$ is 1.
2. $y = g(x)$ such that

• $\frac{g(3)-g(-2)}{5} = 0$ and $\frac{g(1)-g(-1)}{2} = -1\text{,}$ and
• $g'(2) = 1$ and $g'(-1) = 0$

Suppose that the population, $P\text{,}$ of China (in billions) can be approximated by the function $P(t) = 1.15(1.014)^t$ where $t$ is the number of years since the start of 1993.

1. According to the model, what was the total change in the population of China between January 1, 1993 and January 1, 2000? What will be the average rate of change of the population over this time period? Is this average rate of change greater or less than the instantaneous rate of change of the population on January 1, 2000? Explain and justify, being sure to include proper units on all your answers.
2. According to the model, what is the average rate of change of the population of China in the ten-year period starting on January 1, 2012?
3. Write an expression involving limits that, if evaluated, would give the exact instantaneous rate of change of the population on today's date. Then estimate the value of this limit (discuss how you chose to do so) and explain the meaning (including units) of the value you have found.
4. Find an equation for the tangent line to the function $y = P(t)$ at the point where the $t$-value is given by today's date.

The goal of this problem is to compute the value of the derivative at a point for several different functions, where for each one we do so in three different ways, and then to compare the results to see that each produces the same value.

For each of the following functions, use the limit definition of the derivative to compute the value of $f'(a)$ using three different approaches: strive to use the algebraic approach first (to compute the limit exactly), then test your result using numerical evidence (with small values of $h$), and finally plot the graph of $y = f(x)$ near $(a,f(a))$ along with the appropriate tangent line to estimate the value of $f'(a)$ visually. Compare your findings among all three approaches; if you are unable to complete the algebraic approach, still work numerically and graphically.

1. $f(x) = x^2 - 3x\text{,}$ $a = 2$
2. $f(x) = \frac{1}{x}\text{,}$ $a = 1$
3. $f(x) = \sqrt{x}\text{,}$ $a = 1$
4. $f(x) = 2 - |x-1|\text{,}$ $a = 1$
5. $f(x) = \sin(x)\text{,}$ $a = \frac{\pi}{2}$