# 2.1 Instantaneous Rates of Change: The Derivative

A common amusement park ride lifts riders to a height then allows them to free fall a certain distance before safely stopping them. Suppose such a ride drops riders from a height of 150 feet. Students of physics may recall that the height (in feet) of the riders, $t$ seconds after free fall (and ignoring air resistance, etc.) can be accurately modeled by $f(t)=-16t^{2}+150$.

Using this formula, it is easy to verify that, without intervention, the riders will hit the ground at $t=2.5\sqrt{1.5}\approx 3.06$ seconds. Suppose the designers of the ride decide to begin slowing the riders’ fall after 2 seconds (corresponding to a height of 86 ft.). How fast will the riders be traveling at that time?

We have been given a position function, but what we want to compute is a velocity at a specific point in time, i.e., we want an instantaneous velocity. We do not currently know how to calculate this.

However, we do know from common experience how to calculate an average velocity. (If we travel 60 miles in 2 hours, we know we had an average velocity of 30 mph.) We looked at this concept in Section 1.1 when we introduced the difference quotient. We have

 $\frac{\text{change in distance}}{\text{change in time}}=\frac{\text{\ rise\ % ''}}{\text{run}}=\text{average velocity}.$

We can approximate the instantaneous velocity at $t=2$ by considering the average velocity over some time period containing $t=2$. If we make the time interval small, we will get a good approximation. (This fact is commonly used. For instance, high speed cameras are used to track fast moving objects. Distances are measured over a fixed number of frames to generate an accurate approximation of the velocity.)

Consider the interval from $t=2$ to $t=3$ (just before the riders hit the ground). On that interval, the average velocity is

 $\frac{f(3)-f(2)}{3-2}=\frac{f(3)-f(2)}{1}=-80\ \text{ft/s},$

where the minus sign indicates that the riders are moving down. By narrowing the interval we consider, we will likely get a better approximation of the instantaneous velocity. On $[2,2.5]$ we have

 $\frac{f(2.5)-f(2)}{2.5-2}=\frac{f(2.5)-f(2)}{0.5}=-72\ \text{ft/s}.$

We can do this for smaller and smaller intervals of time. For instance, over a time span of 1/10${}^{\text{th}}$ of a second, i.e., on $[2,2.1]$, we have

 $\frac{f(2.1)-f(2)}{2.1-2}=\frac{f(2.1)-f(2)}{0.1}=-65.6\ \text{ft/s}.$

Over a time span of 1/100${}^{\text{th}}$ of a second, on $[2,2.01]$, the average velocity is

 $\frac{f(2.01)-f(2)}{2.01-2}=\frac{f(2.01)-f(2)}{0.01}=-64.16\ \text{ft/s}.$

What we are really computing is the average velocity on the interval $[2,2+h]$ for small values of $h$. That is, we are computing

 $\frac{f(2+h)-f(2)}{h}$

where $h$ is the change in time after $2$ seconds.

What we really want is for $h=0$, but this, of course, returns the familiar “$0/0$” indeterminate form. So we employ a limit, as we did in Section 1.1.

margin: $h$ Average Velocity ft/s $1$ $-80$ $0.5$ $-72$ $0.1$ $-65.6$ $0.01$ $-64.16$ $0.001$ $-64.016$ Figure 2.1.1: Approximating the instantaneous velocity with average velocities over a small time period $h$. Λ

We can approximate the value of this limit numerically with small values of $h$ as seen in Figure 2.1.1. It looks as though the velocity is approaching $-64$ ft/s. Computing the limit directly gives

 $\displaystyle\lim_{h\to 0}\frac{f(2+h)-f(2)}{h}$ $\displaystyle=\lim_{h\to 0}\frac{-16(2+h)^{2}+150-(-16(2)^{2}+150)}{h}$ $\displaystyle=\lim_{h\to 0}\frac{-64h-16h^{2}}{h}$ $\displaystyle=\lim_{h\to 0}(-64-16h)$ $\displaystyle=-64.$
