Download as pdf or txt
Download as pdf or txt
You are on page 1of 47

LECTURE 5:

INTRODUCTION TO THE DERIVATIVE


AND
RULES OF DIFFERENTIATION
MAT1051
BAU
Lecture 5 Objectives
◦ Use the formal definition of the derivative to find the derivative of a function.
◦ Understand the geometric meaning of the derivative.
◦ Find the graph of the derivative function given the graph of the function.
◦ Find the equation of the tangent line to a curve at a given point.
◦ Determine whether a function is differentiable at a given point.
◦ Apply the rules of differentiation to compute the derivative.
Tangents
◦ Recall
◦ To find the equation of the tangent line to a curve 𝐶 with equation 𝑦 = 𝑓(𝑥) at the
point 𝑃 𝑎, 𝑓 𝑎 , we considered a nearby point 𝑄 𝑥, 𝑓 𝑥 , where 𝑥 ≠ 𝑎 and computed
the slope of the secant line 𝑃𝑄:
𝑓 𝑥 −𝑓 𝑎
𝑚!" = .
𝑥−𝑎
◦ We found the slope of the tangent line using the following limiting process

𝑓 𝑥 −𝑓 𝑎
𝑚 = lim 𝑚!" = lim .
"→! $→% 𝑥−𝑎
◦ We can only find 𝑚, if the above limit exists. Otherwise, the tangent line to the curve 𝐶 will
not exist.
Definition
The tangent line to the curve
𝑦 = 𝑓(𝑥) at the point
𝑃(𝑎, 𝑓 𝑎 ) is the line through
𝑃 with slope
𝑓 𝑥 −𝑓 𝑎
𝑚 = lim ,
!→# 𝑥−𝑎
provided that this limit exists.
The tangent line is the unique
line through (𝑎, 𝑓 𝑎 ) with
slope 𝑚, whose equation is
𝑦 − 𝑓 𝑎 = 𝑚(𝑥 − 𝑎)
Example 1
◦ Find an equation of the tangent line to the parabola 𝑓 𝑥 = 𝑥 / at the point
𝑃 1,1 .
◦ Solution:
◦ In this example, we have 𝑎 = 1, and 𝑓 𝑎 = 1, so the slope is
𝑓 𝑥 − 𝑓(𝑎) 𝑥' − 1
𝑚 = lim = lim
$→& 𝑥−1 $→& 𝑥 − 1
(𝑥 − 1)(𝑥 + 1)
= lim = lim 𝑥 + 1 = 1 + 1 = 2 .
$→& 𝑥−1 $→&
◦ Thus, the equation of the tangent line to the parabola 𝑓 𝑥 = 𝑥 ! at the point 𝑃 1,1 is:
𝑦−1=2 𝑥−1
𝑦 = 2𝑥 − 1
Geometric
Interpretation of
Example 1
In the previous example, we
found the equation of the tangent
line to the parabola 𝑓 𝑥 = 𝑥 ! at
the point 𝑃 1,1 . This means that
if you were to zoom in closely on
the curve of 𝑓 at that point, the
tangent line’s slope approximates
the rate of change of the function
at that point, in our case, 𝑃 1,1 .
In other words, the more we
zoom in at 𝑃 1,1 , the more the
parabola looks like a line.
Derivatives
◦ In lecture 3 and in the previous example, we have witnessed a similar limiting process to obtain
the slope of the tangent line to a curve as well as the instantaneous velocity of an object.
◦ In fact, limits of the above mentioned form arise whenever a rate of change is involved, such as:
◦ The rate of change of light intensity and the bending of light rays, which are important in lens and mirror
design,
◦ The rate of change of economic indicators, such as inflation, GDP, and interest rates,
◦ How populations of species change over time,
◦ The rate at which drugs are absorbed and eliminated from the body,
◦ Techniques like MRI and CT scans use this equation to analyze changes in tissue properties over time,
◦ Etc.
◦ Consequently, given the versatility of this specific type of limit, we equip it with a name and
extensively study it in this course, namely, the derivative.
The Derivative of a Function at a Number
𝑎
Definition
The derivative of a function 𝒇 at a number 𝒂, denoted by 𝑓 0 𝑎 , is

