## Finding the Average Rate of Change of a Function

The functions describing the examples above involve a change over time. Change divided by time is one example of a rate. The rates of change in the previous examples are each different. In other words, some changed faster than others. If we were to graph the functions, we could compare the rates by determining the slopes of the graphs.

A **tangent line** to a curve is a line that intersects the curve at only a single point but does not cross it there. (The tangent line may intersect the curve at another point away from the point of interest.) If we zoom in on a curve at that point, the curve appears linear, and the **slope of the curve** at that point is close to the slope of the tangent line at that point.

Figure 1 represents the function [latex]f\left(x\right)={x}^{3}-4x[/latex]. We can see the slope at various points along the curve.

- slope at [latex]x=-2[/latex] is 8
- slope at [latex]x=-1[/latex] is –1
- slope at [latex]x=2[/latex] is 8

Graph showing tangents to curve at –2, –1, and 2.

Let’s imagine a point on the curve of function [latex]f[/latex] at [latex]x=a[/latex] as shown in Figure 2. The coordinates of the point are [latex]\left(a,f\left(a\right)\right)[/latex]. Connect this point with a second point on the curve a little to the right of [latex]x=a[/latex], with an *x*-value increased by some small real number [latex]h[/latex]. The coordinates of this second point are [latex]\left(a+h,f\left(a+h\right)\right)[/latex] for some positive-value [latex]h[/latex].

We can calculate the slope of the line connecting the two points [latex]\left(a,f\left(a\right)\right)[/latex] and [latex]\left(a+h,f\left(a+h\right)\right)[/latex], called a **secant line**, by applying the slope formula,

[latex]\text{slope = }\frac{\text{change in }y}{\text{change in }x}[/latex]

We use the notation [latex]{m}_{\sec }[/latex] to represent the slope of the secant line connecting two points.

The slope [latex]{m}_{\sec }[/latex] equals the *average rate of change* between two points [latex]\left(a,f\left(a\right)\right)[/latex] and [latex]\left(a+h,f\left(a+h\right)\right)[/latex].

### A General Note: The Average Rate of Change between Two Points on a Curve

The **average rate of change** (AROC) between two points [latex]\left(a,f\left(a\right)\right)[/latex] and [latex]\left(a+h,f\left(a+h\right)\right)[/latex] on the curve of [latex]f[/latex] is the slope of the line connecting the two points and is given by

### Example 1: Finding the Average Rate of Change

Find the average rate of change connecting the points [latex]\left(2,-6\right)[/latex] and [latex]\left(-1,5\right)[/latex].

### Solution

We know the average rate of change connecting two points may be given by

If one point is [latex]\left(2,-6\right)[/latex], or [latex]\left(2,f\left(2\right)\right)[/latex], then [latex]f\left(2\right)=-6[/latex].

The value [latex]h[/latex] is the displacement from [latex]2[/latex] to [latex]-1[/latex], which equals [latex]-1 - 2=-3[/latex].

For the other point, [latex]f\left(a+h\right)[/latex] is the *y*-coordinate at [latex]a+h[/latex], which is [latex]2+\left(-3\right)[/latex] or [latex]-1[/latex], so [latex]f\left(a+h\right)=f\left(-1\right)=5[/latex].

### Try It 1

Find the average rate of change connecting the points [latex]\left(-5,1.5\right)[/latex] and [latex]\left(-2.5,9\right)[/latex].

## Understanding the Instantaneous Rate of Change

Now that we can find the average rate of change, suppose we make [latex]h[/latex] in Figure 3 smaller and smaller. Then [latex]a+h[/latex] will approach [latex]a[/latex] as [latex]h[/latex] gets smaller, getting closer and closer to 0. Likewise, the second point [latex]\left(a+h,f\left(a+h\right)\right)[/latex] will approach the first point, [latex]\left(a,f\left(a\right)\right)[/latex]. As a consequence, the connecting line between the two points, called the secant line, will get closer and closer to being a tangent to the function at [latex]x=a[/latex], and the slope of the secant line will get closer and closer to the slope of the tangent at [latex]x=a[/latex].

The connecting line between two points moves closer to being a tangent line at [latex]x=a[/latex].

Because we are looking for the **slope of the tangent** at [latex]x=a[/latex], we can think of the measure of the slope of the curve of a function [latex]f[/latex] at a given point as the rate of change at a particular instant. We call this slope the **instantaneous rate of change**, or the **derivative** of the function at [latex]x=a[/latex]. Both can be found by finding the limit of the slope of a line connecting the point at [latex]x=a[/latex] with a second point infinitesimally close along the curve. For a function [latex]f[/latex] both the instantaneous rate of change of the function and the derivative of the function at [latex]x=a[/latex] are written as [latex]f\text{‘}\left(a\right)[/latex], and we can define them as a **two-sided limit** that has the same value whether approached from the left or the right.

The expression by which the limit is found is known as the **difference quotient**.

### A General Note: Definition of Instantaneous Rate of Change and Derivative

The **derivative**, or **instantaneous rate of change**, of a function [latex]f[/latex] at [latex]x=a[/latex], is given by

The expression [latex]\frac{f\left(a+h\right)-f\left(a\right)}{h}[/latex] is called the difference quotient.

We use the difference quotient to evaluate the limit of the rate of change of the function as [latex]h[/latex] approaches 0.

The **derivative** of a function can be interpreted in different ways. It can be observed as the behavior of a graph of the function or calculated as a numerical rate of change of the function.

