Processing math: 100%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

3.2: The Derivative as a Function

( \newcommand{\kernel}{\mathrm{null}\,}\)

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: derivative function

Let f be a function. The derivative function, denoted by f′, is the function whose domain consists of those values of x such that the following limit exists:

f(x)=limh0f(x+h)f(x)h.

A function f(x) is said to be differentiable at a if f(a) exists. More generally, a function is said to be differentiable on S if it is differentiable at every point in an open set S, and a differentiable function is one in which f(x) exists on its domain.

In the next few examples we use Equation to find the derivative of a function.

Example 3.2.1: Finding the Derivative of a Square-Root Function

Find the derivative of f(x)=x.

Solution

Start directly with the definition of the derivative function.

f(x)=limh0x+hxh Substitutef(x+h)=x+h and f(x)=x into f(x)=limh0f(x+h)f(x)h.
=limh0x+hxhx+h+xx+h+x Multiply numerator and denominator by x+h+x without distributing in the denominator.
=limh0hh(x+h+x) Multiply the numerators and simplify.
=limh01(x+h+x) Cancel the h.
=12x Evaluate the limit

Example 3.2.2: Finding the Derivative of a Quadratic Function

Find the derivative of the function f(x)=x22x.

Solution

Follow the same procedure here, but without having to multiply by the conjugate.

f(x)=limh0((x+h)22(x+h))(x22x)h Substitute f(x+h)=(x+h)22(x+h) and f(x)=x22x into f(x)=limh0f(x+h)f(x)h
=limh0x2+2xh+h22x2hx2+2xh Expand (x+h)22(x+h).
=limh02xh2h+h2h Simplify
=limh0h(2x2+h)h Factor out h from the numerator
=limh0(2x2+h) Cancel the common factor of h
=2x2 Evaluate the limit

try-it.png 3.2.1

Find the derivative of f(x)=x2.

Hint

Use Equation and follow the example.

Answer

f(x)=2x

We use a variety of different notations to express the derivative of a function. In Example we showed that if f(x)=x22x, then f(x)=2x2. If we had expressed this function in the form y=x22x, we could have expressed the derivative as y=2x2 or dydx=2x2. We could have conveyed the same information by writing ddx(x22x)=2x2. Thus, for the function y=f(x), each of the following notations represents the derivative of f(x):

f(x),dydx,y,ddx(f(x)).

In place of f(a) we may also use dydxx=a Use of the dydx 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 ΔyΔx where Δy is the difference in the y values corresponding to the difference in the x values, which are expressed as Δx (Figure). Thus the derivative, which can be thought of as the instantaneous rate of change of y with respect to x, is expressed as

dydx=limΔx0ΔyΔx.

CNX_Calc_Figure_03_02_001.jpeg

Figure 3.2.1: The derivative is expressed as dydx=limΔx0ΔyΔx.

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 f(x) gives the rate of change of a function f(x) (or slope of the tangent line to f(x)).

In Example we found that for f(x)=x,f(x)=1/2x. 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 f(x) is increasing over its entire domain, which means that the slopes of its tangent lines at all points are positive. Consequently, we expect f(x)>0 for all values of x in its domain. Furthermore, as x increases, the slopes of the tangent lines to f(x) are decreasing and we expect to see a corresponding decrease in f(x). We also observe that f(0) is undefined and that limx0+f(x)=+, corresponding to a vertical tangent to f(x) at 0.

CNX_Calc_Figure_03_02_002.jpeg

Figure 3.2.2: The derivative f(x) is positive everywhere because the function f(x) is increasing.

In Example we found that for f(x)=x22x,f(x)=2x2. The graphs of these functions are shown in Figure. Observe that f(x) is decreasing for x<1. For these same values of x,f(x)<0. For values of x>1, f(x) is increasing and f(x)>0. Also, f(x) has a horizontal tangent at x=1 and f(1)=0.

CNX_Calc_Figure_03_02_003.jpeg

Figure 3.2.3: The derivative f(x)<0 where the function f(x) is decreasing and f(x)>0 where f(x) is increasing. The derivative is zero where the function has a horizontal tangent

Example 3.2.3: Sketching a Derivative Using a Function

Use the following graph of f(x) to sketch a graph of f(x).

3.2.1.png

Solution

The solution is shown in the following graph. Observe that f(x) is increasing and f(x)>0 on (2,3). Also, f(x) is decreasing and f(x)<0 on (,2) and on (3,+). Also note that f(x) has horizontal tangents at 2 and 3, and f(2)=0 and f(3)=0.

3.2.2.png

try-it.png 3.2.2

Sketch the graph of f(x)=x24. On what interval is the graph of f(x) above the x-axis?

Hint

The graph of f(x) is positive where f(x) is increasing.

Answer

(0,+∞)

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 f(x) be a function and a be in its domain. If f(x) is differentiable at a, then f is continuous at a.

Proof

If f(x) is differentiable at a, then f(a) exists and

f(a)=limxaf(x)f(a)xa.