𝑓 𝑎 + ℎ − 𝑓(𝑎)
𝑓0 𝑎 = lim ,
1→3 ℎ
if this limit exists.

Note: This limit is not different from the one discussed in the tangent line and the
velocity problems.
In fact, if we consider the curve 𝑦 = 𝑓(𝑥) and the secant line intersecting the curve at
the point 𝑃(𝑎, 𝑓 𝑎 ) and 𝑄(𝑎 + ℎ, 𝑓 𝑎 + ℎ ), then the difference in the 𝑥-coordinate 𝑓 $ 𝑎 is read “f prime of a.”
of 𝑃 and 𝑄 is 𝑎 + ℎ − 𝑎 = ℎ.
Example 2
◦ Find the derivate of the function 𝑓 𝑥 = 𝑥 ! − 2𝑥 + 1 at the number 𝑎.
◦ Solution:
◦ From the definition of the derivative at a number, we have
𝑓 𝑎 + ℎ − 𝑓(𝑎) ( 𝑎 + ℎ ! −2 𝑎 + ℎ + 1) − (𝑎 ! − 2𝑎 + 1)
𝑓 " 𝑎 = lim = lim
#→% ℎ #→% ℎ
! ! !
𝑎 + 2𝑎ℎ + ℎ − 2𝑎 − 2ℎ + 1 − 𝑎 + 2𝑎 − 1
= lim Simplify
#→% ℎ
! %
ℎ + 2𝑎ℎ − 2ℎ Factor!
= lim %
#→% ℎ
ℎ(ℎ + 2𝑎 − 2)
lim = lim ℎ + 2𝑎 − 2 = 2𝑎 − 2
#→% ℎ #→%

Note: To find the value of 𝑓 𝑥 at 𝑎 + ℎ, you only need to plug in 𝑎 + ℎ for 𝑥.


Example 2 Continued
◦ Find the equation of the tangent line to the graph of 𝑓 𝑥 = 𝑥 ! − 2𝑥 + 1 at 2,1 .
◦ Solution:
◦ To find the equation of the tangent line, we must first find the slope of the tangent line.
◦ Based on our discussion on the derivative of a function at a number, finding the slope of the
tangent line at a given point is precisely the same as the derivative at that point. More
specifically,
The tangent line to 𝑦 = 𝑓(𝑥) at (𝑎, 𝑓 𝑎 ) is the line whose slope is equal to 𝑓′(𝑎), the derivative of 𝑓 at 𝑎.

Therefore, we only need to evaluate 𝑓′(2) to find the slope of the tangent line. That is, since
𝑓 $ 𝑎 = 2𝑥 − 2, then
𝑓 $ 2 = 2 2 − 2 = 2.
Thus, the equation of the tangent line to the graph of 𝑓 𝑥 = 𝑥 & − 2𝑥 + 1 at 2,1 is
𝑦−1=2 𝑥−2 .
Or,
𝑦 = 2𝑥 − 3.
Different 𝑎 Different Slopes!

𝑓 𝑥 = 𝑥 & − 2𝑥 + 1 𝑓 𝑥 = 𝑥 & − 2𝑥 + 1 𝑓 𝑥 = 𝑥 & − 2𝑥 + 1


Equation of the tangent Equation of the tangent Equation of the tangent line
line at −1,4 is 𝑦 = −𝟒𝑥. line at 1,0 is 𝑦 = 𝟎. at 2,1 is 𝑦 = 𝟐𝑥 − 3.
𝑚'#( < 0 𝑚'#( = 0 𝑚'#( > 0
The Derivative Function
◦ From the previous graph, we note that as the point is changed, the tangent line also changes. More generally, its
slope changes.
◦ Consequently, the slope of the tangent line for the function 𝑓 is itself a function, called the derivative of 𝑓.

