Differentiation
Differentiation
DIFFERENTIATION
INTRODUCTION
The derivative of a function is one of the most powerful tools in mathematics and applied sciences; it is the
principle tool that we use to solve problems in differential calculus. In this chapter, we define the derivative
and discuss many properties associated with this important concept.
In Section 3.1, we define the tangent line to the graph of a function at a given point and find its slope.
Also, we introduce equivalent definitions of the derivative, given in terms of limits, which we can apply
to any function. Moreover, we find the velocity of an object moving along a straight line. In Section 3.2,
we develop several rules that allow us to differentiate constant functions, power functions, polynomials,
rational functions, and certain combinations of them, directly, without having to take limits each time. In
Section 3.3, we obtain formulas for the derivatives of trigonometric functions. In Section 3.4, we derive a
formula that expresses the derivative of composition function f g in terms of f and g. This formula will
enable us to differentiate complicated functions using known derivatives of simpler functions. Sometimes,
functions are not given in the form y = f(x) but in a more complicated form in which it is difficult or
impossible to express y explicitly in terms of x. Such functions are called implicit functions. In Section
3.5, we explain how these functions can be differentiated using implicit differentiation. In Section 3.6, we
introduce higher derivatives and their notations. In Section 3.7, we obtain derivatives of inverse functions
and inverse trigonometric functions.
Section 3.1
THE DERIVATIVE AND
TANGENT LINE PROBLEM
f (a + h)
y
y = f (x)
Q (a +h, f(a+h))
y
y = f (x)
P (a, f(a))
f (a) on an open interval and a point a in the interval, how we define
Given a function f defined f (a)
the tangent line at the point P (a, f (a ) ) on the graph of f ?
P
(2, 4)
x
y = 4x−4
Figure 3.1.1 y
y
2 2
This definition suffices for a circle, but
3 (x −a 2)
for a more general curve it is not +y =9
satisfactory y1 9 (x
y Slope m PQ
Secant line
f (a + h) x Q Slope m PQ1
f(a)
x
142 x
a a+ h
a a+h
CHAPTER 3 DIFFERENTIATION
To define the slope of the tangent line L at P (a, f (a ) ) on the graph of f , we choose another
point Q (a + h, f (a + h ) ) , see Figure 3.1.3. f(x)
y
Q Secant line
f(x)
P
Tangent line
x
a a+h
y
Figure 3.1.3 s(t)
s a h
The line containing P and Q is a secant line. Using the standard calculation for the slope of
a line, we determine the slope of the secant line to be:
s a
f (a + h ) - f (a ) f (a + h ) - f (a )
mPQ = =
a + h -a a h a+h
x
y y
Slope m PQ Slope m PQ f(x)
Q
f(x)
Q
P P
L L
Slope m Slope m
x x
a a+h a+h a
Figure 3.1.4
y
Q (line
If f is continuous at a , we can makeSecant a + h, f (a + h ) ) approaches P (a, f (a ) ) by letting
Q
a + h approaches a . That is, h approaches 0 . Thus, we have the following definition for the
slope of the tangent line to the graph of the function f at P (a, f (a ) ) .
f(x)
P
Tangent line
143
x
a a+h
SECTION 3.1 THE DERIVATIVE AND TANGENT LINE PROBLEM
DEFINITION 3.1.1
The slope m of the tangent line to the graph of a function f at P (a, f (a )) is
f (a + h ) - f (a )
m = lim
h ®0 h
provided that the limit exists
The tangent line is then the line passing through the point (a, f (a ) ) with slope m . Thus the
point-slope form of the equation of the tangent line is
y = m(x - a ) + f (a )
EXAMPLE 3.1.1 Find the equation of the tangent line to the graph of f (x ) = x 2 at x = 2 .
P
(2, 4)
x
y = 4x−4
Figure 3.1.5
y
y
x = 1.
2 y3 + yx2 + x2− 3y2 = 0
Answer y = 4x - 1 -1 2 5 6 x
1
x y2 9 (x 2)2
3 –2 –1 0 1 2 3 4
144
y Slope m PQ
f (a + h) Q Slope m PQ1
CHAPTER 3 DIFFERENTIATION
The formal definition of the derivative of a function at a point x = a can now be given. We
will designate the derivative at a as f ¢(a ) , rather than m .
Definition 3.1.2
Let f be a function that is defined on an open interval containing a . The derivative
of f at a , written f ¢(a ) , is given by
f (a + h ) - f (a )
f ¢(a ) = lim
h ®0 h
provided the limit exists
The notation f ¢(a ) is read “ f prime of a ”. If f ¢(a ) exists, we say that f is differentiable at
a . If f is differentiable at a , then by Definition 3.1.2, f ¢(a ) is the slope of the tangent line
to the graph of f at the point (a, f (a ) ) .
f (1 + h ) - f (1) (1 + h )3 - 1 1 + 3h + 3h 2 + h 3 - 1
f ¢(1) = lim = lim = lim
h ®0 h h ®0 h h ®0 h
3h + 3h 2 + h 3 h(3 + 3h + h 2 )
= lim = lim = lim(3 + 3h + h 2 ) = 3
h ®0 h h ®0 h h ®0
RELATED PROBLEM 2
Let f (x ) = 1 - x 2 . Find f ¢(-3) .
Answer 6
Suppose that in Example 3.1.2 we had also need to find f ¢(2) and f ¢(3) . Must we repeat
the same long limit calculations to find each of f ¢(2) and f ¢(3) ? Instead, we compute the
derivative without specifying a value for x , leaving us with a function from which we can
calculate f ¢(a ) for any a , simply by substituting a for x .
145
SECTION 3.1 THE DERIVATIVE AND TANGENT LINE PROBLEM
f (x + h ) - f (x )
f ¢(x ) = lim
h ®0 h
(x + h )3 - x 3 x 3 + 3x 2h + 3xh 2 + h 3 - x 3
= lim = lim
h ®0 h h ®0 h
3x 2h + 3xh 2 + h 3 h(3x 2 + 3xh + h 2 )
= lim = lim
h ®0 h h ®0 h
= lim(3x 2 + 3xh + h 2 ) = 3x 2
h ®0
Notice that in this case, we have derived a new function, f ¢(x ) = 3x 2 . Substituting for x , we
obtain
f ¢(1) = 3(1)2 = 3
f ¢(2) = 3(2)2 = 12
f ¢(3) = 3(3)2 = 27
Answer a. 3x 2 + 2 b. 5, 2, 50
DEFINITION 3.1.3
The derivative of a function f is the function f ¢ which value at any number x is
f (x + h ) - f (x )
f ¢(x ) = lim
h ®0 h
provided the limit exists
The process of calculating a derivative is called differentiation. We will use the notations
dy df d
y¢ = = Dx y = f ¢(x ) = = f (x ) = Dx f (x )
dx dx dx
as different ways to denote the derivative f ¢(x ) . To indicate the value of a derivative at a
specified number x = a , we use the notation
dy df d
f ¢(a ) = = = f (x )
dx x =a dx x =a dx x =a
146
CHAPTER 3 DIFFERENTIATION
Solution
a. We have
f ¢(x ) = lim
f (x + h ) - f (x )
= lim
(2(x + h ) 2
)
+ 1 - ( 2x 2 + 1 )
h ®0 h h ®0 h
2 ( x 2 + 2xh + h 2 ) + 1 - 2x 2 - 1 2x 2 + 4xh + 2h 2 - 2x 2
= lim = lim
h ®0 h h ®0 h
2h ( 2x + h )
= lim = lim 2 ( 2x + h ) = 4x
h ®0 h h ®0
d. Note that the point corresponding to x = 2 is ( 2, 9 ) . The equation of the tangent line
with slope 8 through the point ( 2, 9 ) is
y = m(x - a ) + f (a )
y = 8(x - 2) + 9
y = 8x - 7
It is usually easier to find f ¢(a ) by using another form. We derive this alternate formula as
follows:
147
SECTION 3.1 THE DERIVATIVE AND TANGENT LINE PROBLEM
2
EXAMPLE 3.1.6 Let y = , x ¹ -1 . Find
x +1
dy dy dy
a. b. ,
dx dx x =-3 dx x =0
Solution
a. Using the limit definition of derivative, we have
2 2
-
dy f (x + h ) - f (x ) x + h + 1 x + 1
= lim = lim
dx h ®0 h h ®0 h
2(x + 1) - 2(x + h + 1) 2x + 2 - 2x - 2h - 2
= lim = lim
h ® 0 h(x + h + 1)(x + 1) h ® 0 h(x + h + 1)(x + 1)
-2h -2 -2
= lim = lim =
h ® 0 h (x + h + 1)(x + 1) h ® 0 (x + h + 1)(x + 1) (x + 1)2
148
CHAPTER 3 DIFFERENTIATION
dy 2
Thus, =- , x ¹ -1 .
dx (x + 1)2
b. When x = -3 , we have
dy 2 1
=- =-
dx x =-3 (-3 + 1)2 2
while when x = 0
dy 2
=- = -2
dx x =0 (0 + 1)2
2
RELATED PROBLEM 6 Let y = - . Find
x
dy dy
a. b.
dx dx x=
1
2
dy
Answer a. dy = 2 b. =8
dx x2 dx x=
1
2
DEFINITION 3.1.4
f (b + h ) - f (b)
f-¢ (b) = lim Left hand derivative
h ®0-
h
both exist.
149
0 x
_1
y
y
0 a x
0 a
Figure 3.1.6
a. f ¢(x ) b. Df ¢ c. f ¢(6)
Solution
a. It is clear that Df = éë 2, ¥ ) . We shall examine the cases x > 2 and x = 2 separately.
If x > 2 , then using the limit definition of the derivative, we have
f (x + h ) - f (x )
f ¢(x ) = lim
h ®0 h
x +h -2 - x -2
= lim
h ®0 h
x +h -2 - x -2 x +h -2 + x -2
= lim
h ®0 h x +h -2 + x -2
x + h - 2 - (x - 2)
= lim
h ®0 h
( x +h -2 + x -2 )
x +h -2-x +2
= lim
h ®0 h
( x +h -2 + x -2 )
h 1
= lim =
h ®0 h
( x +h -2 + x -2 ) 2 x -2
2+h -2 - 0 h 1
f+¢ (2) = lim = lim = lim
h ®0 h
+
h ®0 h
+
h ®0+
h
Since this limit does not exist, then f+¢ (2) does not exist.
b. Df ¢ = ( 2, ¥ ) .
150
CHAPTER 3 DIFFERENTIATION
1
f ¢(x ) =
2 x -2
Thus,
1 1
f ¢(6) = =
2 6-2 4
a. f ¢(x ) b. Df ¢ c. f ¢(0)
-3 æ 1ö 3
Answer a. b. çç -¥, ÷÷ c. -
2 1 - 3x çè 3 ÷ø 2
THEOREM 3.1.1
If a function f is differentiable at a , then f is continuous at a .
PROOF
If x Î Df and x ¹ a , then f (x ) may be written as follows:
f (x ) - f (a )
f (x ) = f (a ) + (x - a )
x -a
Using limit theorems and the alternative definition of the derivative, we have
f (x ) - f (a )
lim f (x ) = lim f (a ) + lim . lim ( x - a )
x ®a x ®a x ®a x -a x ®a
= f (a ) + f ¢(a ).0 = f (a )
The converse of Theorem 3.1.1 is not true; that is, there are functions, which are continuous
but not differentiable as we can see in the following example.
151
SECTION 3.1 THE DERIVATIVE AND TANGENT LINE PROBLEM
Solution
a. f is continuous at x = 0 (Verify). y
P
b. From the limit definition of the derivative, we have L
Tangent line
f (0 + h ) - f (0) h -0 h
f ¢(0) = lim = lim = lim
h ®0 hSecant line h ®0 h h ®0 h
h x
We need to evaluate
y
both the left hand and the right hand limits of
M h
y The left hand derivative at x = 0 is: M is not a tangenty line.
L
P Q(a + h, f(a + h))
P h -h f(a + h) P
f-¢ (0) = lim = lim = lim (-1) = -1 f(a + h
L h ® 0- h h ®0 h
-
h ® 0- L Slope = h
h h f(a)
f+¢ (0)
Secant line
= lim = lim = lim 1 = 1
xh ® 0
+
h h ®0 +
h h ® 0+ x x
a a+h
y hand derivative is not equal to the right hand derivative, then f is not
Since the left
M M
differentiable at x = 0 , see Figure 3.1.7
M is not a tangent line. M is not a tangent line.
L yP L
Q(a + h, f(a + h)) Q(a + h, f(a + h))
f(a + h) f(a + h)
f(a + h) – f(a) f(a + h) – f(
Slope = Slope =
h h
f(x) = |x|
P(a, f(a)) P(a, f(a))
f(a) f(a)
x x
a a+h (0, 0) x a a+h
Figure 3.1.7
y y y
y
RELATED PROBLEM 8 y Given the function f (x ) = x - 1
f(x) = |x| a. Show that f is continuous at x = 1. f(x) = |x|
In general, if a function has a corner or a cusp it will not have a derivative at that point. The
x Vertical tangent x
(0, 0)
graphs in Figure 3.1.8 shows examples of corners and cusps.
a x
y y y y y y
Corners Cusp
y
Corner
a x a x a1 a2 x a x a x a1
Figure 3.1.8
al tangent Vertical tangent
x a x
152
y
f(x) = |x|
CHAPTER 3 DIFFERENTIATION
(0, 0) x
A function will also fail to be differentiable at a point if it has a vertical tangent at that point.
y at a point a . Recall
For example, the function shown in Figure 3.1.9 has a vertical tangent y y
that since the slope of a vertical line is undefined, there is no derivative at such point.
y
a x a x
Vertical tangent
a x
Figure 3.1.9
REMARK
Theorem 3.1.1 is often written as its contrapositive:
Thus, we see that all differentiable functions on are continuous on . Nevertheless there
are continuous functions on that are not differentiable on .
ì
ïx + 1 x < 0
EXAMPLE 3.1.9 Show that f (x ) = ï
í is not differentiable at x = 0.
ï
ï 2x x ³0
î
Solution To show that f is not differentiable at x = 0 . The above remark tells us that it is
enough to show that f is discontinuous at x = 0 . Notice that
ì
ï 2x + 1 x < 1
RELATED PROBLEM 9 Show that f (x ) = ïí is not differentiable at x = 1.
ï
ï 3x + 1 x ³ 1
î
SUMMARY
A function f fails to have a derivative at x = a if:
• The function f is discontinuous at x = a .
• The graph of f has a corner at (a, f (a ) ) .
• The graph of f has a vertical tangent at x = a .
153
f
SECTION 3.1 THE DERIVATIVE AND TANGENT LINE PROBLEM
ILLUSTRATION
x0 x1 x2 x3 x4 x5
Below is the graph of the function f . List the points on the graph at which the function f
is not differentiable.
x0 x1 x2 x3 x4 x5 x6
y
Figure 3.1.10
y
f(x)
The function in not differentiable at x = x 5 since the function is discontinuous at this point;
it is not differentiable at x = x1 , x = x 2 , f(x)
x = 3 x = x 4 and x = x 6 since there are corners
= cx , f(x + h) = c
at these points.
P
x x+h x
s a P
a x
a+h a
Figure 3.1.11
We can see that t changes from a to a + h , s(t ) changes from s(a ) to s(a + h ) . The ratio
of the change in s(t ) to the change in t measures the average velocity over the interval
é a, a + h ù . That is, the average velocity of a function s over the interval é a, a + h ù is
ë û ë û
s(a + h ) - s(a )
vav = y
h
Slope m PQ f(x)
Thus, the average velocity of a function s over the interval éë a, a + h ùû has the same value as
Q
the slope of the secant line passing through the points (a, s(a ) ) and ( a + h, s(a + h ) ) . Now,
P
154 L
Slope m
x
a+h a
CHAPTER 3 DIFFERENTIATION
by letting h approach zero, we obtain the instantaneous velocity (or simply the velocity) of
the object when t = a .
s(a + h ) - s(a )
v(a ) = lim = s ¢(a )
h ®0 h
In general, if s(t ) is the position function for an object moving along the graph of s(t ) , the
velocity of the object at time t is
v(t ) = s ¢(t )
That is, the velocity function is the derivative of the position function.
EXAMPLE 3.1.10 The position of a moving object at time t is given by the function
2
s(t ) = t + t , where s is measured in feet and t is measured in seconds.
a. Find the average velocity of the object over the interval éë 1,1.1 ùû .
b. Find the instantaneous velocity of the object at t = 1 and at t = 3 .
c. How much time it take for the object to reach instantaneous velocity of 99 ft sec .
Solution
a. To find the average velocity over the interval éë 1,1.1 ùû notice that,
a = 1 , h = 0.1
Thus the average velocity is
s(a + h ) - s(a ) s(1 + 0.1) - s(1)
vav = =
h 0.1
=
((1.1)2 + 1.1 ) - ((1)2 + 1 ) = 2.31 - 2 = 0.31 = 3.1 ft sec
0.1 0.1 0.1
¢
v(t ) = s (t ) = lim
s(t + h ) - s(t )
= lim
( (t + h )2 + (t + h ) ) - ( t 2 + t )
h ®0 h h ®0 h
t 2 + 2th + h 2 + t + h - t 2 - t 2th + h 2 + h
= lim = lim
h ®0 h h ®0 h
h(2t + h + 1)
= lim = lim(2t + h + 1) = 2t + 1
h ®0 h h ®0
155
SECTION 3.1 THE DERIVATIVE AND TANGENT LINE PROBLEM
c. The instantaneous velocity after t seconds is 2t + 1 . Thus, we must solve the equation
2t + 1 = 99
98
The solution is t = = 49 sec .
2
RELATED PROBLEM 10 The position of a moving object at time t is given by the function
s(t ) = t 2 + 1 , where s is measured in feet and t is measured in seconds.
a. Find the average velocity of the object over the interval éë 2, 2.2 ùû
b. Find the instantaneous velocity of the object at t = 2 and at t = 5 .
c. How much time it take for the object to reach instantaneous velocity of 120 ft sec .
Answer a. 4.2 ft sec b. 4 ft sec,10 ft sec c. 60 sec
156
CHAPTER 3 DIFFERENTIATION
EXERCISES 3.1
In Exercises 1-9, find the derivative of the given function using the limit definition of the
derivative.
1. f (x ) = 2x + 1 2. f (x ) = x 2 - 3 3. f (x ) = x 2 + 2x
2
4. f (x ) = ( x - 2 ) 5. f (x ) = 1 x 6. f (t ) = 1-t
t 1
7. f (x ) = 2 - x 8. f (t ) = 9. f (x ) = 1 -
t +2 x -1
In Exercises 10-15, find an equation of the tangent line to the graph of y = f (x ) at the point
x =a.
10. f (x ) = x 2 - 1, a = 1 11. f (x ) = 2x 3 + 1, a = -1
8
12. f (x ) = 7x - x 2 , a = 2 13. f (x ) = , a = -2
x +4
ìï 4x + 1 x < 2
14. f (x ) = 1 x 2 , a = 3 15. f (x ) = ïí 2 ,a = 2
ïï x + 5 x ³ 2
î
In Exercises 16-19, the given limit is derivative, find the function and the point
3
2
3(2 + h ) - 3(2)
2
(3 + h ) + 2 ( 3 + h ) - 33
16. lim 17. lim
h ®0 h h ®0 h
1 æç 1 1 ö÷
x -83 çç - ÷÷
18. lim 19. lim 2 è x 2 ø
x ®2 x - 2 x ®2 x -2
157
SECTION 3.1 THE DERIVATIVE AND TANGENT LINE PROBLEM
ì
ï 2x + 1 x £ 3
24. Given the function f (x ) = ïí . Show that
ï
ï 4+x x > 3
î
a. f is continuous at x = 3
b. f is not differentiable at x = 3
Each figure in Exercises 30-31 shows the graph of a function f . List the points on the graph
at which the function f is not differentiable
x 0 x1 x2 x 3 x4 x5 x6 x7 x8
30.
f
f
x0 x1 x2 x3 x4 x5
f f
x x x x x x5 x
x 0 0 x1 1 x 2 2 x 3 3x 4 4 x5 6 x6 x7 x8
y
158
f(x) = c f(xf + h) = c
CHAPTER 3 DIFFERENTIATION
32. A particle moves along the graph of the function s(t ) = t 2 + 3t , where s is measured in
meters and t in seconds. Find the instantaneous velocity of the particle when t = 1
33. A particle moves along the graph of the function s(t ) = 2t 3 + t + 1 , where s is measured
in meters and t in seconds. Find the instantaneous velocity of the particle when t = 2 .
34. An object moves along a coordinate line so that its directed distance from the origin after
t seconds is t 2 + 1 feet.
a. Find its instantaneous velocity at t = a, a > 0 .
35. An object moves along a coordinate line so that its directed distance from the origin after
t seconds is 2t + 1 feet.
a. Find its instantaneous velocity of the object at t = a, a > 0 .
1
b. When will it reach a velocity of ft sec ?
3
159
SECTION 3.2 DIFFERENTIATION RULES
Section 3.2
DIFFERENTIATION RULES
In the previous section, we define the derivative f ¢ of a function f using the limit definition
of the derivative
f (x + h ) - f (x )
f ¢(x ) = lim
h ®0 h
Deriving the derivative of a function using the limit definition is tedious, lengthy and time
consuming when one wants to differentiate a complicated function. Fortunately, we can
summarize some general rules that have been derived from the limit definition of the derivative
to allow us to simplify the task of finding derivatives. We start with the derivative of a linear
function.
THEOREM 3.2.1
If f (x ) = mx + c where m and c are real numbers, then
f ¢(x ) = m
PROOF
From the derivative definition, we have
f (x + h ) - f (x ) ( m(x + h ) + c ) - ( mx + c )
f ¢(x ) = lim = lim
h ®0 h h ®0 h
mx + mh + c - mx - c mh
= lim = lim = lim m = m
h ®0 h h ®0 h h ®0
¢
d
(c ) = 0
dx
160
CHAPTER 3 DIFFERENTIATION
ILLUSTRATION
d d d æç 1 ö 1
a. (3x ) = 3 b. (2x - 5) = 2 c. çç - x + 3 ÷÷÷ = -
dx dx dx è 2 ø 2
d d d
d.
dx
(4) = 0 e.
dx
(p) = 0 f.
dx
( cos ( p 3 ) ) = 0
ILLUSTRATION
a. d 5 d
(x ) = 5x 5-1 = 5x 4 b. (x ) = (1)x 1-1 = x 0 = 1
dx dx
d -6 d æç 1 ö÷ d
c.
dx
(x ) = -6x -6-1 = -6x -7 d. çç ÷÷ =
dx è x ø dx
( x -1 ) = ( -1) x -1-1 = ( -1) x -2
d æçç 2 ö÷÷ 1 -2
1 1
d 1 1
e. ( x) = x
çç ÷ ÷ = x = =
dx dx çè ÷ø 2 1
2 x
2x 2
We should keep in mind that a derivative is a limit; the differentiation rules in Theorem 3.2.3
follow immediately from the corresponding rules for limits.
THEOREM 3.2.3
If f and g are differentiable functions and c is any real number, then
a. ( cf )¢ (x ) = cf ¢(x ) ; Constant Multiple Rule
161
SECTION 3.2 DIFFERENTIATION RULES
PROOF
We prove only parts (a) and (b). The proof of part (c) is left as an exercise.
f (x + h ) + g(x + h ) - f (x ) - g(x )
= lim
h ®0 h
Grouping f terms together and g terms together, we have
f (x + h ) - f (x ) + g(x + h ) - g(x )
H ¢(x ) = lim
h ®0 h
æ f (x + h ) - f (x ) g(x + h ) - g(x ) ö÷
= lim çç + ÷
h ®0 ç
è h h ÷ø
= f ¢(x ) + g ¢(x )
¢
REMARK
Sum Rule can be extended to finite number of functions as follows:
If f1, f2 ,......., fn are differentiable functions, then
162
CHAPTER 3 DIFFERENTIATION
a. f (x ) = 5x 3 b. g(x ) = 5 x 2
3 2
c. f (x ) = 3x 5 +
x2
2
4x - x + 3
d. g(x ) =
x
Solution
a. Apply Theorem 3.2.3 (a) and the power rule, we have
d
f ¢(x ) =
dx
( 5x 3 ) = 5 dxd ( x 3 ) = 5 ( 3x 2 ) = 15x 2
b. Apply Theorem 3.2.3 (a) and the power rule, we have
æ2ö
g ¢(x ) =
d
dx
3
(
5 x2 = 5
d
dx
) ( 3
)
x2 = 5
d
dx
( x 2/3 ) = 5 çç ÷÷ ( x -1/3 ) =
çè 3 ÷ø
10
1
=
10
33 x
3x 3
= 3 ( 5x 4 ) + 2 ( -2x -3 )
= 15x 4 - 4x -3
d. Note that we do not have a rule for computing the derivative of quotient function. So,
we need to rewrite g(x ) by dividing out x in the denominator. We have
3 1 1
4x 2 - x + 3 4x 2 x 3 -
g(x ) = = - + = 4x 2 - x 2 + 3x 2
x x x x
From Theorem 3.2.3 and the power rule, we obtain
d æçç 2 - ö d æçç 2 ö÷÷ d æçç 2 ö÷÷ d æçç -2 ö÷÷
3 1 1 3 1 1
÷
2 + 3x 2 ÷
g ¢(x ) = ç 4x - x ÷÷ = ç 4x ÷÷ - x
ç ÷÷ + ç 3x ÷÷
dx çèç ø÷ dx çèç ø÷ dx èçç ø÷ dx çèç ø÷
163
SECTION 3.2 DIFFERENTIATION RULES
a. f (x ) = -3x 4 b. g(x ) = 3 x 4
3 10
c. f (x ) = - 2x
x
(
d. g(x ) = x 3x 2 - x )
Answer
a. -12x 3 b. 4 3 x -
3
c. -5x 2 -2
3
d. 9x 2 - x
2
Till now, we have developed rules for computing the derivatives of a variety of functions
including the derivatives of sum and difference of two of functions. We may wonder whether
the derivative of a product of two functions is the same as the product of their derivatives. We
test this with the following simple example.
d
Consider
dx
( x 3x 5 ) . We can compute this derivative by first combining the two terms:
d d
dx
( x 3x 5 ) =
dx
( x 8 ) = 8x 7
Is this derivative the same as the product of the two individual derivatives? Notice that
d d
dx
( x 3 ) ( x 5 ) = ( 3x 2 )( 5x 4 )
dx d
= 15x 6 ¹ 8x 7 =
dx
( x 3x 5 )
Thus, the derivative of f (x )g(x ) is not as simple as f ¢(x )g ¢(x ) . Theorem 3.2.4 provides us with
a general rule for computing the derivative of a product of two differentiable functions.
PROOF
Let H (x ) = f (x )g(x ) . We want to show that
H ¢(x ) = f (x )g ¢(x ) + g(x )f ¢(x )
From the limit definition of the derivative, we have
f (x + h )g(x + h ) - f (x )g(x )
H ¢(x ) = lim
h ®0 h
Subtract and add f (x + h )g(x ) , we have
f (x + h )g(x + h ) - f (x + h )g(x ) + f (x + h )g(x ) - f (x )g(x )
H ¢(x ) = lim
h ®0 h
164
CHAPTER 3 DIFFERENTIATION
In the following example, we notice that the product rule saves us from multiplying out a
tedious product
Solution
a.
d d
f ¢(x ) = x 3
dx
( x 4 - 5x 2 + 10 ) + ( x 4 - 5x 2 + 10 ) ( x 3 )
dx
= x 3 ( 4x 3 - 10x ) + ( x 4 - 5x 2 + 10 ) (3x 2 )
= 4x 6 - 10x 4 + 3x 6 - 15x 4 + 30x 2
= 7x 6 - 25x 4 + 30x 2
b.
d æç 2 2ö æ 2 2ö d
f ¢(x ) = ( x 2 + 1 ) çç x - x + ÷÷÷ + ççç x - x + ÷÷÷ ( x + 1 )
2
dx è xø è x ø dx
æ 1 2 ö æ 2ö
= ( x 2 + 1 ) çç 2x - - ÷÷ + çç x 2 - x + ÷÷ ( 2x )
çè 2 x x 2 ÷ø çè x ÷ø
3/2
5x 2 1
=- + 4x 3 - + 2x - +2
2 x2 2 x
c. First, we write f as a product of two functions
f (x ) = (x -1 + 5x 2 ) ( x - 3x 2 )
Thus,
d d
f ¢(x ) = ( x -1 + 5x 2 ) ( x - 3x 2 ) + ( x - 3x 2 ) (x -1 + 5x 2 )
dx dx
= (x -1 + 5x 2 ) ( 1 - 6x ) + ( x - 3x 2 )( -x -2 + 10x )
= -3(20x 3 - 5x 2 + 1)
165
SECTION 3.2 DIFFERENTIATION RULES
a. f (x ) = (x 2 + 1)(x 3 + 1) b. f (x ) = x (x -3 + 5x ) ( x - 2 )
æ 3ö
c. f (x ) = ( )
x + 3x çç 5x 2 - ÷÷÷
èç xø
Answer
a. 5x 4 + 3x 2 + 2x b. 15x 2 + 4x -3 - x -2 - 20x
REMARK
The product rule is valid for any finite number of functions. The following example
will be written for three functions just for simplicity:
Suppose that f , g, and h are differentiable functions. We can develop a rule for
( fgh )¢(x ) as follows:
Theorem 3.2.5 provides us with a general rule for computing the derivative of a quotient of
two differentiable functions
166
CHAPTER 3 DIFFERENTIATION
Subtracting and adding g(x )f (x ) in the numerator of the last quotient, we obtain
g(x )f (x + h ) - g(x )f (x ) + g (x )f (x ) - f (x )g (x + h )
H ¢(x ) = lim ,
h ®0 hg(x + h )g(x )
Or equivalently,
æ f (x + h ) - f (x ) ö÷ æ g(x + h ) - g(x ) ÷ö
g(x ) çç ÷÷ - f (x ) çç ÷÷
èç h ø çè h ø
H ¢(x ) = lim
h ®0 g(x + h )g(x )
f (x + h ) - f (x ) g(x + h ) - g(x )
g(x ) lim - f (x ) lim
= h ®0 h h ®0 h
lim éë g(x + h )g(x ) ùû
h ®0
5 x2 + 1
a. f (x ) = b. f (x ) =
2x 2 + 6x - 3 x3 - 1
Solution
a. Apply the quotient rule, we have
d d
ö÷ ( 2x + 6x - 3 ) dx ( 5 ) - ( 5 ) dx ( 2x + 6x - 3 )
2 2
d æç 5
f ¢(x ) = ç ÷=
dx çè 2x 2 + 6x - 3 ÷ø 2
2x 2 + 6x - 3 ( )
=
( 2x 2
+ 6x - 3 ) ( 0 ) - ( 5 )( 4x + 6 )
=
-20x - 30
2 2
( 2x 2 + 6x - 3 ) ( 2x 2 + 6x - 3 )
b. Apply the quotient rule, we have
d d
d æç x 2 + 1 ö÷ (
x 3 - 1) ( x 2 + 1) - ( x 2 + 1) ( x 3 - 1)
f ¢(x ) = ç ÷÷ = dx dx
dx ççè x 3 - 1 ø÷ 2
( x - 1)
3
(x 3 - 1)(2x ) - (x 2 + 1)(3x 2 )
=
2
(x 3 - 1)
2x 4 - 2x - 3x 4 - 3x 2 -x 4 - 3x 2 - 2x
= =
2 2
( x 3 - 1) ( x 3 - 1)
167
SECTION 3.2 DIFFERENTIATION RULES
-4 1-x (x + 1)(x + 2)
a. f (x ) = b. f (x ) = c. f (x ) =
x -3 1+x 2 (x - 1)(x - 2)
Answer
a. 2 x 2 - 2x - 1 12 - 6x 2
b. c.
2
(x 2 - 3x + 2)2
x ( x -3 ) (1 + x 2 )2
d d æç x + f (x ) ö÷
a.
dx
( 2f (x ) - 3g(x ) + 4x 2 ) x =2 b. ç ÷
dx çè x - g(x ) ø÷ x =2
d
c. ( f (x )g(x ) ) x =2
dx
Solution
a. Using Theorem 3.2.3, we have
d
dx
( 2f (x ) - 3g(x ) + 4x 2 ) = 2 f ¢(x ) - 3g ¢(x ) + 8x .
Thus,
d
dx
( 2f (x ) - 3g(x ) + 4x 2 ) x =2 = 2 f ¢(2) - 3g ¢(2) + 8(2) = 2(-4) - 3(2) + 16 = 2 .
Thus,
d æç x + f (x ) ö÷ ( 2 - g(2) )( 1 + f ¢(2) ) - ( 2 + f (2) )( 1 - g ¢(2) )
çç ÷ =
dx è x - g(x ) ø÷ x =2 ( 2 - g(2) )
2
(2 - 1)(1 - 4) - (2 + 3)(1 - 2)
= =2
(2 - 1)2
168
CHAPTER 3 DIFFERENTIATION
Thus,
d
( f (x )g(x ) ) x =2 = f (2)g ¢(2) + g(2)f ¢(2) = (3)(2) + (1)(-4) = 2
dx
RELATED PROBLEM 4
Suppose f and g are differentiable functions at x = 1 and that
f (1) = -2, f ¢(1) = 3, g(1) = -1 and g ¢(1) = -4 .
Find
d d çæ x 2 - f (x ) ÷ö
a.
dx
( 3f (x ) - 2g(x ) - 4x 3 ) x =1 b. ç ÷÷
dx çèç x - g(x ) ø÷ x =1
c. d ( f (x )g(x ) )
dx x =1
Answers
a. 5 b. - 17 4 c. 5
ìï x 3 x £1
Example 3.2.5 Find the values of a and b such that f (x ) = ïí is differentiable
ï ïax + b x > 1
at x = 1 . î
d
f-¢ (1) =
dx
( x3 ) = 3x 2
x =1
=3
x =1
d
f+¢ (1) = (ax + b ) = a
dx x =1
Thus,
a =3
Since a + b = 1 , b = 1 - a = 1 - 3 = -2 .
ì
ï ax 3 x £2
RELATED PROBLEM 5 Find the values of a and b such that f (x ) = ïí 2 is
ï
ï x +b x > 2
differentiable at x = 2 . ï
î
169
SECTION 3.2 DIFFERENTIATION RULES
1 4
Answers a = , b=- .
3 3
In the following example we will use the quotient rule to find an equation of the tangent line
to the graph of a given function.
x2 + 3
EXAMPLE 3.2.6 Find an equation for the tangent line to the graph of f (x ) = at
x +1
x = 3.
Solution From the quotient rule, we have
d d
(x + 1)
dx
( x 2 + 3 ) - ( x 2 + 3 ) ( x + 1)
dx
f ¢(x ) =
2
(x + 1)
( x + 1 )( 2x ) - ( x 2 + 3 )( 1 ) 2x 2 + 2x - x 2 - 3 x 2 + 2x - 3
= = =
2 2 2
( x + 1) ( x + 1) ( x + 1)
The slope of the tangent line to the graph of f at x = 3 is
x 2 + 2x - 3 12 3
m = f ¢(3) = = =
2 16 4
(x + 1) x =3
y = m(x - 3) + f (3)
æ3ö
y = çç ÷÷ (x - 3) + 3
çè 4 ÷ø
3 3
y = x+
4 4
In the following example, we find the points at which the curve y = f (x ) has a horizontal
tangent.
EXAMPLE 3.2.7 Find the x -coordinate of the point(s) at which the curve y = x 4 - 4x 2 + 1
has a horizontal tangent.
dy
Solution The horizontal tangents, if any, occur where the slope is zero. To find these
dy dx
points, we find :
dx
170
KING SAUD UNIVERSITY
PREPARATORY YEAR DEANSHIP
BASIC SCIENCE DEPARTMENT
CHAPTER 3 DIFFERENTIATION
6 y
4
dy
= 4x 32 - 8x ,
dx x=1
x
dy
Solve the equation = 0−8
for x−6, we−4have−2 2 4 6
dx −2
dy
= 4x 3 - x2 + 3 Þ 4x (x 2 - 2) = 0
y =8x = 0 −4
dx x+1
x = 0 or x 2 = 2
Þ −6
Þ −8
x = 0 or x = ± 2
y
6
4 y = x4 − 4x2 + 1
2
x
−3 −2 −1 1 2 3
−2
√ √
x=− 2 −4 x= 2
Figurey3.2.1
y = 2 cos x 2
y = −2x + π
1
RELATED PROBLEM 7 Find the x -coordinate of the point(s)
x at which the curve
π π π
y = x - 4x + x + 2 has a −π
3 2 − 2 tangent.
horizontal −1 2
−2
4 - 13 4 + 13
Answer x = , x =
3 3
8 y
6
y = x + sin x
4
(π, π)
2
x
π π 3π 2π
2 2
−2
171
SECTION 3.2 DIFFERENTIATION RULES
EXERCISES 3.2
In Exercises 1-18, find the derivative of the given function
1. f (x ) = 3x 3 - 4x 2 + 5x - 2 1
2. f (x ) = 3x 7 - x 5
5
1
2
1 x2
3. f (x ) = 3x 7 - x 5 + 2x 3 4. f (x ) = x -4 - + -x
5 3x 3 2
1 7
5. g(x ) = 4 2
6. R(x ) =
x +x +1 x 5
t +2 x2 - 3
11. g(t ) = 12. g(x ) =
t -2 x +4
x 14. f (x ) = x + 1
13. f (x ) =
3 - 2x
z2 + 2 æ öæ ö
15. f (z ) = 16. f (x ) = çç 1 + 1 ÷÷ çç 1 + 1 ÷÷
èç ÷
x øèç ÷
z3 x2 ø
2t 2 - 3t + 1 x2 - x + 1
17. f (t ) = 18. g(x ) =
2t + 1 x2 + 1
In Exercises 19-27, find the equation of the tangent line to the graph of the function at the
indicated point.
5 æ ö
19. f (x ) = 2x 2 - 3x + 4 , ( 2, 6 ) 20. f (x ) = - x 2 + 2x + 2 , çç -1, - 5 ÷÷
3 çè 3 ø÷
21. f (x ) = x 2 - 2x + 2 , ( 1,1 ) x
22. f (x ) = , 6, 2 )
x -3 (
1
23. f (x ) = , æçç -1, 1 ö÷÷ 24. f (x ) = x -2 , ( 1,1 )
2
x +1 èç 2 ø÷÷
x æ 1ö 10
25. f (x ) = , çç 1, ÷÷÷ 26. f (x ) = x 2 - , ( -2, 9 )
x + 1 çè 2 ø x
27. f (x ) = x 3 - x , ( -1, 0 )
28. Suppose f and g are functions of x that are differentiable at x = 0 and that:
f (0) = 5, f ¢(0) = -3, g(0) = -1, and g ¢(0) = 2
172
CHAPTER 3 DIFFERENTIATION
29. Suppose f and g are functions of x that are differentiable at x = 3 and that:
In Exercises 30-33, find x -coordinates of the points where the tangent line to the graph of
the given function is horizontal
5x 31. f (x ) = x 2 - x - 11
30. f (x ) =
2
x +1
34. Find all points ( x , y ) on the graph of f (x ) = x 2 with tangent lines passing through
the point (3, 8) .
35. Find equations for the tangent to the curve y = x 3 - 4x + 1 at the points where the
slope of the curve is 8 .
2 3
36. Let f (x ) = x + x 2 - 12x + 6 . Find the values of x for which
3
a. f ¢(x ) = -12 b. f ¢(x ) = 0 c. f ¢(x ) = 12
1
37. Find the point(s) on the graph of the function f (x ) = 2x + at which the slope of
x
tangent line is ( -2 ) .
1 1 dy
38. Solve the equation + = 6 for y and find .
x y dx
39. Find the values of a and b if the tangent to y = ax 2 + bx at (1, 5) has slope 8 .
ì
ï x 3, x £1
40. Determine whether f (x ) = ï
í is differentiable at x = 1 or not.
ï
ï 4x - 3, x >1
î
ì
ïax 2 + b, x £ -1
41. Find a and b given that the derivative of f (x ) = ïí 5 is
ï
ïbx + ax + 4, x > - 1
everywhere continuous. ï
î
d é 2ù
42. Use product rule to show that ê ( f (x ) ) ú = 2 f (x )f ¢(x ) .
dx ë û
173
SECTION 3.2 DIFFERENTIATION RULES
43. The position of a particle moves in a straight line is given by the equation
s(t ) = t 3 - 4.5t 2 - 7t, t ³ 0 ,
where t is measured in seconds and s in meter. When the particle reaches a velocity
of 5 m s .
174
CHAPTER 3 DIFFERENTIATION
Section 3.3
DERIVATIVES OF
TRIGONOMETRIC FUNCTIONS
Before starting this section, we might need to review the trigonometric functions. In dealing
with problems involving angles of triangles, the measurement of an angle is usually given in
degrees. In calculus, we are dealing with functions of real numbers, and these functions are
defined in terms of radian measure. Thus, when we talk about the function f (x ) = sin x it is
understood that sin x means the sine of the angle which radian measure is x .
So far, we have applied the rules of differentiation on different types of functions such as:
polynomials and rational functions. In this section, we discuss the differentiability of the six
trigonometric functions.
THEOREM 3.3.1
d d
a. ( sin x ) = cos x b. ( cos x ) = - sin x
dx dx
PROOF
We will prove (a), while (b) is left as an exercise.
From the limit definition of the derivative, we have
d sin(x + h ) - sin x
( sin x ) = hlim
dx ® 0 h
Using the identity:
sin(a + b) = sin a cos b + cos a sin b
we have,
d sin x cos h + cos x sin h - sin x
( sin x ) = hlim
dx ®0 h
Grouping terms with sin x and terms with sin h separately, we have
175
SECTION 3.3 DERIVATIVES OF TRIGONOMETRIC FUNCTIONS
y
y 1 y cos x
Recall from Theorem 2.2.8 that
x
– 0
0 cos h - 1 sin h
–1 lim = 0 and lim =1
y'
h ®0 h h ®0 h
Thus, y' –sin x
1
d
– 0 ( sin xx ) = sin x (0) + cos x (1) = cos x
–1 dx
¢
These differentiation rules are illustrated in Figure 3.3.1 and Figure 3.3.2. Note that the slope
of the sin x curve determines the value of the cos x curve, while the slope of the cos x curve
determines the value of the - sin x curve.
y y
y sin x y 1 y cos x
1
x x
– 0 – 0
0 –1
–1
y' y'
y' –sin x
1 1
0 x 0 x
– –
–1 y' cos x –1
y = 5 sin x -
1
cos x b. 3 cos x y
a. y = y sin x
4 1 + sin1x
Solution – 0
x
–1
a. Using difference rule, we have
y'
dy d æç 1 ö d 1 d 1 1
= çç 5 sin x - cos x ÷÷÷ = 5 ( sin x ) - ( cos x ) = 5 cos x + sin x
dx dx è 4 ø dx 4 dx – 0 4 x
–1 y' cos x
b. Using quotient rule, we have
d d
d æç 3 cos x ö÷ (
1 + sin x ) ( 3 cos x ) - ( 3 cos x ) ( 1 + sin x )
dy dx dx
= ç ÷=
dx dx çè 1 + sin x ÷ø ( 1 + sin x )
2
176
CHAPTER 3 DIFFERENTIATION
1 -2 sin x
a. y = -4 cos x + sin x b. y =
3 2 + cos x
Solution
1 2 ( 1 + 2 cos x )
a. 4 sin x + cos x b. -
3 2
( 2 + cos x )
Since the tangent, cotangent, secant, and cosecant functions are defined in terms of the sine
and cosine functions, the derivatives of these functions can be obtained from Theorem 3.3.1 by
applying quotient rule.
THEOREM 3.3.2
d d
a. ( tan x ) = sec2 x b. ( cot x ) = - csc2 x
dx dx
d d
c. ( sec x ) = sec x tan x d. ( csc x ) = - csc x cot x
dx dx
PROOF
We will prove (a) and (c), while (b) and (d) are left as an exercise.
sin x
a. Since tan x = , using quotient rule, we have
cos x
d d
cos x ( sin x ) - sin x ( cos x )
d d æç sin x ö÷ dx dx
( tan x ) = çç ÷=
dx dx è cos x ÷ø cos2 x
1 æ 1 ö÷2
= = çç ÷÷ = sec2 x
2
cos x ç
è cos x ø
1
c. Since sec x = , using quotient rule, we have
cos x
d d
cos x ( 1 ) - ( 1 ) ( cos x )
d d æç 1 ö÷ dx dx
( sec x ) = çç ÷=
dx dx è cos x ÷ø cos2 x
sin x 1 sin x
= = = sec x tan x
2 cos x cos x
cos x
¢
EXAMPLE 3.3.2 Find the derivative of each function
sec x
a. y = x + csc x - cot x b. y = sin x cos x c. y =
1 + tan x
177
sin x 1 sin x
sec x tan x
2 cos x cos x
cos x
EXAMPLE 2.3.2 Find the derivative of each function
SECTION 3.3 DERIVATIVES OF TRIGONOMETRIC FUNCTIONS
sec x
a. y x csc x cot x b. y sin x cos x c. y
1 tan x
Solution
a. Using Theorem 3.2.3, we have
d d
dx
(
x + csc x - cot x =
dx
) ( x ) + dxd ( csc x ) - dxd ( cot x )
1
= - csc x cot x + csc2 x
2 x
b. Using the product rule, we have
d d d
( sin x cos x ) = ( sin x ) ( cos x ) + ( cos x ) ( sin x )
dx dx dx
= ( sin x )( - sin x ) + ( cos x )( cos x )
EXAMPLE 3.3.3 Find the equation of the tangent line to the graph of y = 2 cos x at the point
æ p ö÷
çç , 0 ÷ .
çè 2 ÷ø
178
2
x=1
x
−8 −6 −4 −2 2 4 6
−2 CHAPTER 3 DIFFERENTIATION
x2 + 3 −4
y=
x+1
Solution −6
The derivative is
dy −8 tangent line to the graph of y at x = p is:
= -2 sin x . The slope of the
dx 2
y
dy æpö
= -2 sin çç ÷÷ = -2
6
m =
dx p çè 2 ÷ø
x= 4 2
2 4 y = x − 4x + 1
The equation of the tangent line is
2
æ pö
y = (-2) çç x - ÷÷ + 0 x
çè 2 ÷ø 1
−3 −2 −1 2 3
y = -2x−2+ p
See Figure 3.3.3 √ √
x=− 2 −4 x= 2
y
y = 2 cos x 2
y = −2x + π
1
x
−π − π2 π π
2
−1
−2
Figure 3.3.3
8 y
RELATED PROBLEM 3 Find the equation of the tangent line to the graph of y = 3 sin x at the
6
point (p, 0) .
y = x + sin x
4
Answer y = -3x + 3p
(π, π)
2
EXAMPLE 3.3.4 x x , 0 £ x £ 2p where the
Find all point(s) on the graph of f (x ) = x + sin
tangent line is horizontal. π
2
π 3π 2π
2
Solution −2
A horizontal tangent line has slope 0. Therefore, we are seeking all x for which f ¢(x ) = 0
f ¢(x ) = 1 + cos x
Solve the equation
1 + cos x = 0
RELATED PROBLEM 4 Find all point(s) on the graph of f (x ) = 2x + sin x where the tangent
line is horizontal.
179
SECTION 3.3 DERIVATIVES OF TRIGONOMETRIC FUNCTIONS
Answer None
Where s is measured in meters and t is measured in seconds. Find the particle’s instantaneous
p
velocity when t = 0 and t =
2
Solution
The velocity v(t ) of the particle is given by
ds d
v(t ) = = ( 3 cos t + 4 sin t ) = -3 sin t + 4 cos t
dt dt
d
EXAMPLE 3.3.6 Show that ( sin(2x ) ) = 2 cos(2x )
dx
Solution Recall the identities
sin(2x ) = 2 sin x cos x and cos(2x ) = cos2 x - sin2 x
Thus,
d d
( sin(2x ) ) = ( 2 sin x cos x )
dx dx
dd dd
= sin xx dx (( cos
= 22 sin cos xx )) + cos xx dx ((22 sin
+ cos sin xx ))
dx dx
= sin xx ((-
= 22 sin sin xx )) +
- sin cos xx ((22 cos
+ cos cos xx ))
= -2 sin2 x + 2 cos2 x
= 2(cos2 x - sin2 x ) = 2 cos ( 2x )
180
CHAPTER 3 DIFFERENTIATION
d
RELATED PROBLEM 6 Show that ( cos(2x ) ) = -2 sin(2x ) .
dx
181
SECTION 3.3 DERIVATIVES OF TRIGONOMETRIC FUNCTIONS
EXERCISES 3.3
dy
In Exercises 1-20, find
dx
1. y = x csc x 2. y = cot x csc x
3. y = x (1 + sec x ) 4. y = tan x
x
sec x csc x
5. y = 6. y =
x -1 tan x
cot x 8. y = x 2 cos x - 4 sin x
7. y =
1 + csc x
d d
25. ( cot x ) = - csc2 x 26. ( csc x ) = - csc x cot x
dx dx
cos t
27. A particle moves according to the position function s(t ) = , where t is measured
t
in seconds and s in feet. Find the instantaneous velocity at t = p .
In Exercises 28-31, find the x -coordinate(s) of the point(s) on the graph of the function at
which the tangent line has the indicated slope.
182
CHAPTER 3 DIFFERENTIATION
In Exercises 32-34, find all points on the graph of f (x ) where the tangent line is horizontal.
cos x
34. f (x ) =
2 + sin x
183
SECTION 3.4 THE CHAIN RULE
Section 3.4
THE CHAIN RULE
In this section, we derive a result that greatly increases the number of functions whose derivatives
can be easily calculated. Suppose we are asked to find the derivative of the function
5
y = ( x 3 + 2x )
dy
Differentiation formulas we learned till now do not enable us to find . Observe that y is a
dx
composition function. In fact, if we let y = f (u ) = u 5 and let u = g(x ) = x 3 + 2x , then we can
write y = f ( g(x ) ) . We know the derivatives of both f and g , so it will be helpful to have a
rule that tells us how to find the derivative of f g in terms of derivatives of f and g .
5 dy
EXAMPLE 3.4.1 If y = ( x 3 + 2x ) , find .
dx
dy
Solution We can find by using Theorem 3.4.1 formula (1) as follows:
dx
Let u = x 3 + 2x and y = u 5 , then
dy dy du
= × = 5u 4 ( 3x 2 + 2 )
dx du dx
Substitute u = x 3 + 2x , we have
dy 4
= 5 ( x 3 + 2x ) ( 3x 2 + 2 )
dx
184
CHAPTER 3 DIFFERENTIATION
dy
Also we can find by using Theorem 3.4.1 formula (2) as follows:
dx
One of the main uses of the chain rule is to establish other differentiation formulas. As a first
illustration, we shall obtain a formula for the derivative of a power of a function.
PROOF
r dy
Let y = u r and u = g(x ) , then y = ( g(x ) ) . Now let us use the chain rule to find .
dx
d é r ù dy dy du
ê ( g(x ) ) ú = = ×
dx ë û dx du dx
d r -1 d
= ru r -1 ( u ) = r ( g(x ) ) ( g(x ) )
dx dx
¢
EXAMPLE 3.4.2 Differentiate the following functions
a. f (x ) = ( x 3 - 7x + 5 )8 1
b. f (x ) =
3
3x 5 - 2x 3 + 1
Solution
a. Apply the general power, we obtain
d æ 3 8ö 7 d
f ¢(x ) = ç ( x - 7x + 5 ) ÷÷ = 8 ( x 3 - 7x + 5 ) ( x 3 - 7x + 5 )
ç
dx è ÷
ø dx
7
= 8 ( x 3 - 7x + 5 ) ( 3x 2 - 7 )
185
SECTION 3.4 THE CHAIN RULE
1
1 -
b. Rewrite the given function as f (x ) = = ( 3x 5 - 2x 3 + 1 ) 3 .
1
( 3x 5 - 2x 3 + 1 ) 3
d æçç - ö
1 4
÷÷ 1 - d
f ¢(x ) = ç ( 3x - 2x + 1 ) ÷÷ = - ( 3x - 2x + 1 ) 3 ( 3x 5 - 2x 3 + 1 )
5 3 3 5 3
dx ççè ÷ø 3 dx
4
1 -
= - ( 3x 5 - 2x 3 + 1 ) 3 ( 15x 4 - 6x 2 )
3
15x 4 - 6x 2 5x 4 - 2x 2
=- =-
4 4
3 3 ( 3x 5 - 2x 3 + 1 ) 3
( 3x 5 - 2x 3 + 1 )
a. f (x ) = ( x 5 + 3x 2 - x )
5 2
b. f (x ) =
2x 4 + x + 5
Answers
a. 5 ( x 5 + 3x 2 - x )
4 8x 3 + 1
( 5x 4 + 6x - 1 ) b. -
3
( 2x 4 + x + 5 )
æ 2z + 1 ö÷3 d æ 2z + 1 ö÷
h (z ) = 4 çç
¢ ÷ ç ÷
çè 3z - 2 ÷ø dz ççè 3z - 2 ÷ø
æ d d ö÷
ç
æ 2z + 1 ÷ö3 çç ( 3z - 2 ) dz ( 2z + 1 ) - ( 2z + 1 ) dz ( 3z - 2 ) ÷÷÷
= 4 çç ÷ ç ÷÷
çè 3z - 2 ÷ø ççç 2 ÷÷
çç ( 3z - 2 ) ÷÷
è ø
æ ö æ ö
æ 2z + 1 ÷ö3 çç ( 3z - 2 )( 2 ) - ( 2z + 1 )( 3 ) ÷÷ æ 2z + 1 ÷ö3 çç 6z - 4 - 6z - 3 ÷÷
ç
= 4ç ÷ ç ÷
÷÷ = ç
4ç ÷ ç ÷
÷÷
çè 3z - 2 ÷ø çç 2
÷ø çè 3z - 2 ÷ø çç 2
÷ø
èç ( 3z - 2 ) çè ( 3z - 2 )
æ ö÷ 3
ç
æ 2z + 1 ÷ö3 çç -7 ÷ ÷ ( 2z + 1 )
= 4ç ÷ ç = -28
çè 3z - 2 ÷ø çç 2÷ ÷ 5
çè ( 3z - 2 ) ÷ø ( 3z - 2 )
b. We apply the product rule and then the general power rule, we have
186
CHAPTER 3 DIFFERENTIATION
d 3 5 5 d 3
k ¢(t ) = ( t + 1 ) ( 2t - 3 ) + ( 2t - 3 ) ( t + 1 )
dt dt
3 é 4 d ù 5 é 2 d ù
= ( t + 1 ) ê 5 ( 2t - 3 ) ( 2t - 3 ) ú + ( 2t - 3 ) ê 3 (t + 1) ( t + 1) ú
êë dt úû êë dt úû
3 é 4 ù 5 é 2 ù
= ( t + 1 ) ê 5 ( 2t - 3 ) ( 2 ) ú + ( 2t - 3 ) ê 3 ( t + 1 ) ( 1 ) ú
ë û ë û
3 4 5 2
= 10 ( t + 1 ) ( 2t - 3 ) + 3 ( 2t - 3 ) ( t + 1 )
2 4
= ( t + 1 ) ( 2t - 3 ) éë 10t + 10 + 6t - 9 ùû
2 4
= ( t + 1 ) ( 2t - 3 ) ( 16t + 1 )
Answers
124t ( 3t 2 - 5 )
a. h ¢(t ) = b. f ¢(z ) = ( 6z - 7 )
2
( 8z 2 + 9 )( 336z 2 - 224z + 162 )
3
( 2t 2 + 7 )
The next example shows that it may be necessary to apply the general power rule more than
one time to find the derivative of a given function.
æ 4 ö6
EXAMPLE 3.4.4 Find y ¢ , if y = çç ( x 3 + 2x ) + x 2 + 1 ÷÷÷
è ø
Solution Applying the general power rule, we have
æ 4 ö5 d æ 3 4 ö
y ¢ = 6 çç ( x 3 + 2x ) + x 2 + 1 ÷÷÷ ç ( x + 2x ) +
ç x 2 + 1 ÷÷÷
è ø dx è ø
æ 4 ö5 æ d 4 d ö
y ¢ = 6 çç ( x 3 + 2x ) + x 2 + 1 ÷÷÷ çç ( x 3 + 2x ) + x 2 + 1 ÷÷
è ç
ø è dx dx ÷ø
dx
( x 3 + 2x ) = 4 ( x 3 + 2x ) ( 3x 2 + 2 ) ,
and
1 1
d
( ) d 1 x
-
dx
x2 + 1 =
dx
( x 2 + 1 )2 = ( x 2 + 1 ) 2 ( 2x ) =
2 x2 + 1
Therefore,
æ ö5 æ x ö
÷÷÷
4 3
y ¢ = 6 çç ( x 3 + 2x ) + x 2 + 1 ÷÷÷ ççç 4 ( x 3 + 2x ) ( 3x 2 + 2 ) +
è ø çè x 2 + 1 ÷ø
187
SECTION 3.4 THE CHAIN RULE
( )
5
Find y ¢ , if y =
3
RELATED PROBLEM 4 x2 + x + 2x 4 + 4
Answer
æ ö÷
çç ÷÷
2x + 1 4x 3
( )
4
5 3
x 2 + x + 2x 4 + 4 çç + ÷÷
çç ÷
2
2x 4 + 4 ÷÷÷
èçç 3 ( x + x )
3 2
ø
if y = 3 tan ( x + 2x ) .
dy 3
RELATED PROBLEM 5 Find
dx
Answer ( 9x 2 + 6 ) sec2 ( x 3 + 2x ) .
Table 3.4.1 contains a list of generalized derivative formulas that result directly from the chain
rule
d du d du
( tan u ) = sec2 u ( cot u ) = - csc2 u
dx dx dx dx
d du d du
( sec u ) = sec u tan u ( csc u ) = - csc u cot u
dx dx dx dx
Table 3.4.1
188
CHAPTER 3 DIFFERENTIATION
Solution
a. Taking u = 3x 2 in the generalized derivative formula for tan u yields
d d du
dx
( tan(3x 2 ) =
dx
( tan u ) = sec2 u
dx
d
= sec2 ( 3x 2 ) ( 3x 2 ) = 6x sec2 ( 3x 2 )
dx
b. Apply the general power rule, we have
d æçç 2
1ö 1
÷÷ 1 2
d
( )
- d
çç ( x csc(2x ) ) ÷÷ = ( x csc(2x ) ) ( x 2 csc(2x ) )
2
x csc(2x ) = 2 2
dx dx çè ÷ø 2 dx
1
1 2 - æ d d ö
=
2
( x csc(2x ) ) 2 çç x 2 ( csc(2x ) ) + csc(2x ) ( x 2 )÷÷÷
èç dx dx ø
Apply generalized derivative formula for csc u , we have
1
d
( ) 1 2 -
dx
x 2 csc(2x ) =
2
( x csc(2x ) ) 2 ( x 2 ( - csc(2x ) cot(2x )(2) ) + csc(2x ) ( 2x ) )
dt
( sec3 ( t 4 ) ) = ( sec ( t 4 ) ) = 3 ( sec ( t 4 ) )
dt dt
( sec ( t 4 ) )
a. d
dx
( csc ( x 3 )) b.
d
dx
( 3
x 2 + cot(2x ) ) c.
d
dt
( cot5 (t 2 ) )
Answer
a. -3x 2 csc(x 3 ) cot(x 3 ) 2x - 2 csc2 ( 2x ) c. -10t cot4 (t 2 ) csc2 (t 2 )
b.
2
3 3 ( x 2 + cot(2x ) )
189
SECTION 3.4 THE CHAIN RULE
Since lim − h
h →0
( ) =0 =lim h
h →0
, we get by Sandwich Theorem
1
lim h sin = 0
h →0
h
Thus, f ′(0) = 0 . Therefore, f is differentiable at x = 0 .
EXAMPLE 3.4.8 Find the slope of the tangent line to the graph of y = x 2 cos(3x ) at x = p .
2
Solution The slope of the tangent line at any point (x , y ) on the graph of y = x cos(3x ) is
dy
given by . Using product rule and generalized derivative formula for cos u , we obtain
dx
dy d d d
dx
=
dx
( x 2 cos(3x ) ) = x 2
dx
( cos(3x ) ) + cos(3x ) ( x 2 )
dx
190
CHAPTER 3 DIFFERENTIATION
d
( 3x ) + 2x cos ( 3x ) = -3x 2 sin ( 3x ) + 2x cos ( 3x )
= x 2 ( - sin(3x ) )
dx
The slope of the tangent line at x = p is
dy
m = = -3p2 sin ( 3p ) + 2p cos ( 3p ) = -2p
dx x =p 2
40 y
y = 8x3 − 9x2
30
2
y = x cos(3x)
20
10
x
π π 3π 2π
2 2
−10
−20
−30
Figure 3.4.1
32 y
y = 16 − x
1 x
EXAMPLE 3.4.9 The equation
−12
of−8motion
−4
of a particle is given by s(t ) = 10 +sin ( 10pt ) ,
4 8 12 4
where t is measured in seconds and s in
2
centimeters. Find the velocity of the particle at time
y
t.
1
ds
Solution We know that the velocity is . Taking u = 10xpt in the generalized derivative
−1 −0.5 dt 0.5 1 1.5 2
formula for sin u yields −1
ds d æ 1 −2 ö 1 5p
= çç 10 + sin ( 10pt ) ÷÷ = ( 10p ) cos ( 10pt ) =
y = 6x − 7
cos ( 10pt )
ç
dt è ÷
dt 4 −3 ø 4 2
Thus, −4
ds 5p
v(t ) = = cos ( 10pt )
dt 18 2
y y = 4x3 − 3x2 − 12x + 7
15
12
RELATED PROBLEM 9 A particle is 9
moving vertically such that its distance s(t ) from a
6
1 3 (2, 3)
fixed point is given by s(t ) = 4 + sin ( 100pt ) , where t isx measured in seconds and s in
−3 25 −1 −3
−2 1 2 3
centimeters. Find the velocity of the particle at time t .
−6
−9 y = 24x − 45
Answer 4p cos ( 100pt ) .
−12
−15
−18
191
SECTION 3.4 THE CHAIN RULE
EXERCISES 3.4
In Exercises 1-30, find the derivative of the following functions
3 5
1. f (x ) = ( 2x + 3 ) 2. f (x ) = ( x 2 + 2x )
30
3. g(x ) = ( x 5 - 10 )
4
4. h(x ) = ( x 2 + 3x + 1 )
1 x
5. f (t ) = 6. g(x ) =
2 x +1
(1 + t 2 )
3
æ 2ö 8. f (x ) = ( x 2 + 1 )
2 3
7. f (t ) = çç t - ÷÷÷ 2x + 1
çè tø
9. g(x ) = ( 3x 2 + 1 ) ( 2x - 1 ) 10. g(x ) = cos ( x )
3 3
6
11. f (x ) = ( 1 + cos2 x ) 12. h(x ) = 4 tan ( x 3 )
æ ö
13. y = sec2 (2x ) - tan2 (2x ) 14. h(q) = csc çç q ÷÷
çè 3 ÷ø
15. f (x ) = cos2 (cos x ) + sin2 (cos x ) 16. h(x ) = sin ( sin ( sin x ) )
3 æ 1 - 8x ö÷4
17. f (x ) = 3
x 3 + ( 2x - 1 ) 18. g(x ) = çç ÷
çè 1 + 8x ø÷
æ 1 - 2v ö÷3 æ x + 5 ÷ö2
19. f (v ) = çç ÷ 20. g(x ) = çç 2 ÷
çè 1 + v ÷ø çè x + 2 ÷ø
3
æ 4ö
22. f (t ) = 3 sec2 ( pt - 1 )
21. g(x ) = çç 2 + ( x 2 + 1 ) ÷÷÷
è ø
(
23. f (x ) = cos ( 1 - 2x )2 ) 24. g(t ) = 2 cot2 ( pt + 2 )
æ1 ö æ1 ö
25. g(x ) = sin ( tan(2x ) ) 26. g(t ) = sec çç t ÷÷÷ tan çç t ÷÷÷
çè 2 ø çè 2 ø
æ sin x ö÷3 28. g(t ) = cos5 ( 4t - 19 )
27. f (x ) = ççç ÷
è cos(2x ) ÷ø
29. g(t ) = cos4 ( sin t 2 ) 30. h(x ) = sin 3 ( cos x )
In Exercises 31-40, find the equation of the tangent line to the given curve at the given point.
31. y = ( 2x + 1 ) ,(0,1)
5 x
32. y = , ( 2, -2 )
5
(3 - x ) 2
3
34. y = ( 1 + 2x 2 ) ,
10
33. y = ( x - x + x - 1 ) , ( 1, 0 )
3 2 ( 1, 27 )
192
CHAPTER 3 DIFFERENTIATION
æ p ÷ö æp 2 ö÷
35. y = cot x , ççç ,1 ÷÷ 36. y = cos ( 3x ) , ççç , -
2
÷÷
è4 ø çè 4 2 ø÷
æ ö æp ö
37. y = tan2 x , çç p ,1 ÷÷ 38. y = 2 tan 3 x , çç , 2 ÷÷
èç 4 ø ÷ çè 4 ÷ø
-2 æ ö æp ö
39. y = ( x 2 + 1 ) , çç 1, 1 ÷÷ 40. y = 1 + x sin ( 3x ) , çç ,1 ÷÷
çè 4 ÷ø çè 3 ÷ø
In Exercises 41-44, find the x -coordinate of the point(s) at which the graph of the equation
has a horizontal tangent line
2 3
41. y = x 2 (x - 1)3 42. y = ( 2x + 1 ) ( x - 3 )
2
(x + 3) æ 1 - 8x ö÷4
43. y = 44. y = ççç ÷
x è 1 + 8x ÷ø
45. Determine the point(s) in the interval ( 0, 2p ) at which the graph of f (x ) = 2 cos x + sin(2x )
has a horizontal tangent.
46. Find all point(s) on the graph of y = sin2 x where the tangent line has slope 1 .
In Exercises 47-48, use the position function to find the velocity at t = 2 (Assume units of
meters and seconds)
60t
47. s(t ) = t2 + 8 48. s(t ) =
t2 + 1
193
SECTION 3.5 IMPLICIT DIFFERENTIATION
Section 3.5
IMPLICIT DIFFERENTIATION
defines the function f explicitly. However, not all functions are defined by such an equation.
For example, if we have the equation:
3x 3 - x = 3y 3 + y 2 - 5y 7 + 9 (1)
One cannot solve for y in terms of x ; however, Equation (1) may define one or more functions
f such that if y = f (x ) , Equation (1) is satisfied. That is
3 2 7
3x 3 - x = 3 ( f (x ) ) + ( f (x ) ) - 5 ( f (x ) ) + 9
holds for all x in the domain of f . In this case, we say that the function f is defined by
equation (1) implicitly.
If we assume that equation (1) defines at least one differentiable function y in terms of x , then
the derivative of y with respect to x can be found by implicit differentiation.
Since equation (1) can be written so that all the terms involving x are on one side of the
equation and all the terms involving y are on the other side of the equation, such an equation
is a special type of equations involving x and y . The left side of equation (1) is a function of
x , and the right side is a function of y . Let F be the function defied by the left side, and G
be the function defied by the right side. Thus,
F (x ) = 3x 3 - x G (x ) = 3y 3 + y 2 - 5y 7 + 9
This equation is satisfied by all values of x in the domain of f such that G ( f (x )) exists.
Therefore, for all values of x such that f is differentiable,
d d
dx
( 3x 3 - x ) =
dx
( 3y 3 + y 2 - 5y 7 + 9 ) (2)
194
CHAPTER 3 DIFFERENTIATION
The derivative on the left side equation (2) is easily be found, and
d
(3x 3 - x ) = 9x 2 - 1 (3)
dx
while the derivative on the right side of equation (2) is found by the chain rule.
d dy dy dy
dx
( 3y 3 + y 2 - 5y 7 + 9 ) = 9y 2
dx
+ 2y
dx
- 35y 6
dx
(4)
Substituting the obtained values in (3) and (4) into (2), we get
dy
9x 2 - 1 = ( 9y 2 + 2y - 35y 6 )
dx
dy 9x 2 - 1
=
dx 9y 2 + 2y - 35y 6
dy
As we can see from the last result we were able with the help of chain rule to find as an
dx
equation involves both variables x and y .
DEFINITION 3.5.1
The equation F (x , y ) = 0 is said to define an explicit function y = f (x ) if the equation
F ( x , f (x ) ) = 0 is satisfied for every x in the domain of f .
ILLUSTRATION
The equation
(x - 2)2 + y 2 - 9 = 0 (5)
Actually it defines more than two functions. Now, we show that y1 and y2 satisfy equation (5).
( )
2
(x - 2)2 + y12 - 9 = (x - 2)2 + 9 - (x - 2)2 -9 = 0
= (x - 2)2 + 9 - (x - 2)2 - 9 = 0
Similarly, for y2 .
195
P
(2, 4)
x
SECTION 3.5 IMPLICIT DIFFERENTIATION
y = 4x−4
y
y
3 (x − 2)2+ y2 = 9 y1 9 (x 2)2
Figure 3.5.1
y REMARK Slope m PQ
f (a + h)
It is out of the scope of this book to discuss under what conditions an equation defines
Q Slope m PQ1
a differentiable implicit function. Instead we will assume that in all examples and
Secant lines
exercises. Q1 Slope m PQ2
Q2 Slope m PQ3
Regarding differentiation of a givenL function, when it is explicitly expressed in the form
Q3 Tangent line
y = f (x ) , we apply the rules of mdifferentiation directly to it and find its derivative as we have
Slope
f (a) P
done in the previous sections. On the other hand, when the function is implicitly expressed,
we use the
a method ofa+ implicit differentiation which is xour goal in this section. The idea of
h
implicit differentiation is based on the chain rule and it works as follows:
• Write the terms involving y ¢ (or dy dx ) on one side of the equation and the terms
dy dy
that do not involve on the other side of the equation, then solve for .
dx dx
Now, let us consider some examples to illustrate the method of implicit differentiation.
EXAMPLE 3.5.1 If each of the following equations determines an implicit differentiable function
dy
y = f (x ) , find .
dx
a. x 3 + y 3 = 1 + xy b. y 2 = x cos y
2 3 2 3
c. xy + yx = x2 d. 3 + tan(xy ) - 2 = 0
196
CHAPTER 3 DIFFERENTIATION
Solution
a. Differentiating both sides of x 3 + y 3 = 1 + xy with respect to x , regarding y as a
function of x
d d
dx
( x 3 + y3 ) =
dx
( 1 + xy )
d
dx
( x 3 ) + dxd ( y 3 ) = dxd (1) + dxd ( xy )
Using the chain rule on the y 3 term and the product rule on the xy term, we obtain
3x 2 + 3y 2y ¢ = xy ¢ + y
Solving for y ¢ yields
3y 2y ¢ - xy ¢ = y - 3x 2
( 3y 2 - x ) y ¢ = y - 3x 2
y - 3x 2
y¢ =
3y 2 - x
b. Differentiating both sides of the equation y 2 = x cos y with respect to x and using the
product rule, we obtain
d
dx
( y 2 ) = dxd ( x cos y )
d
dx
( y 2 ) = x dxd ( cos y ) + cos y dxd ( x )
2yy ¢ = x ( - sin y × y ¢ ) + cos y ( 1 )
2 3 2 3
c. Differentiating both sides of the equation xy + yx = x 2 with respect to x , we
obtain
d
dx
(2 3
xy + yx
2 3
=
d
dx
( )
x2 )
x
dx
( )
d 23
y +y
2 3 d
dx
d
dx
2 3
(x ) + y x + x
2 3 d
dx
( )
( y ) = 2x
æ 2 -1 3 ö÷ æ 2 -1 3 ÷ö
x çç y y ¢ ÷ + y ( 1 ) + y çç x
2 3 2 3
÷ + x ( y ¢ ) = 2x
çè 3 ÷ø çè 3 ÷ø
197
SECTION 3.5 IMPLICIT DIFFERENTIATION
2 -1 3 2 3 2 -1 3 2 3
xy y ¢ + y + yx + x y ¢ = 2x
3 3
Solving for y ¢ yields
æ 2 -1 3 2 3ö 2 -1 3
ççç xy + x ÷÷ y ¢ = 2x - yx
2 3
-y
è3 ÷
ø 3
2 -1 3 23
2x - yx -y
y¢ = 3
2 -1 3 23
xy +x
3
12
Rewrite 3 + tan(xy ) as ( 3 + tan(xy ) ) , we obtain
d
dx
(( 3 + tan(xy)) 12
)
-2 = 0
1 -1 2
d d
( 3 + tan(xy ) ) ( 3 + tan(xy ) ) - ( 2 ) = 0
2 dx dx
-1 2 æ ö
1 d
( 3 + tan(xy ) ) ççç 0 + sec2 (xy ) (xy ) ÷÷÷ - 0 = 0
2 è dx ø
1 -1 2
198
CHAPTER 3 DIFFERENTIATION
dy
RELATED PROBLEM 1 Find for each of the following
dx
a. 8x 2 + y 2 = 10 b. sin2 (3y ) = x + y - 1
c. 3xy = ( x 3 + y 2 )3 2 d. 1 + sin 3 ( xy 2 ) = y
Answers
-8x b. 1
a.
y 6 sin(3y ) cos(3y ) - 1
3 2 3 12
x (x + y2 ) - y 3y 2 sin2 ( xy 2 ) cos ( xy 2 )
c. 2 d.
x - y (x 3 + y2 )
12
2y - 6xy sin2 ( xy 2 ) cos ( xy 2 )
The following example shows how to find an equation of the tangent line to the graph of
functions that are defined implicitly.
dy
The slope m of the tangent line at P ( 0, 3 ) is the value of when x = 0 and y = 3 . First let
dx
dy
us find using implicit differentiation. Differentiating both sides of the equation with respect
dx
to x and using the product rule, we obtain
d d
dx
( y 3 + yx 2 + x 2 - 3y 2 ) =
dx
(0)
d d d d
dx
( y3 ) +
dx
( yx 2 ) +
dx
( x 2 ) - ( 3y 2 ) = 0
dx
dy d d dy
3y 2 + y ( x 2 ) + x 2 ( y ) + 2x - 6y =0
dx dx dx dx
dy dy dy
3y 2 + 2xy + x 2 + 2x - 6y =0
dx dx dx
dy
Solving for yields
dx
dy dy dy
3y 2 + x2 - 6y = -2xy - 2x
dx dx dx
dy
( 3y 2 + x 2 - 6y ) dx = -2x (y + 1)
199
f (a + h) y = f (x)
Q (a +h, f(a+h))
P (a, f(a))
f (a)
f (a)
SECTION 3.5 IMPLICIT DIFFERENTIATION
a a +h x a+ h
a x
dy 2x (y + 1)
=-
dx 3y + x 2 - 6y
2
dy 2(0)(3 + 1)
m = =- P =0
dx (0,3) 3(3) + (0)2 - 6(3)
2
(2, 4)
y = 0 ( x - 0 ) + 3 or y = 3 , y = 4x−4
3 (x − 2)2+ y2 = 9 y1 9
Figure 3.5.2
y Slope m PQ
L
dy Q3
EXAMPLE 3.5.3 Given that x csc y = 2 , find Tangent line
dx ( x ,y )=çæç1, p ÷÷ö
f (a) P
Slope m
çè 6 ÷ø÷
dy
Solution First let us find using implicit differentiation. Differentiating
a both sides of the x
dx a+ h
d d
( x csc y ) = ( 2 )
dx dx
d d
x ( csc y ) + csc y ( x ) = 0
dx dx
æ dy ö
x çç - csc y cot y ÷÷ + csc y ( 1 ) = 0
çè dx ÷ø
dy
-x csc y cot y + csc y = 0
dx
200
CHAPTER 3 DIFFERENTIATION
dy
Solving for yields
dx dy csc y 1
= =
dx x csc y cot y x cot y
Thus,
dy 1 æpö 1 3
= = tan çç ÷÷÷ = =
dx ( x ,y )=çæç1, p ö÷÷ æ p ÷ö ç6ø
è 3 3
çè 6 ÷÷ø ( 1 ) cot ççç ÷÷
è6ø
dy
RELATED PROBLEM 3 Given that x 2 cos y + y 2 - 1 = 0 , find .
dx ( x ,y )=( 0,1 )
Answer 0 .
2 3 2 3
EXAMPLE 3.5.4 Find all points (x , y ) on the graph of x +y = 8 where tangent to the
graph at (x , y ) have slope -1 .
Since the tangent to the graph will have slope -1 , set y ¢ = -1 , we have
13
y 13 13
- = -1 Þ y =x Þy =x
13
x
2 3 2 3
Substitute this in the original equation x +y = 8 , we obtain
23 23 23 23
x +x = 8 Þ 2x =8Þx =4
(x )
3 3
2 3
= ( 4 ) Þ x 2 = 64 Þ x = ±8
If x = 8 , then y = 8 , and the tangent line passing throw the point (8, 8) has slope -1 .
If x = -8 , then y = -8 , and the tangent line passing throw the point (-8, -8) has slope -1 .
201
SECTION 3.5 IMPLICIT DIFFERENTIATION
RELATED PROBLEM 4 Find the coordinates of the point in the first quadrant at which the
tangent line to the curve x 3 - xy + y 3 = 0 is horizontal.
æ 3 2 3 4 ö÷
Answer ççç , ÷÷ .
çè 3 3 ÷ø÷
202
CHAPTER 3 DIFFERENTIATION
EXERCISES 3.5
dy
In Exercises 1-21, Find using implicit differentiation
dx
1. x 2 + y = 2xy 2. x 2 = y2 + 1 3. x 2y + xy 2 = 3x
2
4. 2x 2 - y 2 = 1 5. ( 2x + y ) =y 6. x 2 - y 2x = 1
7. x 3 - y 3 = 6xy 8. x 2y + 3xy 3 - x = 3 9. 1 + xy = y
xy
21. 1 + 1 = 1
52
19. 2
x +y 2
= x +1 20. ( 2x 2 + 3y 2 ) =x
x y
In Exercises 22-30, find an equation of the tangent line at the given point.
24. x 4 = 8 ( x 2 - y 2 ) , 2, - 2 ( ) æ ö
25. x 4 = 4 ( x 2 - y 2 ) , çç 1, 3 ÷÷÷
çç 2 ÷
è ø
x 2 y2 æ 9ö x 2 y2
26. - = 1 , çç -5, ÷÷÷ 27. + = 1 , ( 1, 2 )
16 9 çè 4ø 2 8
28. x
2 3
+y
2 3
(
= 4 , -3 3,1 ) 29. y = x ( 2 - x ) , ( 1,1 )
2 3
2
30. 2 ( x 2 + y 2 ) = 25 ( x 2 - y 2 ) , ( 3,1 )
In Exercises 31-32, find the points at which the graph of the equation has a horizontal tangent
line
31. 25x 2 + 16y 2 + 200x - 160y + 400 = 0 32. 4x 2 + y 2 - 8x + 4y + 4 = 0
33. Find all point(s) on the curve x 2y 2 + xy = 2 where the slope of the tangent line is -1 .
34. Show that the equation of the tangent line to the parabola y 2 = 4 px at the point (a, b )
is by = 2p(a + x ) .
203
SECTION 3.6 HIGHER ORDER DERIVATIVES
Section 3.6
HIGHER ORDER DERIVATIVES
a. f ¢¢(x ) for f (x ) = x + 2x - 2x .
5 3
d 5y
b. for y = x 7 - 2x 4 + 6x 2 - 12 .
5
dx
Solution
204
CHAPTER 3 DIFFERENTIATION
d 5y dy d 2y d 3y d 4y
b. In order to find , we need to find , , , . We obtain
dx 5 dx dx 2 dx 3 dx 4
dy d
dx
=
dx
( x 7 - 2x 4 + 6x 2 - 12 ) = 7x 6 - 8x 3 + 12x
d 2y d
dx 2
=
dx
( 7x 6 - 8x 3 + 12x ) = 42x 5 - 24x 2 + 12
d 3y d
dx 3
=
dx
( 42x 5 - 24x 2 + 12 ) = 210x 4 - 48x
d 4y d
dx 4
=
dx
( 210x 4 - 48x ) = 840x 3 - 48
Thus,
d 5y d
dx 5
=
dx
( 840x 3 - 48 ) = 2520x 2 .
Answer
9 96
a. 24x 2 - . b. - .
4 x 5 t5
205
SECTION 3.6 HIGHER ORDER DERIVATIVES
Notice that higher derivatives of sin x and cos x form a pattern, that is because of the
periodicity of the two functions. For example, if f (x ) = sin x , then
Now, we can see that f (4)(x ) = sin x , so we can find any derivative of the sine function as
follows. Suppose we want to find the n th derivative of sin x . All we need to do is divide n by
4 , and look at the remainder r . If we take the r th derivative of sin x , it will be exactly the
same as taking the n th derivative, as every four derivatives will simply return us to the original
result of the sine function. Applying this principle, we find that
The following example shows how to find the second derivatives of functions that are defined
implicitly.
Solution In order to find y ¢¢ , we need to find y ¢ providing this function determines an implicit
differentiable function. Doing so using implicit differentiation yields
d d
( y + sin y ) = ( x )
dx dx
y ¢ + ( cos y ) y ¢ = 1
Thus,
d æç 1 ö÷
y ¢¢ = çç ÷
dx è 1 + cos y ø÷
206
CHAPTER 3 DIFFERENTIATION
EXAMPLE 3.6.4 Find all values of k such that y = x k satisfy the equation
3x 2y ¢¢ + 4xy ¢ - 2y = 0 .
Solution
y ¢ = kx k -1, y ¢¢ = k ( k - 1 ) x k -2
3x 2k ( k - 1 ) x k -2 + 4kxx k -1 - 2x k = 0
3k ( k - 1 ) x k + 4kx k - 2x k = 0
x k éë 3k ( k - 1 ) + 4k - 2 ùû = 0 .
Thus,
3k ( k - 1 ) + 4k - 2 = 0
3k 2 + k - 2 = 0
( 3k - 2 )( k + 1 ) = 0
2
k = , k = -1 .
3
The following example shows how to find the equation of the tangent line to the graph of f ¢
at indicated point.
207
SECTION 3.6 HIGHER ORDER DERIVATIVES
Solution
f ¢(x ) = 4x 3 - 3x 2 - 12x + 7
f ¢¢(x ) = 12x 2 - 6x - 12
Thus,
2
m = f ¢¢(2) = 12 ( 2 ) - 6 ( 2 ) - 12 = 24
Answer y = 6x - 7 .
d2
EXAMPLE 3.6.6 If g is twice differentiable function, find
dx 2
( x × g ( x 2 )) in terms of g, g ¢, g ¢¢
d
Solution Apply the product rule and the chain rule to find
dx
( x × g ( x 2 )) , we obtain
d
dx
( x × g ( x 2 )) = x dxd ( g ( x 2 )) + g ( x 2 ) dxd ( x )
= xg ¢ ( x 2 ) ( 2x ) + g ( x 2 )
= 2x 2g ¢ ( x 2 ) + g ( x 2 ) .
d2
Apply product rule, chain rule, and sum rule to find
dx 2
( x × g ( x 2 )) , we obtain
d2
dx 2
( x × g ( x 2 )) = dxd ( 2x 2g ¢ ( x 2 ) + g ( x 2 ))
é d d ù d
= ê ( 2x 2 ) ( g ¢ ( x 2 ) ) + g ¢ ( x 2 ) ( 2x 2 ) ú +
úû dx ( ( ) )
g x2
êë dx dx
= ( 2x 2 ) g ¢¢ ( x 2 ) ( 2x ) + g ¢ ( x 2 ) ( 4x ) + g ¢ ( x 2 ) ( 2x )
= 4x 3g ¢¢ ( x 2 ) + 4xg ¢ ( x 2 ) + 2xg ¢ ( x 2 )
= 4x 3g ¢¢ ( x 2 ) + 6xg ¢ ( x 2 ) .
208
CHAPTER 3 DIFFERENTIATION
d2
RELATED PROBLEM 5 If g is twice differentiable function, find
dx 2
( g ( x )) in terms of
g, g ¢, g ¢¢ .
Answer
xg ¢¢ ( x ) - g¢( x ) .
4x x
ACCELERATION
In Section 3.2, we know that if s = f (t ) is the position function of an object that moves in a
straight line, then its first derivative represent the velocity of the object
ds
v(t ) = f ¢(t ) =
dt
d 2s
Now, we want to give a physical interpretation of the second derivative . It is just the first
dt 2
derivative of the velocity. Thus, it measures the rate of change of velocity with respect to time,
which is called acceleration and it is denoted by a . Thus,
dv d 2s
a = = .
dt dt 2
If t is measured in seconds and s in meters, then the unit of velocity is meters per second,
which we abbreviate as m sec . The unit of acceleration is then meters per second squared,
2
which we abbreviate as m sec .
209
SECTION 3.6 HIGHER ORDER DERIVATIVES
b. The velocity after 2 seconds means the instantaneous velocity when t = 2 , that is,
12t 2 - 18t + 6 = 6 ( 2t 2 - 3t + 1 ) = 6 ( 2t - 1 )( t - 1 ) = 0
1 1
And this is true when t = or t = 1 . Thus the particle is at rest after second and
2 2
after 1 second.
1 4
RELATED PROBLEM 6 If s(t ) = t - 5t 3 + 12t 2 , where s is measured in meters and t in
2
seconds. Find the velocity of the moving object when its acceleration is 0 m/sec2.
210
CHAPTER 3 DIFFERENTIATION
EXERCISES 3.6
In Exercises 1-16, find the second derivative of the given function
1. f (x ) = x 7 - 2x 4 + x 3 + 6x + 2 8 5 2
2. g(x ) = x - 2x - 3x + 1
3
3. h(t ) = t2 + 1 4. f (x ) = x 2 + 2x
1 6. h(x ) = x 3 - 3 x - 2x
5. g(x ) = - x 3 + 2x 2 - 18
2
8. f (x ) = 1 - x
x
7. g(x ) =
x -1 1+x
34 65
9. g(x ) = ( 1 - x 2 ) 10. h(x ) = ( x 3 - 2x 2 )
1
13. g(x ) = 14. r (t ) = tan ( t 2 )
1 - cos(3x )
4 3
15. h(t ) = ( 3t + 1 ) 16. f (x ) = 2 - 9x
2 2x 2
23. g(x ) = 24. g(x ) =
x 5-x
-2 æpö
25. g(t ) = ( cos pt ) 26. g(x ) = x sin çç ÷÷
çè x ø÷
2
27. g(x ) = x ( 1 - x 2 )
3 (s + 1)
28. g(s ) =
s -1
In Exercises 29-36, find y ¢¢ by implicit differentiation
29. x 2 + y 2 = 1 30. x 2 3 + y 2 3 = 1
31. x 2 + 6xy + y 2 = 8 32. x + y =1
33. x + cos y = y 34. 2 sin(xy ) = 1
211
SECTION 3.6 HIGHER ORDER DERIVATIVES
d 2 æç g(x ) ö÷
37. If g is twice differentiable function, find çç ÷÷ in terms of g, g ¢, g ¢¢ .
2è x ø
dx
d 2y
39. If y = x 4 , show that x 2 - 12y = 0 .
dx 2
1
40. If y = , show that x 2y ¢¢ + 3xy ¢ + y = 0 .
x
d2 é 2 d æ 1 öù
41. Evaluate ê ( x + 1 ) çç ÷÷ ú .
dx 2 êë dx èç x ÷ø úû
d 2 éê d2 ù
42. Evaluate
ê
dx 2 ë
( 1 + 2x )
dx 2
( 5 - x 3 ) úú .
û
43. The position of a particle moves in a straight line is given by the equation
s(t ) = t 4 - 4t - 1 ,
where s is measured in meters and t in seconds.
a. What are v(t ) and a(t ) , the velocity and acceleration of the particle, at time t ?
b. What is the velocity of the particle after 2 seconds?
c. What is the acceleration of the particle after 1 2 second?
d. When is the acceleration of the particle positive?
1 4
44. If s(t ) =
10
(t - 14t 3 + 60t 2 ) , find the velocity of the moving object when its
acceleration is zero.
212
CHAPTER 3 DIFFERENTIATION
Section 3.7
THE DERIVATIVE OF INVERSE
FUNCTIONS
In this section, we use the chain rule to find the derivative of an inverse function in terms of
the original function. Recall from Theorem 1.4.1 that if f -1 is the inverse function of f , then
f -1( f (x )) = x for x in the domain of f and f ( f -1(x )) = x for x in the domain of f -1 .
Suppose f and f -1 are differentiable, it follows that
f ( f -1(x )) = x
d é -1 ù d é ù
dx êë f ( f (x )) úû = dx ë x û
THEOREM 3.7.1
Let f be a function that is differentiable on an interval I . If f has an inverse function
y = f -1(x ) so that x = f (y )
Thus,
dy dx
= ( f -1 )¢ (x ) and = f ¢(y )
dx dy
Substituting these expressions in (1) yields the following alternative formula for (1)
213
SECTION 3.7 THE DERIVATIVE OF INVERSE FUNCTIONS
dy 1
= (2)
dx dx dy
If we can obtain an explicit formula for the inverse of a function, then we can use such formula
in order to find the derivative of the inverse. On the other hand, this is not always the case.
Thus, we have to apply Theorem 3.7.1 to discuss the differentiability and obtain the derivative
of the inverse. The following example illustrates this.
Solution
a. We need to show that as x varies over , the value of f -1(x ) varies over an interval
on which f has a nonzero derivative. But this is so because
f ¢(x ) = 3x 2 + 4
Which is positive for all x .
Because (3) is too complicated to solve for y in terms of x , we leave (4) in terms of y .
214
CHAPTER 3 DIFFERENTIATION
Thus,
dy 1
=
dx 3y 2 + 4
Which agrees with (4).
1 3
RELATED PROBLEM 1 Let f (x ) = x + x -1
3
a. Show that f -1 is differentiable on .
PROOF
We shall prove (a), (c) and (e). The other formulas are left as an exercise.
215
SECTION 3.7 THE DERIVATIVE OF INVERSE FUNCTIONS
d d
( sin y ) = ( x )
dy dy
dx
cos y = (5)
dy
From the identity sin2 y + cos2 y = 1 , and replacing sin y by x , we obtain
cos2 y = 1 - x 2
p p
If - £ y £ , then cos y ³ 0 . Thus,
2 2
cos y = 1 - x2
sec2 y = 1 + x 2
216
CHAPTER 3 DIFFERENTIATION
p 3p
If 0 < y < or p < y < , then tan y > 0 . Thus,
2 2
tan y = x2 - 1
Now, if u = g(x ) is differentiable function of x , then the chain rules gives the following
generalized derivatives of inverse trigonometric functions.
d du
1 d 1 du
a. ( sin-1 u ) = b.
dx
( cos-1 u ) = -
dx 1-u 2 dx
1 - u 2 dx
d 1 du d 1 du
c.
dx
(
tan-1 u = )
1 + u 2 dx
d. ( cot-1 u ) = -
dx 1 + u 2 dx
e. d
( sec-1 u ) =
1 du f. d ( csc-1 u ) = - 1 du
dx u u - 1 dx
2 dx u u - 1 dx
2
217
SECTION 3.7 THE DERIVATIVE OF INVERSE FUNCTIONS
Solution
a. Taking u = 5x in the generalized derivative formula for sin-1 u yields
d d 1 du
f ¢(x ) =
dx
( sin-1 ( 5x ) ) =
dx
( sin-1 u ) =
1 - u 2 dx
1 d 5
= ( 5x ) =
2 dx 1 - 25x 2
1 - ( 5x )
1
b. Taking u = x + 1 = ( x + 1 )2 in the generalized derivative formula for tan-1 u yields
d
f ¢(x ) =
dx
(
tan-1 ( x +1 )) = dxd ( tan-1 u ) = 1 +1 u 2 du
dx
1 d æç 1ö
= çç ( x + 1 )2 ÷÷÷
æ 1 ö dx ç
2
è ÷ø
ç ÷
1 + çç ( x + 1 )2 ÷÷
çè ÷ø
1 æ1 1 ö
çç x + 1 -2 1 ÷÷
= ( ) ( ) ÷
1 + x + 1 çèç 2 ø÷
1 1 1
= =
(x + 2 ) 2 x + 1 2 (x + 2) x + 1
1 d 2 1
= ( 2t ) = =
2
( 2t ) ( 2t ) -1
dt ( 2t ) 4t - 1 t × 4t 2 - 1
2
Thus,
æ 1 ö÷ t
f ¢(t ) = t 2 çç ÷÷ + sec-1 ( 2t )( 2t ) = + 2t sec-1 ( 2t )
çè t× 4t - 1 ø÷
2 2
4t - 1
218
CHAPTER 3 DIFFERENTIATION
Answer
a. 2 b. 1
2
2x - x x 4x 2 - 1
2 cos ( 2t ) d. 1-t
c. + cot-1 t
1 + sin 2
( 2t ) 1 + t2
3 dy
EXAMPLE 3.7.3 If y = ( 1 + cos-1(3x ) ) , find .
dx
Solution Apply the general power rule, we have
dy 2 d
= 3 ( 1 + cos-1(3x ) ) (1 + cos-1(3x ) )
dx dx
Taking u = 3x in the generalized derivative formula for cos-1 u yields
d 1 d -3
dx
( 1 + cos-1(3x ) ) = 0 - ( 3x ) =
1 - (3x ) dx
2
1 - 9x 2
Thus,
dy 2æ -3 ö÷
= 3 ( 1 + cos-1(3x ) ) çç ÷÷
dx ç
è 1 - 9x 2 ÷ø
2
-9 ( 1 + cos-1(3x ) )
=
1 - 9x 2
4 dy
RELATED PROBLEM 3 If y = ( x 2 + csc-1(2x ) ) , find .
dx
3æ 1 ö÷
Answer 4 ( x 2 + csc-1(2x ) ) çç 2x - ÷÷ .
çè x 4x 2 - 1 ø÷
EXAMPLE 3.7.4 Find an equation of the tangent line to the graph of the curve
p æ 2 2 ö÷
sin-1 x + sin-1 y = at the point P ççç , ÷÷ .
2 çè 2 2 ø÷
Solution Differentiating both sides of the equation with respect to x , we obtain
d d æç p ö÷
dx
( sin-1 x + sin-1 y ) = ç ÷
dx çè 2 ÷ø
Thus,
1 1 dy
+ =0
1 - x2 1 - y 2 dx
dy
Solving for yields
dx
219
SECTION 3.7 THE DERIVATIVE OF INVERSE FUNCTIONS
-1
2
dy
= 1 - x2 = - 1 - y
dx 1 1 - x2
1 - y2
æ 2 ö÷2
1 - ççç ÷
dy çè 2 ÷÷ø
æ 2 2 ö÷
=- = -1
dx (x ,y )=ççç , ÷÷ æ 2 ö÷ 2
çè 2 2 ø÷
1 - ççç ÷
çè 2 ÷÷ø
æ 2 2 ö÷
Thus, the equation of the tangent line at ççç , ÷÷ is
çè 2 2 ÷ø
æ 2 ö÷ 2
y = -1 ççç x - ÷÷÷ +
çè 2 ø 2
y = -x + 2
RELATED PROBLEM 4 Find an equation of the tangent line to the graph of the curve
æ3 pö
y = sin-1(x - 1) at the point P çç , ÷÷÷ .
çè 2 6 ø
2 æç 3ö p
Answer y = çç x - ÷÷÷ + .
3è 2ø 6
220
CHAPTER 3 DIFFERENTIATION
EXERCISES 3.7
In Exercises 1-3 use Formula (2) to find the derivative of f -1
1. f (x ) = 2x 3 + x - 3 2. f (x ) = 2x 5 + x 3 + x
3. f (x ) = x 7 + x 5 + x
cos-1 x
4. f (x ) = sec-1 ( 3x ) 5. g(x ) =
x +1
6. f (x ) = cot-1 ( x) 7. f (x ) = x cos-1 x - 1 - x 2
1 æt ö
8. f (t ) = t 4 - t 2 + 2 sin-1 çç ÷÷÷ 9. f (t ) = tan ( sin-1 t )
2 èç 2 ø
tan-1(x )
14. f (x ) =
x2 + 1
15. f (x ) = x sec-1 ( x)
æ ö
-1 1 ÷
(
16. f (t ) = tan-1 t - t 2 + 1 ) 17. f (t ) = cot t + cot ççç ÷÷
-1
èt ø
In Exercises 18-22, find an equation of the tangent line to the graph of the function at the
indicated point.
æx ö æ1 p ö
18. y = 3 cos-1 çç ÷÷ , ( 1, p ) 19. y = x sin-1 x , ççç , ÷÷÷
çè 2 ÷ø è 2 12 ø
æ 2 p ÷ö æ pö
20. y = sec-1 ( 2x ) , ççç , ÷÷ 21. y = cos-1 ( x 2 ) , ççç 0, ÷÷÷
çè 2 4 ÷ø è 2ø
æx ö
23. If h(x ) = x sin-1 çç ÷÷ + 16 - x 2 , find h ¢(2) .
çè 4 ÷ø
d 1 du
24. Prove that
dx
( cot-1 u ) = -
1 + u 2 dx
.
221
SECTION 3.7 THE DERIVATIVE OF INVERSE FUNCTIONS
222