### Learning Objectives

- Define the derivative function of a given function.
- Graph a derivative function from the graph of a given function.
- State the connection between derivatives and continuity.
- Describe three conditions for when a function does not have a derivative.
- Explain the meaning of a higher-order derivative.

As we have seen, the derivative of a function at a given point gives us the rate of change or slope of the tangent line to the function at that point. If we differentiate a position function at a given time, we obtain the velocity at that time. It seems reasonable to conclude that knowing the derivative of the function at every point would produce valuable information about the behavior of the function. However, the process of finding the derivative at even a handful of values using the techniques of the preceding section would quickly become quite tedious. In this section we define the derivative function and learn a process for finding it.

# Derivative Functions

The derivative function gives the derivative of a function at each point in the domain of the original function for which the derivative is defined. We can formally define a derivative function as follows.

### Definition

Let [latex]f[/latex] be a function. The **derivative function**, denoted by [latex]f^{\prime}[/latex], is the function whose domain consists of those values of [latex]x[/latex] such that the following limit exists:

A function [latex]f(x)[/latex] is said to be **differentiable at [latex]a[/latex]** if

[latex]f^{\prime}(a)[/latex] exists. More generally, a function is said to be **differentiable on [latex]S[/latex]** if it is differentiable at every point in an open set [latex]S[/latex], and a **differentiable function** is one in which [latex]f^{\prime}(x)[/latex] exists on its domain.

In the next few examples we use (Figure) to find the derivative of a function.

### Finding the Derivative of a Square-Root Function

Find the derivative of [latex]f(x)=\sqrt{x}[/latex].

### Finding the Derivative of a Quadratic Function

Find the derivative of the function [latex]f(x)=x^2-2x[/latex].

Find the derivative of [latex]f(x)=x^2[/latex].

We use a variety of different notations to express the derivative of a function. In (Figure) we showed that if [latex]f(x)=x^2-2x[/latex], then [latex]f^{\prime}(x)=2x-2[/latex]. If we had expressed this function in the form [latex]y=x^2-2x[/latex], we could have expressed the derivative as [latex]y^{\prime}=2x-2[/latex] or [latex]\frac{dy}{dx}=2x-2[/latex]. We could have conveyed the same information by writing [latex]\frac{d}{dx}(x^2-2x)=2x-2[/latex]. Thus, for the function [latex]y=f(x)[/latex], each of the following notations represents the derivative of [latex]f(x)[/latex]:

In place of [latex]f^{\prime}(a)[/latex] we may also use [latex]\frac{dy}{dx}\Big|_{x=a}[/latex] Use of the [latex]\frac{dy}{dx}[/latex] notation (called Leibniz notation) is quite common in engineering and physics. To understand this notation better, recall that the derivative of a function at a point is the limit of the slopes of secant lines as the secant lines approach the tangent line. The slopes of these secant lines are often expressed in the form [latex]\frac{\Delta y}{\Delta x}[/latex] where [latex]\Delta y[/latex] is the difference in the [latex]y[/latex] values corresponding to the difference in the [latex]x[/latex] values, which are expressed as [latex]\Delta x[/latex] ((Figure)). Thus the derivative, which can be thought of as the instantaneous rate of change of [latex]y[/latex] with respect to [latex]x[/latex], is expressed as

# Graphing a Derivative

We have already discussed how to graph a function, so given the equation of a function or the equation of a derivative function, we could graph it. Given both, we would expect to see a correspondence between the graphs of these two functions, since [latex]f^{\prime}(x)[/latex] gives the rate of change of a function [latex]f(x)[/latex] (or slope of the tangent line to [latex]f(x)[/latex]).