Definition
The derivative of 𝑓 is the function
𝑓 𝑥 + ℎ − 𝑓(𝑥)
𝑓$ 𝑥 = lim ,
)→% ℎ
provided the limit exists and 𝑥 is in the domain of 𝑓. If 𝑓′(𝑥) exists, we say that 𝑓 is
differentiable at 𝑥. If 𝑓 is differentiable at every point of an open interval 𝐼, we say that 𝑓 is
differentiable on 𝐼.

Important Note:
Since the definition of 𝑓′ applies only at points in the domain of 𝑓, then the domain of 𝑓′ is no larger than the one of 𝑓.
Remark:
• The domain of 𝑓 𝑥 = 𝑥 is 0, ∞ .
Example 3 • The domain of 𝑓′ 𝑥 =
+
is 0, ∞ .
& !

◦ Let 𝑓 𝑥 = 𝑥.
◦ Find 𝑓 " 𝑥 .
◦ Find an equation of the line tangent to the graph of 𝑓 at 4,2 .
◦ Solution:
◦ From the definition of the derivative, we have:
𝑓 𝑥 + ℎ − 𝑓(𝑥)
𝑓 $ 𝑥 = lim
*→% ℎ
𝑥+ℎ− 𝑥
= lim
*→% ℎ
𝑥 + ℎ − 𝑥 ( 𝑥 + ℎ + 𝑥)
= lim Multiply by the conjugate
"→$ ℎ ( 𝑥 + ℎ + 𝑥)
𝑥+ℎ−𝑥 ℎ 1
lim = lim = Simplify then evaluate the limit
"→$ ℎ( 𝑥 + ℎ + 𝑥) "→$ ℎ( 𝑥 + ℎ + 𝑥) 2 𝑥
Example 3 Continued
◦ Let 𝑓 𝑥 = 𝑥.
◦ Find 𝑓 " 𝑥 .
◦ Find an equation of the line tangent to the graph of 𝑓 at 4,2 .
◦ Solution:
◦ The slope of the tangent line at 4,2 is given by the derivative function evaluated at 𝑥 = 4,
1 1
𝑓$ 4 = = .
2 4 4
◦ Therefore, the equation of the tangent line is
+ +
𝑦 − 2 = (𝑥 − 4) or 𝑦 = 𝑥 + 1
, ,
Example 4
'
◦ Find the derivative of 𝑓 𝑥 = .
$-
◦ Solution:
◦ Use the formal definition of derivative to compute 𝑓 " 𝑥 .
4
𝑓 𝑥 + ℎ − 𝑓(𝑥)
𝑓 𝑥 = lim
5→6 ℎ
2 2 2𝑥 ' − 2 𝑥 + ℎ '