margin: Figure 2.1.2: Computing the difference quotient. Λ

Graphically, we can view the average velocities we computed numerically as the slopes of secant lines on the graph of $f$ going through the points $(2,f(2))$ and $(2+h,f(2+h))$, as in Figure 2.1.2. In Figure 2.1.3, the secant line corresponding to $h=1$ is shown in three contexts. Figure 2.1.3(a) shows a “zoomed out” version of $f$ with its secant line. In (b), we zoom in around the points of intersection between $f$ and the secant line. Notice how well this secant line approximates $f$ between those two points — it is a common practice to approximate functions with straight lines.

As $h\to 0$, these secant lines approach the tangent line, a line that goes through the point $(2,f(2))$ with the special slope of $-64$. In parts (c) and (d) of Figure 2.1.3, we zoom in around the point $(2,86)$. In (c) we see the secant line, which approximates $f$ well, but not as well the tangent line shown in (d).

We have just introduced a number of important concepts that we will flesh out more within this section. First, we formally define two of them.

###### Definition 2.1.1 Derivative at a Point

Let $f$ be a continuous function on an open interval $I$ and let $c$ be in $I$. The derivative of $f$ at $c$, denoted $f\,^{\prime}(c)$, is

 $\lim_{h\to 0}\frac{f(c+h)-f(c)}{h},$

provided the limit exists.

If the limit exists, we say that $f$ is differentiable at $c$; if the limit does not exist, then $f$ is not differentiable at $c$. If $f$ is differentiable at every point in $I$, then $f$ is differentiable on $I$.

###### Definition 2.1.2 Tangent Line

Let $f$ be continuous on an open interval $I$ and differentiable at $c$, for some $c$ in $I$. The line with equation $\ell(x)=f\,^{\prime}(c)(x-c)+f(c)$ is the tangent line to the graph of $f$ at $c$; that is, it is the line through $(c,f(c))$ whose slope is the derivative of $f$ at $c$.

Some examples will help us understand these definitions.

###### Example 2.1.1 Finding derivatives and tangent lines

Let $f(x)=3x^{2}+5x-7$. Find:

1. (a)

$f\,^{\prime}(1)$

2. (b)

The equation of the tangent line to the graph of $f$ at $x=1$.

3. (c)

$f\,^{\prime}(3)$

4. (d)

The equation of the tangent line to the graph $f$ at $x=3$.

Solution

1. (a)

We compute this directly using Definition 2.1.1.

 $\displaystyle f\,^{\prime}(1)$ $\displaystyle=\lim_{h\to 0}\frac{f(1+h)-f(1)}{h}$ $\displaystyle=\lim_{h\to 0}\frac{3(1+h)^{2}+5(1+h)-7-(3(1)^{2}+5(1)-7)}{h}$ $\displaystyle=\lim_{h\to 0}\frac{3h^{2}+11h}{h}$ $\displaystyle=\lim_{h\to 0}(3h+11)=11.$
2. (b)

The tangent line at $x=1$ has slope $f\,^{\prime}(1)$ and goes through the point $(1,f(1))=(1,1)$. Thus the tangent line has equation, in point-slope form, $y=11(x-1)+1$. In slope-intercept form we have $y=11x-10$.

3. (c)

Again, using the definition,

 $\displaystyle f\,^{\prime}(3)$ $\displaystyle=\lim_{h\to 0}\frac{f(3+h)-f(3)}{h}$ $\displaystyle=\lim_{h\to 0}\frac{3(3+h)^{2}+5(3+h)-7-(3(3)^{2}+5(3)-7)}{h}$ $\displaystyle=\lim_{h\to 0}\frac{3h^{2}+23h}{h}$ $\displaystyle=\lim_{h\to 0}(3h+23)$ $\displaystyle=23.$
4. (d)

The tangent line at $x=3$ has slope $23$ and goes through the point $(3,f(3))$, which is $(3,35)$. Thus the tangent line has equation $y=23(x-3)+35=23x-34$.