In (Figure) we found that for [latex]f(x)=\sqrt{x}, \, f^{\prime}(x)=1/2\sqrt{x}[/latex]. If we graph these functions on the same axes, as in (Figure), we can use the graphs to understand the relationship between these two functions. First, we notice that [latex]f(x)[/latex] is increasing over its entire domain, which means that the slopes of its tangent lines at all points are positive. Consequently, we expect [latex]f^{\prime}(x)>0[/latex] for all values of [latex]x[/latex] in its domain. Furthermore, as [latex]x[/latex] increases, the slopes of the tangent lines to [latex]f(x)[/latex] are decreasing and we expect to see a corresponding decrease in [latex]f^{\prime}(x)[/latex]. We also observe that [latex]f(0)[/latex] is undefined and that [latex]\underset{x\to 0^+}{\lim}f^{\prime}(x)=+\infty[/latex], corresponding to a vertical tangent to [latex]f(x)[/latex] at 0.

In (Figure) we found that for [latex]f(x)=x^2-2x, \, f^{\prime}(x)=2x-2[/latex]. The graphs of these functions are shown in (Figure). Observe that [latex]f(x)[/latex] is decreasing for [latex]x<1[/latex]. For these same values of [latex]x, \, f^{\prime}(x)<0[/latex]. For values of [latex]x>1, \, f(x)[/latex] is increasing and [latex]f^{\prime}(x)>0[/latex]. Also, [latex]f(x)[/latex] has a horizontal tangent at [latex]x=1[/latex] and [latex]f^{\prime}(1)=0[/latex].

### Sketching a Derivative Using a Function

Use the following graph of [latex]f(x)[/latex] to sketch a graph of [latex]f^{\prime}(x)[/latex].

Sketch the graph of [latex]f(x)=x^2-4[/latex]. On what interval is the graph of [latex]f^{\prime}(x)[/latex] above the [latex]x[/latex]-axis?

#### Hint

The graph of [latex]f^{\prime}(x)[/latex] is positive where [latex]f(x)[/latex] is increasing.

# Derivatives and Continuity

Now that we can graph a derivative, let’s examine the behavior of the graphs. First, we consider the relationship between differentiability and continuity. We will see that if a function is differentiable at a point, it must be continuous there; however, a function that is continuous at a point need not be differentiable at that point. In fact, a function may be continuous at a point and fail to be differentiable at the point for one of several reasons.

### Differentiability Implies Continuity

Let [latex]f(x)[/latex] be a function and [latex]a[/latex] be in its domain. If [latex]f(x)[/latex] is differentiable at [latex]a[/latex], then [latex]f[/latex] is continuous at [latex]a[/latex].

## Proof

If [latex]f(x)[/latex] is differentiable at [latex]a[/latex], then [latex]f^{\prime}(a)[/latex] exists and

We want to show that [latex]f(x)[/latex] is continuous at [latex]a[/latex] by showing that [latex]\underset{x\to a}{\lim}f(x)=f(a)[/latex]. Thus,

Therefore, since [latex]f(a)[/latex] is defined and [latex]\underset{x\to a}{\lim}f(x)=f(a)[/latex], we conclude that [latex]f[/latex] is continuous at [latex]a[/latex]. [latex]_\blacksquare[/latex]

We have just proven that differentiability implies continuity, but now we consider whether continuity implies differentiability. To determine an answer to this question, we examine the function [latex]f(x)=|x|[/latex]. This function is continuous everywhere; however, [latex]f^{\prime}(0)[/latex] is undefined. This observation leads us to believe that continuity does not imply differentiability. Let’s explore further. For [latex]f(x)=|x|[/latex],

This limit does not exist because

See (Figure).

Let’s consider some additional situations in which a continuous function fails to be differentiable. Consider the function [latex]f(x)=\sqrt[3]{x}[/latex]:

Thus [latex]f^{\prime}(0)[/latex] does not exist. A quick look at the graph of [latex]f(x)=\sqrt[3]{x}[/latex] clarifies the situation. The function has a vertical tangent line at 0 ((Figure)).

The function [latex]f(x)=\begin{cases} x \sin(\frac{1}{x}) & \text{if} \, x \ne 0 \\ 0 & \text{if} \, x = 0 \end{cases}[/latex] also has a derivative that exhibits interesting behavior at 0. We see that