𝑥 + ℎ ' 𝑥' 𝑥' 𝑥 + ℎ '
Common denominator = lim = lim
5→6 ℎ 5→6 ℎ
2𝑥 ' − 2𝑥 ' − 4𝑥ℎ − 2ℎ' ℎ(−4𝑥 − 2ℎ)
Expand the numerator and simplify = lim = lim
5→6 ℎ(𝑥 ' 𝑥 + ℎ ' ) 5→6 ℎ 𝑥 ' 𝑥 + ℎ '
−4𝑥 − 2ℎ 4
Evaluate the limit = lim ' =− 7
5→6 𝑥 𝑥 + ℎ ' 𝑥
Derivative Notation
◦ Several notations for the derivative are used in the literature, for practical reasons. We
will give the explanation for one of them.
◦ Suppose that 𝑦 is a quantity that depends on another of 𝑥, i.e., 𝑦 = 𝑓(𝑥). If 𝑥 changes
from 𝑥K to 𝑥/, then the change in 𝑥 (also called the increment of 𝑥) is
∆𝑥 = 𝑥/ − 𝑥K,
and the corresponding change in 𝑦 is
∆𝑦 = 𝑓 𝑥/ − 𝑓 𝑥K .
◦ The difference quotient,
∆𝑦 𝑓 𝑥/ − 𝑓(𝑥K)
=
∆𝑥 𝑥/ − 𝑥K
is called the average rate of change of 𝑦 with respect to 𝑥 over the interval 𝑥K, x/ .
Observe that this is also the slope of the secant line 𝑃𝑄, in the figure below (next slide)
◦ Therefore, using the above difference quotient and by
letting 𝑥! → 𝑥& , we can define the following:
◦ The slope of the tangent line,
◦ The instantaneous velocity,
◦ The (instantaneous) rate of change of 𝑦 with respect to
𝑥 at 𝑥 = 𝑥& .
◦ In other words,
∆𝒚
𝐥𝐢𝐦 = 𝒇′(𝒙)
∆𝒙→𝟎 ∆𝒙
◦ Other notations for the derivatives, perhaps more
modern are:
𝑑𝑦 𝑑𝑓 4 𝑑
, ,𝑦 , 𝑓 𝑥 , and 𝐷$ 𝑓 𝑥 .
𝑑𝑥 𝑑𝑥 𝑑𝑥
Graphs of Derivatives

◦ The function 𝑓′ is called the derivative of 𝑓 because it is derived from 𝑓.


◦ Thus, it is natural that the graph of 𝑓′ is also derived from the graph of 𝑓.
◦ How can one figure out the graph of 𝑓′ given the graph of 𝑓?
Example 5
The graph of a function 𝑓 is
given on the left. Use it to
sketch the graph of 𝑓 $ .
Example 5
The graph of a function 𝑓 is given
on the left. Use it to sketch the
graph of 𝑓 $ .

𝑚 = 0 at Solution:
𝑥 = 1.3 • Geometrically, the derivative
𝑚<0 function is the slope of the
tangent line at different values
of 𝑥.
𝑚 = 0 at 𝑚<0
𝑚>0 • Thus, it is natural to draw
𝑥 = 0.5
several tangent lines and
investigate the slope 𝑚, i.e.,
positive, negative or zero.
𝑚 = 0 at
𝑥=3
Example 5 Continued
◦ Based on the graph of 𝑓, we make the following observations:

• On the intervals −∞, 0.5 and (1.3, 3) the function 𝑓 is decreasing, thus the
slope of any tangent line will always be negative, thus 𝑓′ is negative on these
intervals.
• The slope of the tangent line to the curve is 0 at 𝑥 = 0.5, 1.3, and 3. Thus
𝑓 0 0.5 = 𝑓 0 1.3 = 𝑓 0 3 = 0.
• On the intervals 0.5,1.3 and 3, ∞ the function 𝑓 is increasing, thus the
slope of any tangent line on this interval is positive, thus 𝑓 0 > 0.
Example 5 Continued

The graph of 𝑓 The graph of 𝑓′