- The derivative of a function [latex]f\left(x\right)[/latex] at a point [latex]x=a[/latex] is the slope of the tangent line to the curve [latex]f\left(x\right)[/latex] at [latex]x=a[/latex]. The derivative of [latex]f\left(x\right)[/latex] at [latex]x=a[/latex] is written [latex]{f}^{\prime }\left(a\right)[/latex].
- The derivative [latex]{f}^{\prime }\left(a\right)[/latex] measures how the curve changes at the point [latex]\left(a,f\left(a\right)\right)[/latex].
- The derivative [latex]{f}^{\prime }\left(a\right)[/latex] may be thought of as the instantaneous rate of change of the function [latex]f\left(x\right)[/latex] at [latex]x=a[/latex].
- If a function measures distance as a function of time, then the derivative measures the instantaneous
**velocity**at time [latex]t=a[/latex].

### A General Note: Notations for the Derivative

The equation of the derivative of a function [latex]f\left(x\right)[/latex] is written as [latex]{y}^{\prime }={f}^{\prime }\left(x\right)[/latex], where [latex]y=f\left(x\right)[/latex]. The notation [latex]{f}^{\prime }\left(x\right)[/latex] is read as ” [latex]f\text{ prime of }x[/latex]. ” Alternate notations for the derivative include the following:

The expression [latex]{f}^{\prime }\left(x\right)[/latex] is now a function of [latex]x[/latex] ; this function gives the slope of the curve [latex]y=f\left(x\right)[/latex] at any value of [latex]x[/latex]. The derivative of a function [latex]f\left(x\right)[/latex] at a point [latex]x=a[/latex] is denoted [latex]{f}^{\prime }\left(a\right)[/latex].

### How To: Given a function [latex]f[/latex], find the derivative by applying the definition of the derivative.

- Calculate [latex]f\left(a+h\right)[/latex].
- Calculate [latex]f\left(a\right)[/latex].
- Substitute and simplify [latex]\frac{f\left(a+h\right)-f\left(a\right)}{h}[/latex].
- Evaluate the limit if it exists: [latex]{f}^{\prime }\left(a\right)=\underset{h\to 0}{\mathrm{lim}}\frac{f\left(a+h\right)-f\left(a\right)}{h}[/latex].

### Example 2: Finding the Derivative of a Polynomial Function

Find the derivative of the function [latex]f\left(x\right)={x}^{2}-3x+5[/latex] at [latex]x=a[/latex].

### Solution

We have:

Substitute [latex]f\left(a+h\right)={\left(a+h\right)}^{2}-3\left(a+h\right)+5[/latex] and [latex]f\left(a\right)={a}^{2}-3a+5[/latex].

### Try It 2

Find the derivative of the function [latex]f\left(x\right)=3{x}^{2}+7x[/latex] at [latex]x=a[/latex].

## Finding Derivatives of Rational Functions

To find the derivative of a rational function, we will sometimes simplify the expression using algebraic techniques we have already learned.

### Example 3: Finding the Derivative of a Rational Function

Find the derivative of the function [latex]f\left(x\right)=\frac{3+x}{2-x}[/latex] at [latex]x=a[/latex].

### Solution

[latex]\begin{array}{ll}{f}^{\prime }\left(a\right)=\underset{h\to 0}{\mathrm{lim}}\frac{f\left(a+h\right)-f\left(a\right)}{h}\hfill & \hfill \\ \text{ }=\underset{h\to 0}{\mathrm{lim}}\frac{\frac{3+\left(a+h\right)}{2-\left(a+h\right)}-\left(\frac{3+a}{2-a}\right)}{h}\hfill & \text{Substitute }f\left(a+h\right)\text{ and }f\left(a\right)\hfill \\ \text{ }=\underset{h\to 0}{\mathrm{lim}}\frac{\left(2-\left(a+h\right)\right)\left(2-a\right)\left[\frac{3+\left(a+h\right)}{2-\left(a+h\right)}-\left(\frac{3+a}{2-a}\right)\right]}{\left(2-\left(a+h\right)\right)\left(2-a\right)\left(h\right)}\hfill & \text{Multiply numerator and denominator by }\left(2-\left(a+h\right)\right)\left(2-a\right)\hfill \\ \text{ }=\underset{h\to 0}{\mathrm{lim}}\frac{\overline{)\left(2-\left(a+h\right)\right)}\left(2-a\right)\left(\frac{3+\left(a+h\right)}{\overline{)\left(2-\left(a+h\right)\right)}}\right)-\left(2-\left(a+h\right)\right)\overline{)\left(2-a\right)}\left(\frac{3+a}{\overline{)2-a}}\right)}{\left(2-\left(a+h\right)\right)\left(2-a\right)\left(h\right)}\hfill & \text{Distribute}\hfill \\ \text{ }=\underset{h\to 0}{\mathrm{lim}}\frac{6 - 3a+2a-{a}^{2}+2h-ah - 6+3a+3h - 2a+{a}^{2}+ah}{\left(2-\left(a+h\right)\right)\left(2-a\right)\left(h\right)}\hfill & \text{Multiply}\hfill \\ \text{ }=\underset{h\to 0}{\mathrm{lim}}\frac{5\overline{)h}}{\left(2-\left(a+h\right)\right)\left(2-a\right)\left(\overline{)h}\right)}\hfill & \text{Combine like terms}\hfill \\ \text{ }=\underset{h\to 0}{\mathrm{lim}}\frac{5}{\left(2-\left(a+h\right)\right)\left(2-a\right)}\hfill & \text{Cancel like factors}\hfill \\ \text{ }=\frac{5}{\left(2-\left(a+0\right)\right)\left(2-a\right)}=\frac{5}{\left(2-a\right)\left(2-a\right)}=\frac{5}{{\left(2-a\right)}^{2}}\hfill & \text{Evaluate the limit}\hfill \end{array}[/latex]