margin: Figure 2.1.4: A graph of $f(x)=3x^{2}+5x-7$ and its tangent lines at $x=1$ and $x=3$. Λ

A graph of $f$ is given in Figure 2.1.4 along with the tangent lines at $x=1$ and $x=3$.

Linear functions are easy to work with; many functions that arise in the course of solving real problems are not easy to work with. A common practice in mathematical problem solving is to approximate difficult functions with not-so-difficult functions. Lines are a common choice. It turns out that at any given point on the graph of a differentiable function $f$, the best linear approximation to $f$ is its tangent line. That is one reason we’ll spend considerable time finding tangent lines to functions.

One type of function that does not benefit from a tangent-line approximation is a line; it is rather simple to recognize that the tangent line to a line is the line itself. We look at this in the following example.

###### Example 2.1.2 Finding the Derivative of a Line

Consider $f(x)=3x+5$. Find the equation of the tangent line to $f$ at $x=1$ and $x=7$.

SolutionWe find the slope of the tangent line with Definition 2.1.1.

 $\displaystyle f\,^{\prime}(1)$ $\displaystyle=\lim_{h\to 0}\frac{f(1+h)-f(1)}{h}$ $\displaystyle=\lim_{h\to 0}\frac{3(1+h)+5-(3+5)}{h}$ $\displaystyle=\lim_{h\to 0}\frac{3h}{h}$ $\displaystyle=\lim_{h\to 0}3$ $\displaystyle=3.$

We just found that $f\,^{\prime}(1)=3$. That is, we found the instantaneous rate of change of $f(x)=3x+5$ is $3$. This is not surprising; lines are characterized by being the only functions with a constant rate of change. That rate of change is called the slope of the line. Since their rates of change are constant, their instantaneous rates of change are always the same; they are all the slope.

So given a line $f(x)=ax+b$, the derivative at any point $x$ will be $a$; that is, $f\,^{\prime}(x)=a$.

It is now easy to see that the tangent line to the graph of $f$ at $x=1$ is just $f$, with the same being true for $x=7$.

We often desire to find the tangent line to the graph of a function without knowing the actual derivative of the function. In these cases, the best we may be able to do is approximate the tangent line. We demonstrate this in the next example.

###### Example 2.1.3 Numerical Approximation of the Tangent Line

Approximate the equation of the tangent line to the graph of $f(x)=\sin x$ at $x=0$.

SolutionIn order to find the equation of the tangent line, we need a slope and a point. The point is given to us: $(0,\sin 0)=(0,0)$. To compute the slope, we need the derivative. This is where we will make an approximation. Recall that

 $f\,^{\prime}(0)\approx\frac{\sin(0+h)-\sin 0}{h}$

for a small value of $h$. We choose (somewhat arbitrarily) to let $h=0.1$. Thus margin: Figure 2.1.5: $f(x)=\sin x$ graphed with an approximation to its tangent line at $x=0$. Λ

 $f\,^{\prime}(0)\approx\frac{\sin(0.1)-\sin 0}{0.1}\approx 0.9983.$

Thus our approximation of the equation of the tangent line is $y=0.9983(x-0)+0=0.9983x$; it is graphed in Figure 2.1.5. The graph seems to imply the approximation is rather good.

Recall from Section 1.3 that $\displaystyle\lim_{x\to 0}\frac{\sin x}{x}=1$, meaning for values of $x$ near 0, $\sin x\approx x$. Since the slope of the line $y=x$ is 1 at $x=0$, it should seem reasonable that “the slope of $f(x)=\sin x$” is near 1 at $x=0$. In fact, since we approximated the value of the slope to be $0.9983$, we might guess the actual value is 1. We’ll come back to this later.