Differentiability
◦ Recall:
◦ 𝑓 is differentiable at 𝑥 if 𝑓′(𝑥) exists.
◦ Thus, we can talk about the differentiability of 𝑓 at a specific point, or an open
interval. That is,
◦ 𝑓 is differentiable at 𝑎 if 𝑓′(𝑎) exists.
◦ 𝑓 is differentiable on an open interval 𝑎, 𝑏 , 𝑎, ∞ , −∞, 𝑎 , or −∞, ∞ , if it is
differentiable at every number in the interval.
◦ From the definition of differentiability, one might pose the following questions:
◦ If 𝑓 is continuous at 𝑎, does this necessarily imply that 𝑓 is differentiable at 𝑎 ?
◦ If 𝑓 is differentiable at 𝑎, does this necessarily imply that 𝑓 is continuous at 𝑎?
Example 6
◦ To answer the first question, let us consider the function 𝑓 𝑥 = 𝑥 . Is this function differentiable for all
values 𝑥?
◦ Solution:
◦ We know that 𝑓 𝑥 = 𝑥 is continuous for all 𝑥. However, the question is asking about the
differentiability of the function. Thus, we need to check for which values of 𝑥 does 𝑓′ exist (or not exist).
◦ For 𝑥 > 0, we have
𝑥 + ℎ − |𝑥| 𝑥 + ℎ − 𝑥 ℎ |𝑥 + ℎ| = 𝑥 + ℎ for small ℎ
𝑓 " 𝑥 = lim = lim = lim = 1.
#→% ℎ #→% ℎ #→% ℎ
◦ Thus, 𝑓 is differentiable for 𝑥 > 0.
◦ For 𝑥 < 0, we have 𝑥 + ℎ = −(𝑥 + ℎ) for small ℎ
"
𝑥 + ℎ − |𝑥| − 𝑥+ℎ +𝑥 ℎ
𝑓 𝑥 = lim = lim = lim − = −1.
#→% ℎ #→% ℎ #→% ℎ
◦ Thus, 𝑓 is differentiable for 𝑥 < 0. 𝑥 =M
−𝑥, 𝑥<0
𝑥, 𝑥≥0
Example 6 Continued
◦ Notice that we don’t know what happens at 𝑥 = 0. Thus, we need to investigate that point carefully. That
is, we need to check whether 𝑓 " 0 exists or not.
We need to find one-sided
𝑓 0 + ℎ − 𝑓(0) 0 + ℎ − |0|
𝑓 " 0 = lim = lim limits since
#→% ℎ #→% ℎ −ℎ, ℎ<0
ℎ =;
ℎ, ℎ≥0

|ℎ| ℎ |ℎ| −ℎ
lim!
*→% ℎ
= lim! = 1
*→% ℎ ≠ lim"
*→% ℎ
= lim"
*→% ℎ
= −1

Since both limits are different, one concludes that 𝑓 $ 0 does not exist. Consequently, 𝑓 𝑥 = 𝑥 is differentiable
for all 𝑥 except 0, and
1 𝑖𝑓 𝑥 > 0
𝑓$ 𝑥 = M
−1 𝑖𝑓 𝑥 < 0
Example 6
Continued
• Geometrically, we see that
𝑓(𝑥) does not have a
tangent line at (0,0). This is
due to the fact that the
direction of 𝑓 abruptly
changes.
• Thus,
“continuity does not imply
differentiability.”
Does Differentiability Imply Continuity?
◦ The answer to this question is:YES!

Theorem
If 𝑓 is differentiable at 𝑎, then 𝑓 is continuous at 𝑎.

What does this theorem tell us?


• If 𝑓′(𝑎) exists then 𝑓 is continuous at 𝑎, i.e., lim 𝑓 𝑥 = 𝑓 𝑎 .
!→#
• If 𝑓 is not continuous at 𝑎, then 𝑓 is not differentiable at 𝑎.
When is a Function Not Differentiable at a
Point?

𝑓 has a corner at 𝑎 𝑓 is not continuous at 𝑎 𝑓 has a vertical tangent at 𝑎


Rules of Differentiation
◦ Recall:
◦ To find the derivative of 𝑓(𝑥), we had to evaluate the following limit,
0
𝑓 𝑥 + ℎ − 𝑓(𝑥)
𝑓 𝑥 = lim .
1→3 ℎ
◦ If we were to evaluate this limit whenever we are looking for the derivative of
a function, we would drop the calculus course after the first week! 😬
◦ On a serious note, evaluating such limit becomes quite tiring and not practical.
◦ Goal: Develop shortcuts to compute derivatives of functions
The Constant
Rule
Theorem
If 𝑐 is a real number, then
𝑑
𝑐 =0
𝑑𝑥