### Try It 3

Find the derivative of the function [latex]f\left(x\right)=\frac{10x+11}{5x+4}[/latex] at [latex]x=a[/latex].

## Finding Derivatives of Functions with Roots

To find derivatives of functions with roots, we use the methods we have learned to find limits of functions with roots, including multiplying by a conjugate.

### Example 4: Finding the Derivative of a Function with a Root

Find the **derivative** of the function [latex]f\left(x\right)=4\sqrt{x}[/latex] at [latex]x=36[/latex].

### Solution

We have

Multiply the numerator and denominator by the conjugate: [latex]\frac{4\sqrt{a+h}+4\sqrt{a}}{4\sqrt{a+h}+4\sqrt{a}}[/latex].

### Try It 4

Find the derivative of the function [latex]f\left(x\right)=9\sqrt{x}[/latex] at [latex]x=9[/latex].

## Finding Instantaneous Rates of Change

Many applications of the derivative involve determining the rate of change at a given instant of a function with the independent variable time—which is why the term *instantaneous* is used. Consider the height of a ball tossed upward with an initial velocity of 64 feet per second, given by [latex]s\left(t\right)=-16{t}^{2}+64t+6[/latex], where [latex]t[/latex] is measured in seconds and [latex]s\left(t\right)[/latex] is measured in feet. We know the path is that of a parabola. The derivative will tell us how the height is changing at any given point in time. The height of the ball is shown in Figure 4 as a function of time. In physics, we call this the “*s*–*t* graph.”

### Example 5: Finding the Instantaneous Rate of Change

Using the function above, [latex]s\left(t\right)=-16{t}^{2}+64t+6[/latex], what is the instantaneous velocity of the ball at 1 second and 3 seconds into its flight?

### Solution

The velocity at [latex]t=1[/latex] and [latex]t=3[/latex] is the instantaneous rate of change of distance per time, or velocity. Notice that the initial height is 6 feet. To find the instantaneous velocity, we find the **derivative** and evaluate it at [latex]t=1[/latex] and [latex]t=3:[/latex]

[latex]\begin{array}{ll}{f}^{\prime }\left(a\right)=\underset{h\to 0}{\mathrm{lim}}\frac{f\left(a+h\right)-f\left(a\right)}{h}\hfill & \hfill \\ \text{ }=\underset{h\to 0}{\mathrm{lim}}\frac{-16{\left(t+h\right)}^{2}+64\left(t+h\right)+6-\left(-16{t}^{2}+64t+6\right)}{h}\hfill & \text{Substitute }s\left(t+h\right)\text{ and }s\left(t\right).\hfill \\ \text{ }=\underset{h\to 0}{\mathrm{lim}}\frac{-16{t}^{2}-32ht-{h}^{2}+64t+64h+6+16{t}^{2}-64t - 6}{h}\hfill & \text{Distribute}.\hfill \\ \text{ }=\underset{h\to 0}{\mathrm{lim}}\frac{-32ht-{h}^{2}+64h}{h}\hfill & \text{Simplify}.\hfill \\ \text{ }=\underset{h\to 0}{\mathrm{lim}}\frac{\overline{)h}\left(-32t-h+64\right)}{\overline{)h}}\hfill & \text{Factor the numerator}.\hfill \\ \text{ }=\underset{h\to 0}{\mathrm{lim}}-32t-h+64\hfill & \text{Cancel out the common factor }h.\hfill \\ {s}^{\prime }\left(t\right)=-32t+64\hfill & \text{Evaluate the limit by letting }h=0.\hfill \end{array}[/latex]

For any value of [latex]t[/latex] , [latex]{s}^{\prime }\left(t\right)[/latex] tells us the velocity at that value of [latex]t[/latex].

Evaluate [latex]t=1[/latex] and [latex]t=3[/latex].

The velocity of the ball after 1 second is 32 feet per second, as it is on the way up.

The velocity of the ball after 3 seconds is [latex]-32[/latex] feet per second, as it is on the way down.

### Try It 6

The position of the ball is given by [latex]s\left(t\right)=-16{t}^{2}+64t+6[/latex]. What is its velocity 2 seconds into flight?

## Using Graphs to Find Instantaneous Rates of Change

We can estimate an instantaneous rate of change at [latex]x=a[/latex] by observing the slope of the curve of the function [latex]f\left(x\right)[/latex] at [latex]x=a[/latex]. We do this by drawing a line tangent to the function at [latex]x=a[/latex] and finding its slope.

### How To: Given a graph of a function [latex]f\left(x\right)[/latex], find the instantaneous rate of change of the function at [latex]x=a[/latex].

- Locate [latex]x=a[/latex] on the graph of the function [latex]f\left(x\right)[/latex].
- Draw a tangent line, a line that goes through [latex]x=a[/latex] at [latex]a[/latex] and at no other point in that section of the curve. Extend the line far enough to calculate its slope as
[latex]\frac{\text{change in }y}{\text{change in }x}[/latex].

### Example 6: Estimating the Derivative at a Point on the Graph of a Function

From the graph of the function [latex]y=f\left(x\right)[/latex] presented in Figure 5, estimate each of the following:

- [latex]f\left(0\right)[/latex]
- [latex]f\left(2\right)[/latex]
- [latex]f\text{‘}\left(0\right)[/latex]
- [latex]f\text{‘}\left(2\right)[/latex]

### Solution

To find the functional value, [latex]f\left(a\right)[/latex], find the *y*-coordinate at [latex]x=a[/latex].

To find the **derivative** at [latex]x=a[/latex], [latex]{f}^{\prime }\left(a\right)[/latex], draw a tangent line at [latex]x=a[/latex], and estimate the slope of that tangent line.