Consider again Example 2.1.1. To find the derivative of $f$ at $x=1$, we needed to evaluate a limit. To find the derivative of $f$ at $x=3$, we needed to again evaluate a limit. We have this process:

 $\begin{tabular}[]{c}input specific\\ number c\end{tabular}\longrightarrow\framebox{\begin{tabular}[]{c}do % something\\ to f and c\end{tabular}}\longrightarrow\begin{tabular}[]{c}return\\ number f\,^{\prime}(c)\end{tabular}$

This process describes a function; given one input (the value of $c$), we return exactly one output (the value of $f\,^{\prime}(c)$). The “do something” box is where the tedious work (taking limits) of this function occurs.

Instead of applying this function repeatedly for different values of $c$, let us apply it just once to the variable $x$. We then take a limit just once. The process now looks like:

 $\text{input variable x}\longrightarrow\framebox{\begin{tabular}[]{c}do % something\\ to f and x\end{tabular}}\longrightarrow\begin{tabular}[]{c}return\\ function f\,^{\prime}(x)\end{tabular}$

The output is the “derivative function,” $f\,^{\prime}(x)$. The $f\,^{\prime}(x)$ function will take a number $c$ as input and return the derivative of $f$ at $c$. This calls for a definition.

###### Definition 2.1.3 Derivative Function