This limit does not exist, essentially because the slopes of the secant lines continuously change direction as they approach zero ((Figure)).

In summary:

- We observe that if a function is not continuous, it cannot be differentiable, since every differentiable function must be continuous. However, if a function is continuous, it may still fail to be differentiable.
- We saw that [latex]f(x)=|x|[/latex] failed to be differentiable at 0 because the limit of the slopes of the tangent lines on the left and right were not the same. Visually, this resulted in a sharp corner on the graph of the function at 0. From this we conclude that in order to be differentiable at a point, a function must be “smooth” at that point.
- As we saw in the example of [latex]f(x)=\sqrt[3]{x}[/latex], a function fails to be differentiable at a point where there is a vertical tangent line.
- As we saw with [latex]f(x)=\begin{cases} x \sin(\frac{1}{x}) & \text{if} \, x \ne 0 \\ 0 & \text{if} \, x = 0 \end{cases}[/latex] a function may fail to be differentiable at a point in more complicated ways as well.

### A Piecewise Function that is Continuous and Differentiable

A toy company wants to design a track for a toy car that starts out along a parabolic curve and then converts to a straight line ((Figure)). The function that describes the track is to have the form [latex]f(x)=\begin{cases} \frac{1}{10}x^2 + bx + c & \text{if} \, x < -10 \\ -\frac{1}{4}x + \frac{5}{2} & \text{if} \, x \ge -10 \end{cases}[/latex], where [latex]x[/latex] and [latex]f(x)[/latex] are in inches. For the car to move smoothly along the track, the function [latex]f(x)[/latex] must be both continuous and differentiable at -10. Find values of [latex]b[/latex] and [latex]c[/latex] that make [latex]f(x)[/latex] both continuous and differentiable.

Find values of [latex]a[/latex] and [latex]b[/latex] that make [latex]f(x)=\begin{cases} ax+b & \text{if} \, x < 3 \\ x^2 & \text{if} \, x \ge 3 \end{cases}[/latex] both continuous and differentiable at 3.

#### Hint

Use (Figure) as a guide.

# Higher-Order Derivatives

The derivative of a function is itself a function, so we can find the derivative of a derivative. For example, the derivative of a position function is the rate of change of position, or velocity. The derivative of velocity is the rate of change of velocity, which is acceleration. The new function obtained by differentiating the derivative is called the second derivative. Furthermore, we can continue to take derivatives to obtain the third derivative, fourth derivative, and so on. Collectively, these are referred to as **higher-order derivatives**. The notation for the higher-order derivatives of [latex]y=f(x)[/latex] can be expressed in any of the following forms:

It is interesting to note that the notation for [latex]\frac{d^2y}{dx^2}[/latex] may be viewed as an attempt to express [latex]\frac{d}{dx}(\frac{dy}{dx})[/latex] more compactly. Analogously, [latex]\frac{d}{dx}(\frac{d}{dx}(\frac{dy}{dx}))=\frac{d}{dx}(\frac{d^2y}{dx^2})=\frac{d^3y}{dx^3}[/latex].

### Finding a Second Derivative

For [latex]f(x)=2x^2-3x+1[/latex], find [latex]f''(x)[/latex].

Find [latex]f''(x)[/latex] for [latex]f(x)=x^2[/latex].

#### Hint

We found [latex]f^{\prime}(x)=2x[/latex] in a previous checkpoint. Use (Figure) to find the derivative of [latex]f^{\prime}(x)[/latex]

### Finding Acceleration

The position of a particle along a coordinate axis at time [latex]t[/latex] (in seconds) is given by [latex]s(t)=3t^2-4t+1[/latex] (in meters). Find the function that describes its acceleration at time [latex]t[/latex].

For [latex]s(t)=t^3[/latex], find [latex]a(t)[/latex].

#### Hint

Use (Figure) as a guide.

### Key Concepts

