2 Derivatives

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)=-16t2+150.

Using this formula, it is easy to verify that, without intervention, the riders will hit the ground at t=2.51.53.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

change in distancechange in time=“ rise ”run=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

f(3)-f(2)3-2=f(3)-f(2)1=-80ft/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

f(2.5)-f(2)2.5-2=f(2.5)-f(2)0.5=-72ft/s.

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

f(2.1)-f(2)2.1-2=f(2.1)-f(2)0.1=-65.6ft/s.

Over a time span of 1/100th of a second, on [2,2.01], the average velocity is

f(2.01)-f(2)2.01-2=f(2.01)-f(2)0.01=-64.16ft/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

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

limh0f(2+h)-f(2)h =limh0-16(2+h)2+150-(-16(2)2+150)h
=limh0-64h-16h2h
=limh0(-64-16h)
=-64.
margin: 123-5050100150
2+h
h(2,f(2))(2+h,f(2+h))
xy
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 h0, 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).

123-5050100150xy 22.5350100xy
(a) (b)
1.522.550100xy 1.522.550100xy
(c) (d)
Figure 2.1.3: Parts (a), (b) and (c) show the secant line to f(x) with h=1, zoomed in different amounts. Part (d) shows the tangent line to f at x=2.

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(c), is

limh0f(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 (x)=f(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)=3x2+5x-7. Find:

  1. (a)

    f(1)

  2. (b)

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

  3. (c)

    f(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.

    f(1) =limh0f(1+h)-f(1)h
    =limh03(1+h)2+5(1+h)-7-(3(1)2+5(1)-7)h
    =limh03h2+11hh
    =limh0(3h+11)=11.
  2. (b)

    The tangent line at x=1 has slope f(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,

    f(3) =limh0f(3+h)-f(3)h
    =limh03(3+h)2+5(3+h)-7-(3(3)2+5(3)-7)h
    =limh03h2+23hh
    =limh0(3h+23)
    =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: 1234204060xy Figure 2.1.4: A graph of f(x)=3x2+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.

f(1) =limh0f(1+h)-f(1)h
=limh03(1+h)+5-(3+5)h
=limh03hh
=limh03
=3.

We just found that f(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(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)=sinx 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,sin0)=(0,0). To compute the slope, we need the derivative. This is where we will make an approximation. Recall that

f(0)sin(0+h)-sin0h

for a small value of h. We choose (somewhat arbitrarily) to let h=0.1. Thus margin: -π-π2π2π-11xy Figure 2.1.5: f(x)=sinx graphed with an approximation to its tangent line at x=0. Λ

f(0)sin(0.1)-sin00.10.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 limx0sinxx=1, meaning for values of x near 0, sinxx. Since the slope of the line y=x is 1 at x=0, it should seem reasonable that “the slope of f(x)=sinx” 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:

input specificnumber cdo somethingto f and creturnnumber f(c)

This process describes a function; given one input (the value of c), we return exactly one output (the value of f(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:

input variable xdo somethingto f and xreturnfunction f(x)

The output is the “derivative function,” f(x). The f(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(x)=limh0f(x+h)-f(x)h

is the derivative of f.

Notation:

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

f(x)=y=dydx=dfdx=ddx(f)=ddx(y).

Important: The notation dydx is one symbol; it is not the fraction “dy/dx”. 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)=3x2+5x-7 as in Example 2.1.1. Find f(x).

SolutionWe apply Definition 2.1.3.

f(x) =limh0f(x+h)-f(x)h
=limh03(x+h)2+5(x+h)-7-(3x2+5x-7)h
=limh03h2+6xh+5hh
=limh0(3h+6x+5)
=6x+5

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

Example 2.1.5 Finding the derivative of a function

Let f(x)=1x+1. Find f(x).

SolutionWe apply Definition 2.1.3.

f(x) =limh0f(x+h)-f(x)h
=limh01x+h+1-1x+1h
Now find a common denominator and subtract; factor 1/h out front to facilitate reading.
f(x) =limh01h(x+1(x+1)(x+h+1)-x+h+1(x+1)(x+h+1))
=limh01h(x+1-(x+h+1)(x+1)(x+h+1))
=limh01h(-h(x+1)(x+h+1))
=limh0-1(x+1)(x+h+1)
=-1(x+1)(x+1)
=-1(x+1)2

So f(x)=-1(x+1)2. To practice using our notation, we could also state

ddx(1x+1)=-1(x+1)2.
Example 2.1.6 Finding the derivative of a function

Find the derivative of f(x)=sinx.

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

f(x)
=limh0sin(x+h)-sinxh (Use trig identity sin(x+h)=sinxcosh+cosxsinh)
=limh0sinxcosh+cosxsinh-sinxh (regroup)
=limh0sinx(cosh-1)+cosxsinhh (split into two fractions)
=limh0(sinx(cosh-1)h+cosxsinhh) (use limh0cosh-1h=0 and limh0sinhh=1)
=sinx0+cosx1
=cosx.

We have found that when f(x)=sinx, f(x)=cosx (see Figure 2.1.6).

-2π-3π2-π-π2π2π3π22π-11f(x)=sinxf(x)=cosxxy
Figure 2.1.6: The function f(x)=sinx and its derivative f(x)=cosx.

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(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(x)=cosx crosses the x-axis;

  • when the slopes of the tangent lines are positive then f lies above the x-axis; and

  • when the slopes of the tangent lines are negative then f 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)=sinx at x=0 using our derivative. We approximated the slope as 0.9983; we now know the slope is exactly cos0=1.

Example 2.1.7 Finding the derivative of a piecewise defined function

Find the derivative of the absolute value function,

f(x)=|x|={-xx<0xx0.

See Figure 2.1.7.

SolutionWe need to evaluate limh0f(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: -1-0.50.510.51xy Figure 2.1.7: The absolute value function, f(x)=|x|. Notice how the slope of the lines (and hence the tangent lines) abruptly changes at x=0. Λ

When x<0:

ddx(-x) =limh0-(x+h)-(-x)h
=limh0-hh
=limh0-1
=-1.

When x>0, a similar computation shows that ddx(x)=1.

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

f(0)=limh0f(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.
limh0-f(0+h)-f(0)h = limh0--h-0h = limh0--1 =-1   limh0+f(0+h)-f(0)h = limh0+h-0h = limh0+1 =1
margin: -1-0.50.51-11xy Figure 2.1.8: A graph of the derivative of f(x)=|x|. Λ 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(x)={-1x<01x>0.

At x=0, f(x) does not exist; there is a jump discontinuity at 0. So f(x)=|x| 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 f(x)={sinxxπ/21x>π/2. See Figure 2.1.9.

SolutionUsing Example 2.1.6, we know that when x<π/2, f(x)=cosx. It is easy to verify that when x>π/2, f(x)=0; consider:

margin: π20.51xy Figure 2.1.9: A graph of f(x) as defined in Example 2.1.8. Λ
limh0f(x+h)-f(x)h=limh01-1h=limh00=0.

So far we have

f(x)={cosxx<π/20x>π/2.

We still need to find f(π/2). Notice at x=π/2 that both pieces of f are 0, meaning we can state that f(π/2)=0.

Being more rigorous, we can again evaluate the difference quotient limit at x=π/2, utilizing again left and right-hand limits:
limh0-f(π/2+h)-f(π/2)h = limh0-sin(π/2+h)-sin(π/2)h = limh0-sin(π2)cos(h)+sin(h)cos(π2)-sin(π2)h = limh0-1cos(h)+sin(h)0-1h = 0   limh0+f(π/2+h)-f(π/2)h = limh0+1-1h = limh0+0h = 0

margin: π20.51xy Figure 2.1.10: A graph of f(x) in Example 2.1.8. Λ

Since both the left and right hand limits are 0 at x=π/2, the limit exists and f(π/2) exists (and is 0). Therefore we can fully write f as

f(x)={cosxxπ/20x>π/2.

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(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.

    f(x)=6 at x=-2

  2. 6.

    f(x)=2x at x=3

  3. 7.

    f(x)=4-3x at x=7

  4. 8.

    g(x)=x2 at x=-2

  5. 9.

    h(x)=2x-x2 at x=1

  6. 10.

    f(x)=3x2-x+4 at x=-1

  7. 11.

    g(x)=x+3 at x=1

  8. 12.

    r(x)=1x at x=-2

  9. 13.

    h(x)=3x at x=4

  10. 14.

    f(x)=1x-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.

    limh016+h-4h

  2. 16.

    limh0(3+h)4-81h

  3. 17.

    limh012+h-12h

  4. 18.

    limh0cos(-π+h)+1h

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(a), using h=0.1.

  1. 19.

    f(x)=x2+2x+1, x=3

  2. 20.

    f(x)=x, x=4

  3. 21.

    f(x)=10x+1, x=9

  4. 22.

    f(x)=ex, x=2

  5. 23.

    f(x)=lnx, x=2

  6. 24.

    f(x)=cosx, x=0

  1. 25.
    The graph of f(x)=x2-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(x). (c) Find the slope of the tangent line at the points (-1,0), (0,-1) and (2,3). -2-112-1123xy
  2. 26.
    The graph of f(x)=1x+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(x). (c) Find the slope of the tangent line at the points (0,1) and (1,0.5). -112312345xy

In Exercises 27–32., a graph of a function f(x) is given. Using the graph, sketch f(x).

  1. 27.
    -2-11234-1123xy
  2. 28.
    -6-4-22-22xy
  3. 29.
    -2-112-55xy
  4. 30.
    -1-0.50.51-2π-ππ2πxy
  5. 31.
    -2-112-33-22-44-66xy
  6. 32.
    -55-10-5510xy

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(x)>0?

  5. (e)

    Where is g(x)<0?

  6. (f)

    Where is g(x)=0?

  1. 33.
    -2-112-55xy
  2. 34.
    -2-112-55xy
  1. 35.
    Suppose that f(x) is defined on an open interval containing the number c. Suppose that the limit limh0f(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(c).

Review

  1. 36.

    Approximate limx5x2+2x-35x2-10.5x+27.5.

  2. 37.

    Use the Bisection Method to approximate, accurate to two decimal places, the root of g(x)=x3+x2+x-1 on [0.5,0.6].

  3. 38.
    Give intervals on which each of the following functions are continuous. (a) 1ex+1 (b) 1x2-1 (c) 5-x (d) 5-x2
  4. 39.
    Use the graph of f(x) provided to answer the following. (a) limx-3-f(x)=? (b) limx-3+f(x)=? (c) limx-3f(x)=? (d) Where is f continuous? -4-2-1123xy
Modern Campus CMS