- [latex]f\left(0\right)[/latex] is the
*y*-coordinate at [latex]x=0[/latex]. The point has coordinates [latex]\left(0,1\right)[/latex], thus [latex]f\left(0\right)=1[/latex]. - [latex]f\left(2\right)[/latex] is the
*y*-coordinate at [latex]x=2[/latex]. The point has coordinates [latex]\left(2,1\right)[/latex], thus [latex]f\left(2\right)=1[/latex]. - [latex]{f}^{\prime }\left(0\right)[/latex] is found by estimating the slope of the tangent line to the curve at [latex]x=0[/latex]. The tangent line to the curve at [latex]x=0[/latex] appears horizontal. Horizontal lines have a slope of 0, thus [latex]{f}^{\prime }\left(0\right)=0[/latex].
- [latex]{f}^{\prime }\left(2\right)[/latex] is found by estimating the slope of the tangent line to the curve at [latex]x=2[/latex]. Observe the path of the tangent line to the curve at [latex]x=2[/latex]. As the [latex]x[/latex] value moves one unit to the right, the [latex]y[/latex] value moves up four units to another point on the line. Thus, the slope is 4, so [latex]{f}^{\prime }\left(2\right)=4[/latex].

### Try It 6

Using the graph of the function [latex]f\left(x\right)={x}^{3}-3x[/latex] shown in Figure 7, estimate: [latex]f\left(1\right)[/latex], [latex]{f}^{\prime }\left(1\right)[/latex], [latex]f\left(0\right)[/latex], and [latex]{f}^{\prime }\left(0\right)[/latex].

## Using Instantaneous Rates of Change to Solve Real-World Problems

Another way to interpret an instantaneous rate of change at [latex]x=a[/latex] is to observe the function in a real-world context. The unit for the derivative of a function [latex]f\left(x\right)[/latex] is

Such a unit shows by how many units the output changes for each one-unit change of input. The instantaneous rate of change at a given instant shows the same thing: the units of change of output per one-unit change of input.

One example of an instantaneous rate of change is a marginal cost. For example, suppose the production cost for a company to produce [latex]x[/latex] items is given by [latex]C\left(x\right)[/latex], in thousands of dollars. The derivative function tells us how the cost is changing for any value of [latex]x[/latex] in the domain of the function. In other words, [latex]{C}^{\prime }\left(x\right)[/latex] is interpreted as a **marginal cost**, the additional cost in thousands of dollars of producing one more item when [latex]x[/latex] items have been produced. For example, [latex]{C}^{\prime }\left(11\right)[/latex] is the approximate additional cost in thousands of dollars of producing the 12^{th} item after 11 items have been produced. [latex]{C}^{\prime }\left(11\right)=2.50[/latex] means that when 11 items have been produced, producing the 12^{th} item would increase the total cost by approximately $2,500.00.

### Example 6: Finding a Marginal Cost

The cost in dollars of producing [latex]x[/latex] laptop computers in dollars is [latex]f\left(x\right)={x}^{2}-100x[/latex]. At the point where 200 computers have been produced, what is the approximate cost of producing the 201^{st} unit?

### Solution

If [latex]f\left(x\right)={x}^{2}-100x[/latex] describes the cost of producing [latex]x[/latex] computers, [latex]{f}^{\prime }\left(x\right)[/latex] will describe the marginal cost. We need to find the derivative. For purposes of calculating the derivative, we can use the following functions:

[latex]\begin{array}{ll}\text{ }{f}^{\prime }\left(x\right)=\frac{f\left(a+h\right)-f\left(a\right)}{h}\hfill & \text{Formula for a derivative}\hfill \\ \text{ }=\frac{{\left(x+h\right)}^{2}-100\left(x+h\right)-\left({x}^{2}-100x\right)}{h}\hfill & \text{Substitute }f\left(a+h\right)\text{ and }f\left(a\right).\hfill \\ \text{ }=\frac{{x}^{2}+2xh+{h}^{2}-100x - 100h-{x}^{2}+100x}{h}\hfill & \text{Multiply polynomials, distribute}.\hfill \\ \text{ }=\frac{2xh+{h}^{2}-100h}{h}\hfill & \text{Collect like terms}.\hfill \\ \text{ }=\frac{\overline{)h}\left(2x+h - 100\right)}{\overline{)h}}\hfill & \text{Factor and cancel like terms}.\hfill \\ \text{ }=2x+h - 100\hfill & \text{Simplify}.\hfill \\ \text{ }=2x - 100\hfill & \text{Evaluate when }h=0.\hfill \\ \text{ }{f}^{\prime }\left(x\right)=2x - 100\hfill & \text{Formula for marginal cost}\hfill \\ \text{ }{f}^{\prime }\left(200\right)=2\left(200\right)-100=300\hfill & \text{Evaluate for 200 units}.\hfill \end{array}[/latex]

The marginal cost of producing the 201^{st} unit will be approximately $300.

### Example 7: Interpreting a Derivative in Context

A car leaves an intersection. The distance it travels in miles is given by the function [latex]f\left(t\right)[/latex], where [latex]t[/latex] represents hours. Explain the following notations:

- [latex]f\left(0\right)=0[/latex]
- [latex]{f}^{\prime }\left(1\right)=60[/latex]
- [latex]f\left(1\right)=70[/latex]
- [latex]f\left(2.5\right)=150[/latex]

### Solution