Let $f$ be a differentiable function on an open interval $I$. The function

 $f\,^{\prime}(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$

is the derivative of $f$.

Notation:

Let $y=f(x)$. The following notations all represent the derivative:

 $f\,^{\prime}(x)\ =\ y\mkern 1.35mu ^{\prime}\ =\ \frac{\operatorname{d}\!y}{% \operatorname{d}\!x}\ =\ \frac{\operatorname{d}\!f}{\operatorname{d}\!x}\ =\ % \frac{\operatorname{d}\!}{\operatorname{d}\!x}(f)\ =\ \frac{\operatorname{d}\!% }{\operatorname{d}\!x}(y).$

Important: The notation $\displaystyle\frac{\operatorname{d}\!y}{\operatorname{d}\!x}$ is one symbol; it is not the fraction “$\operatorname{d}\!y/\operatorname{d}\!x$”. The notation, while somewhat confusing at first, was chosen with care. A fraction-looking symbol was chosen because the derivative has many fraction-like properties. Among other places, we see these properties at work when we talk about the units of the derivative, when we discuss the Chain Rule, and when we learn about integration (topics that appear in later sections and chapters).

Examples will help us understand this definition.

###### Example 2.1.4 Finding the derivative of a function

Let $f(x)=3x^{2}+5x-7$ as in Example 2.1.1. Find $f\,^{\prime}(x)$.

SolutionWe apply Definition 2.1.3.

 $\displaystyle f\,^{\prime}(x)$ $\displaystyle=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$ $\displaystyle=\lim_{h\to 0}\frac{3(x+h)^{2}+5(x+h)-7-(3x^{2}+5x-7)}{h}$ $\displaystyle=\lim_{h\to 0}\frac{3h^{2}+6xh+5h}{h}$ $\displaystyle=\lim_{h\to 0}(3h+6x+5)$ $\displaystyle=6x+5$

So $f\,^{\prime}(x)=6x+5$. Recall earlier we found that $f\,^{\prime}(1)=11$ and $f\,^{\prime}(3)=23$. Note our new computation of $f\,^{\prime}(x)$ affirm these facts.

###### Example 2.1.5 Finding the derivative of a function

Let $\displaystyle f(x)=\frac{1}{x+1}$. Find $f\,^{\prime}(x)$.

SolutionWe apply Definition 2.1.3.

 $\displaystyle f\,^{\prime}(x)$ $\displaystyle=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$ $\displaystyle=\lim_{h\to 0}\frac{\frac{1}{x+h+1}-\frac{1}{x+1}}{h}$ Now find a common denominator and subtract; factor $1/h$ out front to facilitate reading. $\displaystyle f\,^{\prime}(x)$ $\displaystyle=\lim_{h\to 0}\frac{1}{h}\cdot\left(\frac{x+1}{(x+1)(x+h+1)}-% \frac{x+h+1}{(x+1)(x+h+1)}\right)$ $\displaystyle=\lim_{h\to 0}\frac{1}{h}\cdot\left(\frac{x+1-(x+h+1)}{(x+1)(x+h+% 1)}\right)$ $\displaystyle=\lim_{h\to 0}\frac{1}{h}\cdot\left(\frac{-h}{(x+1)(x+h+1)}\right)$ $\displaystyle=\lim_{h\to 0}\frac{-1}{(x+1)(x+h+1)}$ $\displaystyle=\frac{-1}{(x+1)(x+1)}$ $\displaystyle=\frac{-1}{(x+1)^{2}}$

So $\displaystyle f\,^{\prime}(x)=\frac{-1}{(x+1)^{2}}$. To practice using our notation, we could also state

 $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\left(\frac{1}{x+1}\right)=\frac% {-1}{(x+1)^{2}}.$
###### Example 2.1.6 Finding the derivative of a function

Find the derivative of $f(x)=\sin x$.

SolutionBefore applying Definition 2.1.3, note that once the derivative is found, we can find the actual tangent line to $f(x)=\sin x$ at $x=0$, whereas we settled for an approximation in Example 2.1.3.

 $\displaystyle f\,^{\prime}(x)$ $\displaystyle=\lim_{h\to 0}\frac{\sin(x+h)-\sin x}{h}$ $\displaystyle\left(\text{\scriptsize\parbox{110.0pt}{\centering Use trig % identity \sin(x+h)=\sin x\cos h+\cos x\sin h\@add@centering}}\right)$ $\displaystyle=\lim_{h\to 0}\frac{\sin x\cos h+\cos x\sin h-\sin x}{h}$ (regroup) $\displaystyle=\lim_{h\to 0}\frac{\sin x(\cos h-1)+\cos x\sin h}{h}$ (split into two fractions) $\displaystyle=\lim_{h\to 0}\left(\frac{\sin x(\cos h-1)}{h}+\frac{\cos x\sin h% }{h}\right)$ $\displaystyle\left(\text{\scriptsize use \displaystyle\lim_{h\to 0}\frac{\cos h% -1}{h}=0 and \displaystyle\lim_{h\to 0}\frac{\sin h}{h}=1}\right)$ $\displaystyle=\sin x\cdot 0+\cos x\cdot 1$ $\displaystyle=\cos x\ .$

We have found that when $f(x)=\sin x$, $f\,^{\prime}(x)=\cos x$ (see Figure 2.1.6).

Initially, this might be somewhat surprising; the result of a tedious limit process and the sine function is a nice function. Then again, perhaps this is not entirely surprising. The sine function is periodic — it repeats itself on regular intervals. Therefore its rate of change also repeats itself on the same regular intervals. In fact, if we think about $f\,^{\prime}(x)$ as the slope of the tangent to the sine curve we notice the following

• when the slope of tangent lines is 0 then $f\,^{\prime}(x)=\cos x$ crosses the $x-$axis;

• when the slopes of the tangent lines are positive then $f\,^{\prime}$ lies above the $x-$axis; and

• when the slopes of the tangent lines are negative then $f\,^{\prime}$ lies below the $x-$axis.

We should have known the derivative would be periodic; we now know exactly which periodic function it is.

Thinking back to Example 2.1.3, we can find the slope of the tangent line to $f(x)=\sin x$ at $x=0$ using our derivative. We approximated the slope as $0.9983$; we now know the slope is exactly $\cos 0=1$.

###### Example 2.1.7 Finding the derivative of a piecewise defined function

Find the derivative of the absolute value function,

 $f(x)=\left\lvert x\right\rvert=\begin{cases}-x&x<0\\ x&x\geq 0.\end{cases}$

See Figure 2.1.7.

SolutionWe need to evaluate $\displaystyle\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}.$ As $f$ is piecewise-defined, we need to consider separately the limits when $x<0$ and when $x>0$.

