Chapter 2
Chapter 2
CHAPTER II
Derivatives
The definition of a tangent line is not very easy to explain without involving limits.
Students can imagine that locally, the curve looks like an arc of a circle. Hence, they can
draw the tangent line to the curve as they would to a circle.
One more way to see this is to choose the line through a point that locally looks most
like the curve. Among all the lines through a point (c, f (c)), the one which best ap-
proximates the curve y = f ( x ) near the point (c, f (c)) is the tangent line to the curve
at that point.
Another way of qualitatively understanding the tangent line is to visualize the curve
as a roller coaster.The tangent line to the curve at a point is parallel to the line of sight
of the passengers looking straight ahead and sitting erect in one of the wagons of the
roller coaster.
Consider also the case when Q is to the left of P and perform the same process. Intu-
itively, we can define the tangent line through P to be the limiting position of the secant
lines PQ as the point Q (whether to the left or right of P) approaches P.
We summarize the definitions of the secant line through a point, and the tangent line at
a point of the graph of y = f ( x ).
(1) A secant line to y = f ( x ) through P is any line connecting P and another point
Q on C.
(2) The tangent line to y = f ( x ) at P is the limiting position of all secant lines PQ
as Q −→ P.
y − y0
ml = .
x − x0
Example. Given A(1, −3), B(3, −2), and C (−1, 0), what are the slopes of the lines AB,
AC, and BC?
−2 − (−3) 1
m AB = = .
3−1 2
The slope of AC is
0 − (−3) 3
m AC = =− .
−1 − 1 2
The slope of BC is
0 − (−2) 1
m BC = =− .
−1 − 3 2
y − y0 = m ( x − x0 ).
Example. From Example above, since m AB = 21 ., then using A(1, −3) as our point, then
1
y − (−3) = ( x − 1)
2
1
y + 3 = ( x − 1)
2
y − y0 f ( x ) − f ( x0 )
m = lim or m = lim .
x → x0 x − x0 x → x0 x − x0
Substitute this value of m and the coordinates of the known point P( x0 , y0 ) into
the point-slope form to get
y − y0 = m ( x − x0 ).
Solution. To get the equation of the line, we need the point P( x0 , y0 ) and the slope m.
We are only given x0 = 2. However, the y-coordinate of x0 is easy to find by substituting
x0 = 2 into y = x2 . This gives us y0 = 4. Hence, P has the coordinates (2, 4). Now, we
look for the slope:
y − y0 x2 − 4
m = lim = lim = lim ( x + 2) = 4.
x → x0 x − x0 x →2 x − 2 x →2
Finally, the equation of the tangent line with slope m = 4 and passing through P(2, 4) is
y − 4 = 4( x − 2) or y = 4x − 4.
√
Example. Find the slope-intercept form of the tangent line to f ( x ) = x at x = 4.
√ √
Solution. Again, we find the y-coordinate of x0 = 4: y0 = f ( x0 ) = x0 = 4 = 2.
Hence, P has coordinates (4, 2). Now, we look for the slope of the tangent line. Notice
that we have to rationalize the numerator to evaluate the limit.
f ( x ) − f ( x0 )
m = lim
x → x0 x − x0
√ √
x−2 x+2
= lim ·√
x →4 x − 4 x+2
x−4
= lim √
x →4 ( x − 4 ) x+2
1 1
= lim √ = .
x →4 x+2 4
Finally, with point P(4, 2) and slope m = 14 , the equation of the tangent line is
1
y−2 = ( x − 4)
4
x
y = + 1.
4
Example. Show that the tangent line to y = 3x2 − 12x + 1 at the point (2, −11) is hori-
zontal.
Solution. Recall that a horizontal line has zero slope. Now, computing for the slope,
we get:
y − y0
m = lim
x → x0 x − x 0
Since the slope of the tangent line is 0, it must be horizontal. Its equation is
y − (−11) = 0( x − 2)
y + 11 = 0
y = −11
f ( x ) − f ( x0 )
f 0 ( x0 ) = lim
x → x0 x − x0
if this limit exists. That is, the derivative of f at x0 is the slope of the tangent line at
( x0 , f ( x0 )), if it exists.
Notations: If y = f ( x ), the derivative of f is commonly denoted by
d d dy
f 0 ( x ) , Dx [ f ( x )] , [ f ( x )] , [y] ,
dx dx dx
.
Remark. Note that the limit definition of the derivative is inherently indeterminate! Hence,
0
the usual techniques for evaluating limits which are indeterminate of type 0 are applied,
e.g., factoring, rationalization, or using one of the following established limits:
x −1
(i) lim sinx x = 1 (ii) lim 1−cos
x
x
=0 (iii) lim e x = 1.
x →0 x →0 x →0
(1) f ( x ) = 3x − 1
(2) f ( x ) = 2x2 + 4
2x
(3) f ( x ) = x +1
√
(4) f ( x ) = x+8
f ( x ) − f (1)
f 0 (1) = lim .
x →1 x−1
Remember that what we are computing, f 0 (1) ,is just the slope of the tangent line to
y = f ( x ) at x = 1.
(3x − 1) − 2
f 0 (1) = lim
x →1 x−1
3x − 3
= lim
x →1 x − 1
3 ( x − 1)
= lim
x →1 x − 1
= lim 3
x →1
=3
2x2 + 4 − 6
0
f (1) = lim
x →1 x−1
2x2 − 2
= lim
x →1 x − 1
2 x2 − 1
= lim
x →1 x−1
2 ( x + 1) ( x − 1)
= lim
x →1 x−1
= lim 2 ( x + 1)
x →1
= 4.
2x
−1
f 0 ( x ) = lim x +1
.
x →1 x−1
complex fraction.
2x
−1 x+1
f 0 ( x ) = lim x +1
·
x →1 x − 1 x+1
2x − ( x + 1)
= lim
x →1 ( x − 1 ) ( x + 1 )
( x − 1)
= lim
x →1 ( x − 1 ) ( x + 1 )
1
= lim
x →1 x + 1
1
= .
2
f ( x ) − f ( x0 )
f 0 ( x0 ) = lim .
x → x0 x − x0
There is another definition of the derivative which is derived by using the substitution
x = x0 + ∆x
f ( x0 + ∆x ) − f ( x0 )
f 0 ( x0 ) = lim .
∆x →0 ( x0 + ∆x ) − x0
f (2π + h) − f (2π )
f 0 (2π ) = lim
h →0 h
sin (2π + h) − sin (2π )
= lim
h →0 h
sin (2π + h) − 0
= lim
h →0 h
Using the sum identity of the sine function: sin (α + β) = sin α cos β + cos α sin β,
and noting that sin (2π ) = 0 and cos (2π ) = 1, we get
= 1.
(b)
g (π + h) − g (π )
g0 (π ) = lim
h →0 h
cos (π + h) − cos (π )
= lim
h →0 h
cos (π + h) − (−1)
= lim
h →0 h
Using the sum identity of the cosine function: cos (α + β) = cos α cos β − sin α sin β,
and noting that cos π = −1 and sin π = 0, we get
(c)
s (3 + h ) − s (3)
s0 (3) = lim
h →0 h
e 3 + h − e3
= lim .
h →0 h
Using the exponent laws, e3+h = e3 eh . Moreover, since e3 is just aconstant, we can
factor it out of the limit operator. So,
e3 e h − e3
s0 (3) = lim
h →0 h
h
e −1
= e3 lim
h →0 h
= e3 .
Definition.
f (c + h) − f (c)
f 0 (c) = lim
x →c h
exists.
Example.
( x − 1) ( x + 3)
lim f ( x ) = lim =4
x →1 x →1 x+1
f ( x + h) − f ( x )
f 0 ( x ) = lim
h →0 h
√ √
q √
( x + h )2 + 3 ( x + h ) ( x ) + x 2
3 3
p 3
3
x+h− x
= lim · q √
h →0 h
( x + h )2 + 3 ( x + h ) ( x ) + x 2
3
p 3
( x + h) − x
= lim q √
h →0 3 2 p
3 3 2
h ( x + h) + ( x + h) ( x ) + x
1
= lim q √
h →0 3 2 p 3
( x + h) + 3
( x + h) ( x ) + x2
1
= √
3 2
3 x
Since f 0 (1) = √
3
1
= 1
3, then f is differentiable at x = 1. On the other hand,
3 12
f 0 (0)does not exist. Hence f is not differentiable at x = 0.
(4) The function defined by
5x if x < 1
f (x) =
2x + 3 if x ≥ 1
5 ( x + h) − (5x )
lim = 5.
h →0− h
(2 ( x + h) + 3) − (2x + 3)
lim =2
h →0+ h
Since the one-sided limits at x = 1 do not coincide, the limit at x = 1 does not
exist. Since this limit is the definition of the derivative at x = 1, we conclude that
f is not differentiable at x = 1.
Proof. Note that a function f is differentiable at a implies that f 0 ( a) exists. To prove that
f is continuous at a, we must show that
lim f ( x ) = f ( a) ,
x→a
or equivalently,
lim f ( a + h) = f ( a) .
h →0
If h 6= 0, then
f ( a + h) = f ( a) + f ( a + h) − f ( a)
f ( a + h) − f ( a)
= f ( a) + ·h
h
f ( a + h) − f ( a)
lim f ( a + h) = lim f ( a) + lim ·h
h →0 h →0 h →0 h
0
= f ( a) + f ( a) · 0
= f ( a) .
Remark.
The graph of a constant function is a horizontal line and a horizontal line has zero slope.
The derivative measures the slope of the tangent, and so the derivative is zero.
Proof.
f ( x + h) − f ( x )
f 0 ( x ) = lim = lim c − c = lim 0 = 0
h →0 h h →0 h →0
Example.
Example.
1 1 −1
f 0 (x) = x2
2
1 1
= x− 2
2
1
= √
2 x
Example.
3
(1) f ( x ) = 5x 4
√
(2) g ( x ) = 13 3 x
√
(3) h ( x ) = − 3x
Solution.
3 15 − 14
(1) f 0 ( x ) = 5 · 34 x 4 −1 = 4 x = 15
√
44 x
1 2
(2) g0 ( x ) = · 13 x 3 −1 = 19 x − 3 = √
1
3 3
1
9 x2
√ √ √
(3) h0 ( x ) = − 3x1−1 = − 3x0 = − 3
NOTE: f ( x ) = g ( x ) − h ( x ) = g ( x ) + (−1) h ( x )
(1) f ( x ) ± g ( x )
(2) g ( x ) ± h ( x )
(3) f ( x ) ± h ( x )
Solution.
15 − 14 2
(1) 4 x ± 91 x − 3
1 − 23
√
(2) 9 x ± − 3
√
15 − 14
(3) 4 x ± − 3
Remark.
a. The Sum Rule can also be extended to a sum of a finite number of functions. If
f 0 ( x ) = f 10 ( x ) + f 20 ( x ) + · · · + f n0 ( x )
b. The same is true for the difference of a finite number of functions. That is,
f 0 ( x ) = f 10 ( x ) − f 20 ( x ) − · · · − f n0 ( x )
Dx [ f ( x ) g ( x )] = f ( x ) g0 ( x ) + g ( x ) f 0 ( x ) .
Solution.
f 0 ( x ) = 3x2 − 4 Dx x2 − 3x + x2 − 3x Dx 3x2 − 4
= 3x2 − 4 (2x − 3) + x2 − 3x (6x )
1
1
f 0 ( x ) = x 2 Dx 6x3 + 2x − 4 + 6x3 + 2x − 4 Dx x 2
1
1 1
= x 2 18x2 + 2 + 6x3 + 2x − 4 x− 2
2
5 1 5 1 1
= 18x 2 + 2x 2 + 3x 2 + x 2 − 2x − 2
5 1 1
= 21x 2 + 3x 2 − 2x − 2
g ( x ) f 0 ( x ) − f ( x ) g0 ( x )
f (x)
Dx = .
g (x) [ g ( x )]2
Example. Let h ( x ) = 3x +5
x 2 +4
. Compute h0 ( x ).
Solution. If h ( x ) = 3x +5
x 2 +4
, then f ( x ) = 3x + 5 and g ( x ) = x2 + 4 and therefore f 0 ( x ) =
3 and g0 ( x ) = 2x. Thus,
Remark.
(1) Whenever Rule 7 is applied to problems where the trigonometric functions are
viewed as functions of angles, the unit measure must be in radians.
(2) Every trigonometric function is differentiable on its domain. In particular, the sine
and cosine functions are everywhere differentiable.
If f ( x ) = e x ,then f 0 ( x ) = e x .
Example. If f ( x ) = 3e x , then f 0 ( x ) = 3e x .
Example. Find g0 ( x ) if g ( x ) = −4x2 e x + 5xe x − 10e x .
Solution. Applying the Rule 8 together with Rule 5 and Rule 3, we have
h i
g0 ( x ) = −4x2 (e x ) + (e x ) (−8x ) + [(5x ) (e x ) + (e x ) (5)] − 10e x
= −4x2 e x − 3xe x − 5e x .
Remark. Since the domain of the exponential function is the set of real numbers, and
Dx [e x ] = e x , it follows that the exponential function is differentiable everywhere.
The Chain Rule below provides for a formula for the derivative of a composition of
functions.
Theorem. (Chain Rule) Let f be a function differentiable at c and let g be a function differen-
tiable at f (c). Then the composition g ◦ f id differentiable at c and
Remark. Another way to state the Chain Rule is the following: If y is differentiable
function of u defined by y = f (u) and u is differentiable function of x defined by
u = g ( x ), then y is a differentiable function of x, and the derivative of y with respect to
x is given by
dy dy du
= · .
dx du dx
In words, the derivative of a composition of functions is the derivative of the outer
function evaluated at the inner function, times the derivative of the inner function .
2
Example. 1.If f ( x ) = 3x2 − 2x + 4 . Find f 0 ( x ).
2
Solution. We can write y = f ( x ) = 3x2 − 2x + 4 as y = f (u) = u2 where u =
dy du
f 0 ( x ) = y0 = ·
du dx
= (2u) (6x − 2)
= 2 3x2 − 2x + 4 (6x − 2)
Example. 2. For the second illustration, we have y = sin (2x ). Find y0 using the Chain
Rule.
Solution. We can rewrite y = sin (2x ) as y = f (u) = sin u where u = 2x. Hence
dy du
y0 = ·
du dx
= (cos u) (2)
= 2 cos (2x ) .
5
Example. 3. What is the derivative of y = 3x2 + 4x − 5 ?
Solution.
h i5
y0 = Dx 3x2 + 4x − 5
4
= 5 · 3x2 + 4x − 5 · Dx 3x2 + 4x − 5
4
= 5 3x2 + 4x − 5 (6x + 4) .
dy √
Example. 4. Find dx where y = 3x3 + 4x + 1.
√ 21
Solution. Note that y = 3x3 + 4x + 1= 3x3 + 4x + 1
dy 1 3 1 −1
2
= 3x + 4x + 1 Dx 3x3 + 4x + 1
dx 2
1 3 − 1
2
= 3x + 4x + 1 9x2 + 4
2
9x2 + 4
= √ .
2 3x3 + 4x + 1
dy
Example. 5. Find dx where y = (sin 3x )2 .
Solution.
dy d
= 2 (sin 3x ) · (sin 3x )
dx dx
d
= 2 (sin 3x ) · (cos 3x ) · (3x )
dx
= 2 (sin 3x ) · (cos 3x ) · 3
= 6 sin 3x cos 3x.
dy
Example. 6. Consider the functions y = 3u2 + 4u and u = x2 + 5. Find dx .
dy dy du dy du
Solution. By the Chain Rule, we have dx = du · dx where du = 6u + 4 and dx = 2x
dy
= (6u + 4) (2x )
dx h i
= 6 x2 + 5 + 4 (2x )
= 6x2 + 34 (2x )
= 12x3 + 68x.
Most of the functions we have dealt with so far have been expressed in explicit form.
Which means functions that can be described by an equation of the form y = f ( x ) that
expresses y explicitly in terms of the variable x. Some functions, however, are only
1
implied by an equation. For instance, the function y = x is defined implicitly by the
equation xy = 1.
dy
To find dx for this equation, you can write y explicitly as a function of x and then differ-
entiate.
This strategy works whenever you can solve for the function explicitly. You cannot,
however, use this procedure when you are unable to solve for y as a function of x. For
dy
instance, how would you find dx for the equation x2 − 2y3 + 4y = 2?
dy
For this equation, it is difficult to express y as a function of x explicitly. To find dx , you
can use implicit differentiation.
dy
To understand how to find dx implicitly, you must realize that the differentiation is
taking place with respect to x. This means that when you differentiate terms involving x
alone, you can differentiate as usual. However, when you differentiate terms involving
y, you must apply the Chain Rule, because you are assuming that y is defined implicitly
as a differentiable function of x.
dy
Example 1. Find dx given that y3 + y2 − 5y − x2 = −4.
d d
y3 + y2 − 5y − x2 =
dx dx [−4]
d d d d d
3 2
x2 =
=⇒ dx y + dx y − dx [5y] − dx dx [−4]
dy dy dy
=⇒ 3y2 dx + 2y dx − 5 dx − 2x = 0
dy
(2) Collect all terms involving dx on the left side of the equation and move all other
terms to the right side of the equation.
dy dy dy
3y2 dx + 2y dx − 5 dx − 2x = 0
dy dy dy
=⇒ 3y2 dx + 2y dx − 5 dx = 2x
dy
(3) Factor dx out of the left side of the equation.
dy
3y2 + 2y − 5 = 2x
=⇒ dx
dy
(4) Solve for dx by dividing the equation by 3y2 + 2y − 5.
dy 2x
=⇒ dx = 3y2 +2y−5
Example 2. Find the slope of the tangent line to the circle x2 + y2 = 5 at the point
(−2, 1)uisng implicit differetiation.
Solution.
d d
x 2 + y2 =
dx dx (5)
d d d
x2 + y2 =
=⇒ dx dx dx (5)
dy
=⇒ 2x + 2y dx =0
dy
(2) Collect all terms involving dx on the left side of the equation and move all other
terms to the right side of the equation.
dy
2x + 2y dx = 0
dy
=⇒ 2y dx = −2x
dy
(3) Factor dx out of the left side of the equation.
dy
=⇒ dx (2y) = −2x
dy
(4) Solve for dx by dividing the equation by 2y.
dy −2x
=⇒ dx = 2y = − yx
dy
Moreover, substituting x = −2 and y = 1in (4), we find that the slope is dx =
− yx = − (−12) = 2.
dy 4
Example 3. Find dx for x + y3 = e xy .
Solution.
dy 4 d
=⇒ 1 + 3y2 dx = e xy xy4
dx
dy 4 dy
=⇒ 1 + 3y2 dx = e xy 4xy3 dx + y4
dy
(2) Collect all terms involving dx on the left side of the equation and move all other
terms to the right side of the equation.
dy dy 4 dy 4
=⇒ dx 3y2 dx − e xy 4xy3 dx = −1 + e xy y4
dy
(3) Factor dx out of the left side of the equation.
dy 4 4
=⇒ dx 3y2 − e xy 4xy3 = −1 + e xy y4
dy 4
(4) Solve for dx by dividing the equation by 3y2 − e xy 4xy3 .
4
dy −1+e xy y4
=⇒ dx = 4 .
3y2 −e xy 4xy3
dy
Consider the function y = f ( x ). The derivative y0 , f 0 ( x ) , Dx y or dx is called the first
derivative of f with respect to x. The derivative of the first derivative is called the
second derivative of f with respect to x and is denoted by any of the following symbols:
d2 y
y”, f ” ( x ) , Dx2 y,
dx2
The third derivative of f with respect to x is the derivative of the second derivative and
is denoted by any of the following symbols:
d3 y
y000 , f 000 ( x ) , Dx3 y,
dx3
In general, the nth derivative of f with respect to x is the derivative of the (n − 1)st
derivative and is denoted by any of the following symbols:
dn y
y(n) , f (n) , Dxn y,
dx n
f ( x + ∆x ) − f ( x )
f 0 ( x ) = lim for n = 1 and
∆ →0 ∆x
f (n−1) ( x + ∆x ) − f (n−1) ( x )
f (n) ( x ) = lim for n > 1,
∆ →0 ∆x
provided that these limits exists. Thus the nth derivative of f is just the derivative of the
(n − 1)st derivative of f .
Remark.
Example. 2. Find the first and second derivatives of the function defined by
y = 3x2 − 4 x2 − 3x .
= 36x2 − 54x − 8.
3x +5 d2 y
Example. 3. Let y = x 2 +4
. Find dx2
.
and
= −4x2 e x − 3xe x − 5e x
= e x −4x2 − 3x − 5 .
g00 ( x ) = (e x ) (−8x − 3) + −4x2 − 3x − 5 (e x )
= e x −4x2 − 11x − 8 .
g000 ( x ) = (e x ) (−8x − 11) + −4x2 − 11x − 8 (e x )
= e x −4x2 − 19x − 19 .