First we need to evaluate the function [latex]f\left(t\right)[/latex] and the derivative of the function [latex]{f}^{\prime }\left(t\right)[/latex], and distinguish between the two. When we evaluate the function [latex]f\left(t\right)[/latex], we are finding the distance the car has traveled in [latex]t[/latex] hours. When we evaluate the derivative [latex]{f}^{\prime }\left(t\right)[/latex], we are finding the speed of the car after [latex]t[/latex] hours.

- [latex]f\left(0\right)=0[/latex] means that in zero hours, the car has traveled zero miles.
- [latex]{f}^{\prime }\left(1\right)=60[/latex] means that one hour into the trip, the car is traveling 60 miles per hour.
- [latex]f\left(1\right)=70[/latex] means that one hour into the trip, the car has traveled 70 miles. At some point during the first hour, then, the car must have been traveling faster than it was at the 1-hour mark.
- [latex]f\left(2.5\right)=150[/latex] means that two hours and thirty minutes into the trip, the car has traveled 150 miles.

### Try It 7

A runner runs along a straight east-west road. The function [latex]f\left(t\right)[/latex] gives how many feet eastward of her starting point she is after [latex]t[/latex] seconds. Interpret each of the following as it relates to the runner.

a. [latex]f\left(0\right)=0[/latex]

b. [latex]f\left(10\right)=150[/latex]

c. [latex]{f}^{\prime }\left(10\right)=15[/latex]

d. [latex]{f}^{\prime }\left(20\right)=-10[/latex]

e. [latex]f\left(40\right)=-100[/latex]

## Finding Points Where a Function’s Derivative Does Not Exist

To understand where a function’s derivative does not exist, we need to recall what normally happens when a function [latex]f\left(x\right)[/latex] has a derivative at [latex]x=a[/latex] . Suppose we use a graphing utility to zoom in on [latex]x=a[/latex] . If the function [latex]f\left(x\right)[/latex] is **differentiable**, that is, if it is a function that can be differentiated, then the closer one zooms in, the more closely the graph approaches a straight line. This characteristic is called *linearity*.

Look at the graph in Figure 8. The closer we zoom in on the point, the more linear the curve appears.

We might presume the same thing would happen with any continuous function, but that is not so. The function [latex]f\left(x\right)=|x|[/latex], for example, is continuous at [latex]x=0[/latex], but not differentiable at [latex]x=0[/latex]. As we zoom in close to 0 in Figure 9, the graph does not approach a straight line. No matter how close we zoom in, the graph maintains its sharp corner.

We zoom in closer by narrowing the range to produce Figure 10 and continue to observe the same shape. This graph does not appear linear at [latex]x=0[/latex].

What are the characteristics of a graph that is not differentiable at a point? Here are some examples in which function [latex]f\left(x\right)[/latex] is not differentiable at [latex]x=a[/latex].

In Figure 11, we see the graph of

[latex]f\left(x\right)=\begin{cases}x^{2}, \hfill& x\leq 2 \\ 8-x, \hfill& x>2\end{cases}[/latex].

Notice that, as [latex]x[/latex] approaches 2 from the left, the left-hand limit may be observed to be 4, while as [latex]x[/latex] approaches 2 from the right, the right-hand limit may be observed to be 6. We see that it has a discontinuity at [latex]x=2[/latex].

The graph of [latex]f\left(x\right)[/latex] has a discontinuity at [latex]x=2[/latex].

In Figure 12, we see the graph of [latex]f\left(x\right)=|x|[/latex]. We see that the graph has a corner point at [latex]x=0[/latex].

The graph of [latex]f\left(x\right)=|x|[/latex] has a corner point at [latex]x=0[/latex] .

In Figure 13, we see that the graph of [latex]f\left(x\right)={x}^{\frac{2}{3}}[/latex] has a cusp at [latex]x=0[/latex]. A cusp has a unique feature. Moving away from the cusp, both the left-hand and right-hand limits approach either infinity or negative infinity. Notice the tangent lines as [latex]x[/latex] approaches 0 from both the left and the right appear to get increasingly steeper, but one has a negative slope, the other has a positive slope.

In Figure 14, we see that the graph of [latex]f\left(x\right)={x}^{\frac{1}{3}}[/latex] has a vertical tangent at [latex]x=0[/latex]. Recall that vertical tangents are vertical lines, so where a vertical tangent exists, the slope of the line is undefined. This is why the derivative, which measures the slope, does not exist there.

### A General Note: Differentiability

A function [latex]f\left(x\right)[/latex] is differentiable at [latex]x=a[/latex] if the derivative exists at [latex]x=a[/latex], which means that [latex]{f}^{\prime }\left(a\right)[/latex] exists.

There are four cases for which a function [latex]f\left(x\right)[/latex] is not differentiable at a point [latex]x=a[/latex].

- When there is a discontinuity at [latex]x=a[/latex].
- When there is a corner point at [latex]x=a[/latex].
- When there is a cusp at [latex]x=a[/latex].
- Any other time when there is a vertical tangent at [latex]x=a[/latex].

### Example 8: Determining Where a Function Is Continuous and Differentiable from a Graph

Using Figure 15, determine where the function is

- continuous
- discontinuous
- differentiable
- not differentiable

At the points where the graph is discontinuous or not differentiable, state why.

### Solution

The graph of [latex]f\left(x\right)[/latex] is continuous on [latex]\left(\mathrm{-\infty ,}-2\right)\cup \left(-2, 1\right)\cup \left(1,\infty \right)[/latex]. The graph of [latex]f\left(x\right)[/latex] has a removable discontinuity at [latex]x=-2[/latex] and a jump discontinuity at [latex]x=1[/latex].