margin: Figure 2.1.7: The absolute value function, $f(x)=\left\lvert x\right\rvert$. Notice how the slope of the lines (and hence the tangent lines) abruptly changes at $x=0$. Λ

When $x<0$:

 $\displaystyle\frac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}-x\bigr{)}$ $\displaystyle=\lim_{h\to 0}\frac{-(x+h)-(-x)}{h}$ $\displaystyle=\lim_{h\to 0}\frac{-h}{h}$ $\displaystyle=\lim_{h\to 0}-1$ $\displaystyle=-1.$

When $x>0$, a similar computation shows that $\displaystyle\frac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}x\bigr{)}=1$.

We need to also find the derivative at $x=0$. By the definition of the derivative at a point, we have

 $f\,^{\prime}(0)=\lim_{h\to 0}\frac{f(0+h)-f(0)}{h}.$

Since $x=0$ is the point where our function’s definition switches from one piece to the other, we need to consider left and right-hand limits. Consider the following, where we compute the left and right hand limits side by side.
$\displaystyle\lim_{h\to 0^{-}}\frac{f(0+h)-f(0)}{h}$ $\displaystyle=$ $\displaystyle\lim_{h\to 0^{-}}\frac{-h-0}{h}$ $\displaystyle=$ $\displaystyle\lim_{h\to 0^{-}}-1$ $\displaystyle=-1$   $\displaystyle\lim_{h\to 0^{+}}\frac{f(0+h)-f(0)}{h}$ $\displaystyle=$ $\displaystyle\lim_{h\to 0^{+}}\frac{h-0}{h}$ $\displaystyle=$ $\displaystyle\lim_{h\to 0^{+}}1$ $\displaystyle=1$
margin: Figure 2.1.8: A graph of the derivative of $f(x)=\left\lvert x\right\rvert$. Λ The last lines of each column tell the story: the left and right hand limits are not equal. Therefore the limit does not exist at 0, and $f$ is not differentiable at 0; see Figure 2.1.8. So we have

 $f\,^{\prime}(x)=\begin{cases}-1&x<0\\ 1&x>0\end{cases}.$

At $x=0$, $f\,^{\prime}(x)$ does not exist; there is a jump discontinuity at 0. So $f(x)=\left\lvert x\right\rvert$ is differentiable everywhere except at 0.

The point of non-differentiability came where the piecewise defined function switched from one piece to the other. Our next example shows that this does not always cause trouble.

###### Example 2.1.8 Finding the derivative of a piecewise defined function

Find the derivative of $f(x)$, where $\displaystyle f(x)=\begin{cases}\sin x&x\leq\pi/2\\ 1&x>\pi/2\end{cases}.$ See Figure 2.1.9.

SolutionUsing Example 2.1.6, we know that when $x<\pi/2$, $f\,^{\prime}(x)=\cos x$. It is easy to verify that when $x>\pi/2$, $f\,^{\prime}(x)=0$; consider:

margin: Figure 2.1.9: A graph of $f(x)$ as defined in Example 2.1.8. Λ
 $\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}=\lim_{h\to 0}\frac{1-1}{h}=\lim_{h\to 0}0=0.$

So far we have

 $f\,^{\prime}(x)=\begin{cases}\cos x&x<\pi/2\\ 0&x>\pi/2\end{cases}.$

We still need to find $f\,^{\prime}(\pi/2)$. Notice at $x=\pi/2$ that both pieces of $f\,^{\prime}$ are 0, meaning we can state that $f\,^{\prime}(\pi/2)=0$.