Indeed, the above theorem is true


since every constant function is a
horizontal line with slope 0.

Example:
𝑑 𝑑 .
𝜋 = 0, 𝑒 =0
𝑑𝑥 𝑑𝑥
The Power Rule
Theorem
U
If 𝑛 is any real number, then UV
𝑥 W = 𝑛𝑥 WXK.

Examples: If 𝑓 𝑡 = 𝑡 &%&0 , find 𝑓 $ 𝑡 .


𝑑 1
𝑥 = 5𝑥 1/+ = 5𝑥 , .
𝑑𝑥 𝑓 $ 𝑡 = 2023𝑡 &%&0/+ = 2023𝑡 &%&& .

𝑑 %
𝑥 = 1𝑥 +/+ = 1. '(
𝑑𝑥 If 𝑦 = 𝑥 , find
& .
')
𝑑 1 𝑑 /+ 1
= 𝑥 = −1𝑥 /+/+ = − &
𝑑 1 +/+ 1 𝑑𝑦 3 & 𝑑𝑥 𝑥 𝑑𝑥 𝑥
𝑥 = 𝑥& = . = 𝑥!
𝑑𝑥 2 2 𝑥 𝑑𝑥 2
The Constant
Multiple Rule
Theorem
If 𝑐 is a constant and 𝑓 is a
differentiable function, then
𝑑 𝑑
𝑐𝑓 𝑥 = 𝑐 𝑓(𝑥)
𝑑𝑥 𝑑𝑥

Examples:
2
1. 3𝑥 , = 3 4 𝑥 0 = 12𝑥 0 .
2!
#
2 3 2 /$ 3
2. 2! !
= 𝜋 2! 𝑥 = − &! %/$ .

The above graph gives a geometric description of the constant multiple rule.
Multiplying the function by 2 stretches the curve vertically by a factor of 2.
Therefore, all slopes of tangent lines are doubled.
The Sum Rule
Theorem
If 𝑓 and 𝑔 are both differentiable, then
𝑑 𝑑 𝑑
𝑓 𝑥 +𝑔 𝑥 = 𝑓 𝑥 + 𝑔 𝑥 .
𝑑𝑥 𝑑𝑥 𝑑𝑥
For the sake of completeness, let us prove this differentiation rule. The rule tells us that the derivative of the sum
is the sum of the derivatives. To prove this statement, we must revisit the formal definition of the derivative, that is;
𝑓 𝑥 + ℎ − 𝑓(𝑥)
𝑓 $ 𝑥 = lim .
)→% ℎ
Thus,
$ 𝑓 𝑥 + ℎ + 𝑔 𝑥 + ℎ − (𝑓 𝑥 + 𝑔 𝑥 ) 𝑓 𝑥 + ℎ − 𝑓 𝑥 + (𝑔 𝑥 + ℎ − 𝑔 𝑥 )
𝑓 𝑥 + 𝑔 𝑥 = lim = lim
*→% ℎ *→% ℎ
Limit Law 1 𝑓 𝑥+ℎ −𝑓 𝑥 𝑔 𝑥+ℎ −𝑔 𝑥
= lim + lim = 𝑓 $ 𝑥 + 𝑔′(𝑥)
*→% ℎ *→% ℎ
The Difference Rule
Theorem
If 𝑓 and 𝑔 are both differentiable, then
𝑑 𝑑 𝑑
𝑓 𝑥 −𝑔 𝑥 = 𝑓 𝑥 − 𝑔 𝑥 .
𝑑𝑥 𝑑𝑥 𝑑𝑥

Example:
Let 𝑓 𝑥 = 2𝑥 0 − 5𝑥 & + 3𝑥 − 2. Find 𝑓 $ 𝑥 .