The graph of is differentiable on [latex]\left(\mathrm{-\infty ,}-2\right)\cup \left(-2,-1\right)\cup \left(-1,1\right)\cup \left(1,2\right)\cup \left(2,\infty \right)[/latex]. The graph of [latex]f\left(x\right)[/latex] is not differentiable at [latex]x=-2[/latex] because it is a point of discontinuity, at [latex]x=-1[/latex] because of a sharp corner, at [latex]x=1[/latex] because it is a point of discontinuity, and at [latex]x=2[/latex] because of a sharp corner.

### Try It 8

Determine where the function [latex]y=f\left(x\right)[/latex] shown in Figure 18 is continuous and differentiable from the graph.

## Finding an Equation of a Line Tangent to the Graph of a Function

The equation of a tangent line to a curve of the function [latex]f\left(x\right)[/latex] at [latex]x=a[/latex] is derived from the point-slope form of a line, [latex]y=m\left(x-{x}_{1}\right)+{y}_{1}[/latex]. The slope of the line is the slope of the curve at [latex]x=a[/latex] and is therefore equal to [latex]{f}^{\prime }\left(a\right)[/latex], the derivative of [latex]f\left(x\right)[/latex] at [latex]x=a[/latex]. The coordinate pair of the point on the line at [latex]x=a[/latex] is [latex]\left(a,f\left(a\right)\right)[/latex].

If we substitute into the point-slope form, we have

The equation of the tangent line is

### A General Note: The Equation of a Line Tangent to a Curve of the Function *f*

The equation of a line tangent to the curve of a function [latex]f[/latex] at a point [latex]x=a[/latex] is

### How To: Given a function [latex]f[/latex], find the equation of a line tangent to the function at [latex]x=a[/latex].

- Find the derivative of [latex]f\left(x\right)[/latex] at [latex]x=a[/latex] using [latex]{f}^{\prime }\left(a\right)=\underset{h\to 0}{\mathrm{lim}}\frac{f\left(a+h\right)-f\left(a\right)}{h}[/latex].
- Evaluate the function at [latex]x=a[/latex]. This is [latex]f\left(a\right)[/latex].
- Substitute [latex]\left(a,f\left(a\right)\right)[/latex] and [latex]{f}^{\prime }\left(a\right)[/latex] into [latex]y=f\text{‘}\left(a\right)\left(x-a\right)+f\left(a\right)[/latex].
- Write the equation of the tangent line in the form [latex]y=mx+b[/latex].

### Example 9: Finding the Equation of a Line Tangent to a Function at a Point

Find the equation of a line tangent to the curve [latex]f\left(x\right)={x}^{2}-4x[/latex] at [latex]x=3[/latex].

### Solution

Using:

Substitute [latex]f\left(a+h\right)={\left(a+h\right)}^{2}-4\left(a+h\right)[/latex] and [latex]f\left(a\right)={a}^{2}-4a[/latex].

Equation of tangent line at [latex]x=3:[/latex]

### Analysis of the Solution

We can use a graphing utility to graph the function and the tangent line. In so doing, we can observe the point of tangency at [latex]x=3[/latex] as shown in Figure 19.

### Try It 9

Find the equation of a tangent line to the curve of the function [latex]f\left(x\right)=5{x}^{2}-x+4[/latex] at [latex]x=2[/latex].

## Finding the Instantaneous Speed of a Particle

If a function measures position versus time, the derivative measures displacement versus time, or the speed of the object. A change in speed or direction relative to a change in time is known as ** velocity**. The velocity at a given instant is known as

**instantaneous velocity**.

In trying to find the speed or velocity of an object at a given instant, we seem to encounter a contradiction. We normally define speed as the distance traveled divided by the elapsed time. But in an instant, no distance is traveled, and no time elapses. How will we divide zero by zero? The use of a derivative solves this problem. A derivative allows us to say that even while the object’s velocity is constantly changing, it has a certain velocity at a given instant. That means that if the object traveled at that exact velocity for a unit of time, it would travel the specified distance.

### A General Note: Instantaneous Velocity

Let the function [latex]s\left(t\right)[/latex] represent the position of an object at time [latex]t[/latex]. The **instantaneous velocity** or velocity of the object at time [latex]t=a[/latex] is given by

### Example 10: Finding the Instantaneous Velocity

A ball is tossed upward from a height of 200 feet with an initial velocity of 36 ft/sec. If the height of the ball in feet after [latex]t[/latex] seconds is given by [latex]s\left(t\right)=-16{t}^{2}+36t+200[/latex], find the instantaneous velocity of the ball at [latex]t=2[/latex].

### Solution

First, we must find the derivative [latex]{s}^{\prime }\left(t\right)[/latex] . Then we evaluate the derivative at [latex]t=2[/latex], using [latex]s\left(a+h\right)=-16{\left(a+h\right)}^{2}+36\left(a+h\right)+200[/latex] and [latex]s\left(a\right)=-16{a}^{2}+36a+200[/latex].

### Analysis of the Solution

This result means that at time [latex]t=2[/latex] seconds, the ball is dropping at a rate of 28 ft/sec.

### Try It 10

A fireworks rocket is shot upward out of a pit 12 ft below the ground at a velocity of 60 ft/sec. Its height in feet after [latex]t[/latex] seconds is given by [latex]s=-16{t}^{2}+60t - 12[/latex]. What is its instantaneous velocity after 4 seconds?

## Key Equations

average rate of change | [latex]\text{AROC}=\frac{f\left(a+h\right)-f\left(a\right)}{h}[/latex] |

derivative of a function | [latex]{f}^{\prime }\left(a\right)=\underset{h\to 0}{\mathrm{lim}}\frac{f\left(a+h\right)-f\left(a\right)}{h}[/latex] |

## Key Concepts