Being more rigorous, we can again evaluate the difference quotient limit at $x=\pi/2$, utilizing again left and right-hand limits:
$\displaystyle\lim_{h\to 0^{-}}\frac{f(\pi/2+h)-f(\pi/2)}{h}$ $\displaystyle=$ $\displaystyle\lim_{h\to 0^{-}}\frac{\sin(\pi/2+h)-\sin(\pi/2)}{h}$ $\displaystyle=$ $\displaystyle\lim_{h\to 0^{-}}{\frac{\sin(\frac{\pi}{2})\cos(h)+\sin(h)\cos(% \frac{\pi}{2})-\sin(\frac{\pi}{2})}{h}}$ $\displaystyle=$ $\displaystyle\lim_{h\to 0^{-}}\frac{1\cdot\cos(h)+\sin(h)\cdot 0-1}{h}$ $\displaystyle=$ $\displaystyle 0$   $\displaystyle\lim_{h\to 0^{+}}\frac{f(\pi/2+h)-f(\pi/2)}{h}$ $\displaystyle=$ $\displaystyle\lim_{h\to 0^{+}}\frac{1-1}{h}$ $\displaystyle=$ $\displaystyle\lim_{h\to 0^{+}}\frac{0}{h}$ $\displaystyle=$ $\displaystyle 0$

margin: Figure 2.1.10: A graph of $f\,^{\prime}(x)$ in Example 2.1.8. Λ

Since both the left and right hand limits are 0 at $x=\pi/2$, the limit exists and $f\,^{\prime}(\pi/2)$ exists (and is 0). Therefore we can fully write $f\,^{\prime}$ as

 $f\,^{\prime}(x)=\begin{cases}\cos x&x\leq\pi/2\\ 0&x>\pi/2\end{cases}.$

See Figure 2.1.10 for a graph of this function.

Recall we pseudo-defined a continuous function as one in which we could sketch its graph without lifting our pencil. We can give a pseudo-definition for differentiability as well: it is a continuous function that does not have any “sharp corners.” One such sharp corner is shown in Figure 2.1.7. Even though the function $f$ in Example 2.1.8 is piecewise-defined, the transition is “smooth” hence it is differentiable. Note how in the graph of $f$ in Figure 2.1.9 it is difficult to tell when $f$ switches from one piece to the other; there is no “corner.”

To better understand the definition of a derivative, experiment with the Geogebra app at http://mathinsight.org/applet/secant_line_slope.

This section defined the derivative; in some sense, it answers the question of “What is the derivative?” The next section addresses the question “What does the derivative mean?”

## Exercises 2.1

### Terms and Concepts

1. 1.

T/F: Let $f$ be a position function. The average rate of change on $[a,b]$ is the slope of the line through the points $(a,f(a))$ and $(b,f(b))$.

2. 2.

In your own words, explain the difference between the average rate of change and instantaneous rate of change.

3. 3.

In your own words, explain the difference between Definitions 2.1.1 and 2.1.3.

4. 4.

Let $y=f(x)$. Give three different notations equivalent to “$f\,^{\prime}(x)$.”

### Problems

In Exercises 5–14.,

1. (a)

use the definition of the derivative to compute the derivative of the given function.

2. (b)

Find the tangent line to the graph of the given function at $x=c$.

1. 5.

$\displaystyle f(x)=6$ at $x=-2$

2. 6.

$\displaystyle f(x)=2x$ at $x=3$

3. 7.

$\displaystyle f(x)=4-3x$ at $x=7$

4. 8.

$\displaystyle g(x)=x^{2}$ at $x=-2$

5. 9.

$h(x)=2x-x^{2}$ at $x=1$

6. 10.

$\displaystyle f(x)=3x^{2}-x+4$ at $x=-1$

7. 11.

$g(x)=\sqrt{x+3}$ at $x=1$

8. 12.

$\displaystyle r(x)=\frac{1}{x}$ at $x=-2$

9. 13.

$h(x)=\dfrac{3}{\sqrt{x}}$ at $x=4$

10. 14.

$f(x)=\dfrac{1}{x-2}$ at $x=3$

In Exercises 15–18., each limit represents the derivative of some function, $f$, at some number $c$. State an appropriate $f$ and $c$ for each.

1. 15.

$\displaystyle\lim_{h\to 0}\frac{\sqrt{16+h}-4}{h}$

2. 16.

$\displaystyle\lim_{h\to 0}\frac{(3+h)^{4}-81}{h}$