Solution:
Applying the Sum and Difference Rules, we get:
𝑓 $ 𝑥 = 6𝑥 & − 10𝑥 + 3.
The Derivative of the Natural Exponential
Functions
◦ Recall: The exponential function is defined as 𝑓 𝑥 = 𝑎 V , where 𝑎 > 0.
◦ Clearly, none of the above differentiation rules can be applied to find the derivative of
𝑎V.
◦ Let us attempt to find the derivative of the exponential function using the formal
definition of the derivative:
𝑓 𝑥 + ℎ − 𝑓(𝑥) 𝑎 V^] − 𝑎 V 𝑎 V 𝑎] − 𝑎 V
𝑓 0 𝑥 = lim = lim = lim
]→3 ℎ ]→3 ℎ ]→3 ℎ
𝑎 V (𝑎] − 1) 𝑎 ]−1
= lim = 𝑎 V lim
]→3 ℎ ]→3 ℎ
= 𝑓′(0)𝑎 V
The fact that 𝑓 $ 𝑥 = 𝑓 $ 0 𝑎 ! says that:
The rate of change of an exponential function is proportional to the This is the derivative of 𝑓 at 0, i.e., 𝑓 $ 0 .
function itself.
_! XK
◦ It turns out that 𝑓0 0 = lim exists for values of 𝑎 > 0, and we will be able to
]→3 ]
evaluate it later in the course.
◦ For now, we will direct our attention to the case when this limit equals to 1, that is;
𝑎] − 1
lim = 1.
]→3 ℎ
◦ The number 𝑎 for which 𝑓 0 0 = 1 (recall 𝑓 𝑥 = 𝑎 V ) is given a special symbol 𝑒.
◦ This means that the slope of the tangent line at any given point is equal to the function
itself.
Definition

◦ The number 𝑒 = 2.718281828459 … satisfies


. ' /+
lim = 1.
*→% *
◦ It is the base of the natural exponential
function 𝑓 𝑥 = 𝑒 ! .

Theorem
The function 𝑓 𝑥 = 𝑒 ! is differentiable for all real
numbers 𝑥, and
𝑑 !
𝑒 = 𝑒!
𝑑𝑥
Example 7
*' &
a) Write an equation of the line tangent to the graph 𝑓 𝑥 = 2𝑥 − at the point 0, − .
! !
b) Find the point(s) on the graph of 𝑓 at which the tangent line is horizontal.
Solution:
a) To answer this question, we need to find the slope of the tangent line, i.e., the derivative of 𝑓 𝑥 at the
given point.
"
𝑒)
𝑓 𝑥 =2− .
2
&
Thus, the slope of the tangent line at 0, − is
!
𝑒 % 3
"
𝑓 0 =2− = .
2 2
&
Now, we are ready to write an equation of the tangent line at the point 0, − .
!
1 3 3 1
𝑦 + = 𝑥 − 0 or 𝑦 = 𝑥 − .
2 2 2 2
Example 7 Continued
b) To find the point(s) on the graph of 𝑓 at
which the tangent line is horizontal simply
means that we are looking for lines whose
slope is 0. More specifically, we need to solve
the following equation in 𝑥 :
𝑓" 𝑥 = 0
𝑒)
2− =0
2
𝑒)
=2
2)
𝑒 =4
Thus, 𝑓 " 𝑥 = 0 when 𝑥 = ln 4.
𝑓 has a horizontal tangent at (ln 4, 𝑓(ln 4)) .
Higher Order Derivatives
◦ Since the derivative of a function 𝑓 is a function itself, then we can talk about
the derivative of 𝑓 0 , called the second derivative of 𝑓 and denoted by 𝑓 00 .
Then, we can talk about the derivative of 𝑓 00 , called the third derivative of 𝑓,
and so on…

Definition

Assume that 𝑦 = 𝑓(𝑥) is differentiable n-times. For 𝑛 ≥ 2, the nth derivative of


