MATH 122 - Calculus I - The Derivative of A Function
MATH 122 - Calculus I - The Derivative of A Function
MATH 122 - Calculus I - The Derivative of A Function
1
Outline
2 Rules of Differentiation
6 Logarithmic Differentiation
2
The Derivative of a Function
In this chapter, we will discuss how to find the derivative of a
function.
The process of finding the derivative of a function is known as
differentiation.
We start with a motivating example.
3
Suppose a person is traveling from a point A to another point B,
several kilometers away.
We can find the average velocity of the person:
∆S
V =
∆T
This gives an approximation of how fast the person traveled over
the length of the journey, but we don’t know how fast the person is
traveling at each point in time.
4
Instantaneous Velocity
5
Definition 1
If f (x) is a continuous function, we define the derivative of f at x
to be the limit
f (x + h) − f (x)
lim
h→0 h
where the limit exists.
6
Definition 1
If f (x) is a continuous function, we define the derivative of f at x
to be the limit
f (x + h) − f (x)
lim
h→0 h
where the limit exists.
We can denote the derivative of f at x by the following:
df d
f ′ (x), , [f (x)] or Dx (f ).
dx dx
6
Note
The derivative of a function f (x) gives the gradient/slope of the
function at x. This is also the slope of the tangent line to the
function f (x) at x.
7
Note
The derivative of a function f (x) gives the gradient/slope of the
function at x. This is also the slope of the tangent line to the
function f (x) at x.
Example 2
Let us consider the derivative of the function f (x) = x2 . Using the
definition of the derivative, we have the following:
7
Example 3
f (x + h) − f (x)
f (x) = lim
h→0 h
(x + h) − x2
2
= lim
h→0 h
(x + h + x)(x + h − x)
= lim
h→0 h
(2x + h) ⋅ h
= lim
h→0 h
= lim 2x + h = 2x
h→0
8
Note
We can formulate the definition of the derivative in other ways, for
instance:
f (x) − f (a)
f ′ (a) = lim .
x→a x−a
9
Example 4
Use the definition of the derivative to find the derivative of the
function f (x) = 1/x.
f (x + h) − f (x)
f ′ (x) = lim
h→0 h
1 1
−
= lim x+h x
h→0 h
x − (x + h) 1 −h
= lim ⋅ = lim
h→0 (x + h)x h h→0 (x)(x + h)h
−1 −1
= lim = 2
h→0 x(x + h) x
10
Example 5
Suppose f (x) = x2 + x. Use the definition of the derivative to find
f ′ (1).
11
Example 5
Suppose f (x) = x2 + x. Use the definition of the derivative to find
f ′ (1).
f (1 + h) − f (1)
f ′ (1) = lim
h→0 h
[(1 + h)2 + (1 + h)] − (12 + 1)
= lim
h→0 h
2
1 + 2h + h + 1 + h − 2
= lim
h→0 h
3h + h 2
= lim
h→0 h
= lim[3 + h] = 3
h→0
11
Theorem 6
If f ′ (a) exists, then f is continuous at x = a.
12
Theorem 6
If f ′ (a) exists, then f is continuous at x = a.
Proof.
Suppose f is differentiable at x = a. Then
f (x) − f (a)
f (x) = f (a) + (x − a) x≠a
x−a
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).
12
Example 7
Use the definition of the derivative1 to find the derivative of the
following functions:
Example 8
1
Given f (t) = , find f ′ (4).
t−1
1
also called differentiating from first principles
13
Rules of Differentiation
Rules for Finding Derivatives
14
Rules for Finding Derivatives
14
Theorem 10
d d d
4 [(f + g)(x)] = [f (x)] + [g(x)].
dx dx dx
15
Example 11
Using the rules of differentiation, find the derivative of each of the
functions given by y = f (x):
1 y = −3x−4 5 y = x2 − 1
α
2 y= 3 6 y = (x + 1)(x − 1)
x
3 y = 3x4 + x3 7 y = (x2 + 2)(x + 1).
4 y = 2x−6 + x−1
16
Product Rule
Theorem 12
Suppose f (x) and g(x) are differentiable functions. Then
We can also state the product rule2 as follows: If u(x) and v(x)
are differentiable functions, then
d du dv
(uv) = v + u .
dx dx dx
2
also called the Leibniz rule
17
Quotient Rule
Theorem 13
Suppose f (x) and g(x) are differentiable functions. Then
f ′ f ′ (x) ⋅ g(x) − f (x) ⋅ g ′ (x)
( ) (x) =
g [g(x)]2
We can also state the quotient rule as follows: If u(x) and v(x) are
differentiable functions, then
d u v du dv
dx − u dx
( )= .
dx v v2
18
Differentiation of Composite Functions
3
this is known as the chain rule
19
Differentiation of Composite Functions
y = f (u)
dy dy du
= ⋅ .
dx du dx
3
this is known as the chain rule
19
Proof.
f (g(x)) − f (g(a))
(f ○ g)′ (a) = lim
x→a x−a
f (g(x)) − f (g(a)) g(x) − g(a)
= lim [ ⋅ ]
x→a g(x) − g(a) x−a
f (g(x)) − f (g(a)) g(x) − g(a)
= lim ⋅ lim
x→a g(x) − g(a) x→a x−a
= f ′ (g(a)) ⋅ g ′ (a)
20
Generalized Power Rule
We can apply the chain rule to develop the generalized power rule:
if f (x) is a differentiable function, then
d
[f (x)]n = n[f (x)]n−1 ⋅ f ′ (x).
dx
Example 14
Given f (x) = (3 − 2x)5 , we have
d
[(3 − 2x)5 ] = [(3 − 2x)5 ]′ ⋅ (3 − 2x)′
dx
= 5(3 − 2x)4 ⋅ (−2)
= −10(3 − 2x)4
21
Examples
22
Derivatives of Trigonometric Functions
dy
Let y = sin x. Then = cos x.
dx
23
Derivatives of Trigonometric Functions
dy
Let y = sin x. Then = cos x.
dx
Proof.
d sin(x + h) − sin x
[sin x] = lim
dx h→0 h
sin x cos h + cos x sin h − sin x
= lim
h→0 h
sin x cos h − sin x cos x sin h
= lim [ + ]
h→0 h h
23
Proof.
d cos h − 1 sin h
[sin x] = lim sin x ( ) + lim cos x
dx h→0 h h→0 h
cos h − 1 sin h
= sin x lim ( ) + cos x lim
h→0 h h→0 h
= sin x ⋅ 0 + cos x ⋅ 1
= cos x
d
Similarly [cos x] = − sin x.
dx
24
Example 15
d
Show that (tan x) = sec2 x.
dx
Note
25
Exponential and Logarithmic Functions
26
For instance, given g(x) = ex
2
+x , we have
g ′ (x) = (2x + 1)ex +x .
2
27
Examples
28
Higher Order Derivatives
Higher Order Derivatives
29
d3 f
Similarly, f ′′′ (x) = .
dx3
To make the notation of writing higher derivatives easier, we denote
the nth derivative of f (x) by f (n) (x). Therefore
dn f
f (n) (x) = .
dxn
30
d3 f
Similarly, f ′′′ (x) = .
dx3
To make the notation of writing higher derivatives easier, we denote
the nth derivative of f (x) by f (n) (x). Therefore
dn f
f (n) (x) = .
dxn
Example 16
Let f (x) = x5 . Then f (1) (x) = 5x4 , f (2) (x) = 20x3 , f (3) (x) = 60x2 ,
f (4) (x) = 120x, f (5) (x) = 120, and f (n) (x) = 0 for n ≥ 6.
30
Example 17
d2 y
1 Let y = sin(x3 ). Find .
dx2
16
2 The displacement of an object is given by s(t) = t2 + , t > 0.
t
Find the acceleration of the object.
3 The displacement of an object is given by
1
s = (t4 − 14t3 + 60t2 ). Find the velocity of the object when its
10
acceleration is 0.
4 Suppose that g(t) = at2 + bt + c, and that g(1) = 5, g ′ (1) = 3,
and g ′′ (1) = −4. Find a, b, and c.
31
Differentiation of Implicit Functions
Implicit Differentiation
32
It is difficult to explicitly express y as a function of x.4
4
it is not a function of x – for each value of y there are 2 values of x. However the derivative still
exists.
33
It is difficult to explicitly express y as a function of x.4
However, we still want to find the derivative of y with respect to x.
dy
We differentiate the equation and solve for . This technique is
dx
called implicit differentiation.
4
it is not a function of x – for each value of y there are 2 values of x. However the derivative still
exists.
33
Applying this to the equation, we obtain
x2 + y 2 = 36
d 2 d d
[x ] + [y 2 ] = [36]
dx dx dx
d 2 d
2x + [y ] ⋅ [y] = 0
dy dx
dy
2x + 2y ⋅ =0
dx
dy
2y = −2x
dx
dy x
=−
dx y
34
Example 18
Find the derivative of each of the following implicit functions:
1 4x2 y − 3y = x3 − 1
2 y 2 − x2 = 1
3 xy 2 = x − 8
4 cos(xy 2 ) = y 2 + x
5 x2 + 2x2 y + 3xy = 0.
35
Consider the unit circle centered at the origin.
We can describe the circle with the equation
x2 + y 2 = 1
36
We can also think of the curve as the path of a moving particle
whose position P (x, y) is changing over time.
Then the position becomes a function of t: P (t) = (x(t), y(t).
Definition 19
If x and y are given as functions x = f (t), y = g(t) over an interval
I of t-values, then the set of points (x, y) = (f (t), g(t)) defined by
the pair of equations is a parametric curve.5
5
The parametric equations of the unit circle above are x = cos t, y = sin t (seem familiar?)
37
The equations
⎧
⎪ x = f (t)
⎪
⎨
⎩ y = g(t)
⎪
⎪
are parametric equations for the curve. t is the parameter for the
curve.
Example 20
1 The equations x = cos t, y = sin t are parametric equations for
the unit circle centered at the origin.
2 The equations x = t2 , y = 2t are parametric equations for the
parabola y 2 = 4x with vertex (0, 0), focus (1, 0) and directrix
x = −1.
38
Suppose x and y are functions of a third parameter t. If y = F (x),
then
dy dx
= F ′ (x) ⋅
dt dt
If we consider the quantities dx/dt and dy/dt as rates of change for
the x- and y-coordinates respectively, we have that the rates are
”related” by the above equation.
39
Examples
41
Derivatives of Inverse Trigonometric Functions
Derivative of y = sin−1 (x)
Consider the function y = sin−1 (x). From MATH 121, we fixed the
domain of the function as the closed interval [−1, 1], and the range
π π
as the closed interval [− , ]. We can use the technique of implicit
2 2
differentiation to find the derivative of the arcsine function:
y = sin−1 (x)
x = sin(y)
d
1 = (sin y)
dx
dy
1 = cos y ⋅
dx
42
Derivative of y = sin−1 (x)
43
Derivatives of Inverse Trigonometric Functions
d 1 d 1
1 (cos−1 )(x) = − √ 3 (sec−1 )(x) = √
dx 1 − x2 dx ∣x∣ x2 − 1
d 1
2 (tan−1 )(x) =
dx 1 + x2
44
Examples
45
Logarithmic Differentiation
Introduction
y = f (x)
ln y = ln f (x)
1 dy d
= (ln f (x))
y dx dx
dy d
∴ = y ⋅ (ln f (x))
dx dx
46
We can use the technique of logarithmic differentiation to find the
derivatives of certain special functions.
Example 22
Find the derivative of the function y = xx .
47
We can use the technique of logarithmic differentiation to find the
derivatives of certain special functions.
Example 22
Find the derivative of the function y = xx .
Solution: We use logarithmic differentiation:
y = xx
ln y = ln(xx ) = x ln x
1 dy 1
= ln x + x ⋅
y dx x
dy
= y(ln x + 1)
dx
dy
= xx (ln x + 1)
dx 47
√
1 − x2
Find the derivative of the function f (x) = .
(x + 1)2/3
48
√
1 − x2
Find the derivative of the function f (x) = .
(x + 1)2/3
Solution:
1 2
ln f (x) = ln(1 − x2 ) − ln(x + 1)
2 3
′
f (x) 1 −2x 2 1
= −
f (x) 2 1 − x2 3 x + 1
f ′ (x) x 2
=− 2
−
f (x) 1−x 3(x + 1)
x 2
∴ f ′ (x) = f (x) [− − ]
1 − x2 3(x + 1)
√
1 − x2 x 2
=− [ + ]
(x + 1)2/3 1 − x2 3(x + 1)
48
Examples
1 f (x) = 32x
2
+1 4 f (t) = tπ+1 + (π + 1)t
5 y = (x2 + 3x)(x − 2)(x2 + 1)
2 f (x) = (xx )x
x + 11
y=√
f (x) = x(x )
x 6
3 x3 − 4
49