Lec 2
Lec 2
(MATH 001)
Lecture #2
Revision on Functions
• Inverse Function
• Exponential Function
• Natural Exponential Function
• Logarithmic Function
• Natural Logarithmic Function
Derivatives
1
The Inverse of a Function
2
Finding Inverses
𝒚 in terms of 𝒙
f (x ) = 2x 3 − 1 y +1
=x3
2 −1 x +1
y = 2x − 1
3
y +1 f (x ) = 3
x =3 2
y + 1 = 2x 3 2
4
The Domain and Range of the inverse function
Example
R( f ) D( f )
y = 2x 3 − 1
y +1
R( f −1 ) x = 3
2 D( f −1 )
𝑫 𝒇−𝟏 ) = 𝑹(𝒇
𝑹(𝒇−𝟏 ) = 𝑫(𝒇)
Example
y = x +1 y = x2 y2 = x
𝒙=𝟏 𝒚=𝟐 𝒙=𝟏 𝒚=𝟏 𝒙=𝟒 𝒚 = 𝟐 or −𝟐
If the horizontal line intersects the curve in only one point, then the
function is One-to-One
7
Finding Inverses
f (x ) = x 2 + 2, x 0
8
Finding Inverses
9
Sketching the Inverse Function
10
Finding Inverses: Example
𝟏
Example Find the inverse function (if it exists ) of 𝒇 𝒙 = ,
𝒙−𝟏
sketch it , and write its domain and range
1
Step 1 Step 2 f (x ) =
f (x ) =
1 x −1
x
11
Finding Inverses: Example Continued
𝟏
Example Find the inverse function (if it exists ) of 𝒇 𝒙 = ,
𝒙−𝟏
sketch it , and write its domain and range
1
y =
x −1
1 −1
) = − {0}
x −1 = D( f
y
−1
1 R( f ) = D ( f ) = − {1}
x = +1
y
−1 1
f (x ) = +1
x
12
Finding Inverses: Example Continued
𝟏
Example Find the inverse function (if it exists ) of 𝒇 𝒙 = ,
𝒙−𝟏
sketch it , and write its domain and range
1 1
f (x ) = f −1
(x ) = +1
x −1 x
13
Finding Inverses
1
a. y=
1+ x
Try to solve!
1
b. y= , x0
1+ x 2
14
Exponential Function
y = 2x
10
y = ( const )
x
y = a x, a 0, a 1
y = ( 2)
x
Example
−4 −3 −2 −1 1 2 3 4
15
Exponential Function
𝑫 𝟐𝒙 = ℜ
𝑹 𝟐𝒙 = (𝟎, ∞)
(0,1)
x
−4 −3 −2 −1 1 2 3 4
16
Natural Exponential Function
y=e ,x
e = 2.7182818 > 1 y = ex
10
𝑫 𝒆𝒙 = ℜ
5
𝑹 𝒆𝒙 = (𝟎, ∞)
x
−4 −3 −2 −1 1 2 3 4
17
Logarithmic Function
18
power
y = log a x. a =x
y
base
log 2 8 = 3 log5 5 = 1
1
log 3 ( ) = −2 log 3 1 = 0
9
loga (0) = Undefined
𝒚 = 𝒂𝒙
The domain of 𝐥𝐨𝐠 𝒂 𝒙 𝐢𝐬 (𝟎, ∞).
𝒚 = 𝐥𝐨𝐠 𝒂 𝒙
19
Natural Logarithmic Function
e ln(x )
=x ln(e x )= x
Example Solve for x
ex = 3 ln(x ) = 5
y = ex
8 y
6 D(ln x) = (0, )
4 R(ln x) =
y = ln x
2
x
−4 −2 2 4 6 8
−2
−4
21
Example: find the domain
22
D (f ) = (3, ) x 1
D (f ) = (1, )
2) f(x) = ln x
x 0
D( f ) = − 0
Logarithmic Function Rules
23
Derivatives: Finding the tangent to the graph of a function
secant line
( a + h, f ( a + h ) )
f (a + h) − f (a )
(a, f(a))
h x
f (a + h ) − f (a )
slope _ of _secant =
h
24
Derivatives: Finding the tangent to the graph of a function
25
y
secant line
( a + h, f ( a + h ) )
f (a + h) − f (a )
(a, f(a))
h x
f (a + h ) − f (a )
slope _ of _secant =
h
25
Derivatives: Finding the tangent to the graph of a function
secant line
( a + h, f ( a + h ) )
f (a + h) − f (a )
(a, f(a))
h x
f (a + h ) − f (a )
slope _ of _secant =
h
26
Derivatives: Finding the tangent to the graph of a function
tangent line
(a, f(a)) f (a + h) − f (a ) = 0
h =0 x
f ( a + h ) − f (a ) at x = a
slope _ of _ tangent = lim
h →0 h
27
Finding the tangent to the graph of a function
Definition
The slope of tangent at y
any general point x
𝑓 𝑥 + ℎ − 𝑓(𝑥)
m = lim
ℎ→0 ℎ
x
x
28
The derivative of a function at a point
Definition
The derivative of the y
function with respect to the
variable x , denoted by
𝑓′(x), is given by
𝑓 𝑥 + ℎ − 𝑓(𝑥)
𝑓′ 𝑥 = lim
ℎ→0 ℎ
x
x
29
Example: Find the derivative using the definition of f ( x ) = x 2
30
f ( x + h) − f ( x) ( )
2
x + h − x 2
i) f ( x ) = lim = lim
h →0 h h →0 h
= lim
( x 2 + 2hx + h 2 ) − x 2
= lim
h ( 2x + h)
h →0 h h →0 h
= lim ( 2 x + h ) = 2 x
h →0
Revision: Table of Derivatives
31
Differentiation Rules
d
(c) = 0
d
dx
( cf ( x ) ) = c ( f ( x ) ) = cf ( x )
d
dx
dx
f ( x ) = xn , n R f ( x ) = nx n −1
d
dx
( f ( x ) + g ( x )) = f ( x ) + g ( x )
d
dx
( f ( x ) * g ( x )) = f ( x ) g ( x ) + f ( x ) g ( x )
d f ( x) f ( x) g ( x) − f ( x) g( x)
= , g ( x) 0
dx g ( x ) g ( x)
2
32
The derivative of a function at a point: Examples
x +3
( )( )
2
i) y = x − x + 5 x + 4 x − 1
2 3
ii ) y =
4x −1
(
y = ( 2 x − 1) x3 + 4 x − 1 ) (
2 x ( 4 x − 1) − 4 x 2 + 3 )
y =
(
+ x − x + 5 3x
2
)( 2
+ 4) ( 4 x − 1)
2
33
The Chain Rule
If y = f ( u ) and u = g ( x ) then dy dy du
= *
dx du dx
f ( g ( x ) ) = f ( g ( x ) ) g ( x )
Outside/Inside method
34
The derivative of a function at a point: Examples
ii) y = cos ( x 2 − 4 )
dy
dx
( )
= − sin ( x 2 − 4 ) ( 2 x )
iii) 𝑦 = 𝑒 sin(2𝑥+1)
𝑦 ′ = 𝑒 sin(2𝑥+1) cos 2𝑥 + 1 2
= 2𝑒 sin(2𝑥+1) cos 2𝑥 + 1
35
The derivative of a function at a point: Examples
i) 𝑦 = 7𝑥 𝑦 ′ = 7𝑥 ln 7
ii) 𝑦 = 10sin 3𝑥 𝑦 ′ = 10sin 3𝑥 (ln 10) 3 cos 3𝑥
= (3 ln 10) 10sin 3𝑥 cos 3𝑥
iii) 𝑦 = 𝑥ln(sin𝑥)
′
cos𝑥
𝑦 = 1 ln sin𝑥 + 𝑥
sin𝑥
36
Implicit Differentiation
◼ Explicit functions
y = 3x – 2
y = x2 + 5
◼ Implicit functions
y2 + 2yx +4x2 = 0
y5 - 3y2x2 + 2 = 0
37
Implicit Differentiation
d d
x =1 y = y'
dx dx
d d
sin x = cos x sin y = (cos y ) y '
dx dx
d 2 d 2
x = 2x y = 2 yy '
dx dx
d x d y
e = ex e = ey y '
dx dx
d 1 d 1
ln x = ln y = y '
dx x dx y
38
Implicit Differentiation: Example
39
Logarithmic Differentiation: Example
1 cos𝑥 1
𝑦′ = 3 +2 + 0.5
𝑥 sin 𝑥 1+𝑥
40
Logarithmic Differentiation: Example
𝟓
𝒙𝟐 −𝟑𝒙+𝟒 𝐜𝐨𝐬 𝟔𝒙
Example Find 𝒚′ if 𝒚=
𝒆𝟕𝒙+𝟏
ln 𝑦 = ln 𝑥 2 − 3𝑥 + 4 5
+ ln cos 6𝑥 − ln 𝑒 7𝑥+1
1
lny = 5 ln 𝑥2 − 3𝑥 + 4 + ln cos 6𝑥 − 7𝑥 + 1
2
𝑦′ 2𝑥 − 3 1 −6 sin 6𝑥
=5∗ 2 + ∗ −7
𝑦 𝑥 − 3𝑥 + 4 2 cos 6𝑥
5(2𝑥 − 3)
𝑦′ =𝑦 2 − 3tan 6𝑥 − 7
𝑥 − 3𝑥 + 4
𝑥 2 − 3𝑥 + 4 5 cos 6𝑥 5(2𝑥 − 3)
′
𝑦 = 7𝑥+1 2
− 3tan 6𝑥 − 7
𝑒 ∗ ln 8𝑥 − 9 𝑥 − 3𝑥 + 4
41
Logarithmic Differentiation: Example
ln 𝑦 = ln 𝑥 𝑥 = 𝑥 ln 𝑥
Try to solve
𝑦′ 1
= 1 ln 𝑥 + 𝑥 = 1 + ln 𝑥
𝑦 𝑥
𝑦 ′ = 𝑦 1 + ln 𝑥 = 𝑥 𝑥 (1 + ln 𝑥)
42