- The derivative of a function [latex]f(x)[/latex] is the function whose value at [latex]x[/latex] is [latex]f^{\prime}(x)[/latex].
- The graph of a derivative of a function [latex]f(x)[/latex] is related to the graph of [latex]f(x)[/latex]. Where [latex]f(x)[/latex] has a tangent line with positive slope, [latex]f^{\prime}(x)>0[/latex]. Where [latex]f(x)[/latex] has a tangent line with negative slope, [latex]f^{\prime}(x)<0[/latex]. Where [latex]f(x)[/latex] has a horizontal tangent line, [latex]f^{\prime}(x)=0[/latex].
- If a function is differentiable at a point, then it is continuous at that point. A function is not differentiable at a point if it is not continuous at the point, if it has a vertical tangent line at the point, or if the graph has a sharp corner or cusp.
- Higher-order derivatives are derivatives of derivatives, from the second derivative to the [latex]n\text{th}[/latex] derivative.

# Key Equations

**The derivative function**

[latex]f^{\prime}(x)=\underset{h\to 0}{\lim}\frac{f(x+h)-f(x)}{h}[/latex]

For the following exercises, use the definition of a derivative to find [latex]f^{\prime}(x)[/latex].

**1. **[latex]f(x)=6[/latex]

**2. **[latex]f(x)=2-3x[/latex]

**3. **[latex]f(x)=\frac{2x}{7}+1[/latex]

**4. **[latex]f(x)=4x^2[/latex]

**5. **[latex]f(x)=5x-x^2[/latex]

**6. **[latex]f(x)=\sqrt{2x}[/latex]

**7. **[latex]f(x)=\sqrt{x-6}[/latex]

**8. **[latex]f(x)=\frac{9}{x}[/latex]

**9. **[latex]f(x)=x+\frac{1}{x}[/latex]

**10. **[latex]f(x)=\frac{1}{\sqrt{x}}[/latex]

For the following exercises, use the graph of [latex]y=f(x)[/latex] to sketch the graph of its derivative [latex]f^{\prime}(x)[/latex].

**11.**

**12.**

**13.**

**14.**

For the following exercises, the given limit represents the derivative of a function [latex]y=f(x)[/latex] at [latex]x=a[/latex]. Find [latex]f(x)[/latex] and [latex]a[/latex].

**15. **[latex]\underset{h\to 0}{\lim}\frac{(1+h)^{2/3}-1}{h}[/latex]

**16. **[latex]\underset{h\to 0}{\lim}\frac{[3(2+h)^2+2]-14}{h}[/latex]

**17. **[latex]\underset{h\to 0}{\lim}\frac{\cos(\pi+h)+1}{h}[/latex]

**18. **[latex]\underset{h\to 0}{\lim}\frac{(2+h)^4-16}{h}[/latex]

**19. **[latex]\underset{h\to 0}{\lim}\frac{[2(3+h)^2-(3+h)]-15}{h}[/latex]

**20. **[latex]\underset{h\to 0}{\lim}\frac{e^h-1}{h}[/latex]

For the following functions,

- sketch the graph and
- use the definition of a derivative to show that the function is not differentiable at [latex]x=1[/latex].

**21. **[latex]f(x)=\begin{cases} 2\sqrt{x} & \text{if} \, 0 \le x \le 1 \\ 3x-1 & \text{if} \, x>1 \end{cases}[/latex]

**22. **[latex]f(x)=\begin{cases} 3 & \text{if} \, x<1 \\ 3x & \text{if} \, x \ge 1 \end{cases}[/latex]

**23. **[latex]f(x)=\begin{cases} -x^2+2 & \text{if} \, x \le 1 \\ x & \text{if} \, x>1 \end{cases}[/latex]

**24. **[latex]f(x)=\begin{cases} 2x & \text{if} x \le 1 \\ \frac{2}{x} & \text{if} \, x>1 \end{cases}[/latex]

For the following graphs,