- The slope of the secant line connecting two points is the average rate of change of the function between those points.
- The derivative, or instantaneous rate of change, is a measure of the slope of the curve of a function at a given point, or the slope of the line tangent to the curve at that point.
- The difference quotient is the quotient in the formula for the instantaneous rate of change:
[latex]\frac{f\left(a+h\right)-f\left(a\right)}{h}[/latex]

- Instantaneous rates of change can be used to find solutions to many real-world problems.
- The instantaneous rate of change can be found by observing the slope of a function at a point on a graph by drawing a line tangent to the function at that point.
- Instantaneous rates of change can be interpreted to describe real-world situations.
- Some functions are not differentiable at a point or points.
- The point-slope form of a line can be used to find the equation of a line tangent to the curve of a function.
- Velocity is a change in position relative to time. Instantaneous velocity describes the velocity of an object at a given instant. Average velocity describes the velocity maintained over an interval of time.
- Using the derivative makes it possible to calculate instantaneous velocity even though there is no elapsed time.

## Glossary

- average rate of change
- the slope of the line connecting the two points [latex]\left(a,f\left(a\right)\right)[/latex] and [latex]\left(a+h,f\left(a+h\right)\right)[/latex] on the curve of [latex]f\left(x\right)[/latex]; it is given by [latex]\text{AROC}=\frac{f\left(a+h\right)-f\left(a\right)}{h}[/latex].

- derivative
- the slope of a function at a given point; denoted [latex]{f}^{\prime }\left(a\right)[/latex], at a point [latex]x=a[/latex] it is [latex]{f}^{\prime }\left(a\right)=\underset{h\to 0}{\mathrm{lim}}\frac{f\left(a+h\right)-f\left(a\right)}{h}[/latex], providing the limit exists.

- differentiable
- a function [latex]f\left(x\right)[/latex] for which the derivative exists at [latex]x=a[/latex]. In other words, if [latex]{f}^{\prime }\left(a\right)[/latex] exists.

- instantaneous rate of change
- the slope of a function at a given point; at [latex]x=a[/latex] it is given by [latex]{f}^{\prime }\left(a\right)=\underset{h\to 0}{\mathrm{lim}}\frac{f\left(a+h\right)-f\left(a\right)}{h}[/latex].

- instantaneous velocity
- the change in speed or direction at a given instant; a function [latex]s\left(t\right)[/latex] represents the position of an object at time [latex]t[/latex], and the instantaneous velocity or velocity of the object at time [latex]t=a[/latex] is given by [latex]{s}^{\prime }\left(a\right)=\underset{h\to 0}{\mathrm{lim}}\frac{s\left(a+h\right)-s\left(a\right)}{h}[/latex].

- secant line
- a line that intersects two points on a curve

- tangent line
- a line that intersects a curve at a single point

## Section Exercises

1. How is the slope of a linear function similar to the derivative?

2. What is the difference between the average rate of change of a function on the interval [latex]\left[x,x+h\right][/latex] and the derivative of the function at [latex]x?[/latex]

3. A car traveled 110 miles during the time period from 2:00 P.M. to 4:00 P.M. What was the car’s average velocity? At exactly 2:30 P.M., the speed of the car registered exactly 62 miles per hour. What is another name for the speed of the car at 2:30 P.M.? Why does this speed differ from the average velocity?

4. Explain the concept of the slope of a curve at point [latex]x[/latex].

5. Suppose water is flowing into a tank at an average rate of 45 gallons per minute. Translate this statement into the language of mathematics.

For the following exercises, use the definition of derivative [latex]\underset{h\to 0}{\mathrm{lim}}\frac{f\left(x+h\right)-f\left(x\right)}{h}[/latex] to calculate the derivative of each function.

6. [latex]f\left(x\right)=3x - 4[/latex]

7. [latex]f\left(x\right)=-2x+1[/latex]

8. [latex]f\left(x\right)={x}^{2}-2x+1[/latex]

9. [latex]f\left(x\right)=2{x}^{2}+x - 3[/latex]

10. [latex]f\left(x\right)=2{x}^{2}+5[/latex]

11. [latex]f\left(x\right)=\frac{-1}{x - 2}[/latex]

12. [latex]f\left(x\right)=\frac{2+x}{1-x}[/latex]

13. [latex]f\left(x\right)=\frac{5 - 2x}{3+2x}[/latex]

14. [latex]f\left(x\right)=\sqrt{1+3x}[/latex]

15. [latex]f\left(x\right)=3{x}^{3}-{x}^{2}+2x+5[/latex]

16. [latex]f\left(x\right)=5[/latex]

17. [latex]f\left(x\right)=5\pi [/latex]

For the following exercises, find the average rate of change between the two points.

18. [latex]\left(-2,0\right)[/latex] and [latex]\left(-4,5\right)[/latex]

19. [latex]\left(4,-3\right)[/latex] and [latex]\left(-2,-1\right)[/latex]

20. [latex]\left(0,5\right)[/latex] and [latex]\left(6,5\right)[/latex]

21. [latex]\left(7,-2\right)[/latex] and [latex]\left(7,10\right)[/latex]

For the following polynomial functions, find the derivatives.

22. [latex]f\left(x\right)={x}^{3}+1[/latex]

23. [latex]f\left(x\right)=-3{x}^{2}-7x=6[/latex]

24. [latex]f\left(x\right)=7{x}^{2}[/latex]

25. [latex]f\left(x\right)=3{x}^{3}+2{x}^{2}+x - 26[/latex]

For the following functions, find the equation of the tangent line to the curve at the given point [latex]x[/latex] on the curve.

