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 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)=h→0limhf(x+h)−f(x).
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 (Figure) to find the derivative of a function.
Finding the Derivative of a Square-Root Function
Find the derivative of f(x)=x.
Answer:
Start directly with the definition of the derivative function. Use (Figure).
f′(x)=h→0limhx+h−x=h→0limhx+h−x⋅x+h+xx+h+x=h→0limh(x+h+x)h=h→0lim(x+h+x)1=2x1Substitutef(x+h)=x+handf(x)=xintof′(x)=h→0limhf(x+h)−f(x).Multiply numerator and denominator byx+h+xwithout distributing in thedenominator.Multiply the numerators and simplify.Cancel theh.Evaluate the limit.
Finding the Derivative of a Quadratic Function
Find the derivative of the function f(x)=x2−2x.
Answer:
Follow the same procedure here, but without having to multiply by the conjugate.
f′(x)=h→0limh((x+h)2−2(x+h))−(x2−2x)=h→0limhx2+2xh+h2−2x−2h−x2+2x=h→0limh2xh−2h+h2=h→0limhh(2x−2+h)=h→0lim(2x−2+h)=2x−2Substitutef(x+h)=(x+h)2−2(x+h)andf(x)=x2−2xintof′(x)=h→0limhf(x+h)−f(x).Expand(x+h)2−2(x+h).Simplify.Factor outhfrom the numerator.Cancel the common factor ofh.Evaluate the limit.
Find the derivative of f(x)=x2.
Answer:
f′(x)=2x
Hint
Use (Figure) and follow the example.
We use a variety of different notations to express the derivative of a function. In (Figure) we showed that if f(x)=x2−2x, then f′(x)=2x−2. If we had expressed this function in the form y=x2−2x, we could have expressed the derivative as y′=2x−2 or dxdy=2x−2. We could have conveyed the same information by writing dxd(x2−2x)=2x−2. Thus, for the function y=f(x), each of the following notations represents the derivative of f(x):
f′(x),dxdy,y′,dxd(f(x)).
In place of f′(a) we may also use dxdyx=a Use of the dxdy 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 ΔxΔy 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
dxdy=Δx→0limΔxΔy.
Figure 1. The derivative is expressed as dxdy=Δx→0limΔxΔy.
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 (Figure) 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 x→0+limf′(x)=+∞, corresponding to a vertical tangent to f(x) at 0.
Figure 2. The derivative f′(x) is positive everywhere because the function f(x) is increasing.
In (Figure) we found that for f(x)=x2−2x,f′(x)=2x−2. 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.
Figure 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.
Sketching a Derivative Using a Function
Use the following graph of f(x) to sketch a graph of f′(x).
Answer:
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.
Sketch the graph of f(x)=x2−4. On what interval is the graph of f′(x) above the x-axis?
Answer:
(0,+∞)
Hint
The graph of f′(x) is positive where f(x) 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 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)=x→alimx−af(x)−f(a).
We want to show that f(x) is continuous at a by showing that x→alimf(x)=f(a). Thus,
x→alimf(x)=x→alim(f(x)−f(a)+f(a))=x→alim(x−af(x)−f(a)⋅(x−a)+f(a))=(x→alimx−af(x)−f(a))⋅(x→alim(x−a))+x→alimf(a)=f′(a)⋅0+f(a)=f(a).Multiply and dividef(x)−f(a)byx−a.
Therefore, since f(a) is defined and x→alimf(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∣,
Figure 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)=x→0limx−03x−0=x→0lim3x21=+∞.
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)).
Figure 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(x1)0ifx=0ifx=0 also has a derivative that exhibits interesting behavior at 0. We see that
f′(0)=x→0limx−0xsin(1/x)−0=x→0limsin(x1).
This limit does not exist, essentially because the slopes of the secant lines continuously change direction as they approach zero ((Figure)).
Figure 6. The function f(x)={xsin(x1)0ifx=0ifx=0 is not differentiable at 0.
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 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.
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.
As we saw with f(x)={xsin(x1)0ifx=0ifx=0 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 f(x)={101x2+bx+c−41x+25ifx<−10ifx≥−10, 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.
Figure 7. For the car to move smoothly along the track, the function must be both continuous and differentiable.
Answer:
For the function to be continuous at x=−10,x→10−limf(x)=f(−10). Thus, since
x→−10−limf(x)=101(−10)2−10b+c=10−10b+c
and f(−10)=5, we must have 10−10b+c=5. Equivalently, we have c=10b−5.
For the function to be differentiable at -10,
f′(10)=x→−10limx+10f(x)−f(−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:
x→−10−limx+10f(x)−f(−10)=x→−10−limx+10101x2+bx+c−5=x→−10−limx+10101x2+bx+(10b−5)−5=x→−10−lim10(x+10)x2−100+10bx+100b=x→−10−lim10(x+10)(x+10)(x−10+10b)=b−2Substitutec=10b−5.Factor by grouping.
This gives us b−2=−41. Thus b=47 and c=10(47)−5=225.
Find values of a and b that make f(x)={ax+bx2ifx<3ifx≥3 both continuous and differentiable at 3.
Answer:
a=6 and b=−9
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 y=f(x) can be expressed in any of the following forms:
f′′(x),f′′′(x),f(4)(x),⋯,f(n)(x)
y′′,y′′′,y(4),⋯,y(n)
dx2d2y,dx3d3y,dx4d4y,⋯,dxndny.
It is interesting to note that the notation for dx2d2y may be viewed as an attempt to express dxd(dxdy) more compactly. Analogously, dxd(dxd(dxdy))=dxd(dx2d2y)=dx3d3y.
Finding a Second Derivative
For f(x)=2x2−3x+1, find f′′(x).
Answer:
First find f′(x).
f′(x)=h→0limh(2(x+h)2−3(x+h)+1)−(2x2−3x+1)=h→0limh4xh+h2−3h=h→0lim(4x+h−3)=4x−3Substitutef(x)=2x2−3x+1andf(x+h)=2(x+h)2−3(x+h)+1intof′(x)=h→0limhf(x+h)−f(x).Simplify the numerator.Factor out thehin the numeratorand cancel with thehin thedenominator.Take the limit.
Next, find f′′(x) by taking the derivative of f′(x)=4x−3.
f′′(x)=h→0limhf′(x+h)−f′(x)=h→0limh(4(x+h)−3)−(4x−3)=h→0lim4=4Usef′(x)=h→0limhf(x+h)−f(x)withf′(x)inplace off(x).Substitutef′(x+h)=4(x+h)−3andf′(x)=4x−3.Simplify.Take the limit.
Find f′′(x) for f(x)=x2.
Answer:
f′′(x)=2
Hint
We found f′(x)=2x in a previous checkpoint. Use (Figure) to find the derivative of f′(x)
Finding Acceleration
The position of a particle along a coordinate axis at time t (in seconds) is given by s(t)=3t2−4t+1 (in meters). Find the function that describes its acceleration at time t.
Answer:
Since v(t)=s′(t) and a(t)=v′(t)=s′′(t), we begin by finding the derivative of s(t):
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 functionf′(x)=h→0limhf(x+h)−f(x)
For the following exercises, use the definition of a derivative to find f′(x).
1. f(x)=6
2. f(x)=2−3x
Answer:
-3
3. f(x)=72x+1
4. f(x)=4x2
Answer:
8x
5. f(x)=5x−x2
6. f(x)=2x
Answer:
2x1
7. f(x)=x−6
8. f(x)=x9
Answer:
x2−9
9. f(x)=x+x1
10. f(x)=x1
Answer:
2x3/2−1
For the following exercises, use the graph of y=f(x) to sketch the graph of its derivative f′(x).
11.
12.
Answer:
13.
14.
Answer:
For the following exercises, the given limit represents the derivative of a function y=f(x) at x=a. Find f(x) and a.
15. h→0limh(1+h)2/3−1
16. h→0limh[3(2+h)2+2]−14
Answer:
f(x)=3x2+2,a=2
17. h→0limhcos(π+h)+1
18. h→0limh(2+h)4−16
Answer:
f(x)=x4,a=2
19. h→0limh[2(3+h)2−(3+h)]−15
20. h→0limheh−1
Answer:
f(x)=ex,a=0
For the following functions,
sketch the graph and
use the definition of a derivative to show that the function is not differentiable at x=1.
21. f(x)={2x3x−1if0≤x≤1ifx>1
22. f(x)={33xifx<1ifx≥1
Answer:
a.
b. h→1−limh3−3=h→1+limh3h
23. f(x)={−x2+2xifx≤1ifx>1
24. f(x)={2xx2ifx≤1ifx>1
Answer:
a.
b. h→1−limh2h=h→1+limhx+h2−x2.
For the following graphs,
determine for which values of x=a the x→alimf(x) exists but f is not continuous at x=a, and
determine for which values of x=a the function is continuous but not differentiable at x=a.
25.
26.
Answer:
a. x=1, b. x=2
27. Use the graph to evaluate a. f′(−0.5), b. f′(0), c. f′(1), d. f′(2), and e. f′(3), if they exist.
For the following functions, use f′′(x)=h→0limhf′(x+h)−f′(x) to find f′′(x).
28. f(x)=2−3x
Answer:
0
29. f(x)=4x2
30. f(x)=x+x1
Answer:
x32
For the following exercises, use a calculator to graph f(x). Determine the function f′(x), then use a calculator to graph f′(x).
31. [T] f(x)=−x5
32. [T] f(x)=3x2+2x+4
Answer:
f′(x)=6x+2
33. [T] f(x)=x+3x
34. [T] f(x)=2x1
Answer:
f′(x)=−(2x)3/21
35. [T] f(x)=1+x+x1
36. [T] f(x)=x3+1
Answer:
f′(x)=3x2
For the following exercises, describe what the two expressions represent in terms of each of the given situations. Be sure to include units.
hf(x+h)−f(x)
f′(x)=h→0limhf(x+h)−f(x)
37. P(x) denotes the population of a city at time x in years.
38. C(x) denotes the total amount of money (in thousands of dollars) spent on concessions by x customers at an amusement park.
Answer:
a. Average rate at which customers spent on concessions in thousands per customer.
b. Rate (in thousands per customer) at which x customers spent money on concessions in thousands per customer.
39. R(x) denotes the total cost (in thousands of dollars) of manufacturing x clock radios.
40. g(x) denotes the grade (in percentage points) received on a test, given x hours of studying.
Answer:
a. Average grade received on the test with an average study time between two amounts.
b. Rate (in percentage points per hour) at which the grade on the test increased or decreased for a given average study time of x hours.
41. B(x) denotes the cost (in dollars) of a sociology textbook at university bookstores in the United States in x years since 1990.
42. p(x) denotes atmospheric pressure at an altitude of x feet.
Answer:
a. Average change of atmospheric pressure between two different altitudes.
b. Rate (torr per foot) at which atmospheric pressure is increasing or decreasing at x feet.
43. Sketch the graph of a function y=f(x) with all of the following properties:
f′(x)>0 for −2≤x<1
f′(2)=0
f′(x)>0 for x>2
f(2)=2 and f(0)=1
x→−∞limf(x)=0 and x→∞limf(x)=∞
f′(1) does not exist.
44. Suppose temperature T in degrees Fahrenheit at a height x in feet above the ground is given by y=T(x).
Give a physical interpretation, with units, of T′(x).
If we know that T′(1000)=−0.1, explain the physical meaning.
Answer:
a. The rate (in degrees per foot) at which temperature is increasing or decreasing for a given height x.
b. The rate of change of temperature as altitude changes at 1000 feet is -0.1 degrees per foot.
45. Suppose the total profit of a company is y=P(x) thousand dollars when x units of an item are sold.
What does b−aP(b)−P(a) for 0<a<b measure, and what are the units?
What does P′(x) measure, and what are the units?
Suppose that P′(30)=5. 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 N(t) who have come down with the flu t weeks after its initial outbreak in a town with a population of 50,000 citizens.
Describe what N′(t) represents and how it behaves as t increases.
What does the derivative tell us about how this town is affected by the flu outbreak?
Answer:
a. The rate at which the number of people who have come down with the flu is changing t weeks after the initial outbreak.
b. The rate is increasing sharply up to the third week, at which point it slows down and then becomes constant.
For the following exercises, use the following table, which shows the height h of the Saturn V rocket for the Apollo 11 mission t 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 h′(t)? What are the units?
48. [T] Construct a table of values for h′(t) and graph both h(t) and h′(t) on the same graph. (Hint: for interior points, estimate both the left limit and right limit and average them.)
Answer:
Time (seconds)
h′(t) (m/s)
0
2
1
2
2
5.5
3
10.5
4
9.5
5
7
49. [T] The best linear fit to the data is given by H(t)=7.229t−4.905, where H is the height of the rocket (in meters) and t is the time elapsed since takeoff. From this equation, determine H′(t). Graph H(t) with the given data and, on a separate coordinate plane, graph H′(t).
50. [T] The best quadratic fit to the data is given by G(t)=1.429t2+0.0857t−0.1429, where G is the height of the rocket (in meters) and t is the time elapsed since takeoff. From this equation, determine G′(t). Graph G(t) with the given data and, on a separate coordinate plane, graph G′(t).
Answer:
G′(t)=2.858t+0.0857
51. [T] The best cubic fit to the data is given by F(t)=0.2037t3+2.956t2−2.705t+0.4683, where F is the height of the rocket (in m) and t is the time elapsed since take off. From this equation, determine F′(t). Graph F(t) with the given data and, on a separate coordinate plane, graph F′(t). 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 H′′(t),G′′(t), and F′′(t) are. What are the physical meanings of H′′(t),G′′(t), and F′′(t), and what are their units?
Answer:
H′′(t)=0,G′′(t)=2.858, and F′′(t)=1.222t+5.912 represent the acceleration of the rocket, with units of meters per second squared (m/s2).
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
Licenses & Attributions
CC licensed content, Shared previously
Calculus I.Provided by: OpenStaxLocated at: https://openstax.org/books/calculus-volume-1/pages/1-introduction.License: CC BY-NC-SA: Attribution-NonCommercial-ShareAlike. License terms: Download for free at http://cnx.org/contents/8b89d172-2927-466f-8661-01abc7ccdba4@2.89.
Hint
Use (Figure) and follow the example.