𝑓 is
𝑑 W𝑓 𝑑
𝑓 W 𝑥 = W= 𝑓 WXK 𝑥 .
𝑑𝑥 𝑑𝑥
Example 8
'% (
◦ Let 𝑦 = 3𝑥 ! − )
4𝑒 , find % .
')
◦ Solution:
◦ We need to find the third derivative of the function. Thus, we have to differentiate the function
three times.
𝑑𝑦
= 6𝑥 − 4𝑒 " First derivative
𝑑𝑥

𝑑#𝑦
# = 6 − 4𝑒 " Second derivative
𝑑𝑥

𝑑$𝑦 ". Third derivative


= −4𝑒
𝑑𝑥 $
The Product Rule
◦ In the first lecture, we introduced new functions constructed from old ones
arithmetically.
◦ Recall, we also defined the differentiation rules for the sum and difference of two
differentiable functions.
◦ How can we define the derivative of the product and quotient of two differentiable
functions?
Theorem
If 𝑓 and 𝑔 are differentiable at 𝑥, then
𝑑
𝑓 𝑥 𝑔 𝑥 = 𝑓 0 𝑥 𝑔 𝑥 + 𝑔0 𝑥 𝑓(𝑥)
𝑑𝑥
Example 9
U
◦ Find UV 𝑥 / 2 𝑥 + 3 .
𝑓′ 𝑓 𝑔′
◦ Solution: 𝑓 𝑔 𝑔
𝑑 𝑑 / 𝑑
𝑥/ 2 𝑥 + 3 = 𝑥 2 𝑥+3 +𝑥 / 2 𝑥+3
𝑑𝑥 𝑑𝑥 𝑑𝑥
/
2
= 2𝑥 2 𝑥 + 3 + 𝑥 = 4𝑥 d// + 6𝑥 + 𝑥 d// = 5𝑥 d// + 6𝑥.
2 𝑥
Example 10
◦ Let 𝑓 𝑥 = 𝑥 /𝑒 V , find 𝑓 0 𝑥 .
◦ Solution:
◦ Whenever we are differentiating a function, we need to first decide on the rules
we will use to compute the derivative of the function.
◦ In this problem, it is quite clear that we have the product of two functions namely
𝑥 ' and 𝑒 $ .
◦ Thus, we must apply the Product Rule to find the derivative,
𝑓 4 𝑥 = 2𝑥𝑒 $ + 𝑥 ' 𝑒 $
The Quotient Rule
Theorem
If 𝑓 and 𝑔 are differentiable at 𝑥 and 𝑔 𝑥 ≠ 0, then the derivative of 𝑓/𝑔 at 𝑥
exists and

𝑑 𝑓 𝑥 𝑓 0 𝑥 𝑔 𝑥 − 𝑓 𝑥 𝑔′(𝑥)
= /
𝑑𝑥 𝑔 𝑥 𝑔 𝑥
Example 11
◦ Find and simplify
𝑑 𝑥 / + 3𝑥 + 4
/ .
𝑑𝑥 𝑥 −1
◦ Solution:
◦ Applying the Quotient Rule, we get:

𝑑 𝑥 ! + 3𝑥 + 4 2𝑥 + 3 𝑥 ! − 1 − (𝑥 ! + 3𝑥 + 4)(2𝑥)
! =
𝑑𝑥 𝑥 −1 𝑥! − 1 !
2𝑥 7 − 2𝑥 + 3𝑥 ' − 3 − 2𝑥 7 − 6𝑥 ' − 8𝑥 −3𝑥 ' − 10𝑥 − 3
= =
𝑥' − 1 ' 𝑥' − 1 '
Example 12
U
◦ Compute UV 𝑒 XV .
◦ Solution:
&
◦ First observe that 𝑒 @$ = .
A4

𝑑 XV 𝑑 1 0 𝑒V − 𝑒V XV .
𝑒 = = = −𝑒
𝑑𝑥 𝑑𝑥 𝑒 V 𝑒V /

You might also like