- determine for which values of [latex]x=a[/latex] the [latex]\underset{x\to a}{\lim}f(x)[/latex] exists but [latex]f[/latex] is not continuous at [latex]x=a[/latex], and
- determine for which values of [latex]x=a[/latex] the function is continuous but not differentiable at [latex]x=a[/latex].

**25.**

**26.**

**27. **Use the graph to evaluate a. [latex]f^{\prime}(-0.5)[/latex], b. [latex]f^{\prime}(0)[/latex], c. [latex]f^{\prime}(1)[/latex], d. [latex]f^{\prime}(2)[/latex], and e. [latex]f^{\prime}(3)[/latex], if they exist.

For the following functions, use [latex]f''(x)=\underset{h\to 0}{\lim}\frac{f^{\prime}(x+h)-f^{\prime}(x)}{h}[/latex] to find [latex]f''(x)[/latex].

**28. **[latex]f(x)=2-3x[/latex]

**29. **[latex]f(x)=4x^2[/latex]

**30. **[latex]f(x)=x+\frac{1}{x}[/latex]

For the following exercises, use a calculator to graph [latex]f(x)[/latex]. Determine the function [latex]f^{\prime}(x)[/latex], then use a calculator to graph [latex]f^{\prime}(x)[/latex].

**31. [T] **[latex]f(x)=-\frac{5}{x}[/latex]

**32. [T] **[latex]f(x)=3x^2+2x+4[/latex]

**33. [T] **[latex]f(x)=\sqrt{x}+3x[/latex]

**34. [T] **[latex]f(x)=\frac{1}{\sqrt{2x}}[/latex]

**35. [T] **[latex]f(x)=1+x+\frac{1}{x}[/latex]

**36. [T] **[latex]f(x)=x^3+1[/latex]

For the following exercises, describe what the two expressions represent in terms of each of the given situations. Be sure to include units.

- [latex]\frac{f(x+h)-f(x)}{h}[/latex]
- [latex]f^{\prime}(x)=\underset{h\to 0}{\lim}\frac{f(x+h)-f(x)}{h}[/latex]

**37. **[latex]P(x)[/latex] denotes the population of a city at time [latex]x[/latex] in years.

**38. **[latex]C(x)[/latex] denotes the total amount of money (in thousands of dollars) spent on concessions by [latex]x[/latex] customers at an amusement park.

**39. **[latex]R(x)[/latex] denotes the total cost (in thousands of dollars) of manufacturing [latex]x[/latex] clock radios.

**40. **[latex]g(x)[/latex] denotes the grade (in percentage points) received on a test, given [latex]x[/latex] hours of studying.

**41. **[latex]B(x)[/latex] denotes the cost (in dollars) of a sociology textbook at university bookstores in the United States in [latex]x[/latex] years since 1990.

**42. **[latex]p(x)[/latex] denotes atmospheric pressure at an altitude of [latex]x[/latex] feet.

**43. **Sketch the graph of a function [latex]y=f(x)[/latex] with all of the following properties:

- [latex]f^{\prime}(x)>0[/latex] for [latex]-2\le x<1[/latex]
- [latex]f^{\prime}(2)=0[/latex]
- [latex]f^{\prime}(x)>0[/latex] for [latex]x>2[/latex]
- [latex]f(2)=2[/latex] and [latex]f(0)=1[/latex]
- [latex]\underset{x\to −\infty}{\lim}f(x)=0[/latex] and [latex]\underset{x\to \infty}{\lim}f(x)=\infty[/latex]
- [latex]f^{\prime}(1)[/latex] does not exist.

**44. **Suppose temperature [latex]T[/latex] in degrees Fahrenheit at a height [latex]x[/latex] in feet above the ground is given by [latex]y=T(x)[/latex].

- Give a physical interpretation, with units, of [latex]T^{\prime}(x)[/latex].
- If we know that [latex]{T}^{\prime }(1000)=-0.1,[/latex] explain the physical meaning.

**45. **Suppose the total profit of a company is [latex]y=P(x)[/latex] thousand dollars when [latex]x[/latex] units of an item are sold.