We want to show that f(x) is continuous at a by showing that limxaf(x)=f(a). Thus,

limxaf(x)=limxa(f(x)f(a)+f(a))

=limxa(f(x)f(a)xa(xa)+f(a)) Multiply and divide f(x)f(a) by xa.

=(limxaf(x)f(a)xa)(limxa(xa))+limxaf(a)

=f(a)0+f(a)

=f(a).

Therefore, since f(a) is defined and limxaf(x)=f(a), we conclude that f is continuous at a.

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 f(x)=|x|. This function is continuous everywhere; however, f(0) is undefined. This observation leads us to believe that continuity does not imply differentiability. Let’s explore further. For f(x)=|x|,

f(0)=limx0f(x)f(0)x0=limx0|x||0|x0=limx0|x|x.

This limit does not exist because

limx0|x|x=1 and limx0+|x|x=1.

See Figure 3.2.4.

CNX_Calc_Figure_03_02_006.jpeg

Figure 3.2.4: The function f(x)=|x| is continuous at 0 but is not differentiable at 0.

Let’s consider some additional situations in which a continuous function fails to be differentiable. Consider the function f(x)=3x:

f(0)=limx03x0x0=limx013x2=+.

Thus f(0) does not exist. A quick look at the graph of f(x)=3x clarifies the situation. The function has a vertical tangent line at 0 (Figure).

CNX_Calc_Figure_03_02_007.jpeg

Figure 3.2.5: The function f(x)=3x has a vertical tangent at x=0. It is continuous at 0 but is not differentiable at 0.

The function f(x)={xsin(1x) if x00 if x=0 also has a derivative that exhibits interesting behavior at 0. We see that

f(0)=limx0xsin(1/x)0x0=limx0sin(1x).

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

CNX_Calc_Figure_03_02_008.jpeg

Figure 3.2.6: The function f(x)={xsin(1x)ifx00ifx=0 is not differentiable at 0.

In summary:

  1. 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.
  2. We saw that f(x)=|x| 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.
  3. As we saw in the example of f(x)=3x, a function fails to be differentiable at a point where there is a vertical tangent line.
  4. As we saw with f(x)={xsin(1x) if x00 if x=0 a function may fail to be differentiable at a point in more complicated ways as well.

This last example is a valuable example to look over; however, you will not need to do these types of examples.

Example 3.2.4: 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 3.2.7). The function that describes the track is to have the form f(x)={110x2+bx+c if x<1014x+52 if x10 where x and f(x) are in inches. For the car to move smoothly along the track, the function f(x) must be both continuous and differentiable at 10. Find values of b and c that make f(x) both continuous and differentiable.

3.2.3.png

Figure 3.2.7: For the car to move smoothly along the track, the function must be both continuous and differentiable.

Solution

For the function to be continuous at x=10, limx10f(x)=f(10). Thus, since

limx10f(x)=110(10)210b+c=1010b+c

and f(10)=5, we must have 1010b+c=5. Equivalently, we have c=10b5.

For the function to be differentiable at 10,

f(10)=limx10f(x)f(10)x+10

must exist. Since f(x) is defined using different rules on the right and the left, we must evaluate this limit from the right and the left and then set them equal to each other:

limx10f(x)f(10)x+10=limx10110x2+bx+c5x+10

=limx10110x2+bx+(10b5)5x+10 Substitute c=10b5.

=limx10x2100+10bx+100b10(x+10)

=limx10(x+10)(x10+10b)10(x+10) Factor by grouping

=b2.

We also have

limx10+f(x)f(10)x+10

=limx10+14x+525x+10

=limx10+(x+10)4(x+10)

=14.

This gives us b2=14. Thus b=74 and c=10(74)5=252.

try-it.png 3.2.3

Find values of a and b that make f(x)={ax+b if x<3x2 if x3 both continuous and differentiable at 3.

Hint

Use Example 3.2.4 as a guide.

Answer

a=6 and b=9

Key Concepts

  • The derivative of a function f(x) is the function whose value at x is f(x).
  • The graph of a derivative of a function f(x) is related to the graph of f(x). Where f(x) has a tangent line with positive slope, f(x)>0. Where f(x) has a tangent line with negative slope, f′(x)<0. Where f(x) has a horizontal tangent line, f(x)=0.
  • 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 nth derivative.

Key Equations

  • The derivative function

f(x)=limh0f(x+h)f(x)h

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 a
a function for which f(a) exists is differentiable at a
differentiable on S
a function for which f(x) exists for each x in the open set S is differentiable on S
differentiable function
a function for which f(x) exists is a differentiable function
higher-order derivative
a derivative of a derivative, from the second derivative to the nth derivative, is called a higher-order derivative

Contributors

  • Gilbert Strang (MIT) and Edwin “Jed” Herman (Harvey Mudd) with many contributing authors. This content by OpenStax is licensed with a CC-BY-SA-NC 4.0 license. Download for free at http://cnx.org.


This page titled 3.2: The Derivative as a Function is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by OpenStax.

Support Center

How can we help?