26. [latex]\begin{array}{ll}f\left(x\right)=2{x}^{2}-3x\hfill & x=3\hfill \end{array}[/latex]

27. [latex]\begin{array}{ll}f\left(x\right)={x}^{3}+1\hfill & x=2\hfill \end{array}[/latex]

28. [latex]\begin{array}{ll}f\left(x\right)=\sqrt{x}\hfill & x=9\hfill \end{array}[/latex]

For the following exercise, find [latex]k[/latex] such that the given line is tangent to the graph of the function.

29. [latex]\begin{array}{ll}f\left(x\right)={x}^{2}-kx,\hfill & y=4x - 9\hfill \end{array}[/latex]

For the following exercises, consider the graph of the function [latex]f[/latex] and determine where the function is continuous/discontinuous and differentiable/not differentiable.

30.

31.

32.

33.

For the following exercises, use Figure 20 to estimate either the function at a given value of [latex]x[/latex] or the derivative at a given value of [latex]x[/latex], as indicated.

34. [latex]f\left(-1\right)[/latex]

35. [latex]f\left(0\right)[/latex]

36. [latex]f\left(1\right)[/latex]

37. [latex]f\left(2\right)[/latex]

38. [latex]f\left(3\right)[/latex]

39. [latex]{f}^{\prime }\left(-1\right)[/latex]

40. [latex]{f}^{\prime }\left(0\right)[/latex]

41. [latex]{f}^{\prime }\left(1\right)[/latex]

42. [latex]{f}^{\prime }\left(2\right)[/latex]

43. [latex]{f}^{\prime }\left(3\right)[/latex]

44. Sketch the function based on the information below:

[latex]{f}^{\prime }\left(x\right)=2x[/latex] , [latex]f\left(2\right)=4[/latex]

45. Numerically evaluate the derivative. Explore the behavior of the graph of [latex]f\left(x\right)={x}^{2}[/latex] around [latex]x=1[/latex] by graphing the function on the following domains: [latex]\left[0.9,1.1\right][/latex] , [latex]\left[0.99,1.01\right][/latex] , [latex]\left[0.999,1.001\right][/latex], and [latex]\left[0.9999,1.0001\right][/latex]. We can use the feature on our calculator that automatically sets Ymin and Ymax to the Xmin and Xmax values we preset. (On some of the commonly used graphing calculators, this feature may be called ZOOM FIT or ZOOM AUTO). By examining the corresponding range values for this viewing window, approximate how the curve changes at [latex]x=1[/latex], that is, approximate the derivative at [latex]x=1[/latex].

For the following exercises, explain the notation in words. The volume [latex]f\left(t\right)[/latex] of a tank of gasoline, in gallons, [latex]t[/latex] minutes after noon.

46. [latex]f\left(0\right)=600[/latex]

47. [latex]f\text{‘}\left(30\right)=-20[/latex]

48. [latex]f\left(30\right)=0[/latex]

49. [latex]f\text{‘}\left(200\right)=30[/latex]

50. [latex]f\left(240\right)=500[/latex]

For the following exercises, explain the functions in words. The height, [latex]s[/latex], of a projectile after [latex]t[/latex] seconds is given by [latex]s\left(t\right)=-16{t}^{2}+80t[/latex].

51. [latex]s\left(2\right)=96[/latex]

52. [latex]s\text{‘}\left(2\right)=16[/latex]

53. [latex]s\left(3\right)=96[/latex]

54. [latex]s\text{‘}\left(3\right)=-16[/latex]

55. [latex]s\left(0\right)=0,s\left(5\right)=0[/latex].

For the following exercises, the volume [latex]V[/latex] of a sphere with respect to its radius [latex]r[/latex] is given by [latex]V=\frac{4}{3}\pi {r}^{3}[/latex].

56. Find the average rate of change of [latex]V[/latex] as [latex]r[/latex] changes from 1 cm to 2 cm.

57. Find the instantaneous rate of change of [latex]V[/latex] when [latex]r=3\text{ cm}\text{.}[/latex]

For the following exercises, the revenue generated by selling [latex]x[/latex] items is given by [latex]R\left(x\right)=2{x}^{2}+10x[/latex].

58. Find the average change of the revenue function as [latex]x[/latex] changes from [latex]x=10[/latex] to [latex]x=20[/latex].

59. Find [latex]R\text{‘}\left(10\right)[/latex] and interpret.

60. Find [latex]R\text{‘}\left(15\right)[/latex] and interpret. Compare [latex]R\text{‘}\left(15\right)[/latex] to [latex]R\text{‘}\left(10\right)[/latex], and explain the difference.

For the following exercises, the cost of producing [latex]x[/latex] cellphones is described by the function [latex]C\left(x\right)={x}^{2}-4x+1000[/latex].

61. Find the average rate of change in the total cost as [latex]x[/latex] changes from [latex]x=10\text{ to }x=15[/latex].

62. Find the approximate marginal cost, when 15 cellphones have been produced, of producing the 16^{th} cellphone.

63. Find the approximate marginal cost, when 20 cellphones have been produced, of producing the 21^{st} cellphone.

For the following exercises, use the definition for the derivative at a point [latex]x=a[/latex], [latex]\underset{x\to a}{\mathrm{lim}}\frac{f\left(x\right)-f\left(a\right)}{x-a}[/latex], to find the derivative of the functions.

64. [latex]f\left(x\right)=\frac{1}{{x}^{2}}[/latex]

65. [latex]f\left(x\right)=5{x}^{2}-x+4[/latex]

66. [latex]f\left(x\right)=-{x}^{2}+4x+7[/latex]

67. [latex]f\left(x\right)=\frac{-4}{3-{x}^{2}}[/latex]