- What does [latex]\frac{P(b)-P(a)}{b-a}[/latex] for [latex]0<a<b[/latex] measure, and what are the units?
- What does [latex]P^{\prime}(x)[/latex] measure, and what are the units?
- Suppose that [latex]P^{\prime}(30)=5[/latex]. What is the approximate change in profit if the number of items sold increases from 30 to 31?

**46. **The graph in the following figure models the number of people [latex]N(t)[/latex] who have come down with the flu [latex]t[/latex] weeks after its initial outbreak in a town with a population of 50,000 citizens.

- Describe what [latex]N^{\prime}(t)[/latex] represents and how it behaves as [latex]t[/latex] increases.
- What does the derivative tell us about how this town is affected by the flu outbreak?

For the following exercises, use the following table, which shows the height [latex]h[/latex] of the Saturn V rocket for the Apollo 11 mission [latex]t[/latex] seconds after launch.

Time (seconds) | Height (meters) |
---|---|

0 | 0 |

1 | 2 |

2 | 4 |

3 | 13 |

4 | 25 |

5 | 32 |

**47. **What is the physical meaning of [latex]h^{\prime}(t)[/latex]? What are the units?

**48. [T]** Construct a table of values for [latex]h^{\prime}(t)[/latex] and graph both [latex]h(t)[/latex] and [latex]h^{\prime}(t)[/latex] on the same graph. (*Hint:* for interior points, estimate both the left limit and right limit and average them.)

**49. [T]** The best linear fit to the data is given by [latex]H(t)=7.229t-4.905[/latex], where [latex]H[/latex] is the height of the rocket (in meters) and [latex]t[/latex] is the time elapsed since takeoff. From this equation, determine [latex]H^{\prime}(t)[/latex]. Graph [latex]H(t)[/latex] with the given data and, on a separate coordinate plane, graph [latex]H^{\prime}(t)[/latex].

**50. [T]** The best quadratic fit to the data is given by [latex]G(t)=1.429t^2+0.0857t-0.1429[/latex], where [latex]G[/latex] is the height of the rocket (in meters) and [latex]t[/latex] is the time elapsed since takeoff. From this equation, determine [latex]G^{\prime}(t)[/latex]. Graph [latex]G(t)[/latex] with the given data and, on a separate coordinate plane, graph [latex]G^{\prime}(t)[/latex].

**51. [T]** The best cubic fit to the data is given by [latex]F(t)=0.2037t^3+2.956t^2-2.705t+0.4683[/latex], where [latex]F[/latex] is the height of the rocket (in m) and [latex]t[/latex] is the time elapsed since take off. From this equation, determine [latex]F^{\prime}(t)[/latex]. Graph [latex]F(t)[/latex] with the given data and, on a separate coordinate plane, graph [latex]F^{\prime}(t)[/latex]. Does the linear, quadratic, or cubic function fit the data best?

**52. **Using the best linear, quadratic, and cubic fits to the data, determine what [latex]H''(t), \, G''(t)[/latex], and [latex]F''(t)[/latex] are. What are the physical meanings of [latex]H''(t), \, G''(t)[/latex], and [latex]F''(t)[/latex], and what are their units?

## Glossary

- derivative function
- gives the derivative of a function at each point in the domain of the original function for which the derivative is defined

- differentiable at [latex]a[/latex]
- a function for which [latex]f^{\prime}(a)[/latex] exists is differentiable at [latex]a[/latex]

- differentiable on [latex]S[/latex]
- a function for which [latex]f^{\prime}(x)[/latex] exists for each [latex]x[/latex] in the open set [latex]S[/latex] is differentiable on [latex]S[/latex]

- differentiable function
- a function for which [latex]f^{\prime}(x)[/latex] exists is a differentiable function

- higher-order derivative
- a derivative of a derivative, from the second derivative to the [latex]n[/latex]th derivative, is called a higher-order derivative

## Hint

Use (Figure) and follow the example.