3. 17.

$\displaystyle\lim_{h\to 0}\frac{\frac{1}{2+h}-\frac{1}{2}}{h}$

4. 18.

$\displaystyle\lim_{h\to 0}\frac{\cos(-\pi+h)+1}{h}$

In Exercises 19–24., a function $f$ and an $x$-value $a$ are given. Approximate the equation of the tangent line to the graph of $f$ at $x=a$ by numerically approximating $f\,^{\prime}(a)$, using $h=0.1$.

1. 19.

$f(x)=x^{2}+2x+1$, $x=3$

2. 20.

$\displaystyle f(x)=\sqrt{x}$, $x=4$

3. 21.

$\displaystyle f(x)=\frac{10}{x+1}$, $x=9$

4. 22.

$\displaystyle f(x)=e^{x}$, $x=2$

5. 23.

$\displaystyle f(x)=\ln x$, $x=2$

6. 24.

$\displaystyle f(x)=\cos x$, $x=0$

1. 25.
The graph of $f(x)=x^{2}-1$ is shown. (a) Use the graph to approximate the slope of the tangent line to $f$ at the following points: $(-1,0)$, $(0,-1)$ and $(2,3)$. (b) Using the definition, find $f\,^{\prime}(x)$. (c) Find the slope of the tangent line at the points $(-1,0)$, $(0,-1)$ and $(2,3)$.
2. 26.
The graph of $\displaystyle f(x)=\frac{1}{x+1}$ is shown. (a) Use the graph to approximate the slope of the tangent line to $f$ at the following points: $(0,1)$ and $(1,0.5)$. (b) Using the definition, find $f\,^{\prime}(x)$. (c) Find the slope of the tangent line at the points $(0,1)$ and $(1,0.5)$.

In Exercises 27–32., a graph of a function $f(x)$ is given. Using the graph, sketch $f\,^{\prime}(x)$.

1. 27.
2. 28.
3. 29.
4. 30.
5. 31.
6. 32.

In Exercises 33–34., a graph of $g(x)$ is given. Using the graph, answer the following questions.

1. (a)

Where is $g(x)>0$?

2. (b)

Where is $g(x)<0$?

3. (c)

Where is $g(x)=0$?

4. (d)

Where is $g^{\prime}(x)>0$?

5. (e)

Where is $g^{\prime}(x)<0$?

6. (f)

Where is $g^{\prime}(x)=0$?

1. 33.
2. 34.
1. 35.
Suppose that $f(x)$ is defined on an open interval containing the number $c$. Suppose that the limit $\lim_{h\to 0}\frac{f(c+h)-f(c)}{h}$ exists. Show that $f(x)$ is continuous at $x=c$. This shows that we could drop the assumption that $f(x)$ is continuous at $x=c$ in the definition of $f\,^{\prime}(c)$.

### Review

1. 36.

Approximate $\displaystyle\lim_{x\to 5}\frac{x^{2}+2x-35}{x^{2}-10.5x+27.5}$.

2. 37.

Use the Bisection Method to approximate, accurate to two decimal places, the root of $g(x)=x^{3}+x^{2}+x-1$ on $[0.5,0.6]$.

3. 38.
Give intervals on which each of the following functions are continuous. (a) $\displaystyle\frac{1}{e^{x}+1}$ (b) $\displaystyle\frac{1}{x^{2}-1}$ (c) $\displaystyle\sqrt{5-x}\phantom{\frac{1}{e^{x}+1}}$ (d) $\displaystyle\sqrt{5-x^{2}}\phantom{\frac{1}{x^{2}-1}}$
4. 39.
Use the graph of $f(x)$ provided to answer the following. (a) $\displaystyle\lim_{x\to-3^{-}}f(x)=$? (b) $\displaystyle\lim_{x\to-3^{+}}f(x)=$? (c) $\displaystyle\lim_{x\to-3}f(x)=$? (d) Where is $f$ continuous? 