Differntial Calculus
Differntial Calculus
Reda S Tantawi
CONTENTS
DIFFERENTIAL CALCULUS
Definition 1
Basic rules of differentiation 2
Trigonometric Functions 7
Inverse Trigonometric Functions 11
Logarithmic Functions 14
Exponential Functions 17
Hyperbolic Functions 22
Inverse Hyperbolic Functions 23
Implicit Functions 24
Applications of Derivatives 27
L'Hopital's Rule 27
Maclaurin Expansion 30
Features of Function Graphs 34
0
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
DIFFERENTIAL CALCULUS
Calculus helps us to understand how systems change with time and how to build systems from
knowing just a little about their parts. The calculus is the study of the derivatives and the
integrals. In fact, the integral is so closely related to the derivative that the study of the integral
is an essential part of studying derivatives.
Differential calculus is the study of the definition, properties, and applications of
the derivative of a function. The derivative of a function at a chosen input value describes the
rate of change of the function near that input value. The process of finding a derivative is
called differentiation. Geometrically, the derivative at a point is the slope of the tangent line to
the graph of the function at that point, provided that the derivative exists and is defined at that
point.
The power of calculus goes beyond its many applications. The derivative is so important in all
parts of pure and applied mathematics that we must devote a great deal of effort to finding
formulas for the derivatives of various kinds of functions. Most of our technological advances
would not be possible without calculus. Cell phones, computers, TVs, microwave ovens,
robots, printers, cars, airplanes, satellites, and most things that make our lives easier exist
because we’ve learned calculus.
Definition:
The derivative (first derivative) of a continuous function 𝑓(𝑥) on an interval, with respect to,
𝑑 𝑑𝑓
𝑥, is written symbolically as 𝑓(𝑥) = 𝑜𝑟 𝑓 ′ (𝑥) (𝑓 𝑝𝑟𝑖𝑚𝑒 𝑜𝑟 𝑓 𝑑𝑎𝑠ℎ) and can be
𝑑𝑥 𝑑𝑥
Defined by the limit:
𝑑 𝑓(𝑥 + ℎ) − 𝑓(𝑥)
𝑓(𝑥) = lim (∗)
𝑑𝑥 ℎ→0 ℎ
If the limit in the above definition exists, the function 𝑓(𝑥) is said to be differentiable for all
values of 𝑥 in the domain of 𝑓 ′ (𝑥), and the process of finding 𝑓 ′ (𝑥) is called differentiation
of 𝑓(𝑥).
The derivative of the function 𝑓(𝑥) gives the rate of change (instantaneous change) of the
function relative to the variable 𝑥, that is; the change of the function when 𝑥 changes to 𝑥 + ℎ
where ℎ → 0.
1
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
𝑑2𝑓
The second derivative of a function 𝑓(𝑥) with respect to 𝑥 is denoted by 2
or 𝑓 ″ ,
𝑑𝑥
𝑑2𝑓 𝑑 𝑑𝑓 𝑑3𝑓 𝑑 𝑑2𝑓
where = ( ) , the third derivative of a function 𝑓(𝑥) is = ( ),
𝑑𝑥 2 𝑑𝑥 𝑑𝑥 𝑑𝑥 3 𝑑𝑥 𝑑 2 𝑥
and so on.
Remarks:
1. The function will not be changing if the rate of change is zero, that is the function 𝑓(𝑥) will
not be changing if 𝑓 ′ (𝑥) = 0
2. The rules of differentiation we employ on finding the derivative of functions can be
established by using the definition of derivative (*).
2
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
Replacing 𝑥 = 𝑔(𝑡) in the result gives the rate of change of 𝑦 with respect to 𝑡 as a function
of 𝑡.
5. (a( Consider the function 𝑓(𝑥) = 𝐶, where 𝐶 is a constant.
∴ 𝑓(𝑥 + ℎ) = 𝐶 ⇒ 𝑓(𝑥 + ℎ) − 𝑓(𝑥) = 0
𝑑 𝑓(𝑥 + ℎ) − 𝑓(𝑥) 0
∴ 𝑓(𝑥) = lim = lim = 0
𝑑𝑥 ℎ→0 ℎ ℎ→0 ℎ
𝑑
∴ 𝐶 = 0
𝑑𝑥
That is; the derivative of a constant is zero.
Thus, the derivative of the product of a constant and a function is the product of the constant
and the function:
𝑑 𝑑
∴ [𝑐𝑓(𝑥)] = 𝑐 𝑓(𝑥)
𝑑𝑥 𝑑𝑥
)b( Consider the function 𝑓(𝑥) = 𝑥
∴ 𝑓(𝑥 + ℎ) = 𝑥 + ℎ ⇒ 𝑓(𝑥 + ℎ) − 𝑓(𝑥) = ℎ
𝑑 𝑓(𝑥 + ℎ) − 𝑓(𝑥) ℎ
∴ 𝑓(𝑥) = lim = lim = 1
𝑑𝑥 ℎ→0 ℎ ℎ→0 ℎ
𝑑
⇒ 𝑥=1
𝑑𝑥
That is, the derivative of a variable with respect to itself is unity.
)c( Consider the function 𝑓(𝑥) = 𝑥 𝑛
∴ 𝑓(𝑥 + ℎ) = (𝑥 + ℎ)𝑛 ⇒ 𝑓(𝑥 + ℎ) − 𝑓(𝑥) = (𝑥 + ℎ)𝑛 − 𝑥 𝑛
′
𝑓(𝑥 + ℎ) − 𝑓(𝑥) (𝑥 + ℎ)𝑛 − 𝑥 𝑛
⟹ 𝑓 (𝑥) = lim = lim
ℎ→0 ℎ ℎ→0 ℎ
Taking 𝑡 = 𝑥 + ℎ ⇒ 𝑡 → 𝑥 as ℎ → 0
𝑡𝑛 − 𝑥𝑛
′
∴ 𝑓 (𝑥) = lim = 𝑛𝑥 𝑛−1
𝑡→𝑥 𝑡 − 𝑥
𝑑 𝑛
⇒ 𝑥 = 𝑛𝑥 𝑛−1
𝑑𝑥
6. Using the chain rule gives:
𝑑 𝑛
If 𝑓(𝑥) = [𝑢(𝑥)]𝑛 ∴ 𝑓 ′ (𝑥) = 𝑢 = 𝑛 𝑢 𝑛−1 ⋅ 𝑢′
𝑑𝑥
That is: The derivative of a power function is the product of the power with the power function
3
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
1 1 −2/3
∴ y′ = 5 𝑥 4 − 2 + 𝑥 + 6 𝑥 −3/2 − 14 𝑥 −8
2 √𝑥 3
4) 𝑦 = ( 𝑥 5 − 2𝑥 + 8 )4 ⇒ 𝑦 ′ = 4( 𝑥 5 − 2𝑥 + 8 )3 (5𝑥 4 − 2 )
𝑥 2 − 𝑥 − 5 √𝑥 + 3
5) 𝑦 = ⇒ 𝑦 = 𝑥 3⁄2 − 𝑥 1⁄2 − 5 + 3𝑥 −1/2
√𝑥
3 1⁄2 1 3 −3/2 3 1 1 3 1
∴ 𝑦′ = 𝑥 − 𝑥 −1/2 − 𝑥 = √𝑥 − −
2 2 2 2 2 √𝑥 2 𝑥 √𝑥
6 5 1
6) 𝑦 = (𝑥 3 − √𝑥) ⇒ 𝑦 ′ = 6 (𝑥 3 − √𝑥) (3𝑥 2 − )
2 √𝑥
5 4 1 5
7) 𝑦 = 𝑥 2 (𝑥 + √𝑥) ⇒ 𝑦 ′ = 𝑥 2 [5 (𝑥 + √𝑥) (1 + )] + (𝑥 + √𝑥) ⋅ 2𝑥
2 √𝑥
1
8) 𝑦 = (𝑥 3 − 𝑥) √𝑥 − 1 ⇒ 𝑦 ′ = (𝑥 3 − 𝑥) + √𝑥 − 1(3𝑥 2 − 1)
2 √𝑥 − 1
d𝑦
9) If 𝑦 = (1 + 𝑥 2 )5 and 𝑥 = √𝑡 − 1, 𝑓𝑖𝑛𝑑
dt
Solution: Using the chain rule gives:
d𝑦 dy d𝑥 1
= ∙ = 10𝑥(1 + 𝑥 2 )4 ∙
dt d𝑥 dt 2 √𝑡 − 1
Replacing 𝑥 = √𝑡 − 1 yields:
d𝑦 1
= 10√𝑡 − 1(1 + 𝑡 − 1)4 ∙ = 5 𝑡4
dt 2 √𝑡 − 1
d𝑦
10) If 𝑦 = 4𝑥 6 − 𝑥 5 − 3 and 𝑥 = 𝑡 3 +4𝑡 𝑓𝑖𝑛𝑑 .
dt
Solution: Using the chain rule gives:
d𝑦 𝑑y 𝑑𝑥
= ∙ = (24 𝑥 5 − 5 𝑥 4 )(3𝑡 2 +4)
dt 𝑑𝑥 𝑑𝑡
Replacing 𝑥 = 𝑡 3 +4𝑡 yields:
d𝑦 5 4
= (24(𝑡 3 +4𝑡) − 5(𝑡 3 +4𝑡) )(3𝑡 2 +4)
dt
III. (1) Find 𝑓 ′ (0) for the function: 𝑓(𝑥) = (𝑥 3 − 𝑥)6
Solution:
𝑓 ′ (x) = 6(𝑥 3 − 𝑥)5 (3𝑥 2 − 1) ⇒ 𝑓 ′ (0) = 0
2) Find 𝑓 ′ (4) for the function: 𝑓(𝑥) = 4𝑥 2 + √𝑥
5
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
Solution:
1 1
𝑓 ′ (𝑥) = 8𝑥 + ⇒ 𝑓 ′ (4) = 32 + = 32.25
2 √𝑥 4
𝑥+c
3) If 𝑓(𝑥) = and 𝑓 ′ (2) = −2, find the value(s)of c.
𝑥−c
Solution: We have
(𝑥 − c) − (𝑥 + c) − 2c
𝑓 ′ (𝑥) = =
(𝑥 − c)2 (𝑥 − c)2
−2c c
∵ 𝑓 ′ (2) = −2 ∴ = −2 ⇒ =1 ⇒ (2 − c)2 = c
(2 − c)2 (2 − c)2
∴ c2 − 5 c + 4 = 0 ⇒ (c − 4) (c − 1) = 0 ⇒ c = 1, 4
1 3 3 2
3) Determine the points where the function 𝑓(𝑥) = 𝑥 + 𝑥 − 4𝑥 is not changing.
3 2
Solution: The points where the function is not changing are given by solving the equation:
𝑓 ′ (𝑥) = 0. We have 𝑓 ′ (𝑥) = 𝑥 2 + 3𝑥 − 4,
∴ 𝑓 ′ (𝑥) = 0 ⇒ 𝑥 2 + 3𝑥 − 4 = 0 ⇒ (𝑥 − 1)(𝑥 + 4) = 0 ⇒ 𝑥 = 1, 4
1 3
4) Determine t where the function 𝑓(𝑥) = 𝑥 − 𝑥2 + 3 is changing.
3
Solution: The points where the function is not changing are given by solving the equation:
𝑓 ′ (𝑥) = 0. We have 𝑓 ′ (𝑥) = 𝑥 2 − 2𝑥,
∴ 𝑓 ′ (𝑥) = 0 ⇒ 𝑥 2 − 2𝑥 = 0 ⇒ 𝑥(𝑥 − 2) = 0 ⇒ 𝑥 = 0, 2
Then, the function is changing where 𝑥 ∈R − {0, 2}, where R is the set of all real numbers.
Exercise 1:
I. (a) Suppose that the functions 𝑢(𝑥) and υ(𝑥) are differentiable at x = 1. If 𝑢(1) = 1,
𝑢′ (1) = 4, υ(1) = 4, and υ′ (1) = −3, find the values of the following derivatives at 𝑥 = 1:
𝑑 𝑑 𝑢 𝑑 𝑑 3
1) (𝑥𝑢 − υ) 2) ( ) 3) (𝑢 + 𝑥 2 υ) 4) (𝑥 − 𝑥υ + 𝑢3 )
𝑑𝑥 𝑑𝑥 υ 𝑑𝑥 𝑑𝑥
(b) Suppose that the functions 𝑢(𝑥) and υ(𝑥) are differentiable at x = 2 . If 𝑢(2) = 1,
𝑢′ (2) = −2, υ(2) = 5, υ′ (2) = 0 find the values of the following derivatives at 𝑥 = 2:
𝑑 𝑑 𝑢 − 3υ2 𝑑
1) (𝑥𝑢 − 𝑥 4 √υ) 2) ( ) 3) (𝑥 𝑢 + 𝑥 2 υ + 5)
𝑑𝑥 𝑑𝑥 υ 𝑑𝑥
6
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
𝑑 3
4) (𝑥 𝑢 − 𝑥υ + 𝑢3 )
𝑑𝑥
𝑑𝑦
II. Find for the functions:
𝑑𝑥
12 4 3 12
1) 𝑦 = 𝑥 4 + 8𝑥 − 7 2) 𝑦 = 𝑥 5 + − 3 3) 𝑦 = 2√𝑥 + √𝑥 −
𝑥 𝑥 √𝑥
4𝑥 5 − 𝑥 2
4) 𝑦 = 5) 𝑦 = √𝑥(4𝑥 4 − 𝑥 − 10)4 6) 𝑦 = (𝑥 2 − 1)2 (3𝑥 4 − 𝑥)4
𝑥 − 3𝑥 2
2 4𝑥 2 − 2𝑥 − 1
7) 𝑦 = 3𝑥 − √𝑥 3 − 1
4
8) 𝑦 =
√𝑥
d𝑦
9) If 𝑦 = √𝑥 2 − 𝑥 and 𝑥 = (1 + 𝑡 2 )3 find
d𝑡
10) Find 𝑓 ′ (1)for the function: 𝑓(𝑥) = 𝑥(1 − 𝑥)6
11) Find 𝑓 ′ (0) for the function: 𝑓(𝑥) = (3 − 𝑥)2 − √𝑥
12) If 𝑓(𝑥) = 𝑥 2 − c 𝑥 and 𝑓 ′ (1) = 5, find the value of c
13) Determine the points where the following functions are not changing.
1 3 1 4 1 3
𝑎) 𝑓(𝑥) = 𝑥 − 4𝑥2 − 33𝑥 𝑏) 𝑓(𝑥) = 𝑥 + 𝑥 − 𝑥2 + 7
3 4 3
14) Determine where the function 𝑓(𝑥) = 𝑥3 − 4𝑥2 + 5𝑥 is changing.
Trigonometric Functions
In mathematics, the trigonometric functions are a set of functions which relate angles to the
sides of a right triangle. Their names and abbreviations are sine (sin), cosine (cos), tangent
(tan), cotangent (cot), secant (sec), and cosecant (csc). The functions “sin” and “cos” are the
basic trigonometric functions and 𝑥 is an angle.
Hence, there are six trigonometric functions:
sin 𝑥 cos 𝑥 1 1 1
sin 𝑥 , cos 𝑥 , tan 𝑥 = , cot 𝑥 = = , sec 𝑥 = , csc 𝑥 =
cos 𝑥 sin 𝑥 tan 𝑥 cos 𝑥 sin 𝑥
Important relations:
(1) sin2 𝑥 + cos 2 𝑥 = 1 (2) sin( 𝑥 ± 𝑦) = sin 𝑥 cos 𝑦 ± cos 𝑥 sin 𝑦
(3) cos( 𝑥 ± 𝑦) = cos 𝑥 cos 𝑦 ∓ sin 𝑥 sin 𝑦 (4) sin 2 𝑥 = 2 sin 𝑥 cos 𝑥
1
(5) cos 2 𝑥 = cos 2 𝑥 − sin2 𝑥 (6) sin2 𝑥 = (1 − cos 2 𝑥)
2
7
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
1
(7) cos 2 𝑥 = (1 + cos 2 𝑥) (8)1 + tan2 𝑥 = sec 2 𝑥
2
8
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
The derivative of the other trigonometric function can be obtained by applying the rules of
derivatives. For example:
𝑑 𝑑 sin 𝑥 cos 2 𝑥 + sin2 𝑥 1
(tan 𝑥) = ( )= 2
= 2
= sec 2 𝑥
𝑑𝑥 𝑑𝑥 cos 𝑥 cos 𝑥 cos 𝑥
Generally, if 𝑢 is a function of 𝑥, then using the chain rule gives:
𝑑𝑓 𝑑𝑢
If 𝑓 = sin 𝑢 ∴ 𝑓′ = = cos 𝑢 ⋅ 𝑢′
𝑑𝑢 𝑑𝑥
Thus, we can write:
𝑑 𝑑
sin 𝑢 = cos 𝑢 ⋅ 𝑢′ cos 𝑢 = − sin 𝑢 ⋅ 𝑢′
𝑑𝑥 𝑑𝑥
𝑑 𝑑
tan 𝑢 = sec 2 𝑢 ⋅ 𝑢′ cot 𝑢 = −csc2 𝑢 ⋅ 𝑢′
𝑑𝑥 𝑑𝑥
𝑑 𝑑
sec 𝑢 = sec 𝑢 ⋅ tan 𝑢 ⋅ 𝑢′ csc 𝑢 = − csc 𝑢 ⋅ cot 𝑢 ⋅ 𝑢′
𝑑𝑥 𝑑𝑥
Examples 2:
I. Find 𝑦 ′ for the functions:
1) 𝑦 = sin(𝑥 3 − 2) ⇒ 𝑦 ′ = cos(𝑥 3 − 2) (3𝑥 2 ),
𝑦 ′′ = cos(𝑥 3 − 2) (6 𝑥) + (3𝑥 2 )[− sin(𝑥 3 − 2) (3𝑥 2 )]
= cos(𝑥 3 − 2) (6 𝑥) − 9𝑥 2 sin(𝑥 3 − 2)
2) 𝑦 = tan( 5𝑥 2 + 6) ⇒ 𝑦 ′ = sec 2 ( 5𝑥 2 + 6)(10𝑥) = 10𝑥 sec 2 ( 5𝑥 2 + 6)
1 cos √𝑥
3) 𝑦 = sin √𝑥 ⇒ 𝑦 ′ = cos √𝑥 ⋅ =
2 √𝑥 2 √𝑥
4) 𝑦 = sec 2 𝑥 [note that sec 2 𝑥 = (sec 𝑥)2 ]
∴ 𝑦 ′ = 2 sec 𝑥 ∙ sec 𝑥 ∙ tan 𝑥 = 2 sec 2 𝑥 ∙ tan 𝑥
5
5) 𝑦 = sin5 √𝑥 [note that sin5 √𝑥 = (sin √𝑥) ]
1
⇒ 𝑦 ′ = 5 sin4 √𝑥 cos √𝑥 ⋅
2 √𝑥
6) 𝑦 = 𝑥 3 cos 𝑥 2 − 2 cot 𝑥 −3
⇒ 𝑦 ′ = 𝑥 3 [− sin 𝑥 2 ⋅ 2𝑥] + 3𝑥 2 cos 𝑥 2 + 2csc2 𝑥 −3 ⋅ [−3𝑥 −4 ]
7) 𝑦 = tan3 ( sin 𝑥) ⇒ 𝑦 ′ = 3 tan2 ( sin 𝑥) ∙ sec 2 ( sin 𝑥)[cos 𝑥]
8) 𝑦 = tan3 (cos 𝑥 3 )
9
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
′
sec 2 𝑥 + sec 𝑥 tan 𝑥
8) 𝑦 = √tan 𝑥 + sec 𝑥 ⇒ 𝑦 =
2√tan 𝑥 + sec 𝑥
′
− sin 𝑥 − 4 csc2 𝑥
9) 𝑦 = √cos 𝑥 + 4 cot 𝑥 ⇒ 𝑦 =
2√cos 𝑥 + 4 cot 𝑥
1
10) 𝑦 = √𝑥 cos 𝑥 ⇒ 𝑦 ′ = √𝑥 [− sin 𝑥] + cos 𝑥 ⋅
2 √𝑥
11) 𝑦 = sin(sin 𝑥) ⇒ 𝑦 ′ = cos(sin 𝑥) ∙ cos 𝑥
12) 𝑦 = cos(𝑥 sin 𝑥) ⇒ 𝑦 ′ = − sin(𝑥 sin 𝑥) (𝑥 cos 𝑥 + sin𝑥)
𝑑𝑦
13) If 𝑦 = tan 𝑥 and 𝑥 = tan 𝑡, find
𝑑𝑡
Solution: Using the chain rule gives:
𝑑𝑦 𝑑𝑦 𝑑𝑥
= ∙ = sec 2 𝑥 sec 2 𝑡
𝑑𝑡 𝑑𝑥 𝑑𝑡
Replacing 𝑥 = tan 𝑡, yields:
𝑑𝑦
= sec 2 (tan 𝑡) sec 2 𝑡
𝑑𝑡
II. 1) If 𝑦 = cos 𝑥, show that: 𝑦 ′′ = −𝑦
Solution: We have
𝑦 ′ = − sin 𝑥 ⇒ 𝑦 ″ = − cos 𝑥 ∴ 𝑦″ = 𝑦
1
2) If 𝑦 = tan 𝑥 + tan3 𝑥 , show that 𝑦 ′ = sec 4 𝑥
3
Solution: We have
𝑦 ′ = sec 2 𝑥 + tan2 𝑥 ⋅ sec 2 𝑥 = sec 2 𝑥 (1 + tan2 𝑥) = sec 4 𝑥
3) If 𝑦 = sin2 𝑥 , show that 𝑦 ′ = 2 − 4𝑦
Solution: We have
𝑦 ′ = 2 sin 𝑥 cos 𝑥 ⇒ 𝑦 ″ = 2(− sin2 𝑥 + cos 2 𝑥) = 2(− sin2 𝑥 + (1 − sin2 𝑥))
∴ 𝑦 ″ = 2(1 − 2 sin2 𝑥) = 2 − 4𝑦
3) If 𝑦 = tan 𝑥, show that 𝑦 ″ = 2(𝑦 + 𝑦 3 ).
Solution: We have
𝑦 ′ = sec 2 𝑥 ⇒ 𝑦 ″ = 2 sec 𝑥 ∙ sec 𝑥 tan 𝑥 = 2 tan 𝑥 ⋅ sec 2 𝑥 = 2 tan 𝑥 (1 + tan2 𝑥)
10
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
∴ 𝑦 ″ = 2(𝑦 + 𝑦 3 )
Exercise 2:
I-Find 𝑦 ′′ for the functions:
11
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
For examples:
1 1
If sin 𝑥 = ⟹ 𝑥 = sin−1 = 19.470
3 3
1
If tan 𝑥 = ⟹ 𝑥 = tan−1 𝑥 = 26. 5650
2
Therefore, if 𝑦 = sin 𝑥 then 𝑥 = sin−1 𝑦, if 𝑦 = sin−1 𝑥 then 𝑥 = sin 𝑦.
It is worth to mention that:
1 1
sin−1 𝑥 ≠ , (sin 𝑥)−1 = = sec𝑥
sin 𝑥 sin 𝑥
From the properties of the inverse functions, we have:
sin(sin−1 𝑥) = 𝑥, sin−1 (sin 𝑥) = 𝑥
Examples 3. a:
1
1) Find the exact value of cos (sin−1 )
3
Solution:
1 1
Consider 𝜃 = sin−1 ⇒ sin 𝜃 =
3 3
√8
∴ cos 𝜃 =
3
2) Find the exact value of cos( tan−1 4)
Solution:
Consider 𝜃 = tan−1 4 ⇒ tan 𝜃 = 4
1
∴ cos 𝜃 =
√17
1 1
3) Find the exact value of cos (sin−1 + cos −1 )
2 3
Solution:
1 1 1 1
Consider 𝜃 = sin−1 , 𝜙 = cos −1 ⇒ sin 𝜃 = , cos 𝜙 =
2 3 2 3
12
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
√3 1 1 √8
∴ cos( 𝜃 + 𝜙) = cos 𝜃 cos 𝜙 − sin 𝜃 sin 𝜙 = −
2 3 2 3
′ ′ ′
𝑢′ 𝑢′ 𝑢′
𝑢 = cos 𝑦 ⋅ 𝑦 ⇒ 𝑦 = = =
cos 𝑦 √1 − sin2 𝑦 √1 − 𝑢2
𝑑 −1
𝑢′
∴ sin 𝑢 =
𝑑𝑥 √1 − 𝑢2
Similarly, if 𝑦 = cos −1 𝑢 then 𝑢 = cos 𝑦. Differentiating both sides relative to 𝑥 yields
′ ′
−𝑢′
′
−𝑢′ −𝑢′
𝑢 = − sin 𝑦 ⋅ 𝑦 ⇒ 𝑦 = = =
sin 𝑦 √1 − cos 2 𝑦 √1 − 𝑢2
𝑑 −1
−𝑢′
∴ cos 𝑢 =
𝑑𝑥 √1 − 𝑢2
Finally, if 𝑦 = tan−1 𝑢 then 𝑢 = tan 𝑦. Differentiating both sides relative to 𝑥 yields
′ 2 ′ ′
𝑢′ −𝑢′ −𝑢′
𝑢 = sec 𝑦 ⋅ 𝑦 ⇒ 𝑦 = = =
sec 2 𝑦 1 + tan2 𝑦 1 + 𝑢2
𝑑 −1
𝑢′
∴ tan 𝑢 =
𝑑𝑥 1 + 𝑢2
13
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
−2 ′ −3 2
sec 2 𝑥 cos 𝑥
3) 𝑦 = tan 𝑥 ⇒ 𝑦 = −2 tan 𝑥 ∙ sec 𝑥 = −2 = −2
tan3 𝑥 sin3 𝑥
2𝑥 + 1
4) 𝑦 = sin−1 (𝑥 2 + 𝑥) ⇒ 𝑦′ =
√1 − (𝑥 2 + 𝑥)2
1
5) 𝑦 = tan−1 (2 + 𝑥) ⇒ 𝑦′ =
1 + (2 + 𝑥)2
𝑥
6) 𝑦 = 𝑥 tan−1 𝑥 ⇒ 𝑦′ = + tan−1 𝑥
1 + 𝑥2
− sin 𝑥 1
7) 𝑦 = tan−1 ( cos 𝑥) + 𝑥 sin−1 𝑥 ⇒ 𝑦 ′ = + 𝑥 + sin−1 𝑥
1 + cos 2 𝑥 √1 − 𝑥 2
−1
1 − sin−1 𝑥 tan 𝑥 ⋅ − (1 − sin−1 𝑥) ⋅ sec 2 𝑥
√1−𝑥 2
8) 𝑦 = ⇒ 𝑦′ =
tan 𝑥 tan2 𝑥
9) 𝑦 = (1 − cos −1 𝑥 2 ) sec 𝑥
2𝑥
⇒ 𝑦 ′ = (1 − cos −1 𝑥 2 ) sec 𝑥 tan 𝑥 + sec 𝑥 ⋅
√1 − 𝑥 4
−1 2 ′
2𝑥 cos 𝑥 2
10) 𝑦 = tan ( sin 𝑥 ) ⇒ 𝑦 =
1 + sin2 𝑥 2
11) 𝑦 = √𝑥 2 − 1 sin−1 𝑥 − 𝑥 cos −1 𝑥
1 2𝑥 1
⇒ 𝑦 ′ = √𝑥 2 − 1 + sin−1 𝑥 +𝑥 − cos −1 𝑥
√1 − 𝑥2 2√𝑥 2 −1 √1 − 𝑥2
Exercise 3.b:
Find 𝑦 ′ for the functions:
1) 𝑦 = sin−1 ( 𝑥 4 + 𝑥 2 ) 2) 𝑦 = 𝑥 7 tan−1 ( 2𝑥 − 1) 3) 𝑦 = 𝑥 2 sin−3 𝑥
4) 𝑦 = sin( tan−1 𝑥) 5) 𝑦 = tan−1 ( sec 𝑥) 6) 𝑦 = (1 − 𝑥 2 ) cos −1 √𝑥
7) 𝑦 = tan−2 𝑥 − tan−1 ( sec 𝑥) 8) 𝑦 = (4𝑥 − 𝑥 2 )5 sin−1 √𝑥
Logarithmic Functions
The logarithmic function, general logarithm, is defined as:
𝑓 = log ℎ(𝑥) 𝑢(𝑥) , 𝑢(𝑥) > 0, ℎ(𝑥) > 0, ≠ 1 for all 𝑥
If the base of the logarithm 𝑎 = 𝑒, it is called the natural logarithm and is denoted by ln 𝑥.
If 𝑎 = 10, it is called the common logarithm and is denoted by log 𝑥.
14
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
15
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
2𝑥 − sin 𝑥
ln cos 𝑥 ∙ − ln(𝑥 2 + 3) ∙
𝑥 2 +3 cos 𝑥
∴ 𝑦′ =
ln2 cos 𝑥
1
√1−𝑥 2
5) 𝑦 = ln sin−1 𝑥 ⇒ 𝑦′ =
sin−1 𝑥
cos 𝑥
6) 𝑦 = ln sin−6 𝑥 = −6 ln sin 𝑥 ⇒ 𝑦 ′ = −6 = −6 cot 𝑥
sin 𝑥
(𝑥 − 1)4 sin2 𝑥
7) 𝑦 = ln [ ] Using the properties of the logarithm gives:
𝑥+1
𝑦 = ln[(𝑥 − 1)4 sin2 𝑥] − ln(𝑥 + 1) = ln(𝑥 − 1)4 + ln(sin2 𝑥) − ln(𝑥 + 1)
⇒ 𝑦 = 4 ln(𝑥 − 1) + 2 ln sin 𝑥 − ln(𝑥 + 1)
4 2 cos 𝑥 1 3𝑥 + 5
∴ 𝑦′ = + − = 2 + 2 cot 𝑥
𝑥−1 sin 𝑥 𝑥+1 𝑥 −1
′′
3(𝑥 2 − 1) − 2𝑥(3𝑥 + 5)
⇒ 𝑦 = 2 2
− 2 csc 2 𝑥
(𝑥 − 1)
8) 𝑦 = ln[(𝑥 + 1)6 cos 2 𝑥] Using the properties of the logarithm gives:
𝑦 = ln[(𝑥 + 1)6 cos 2 𝑥] = ln(𝑥 + 1)6 + ln cos 2 𝑥 = 6 ln(𝑥 + 1) + 2 ln cos 𝑥
6 − sin 𝑥 6
∴ 𝑦′ = +2 = − 2 tan 𝑥
𝑥+1 cos 𝑥 𝑥+1
9) 𝑦 = ln 𝑥 𝑥 Using the properties of the logarithm gives:
1
𝑦 = 𝑥 ln 𝑥 ⇒ 𝑦′ = 𝑥 + ln 𝑥 = 1 + ln 𝑥
𝑥
1 + tan 𝑥
10) If 𝑦 = ln √ show that 𝑦 ′ = sec 2𝑥
1 − tan 𝑥
1 1 + tan 𝑥 1
𝑦 = ln = [ln( 1 + tan 𝑥) − ln( 1 − tan 𝑥)]
2 1 − tan 𝑥 2
1 sec 2 𝑥 − sec 2 𝑥 1 (1 − tan 𝑥) + (1 + tan 𝑥)
∴ 𝑦′ = [ − ]= [ ] sec 2 𝑥
2 1 + tan 𝑥 1 − tan 𝑥 2 (1 + tan 𝑥)(1 − tan 𝑥)
1 2
1 1 1 1
= sec 𝑥 = × = = = sec 2 𝑥
1 − tan2 𝑥 1 − tan2 𝑥 cos 2 𝑥 cos 2 𝑥 − sin2 𝑥 cos 2 𝑥
We can use the logarithm to find the derivative of a function involving complicated products,
quotients, or power, by taking logarithm for both sides and employing the properties of the
16
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
logarithm to simplify the function. Then we differentiate both sides relative to 𝑥. This way
simplifies the problem and gives simple form for the result.
′
(𝑥 2 + 3)4 √𝑥 + 5
11. Use the logarithmic derivative to find 𝑦 for the function: 𝑦 = 3
(𝑥 + 3𝑥)2 (𝑥 − 1)
Solution: Taking ln for both sides, gives:
(𝑥 2 + 3)4 √𝑥 + 5
ln 𝑦 = ln 3 2
= ln[ (𝑥 2 + 3)4 √𝑥 + 5] − ln[ (𝑥 3 + 3𝑥)2 (𝑥 − 1)]
(𝑥 + 3𝑥) (𝑥 − 1)
1
⇒ ln 𝑦 = 4 ln( 𝑥 2 + 3) + ln( 𝑥 + 5) − 2 ln( 𝑥 3 + 3𝑥) − ln( 𝑥 − 1)
2
Differentiating both sides relative to 𝑥 gives:
𝑦′ 2𝑥 1 1 3𝑥 2 + 3 1
=4 2 + −2 3 −
𝑦 𝑥 + 3 2𝑥 + 5 𝑥 + 3𝑥 𝑥 − 1
′
(𝑥 2 + 3)4 √𝑥 + 5 8𝑥 1 1 𝑥2 + 1 1
⇒𝑦 = 3 [ + − 6 − ]
(𝑥 + 3𝑥)2 (𝑥 − 1) 𝑥 2 + 3 2 𝑥 + 5 𝑥 3 + 3𝑥 𝑥 − 1
𝑥 2 tan5 𝑥
12. Use the logarithmic derivative to find 𝑦 ′ for the function: 𝑦 = √
𝑥 + sin 𝑥
𝑥 2 tan5 𝑥 1 𝑥 2 tan5 𝑥 1
ln 𝑦 = ln √ = ln = [ln(𝑥 2 tan5 𝑥) − ln(𝑥 + sin 𝑥)]
𝑥 + sin 𝑥 2 𝑥 + sin 𝑥 2
1
⇒ ln 𝑦 = [2 ln 𝑥 + 5 lntan 𝑥 − ln(𝑥 + sin 𝑥)]
2
Differentiating both sides relative to 𝑥 gives:
Exercise 4:
I. Find 𝑦 ′ for the functions:
1) 𝑦 = ln(sec 𝑥 + 𝑥) 2) 𝑦 = log10 (𝑥 2 − 3𝑥 − 1) 3) 𝑦 = sin−1 𝑥 ln(cos 𝑥)
4) 𝑦 = ln(3 − 4 cos 𝑥) 5) 𝑦 = log 𝑥 tan 𝑥 6) 𝑦 = ln[(𝑥 − 1)4 sin2 𝑥]
7) 𝑦 = 𝑥 ln √3 − 4 cos 𝑥 8) 𝑦 = sin 𝑥 lnsin 𝑥 9) 𝑦 = ln[ (𝑥 3 − 𝑥)4 √𝑥]
17
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
Exponential Functions
In general, the exponential function takes the form 𝑓(𝑥) = ℎ(𝑥)𝑔(𝑥) where the base ℎ(𝑥)
can be constant but the exponent 𝑔(𝑥) must be not constant, it is called general exponential
function. If the base of the function ℎ(𝑥) = 𝑒, the function is called natural exponential
function where:
1 𝑛
𝑒 = lim (1 + ) = 2.7182818. . ..
𝑛→∞ 𝑛
𝑥 𝑦 𝑥+𝑦
𝑒𝑥
1) 𝑒 𝑒 = 𝑒 2) 𝑦 = 𝑒 𝑥−𝑦
𝑒
3) 𝑒 0 = 1, lim 𝑒 𝑥 = 𝑒 ∞ = ∞
𝑥→∞
1
4) lim 𝑒 𝑥 = 𝑒 −∞ = =0
𝑥→−∞ 𝑒∞
(5) If 𝑦 = log 𝑎 𝑥 ⇔ 𝑥 = 𝑎 𝑦
∴ If 𝑦 = ln 𝑥 ⇔ 𝑥 = 𝑒 𝑦
(6) ln 𝑒 𝑥 = 𝑥, 𝑒 ln 𝑥 = 𝑥
18
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
19
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
Examples 5:
𝑎) If 𝑦 = 33𝑥+2 Taking ln ⬚ for both sides gives: ln 𝑦 = ln 33𝑥+2 = (3𝑥 + 2) ln 3
𝑦′ 3𝑥 2 + 2
∴ = (2𝑥 − 3) 3 + 2 ln(𝑥 3 + 2𝑥)
𝑦 𝑥 + 2𝑥
3𝑥 2 + 2
⇒ 𝑦 = ′ (𝑥 3 + 2𝑥) 2𝑥−3
((2𝑥 − 3) 3 + 2 ln(𝑥 3 + 2𝑥))
𝑥 + 2𝑥
𝑦 ′ sin 𝑥 𝑥
⇒ = + cos 𝑥 ln 𝑥 + sec 2 𝑥 + ln tan 𝑥
𝑦 𝑥 tan 𝑥
′ sin 𝑥 𝑥
sin 𝑥 𝑥 sec 2 𝑥
∴ 𝑦 =𝑥 ⋅ (tan 𝑥) { + cos 𝑥 ln 𝑥 + + ln tan 𝑥}
𝑥 tan 𝑥
Exercise 5:
Find 𝑦 ′ for the functions:
1) 𝑦 = 𝑒 𝑥 ln 𝑥 − 𝑒 cos 𝑥 2) 𝑦 = sec 𝑥 ∙ 𝑒 √𝑥 3) 𝑦 = (𝑥 4 − sin 𝑥)5 𝑒 3𝑥
2 −𝑥+2 2
4) 𝑦 = cos 𝑒 −𝑥 + 𝑒 sin 𝑥 5) 𝑦 = tan2 𝑥 − 𝑒 𝑥 6) 𝑦 = sec 𝑥 3 ⋅ 𝑒 𝑥
2
7) 𝑦 = 𝑥 − 𝑒 cos 𝑥 8) 𝑦 = 𝑥𝑒 𝑥 + 𝑥 𝑥 9) 𝑦 = 5𝑥
10) 𝑦 = (𝑥 cos 𝑥)sin 𝑥 11) 𝑦 = (5 + 𝑥)1−𝑥 12) 𝑦 = 4sin 𝑥 ⋅ (𝑥 + 7)𝑥
Hyperbolic Functions
The hyperbolic functions are like the trigonometric functions in that they have very similar
properties. They are defined in terms of the natural exponential function.
The basic hyperbolic functions are the hyperbolic sine " sinh ⬚ " and the hyperbolic
cosine "cosh ⬚" are defined as:
1 1
sinh 𝑥 = (𝑒 𝑥 − 𝑒 −𝑥 ), cosh 𝑥 = (𝑒 𝑥 + 𝑒 −𝑥 )
2 2
Anyhow, there are six hyperbolic functions:
sinh 𝑥 cosh 𝑥 1 1
sinh 𝑥 , cosh 𝑥 , tanh 𝑥 = , coth 𝑥 = , sech 𝑥 = , csch 𝑥 =
cosh 𝑥 sinh 𝑥 cosh 𝑥 sinh 𝑥
Important relations:
1 1
1) sinh( − 𝑥) = (𝑒 −𝑥 − 𝑒 𝑥 ) = − (𝑒 𝑥 − 𝑒 −𝑥 ) = − sinh 𝑥 (That is, sinh x is odd function)
2 2
1
2) cosh( − 𝑥) = (𝑒 −𝑥 + 𝑒 𝑥 ) = cosh 𝑥 (That is, sinh x is even function)
2
1 1
3) cosh2 𝑥 − sinh2 𝑥 = [𝑒 𝑥 + 𝑒 −𝑥 ]2 − [𝑒 𝑥 − 𝑒 −𝑥 ]2 = 1
4 4
21
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
23
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
Implicit Functions
Most of the functions we have dealt with so far have been described by an equation of the form
𝑦 = 𝑓(𝑥) that expresses 𝑦 explicitly in terms of the variable 𝑥. We have learned rules for
differentiating functions defined in this way.
When we cannot put an equation 𝐹(𝑥, 𝑦) = 0 in the form of single-valued function 𝑦 = 𝑓(𝑥),
we call it an implicit function. For examples:
(i) 𝑦 2 + 𝑥 2 − 9 = 0 (ii) 𝑦 3 − sin( 𝑥𝑦) + 𝑥 − 6 = 0 (iii) 𝑥𝑦 − ln( 𝑥𝑦) + 𝑒 𝑥 = 0
′
𝑥𝑦 ′ + 𝑦 𝑥𝑦 ′ 𝑦
⇒ 𝑦 − + 𝑒𝑥 = 0 ⇒ ′
𝑥𝑦 − − + 𝑒𝑥 = 0
𝑥𝑦 𝑥𝑦 𝑥𝑦
24
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
1 1 1/𝑥 − 𝑒 𝑥
⇒ 𝑦 [𝑥 − ] = − 𝑒 𝑥
′
∴ 𝑦 = ′
𝑦 𝑥 𝑥 − 1/𝑦
(𝑑) 𝑦 + 𝑥𝑦 3 + √𝑥 + 𝑦 + tan 𝑥 = 0
′ 2 ′ 3
1 + 𝑦′
∴ 𝑦 + 3𝑥𝑦 𝑦 + 𝑦 + + sec 2 𝑥 = 0
2 √𝑥 + 𝑦
′ 2 ′ 3
1 𝑦′
⇒ 𝑦 + 3𝑥𝑦 𝑦 + 𝑦 + + + sec 2 𝑥 = 0
2 √𝑥 + 𝑦 2 √𝑥 + 𝑦
1 1
⇒ 𝑦 ′ (1 + 3𝑥𝑦 2 + ) = −𝑦 3 − − sec 2 𝑥
2 √𝑥 + 𝑦 2 √𝑥 + 𝑦
′
𝑦 3 + 1/2√𝑥 + 𝑦 + sec 2 𝑥
∴ 𝑦 =−
1 + 3𝑥𝑦 2 + 1/2√𝑥 + 𝑦
(𝑒) 𝑦 4 + sinh(𝑥𝑦) + 𝑦 cosh 𝑥 = 3
∴ 4𝑦 3 𝑦 ′ + cosh(𝑥𝑦) [𝑥𝑦 ′ + 𝑦] + 𝑦 sinh 𝑥 + 𝑦 ′ cosh 𝑥 = 0
⇒ 4𝑦 3 𝑦 ′ + 𝑥 cosh(𝑥𝑦) 𝑦 ′ + 𝑦 cosh(𝑥𝑦) + 𝑦 sinh 𝑥 + 𝑦 ′ cosh 𝑥 = 0
⇒ 𝑦 ′ [4𝑦 3 + 𝑥 cosh(𝑥𝑦) + cosh 𝑥] = −𝑦 cosh(𝑥𝑦) − 𝑦 sinh 𝑥
𝑦 cosh(𝑥𝑦) + 𝑦 sinh 𝑥
⇒ 𝑦′ = −
4𝑦 3 + 𝑥 cosh(𝑥𝑦) + cosh 𝑥
(𝑓) ln 𝑦 = 𝑥 sin 𝑦 + 𝑒 𝑦
𝑦′
= 𝑥𝑦 ′ cos 𝑦 + sin 𝑦 + 𝑒 𝑦 𝑦 ′ ⇒ 𝑦 ′ = 𝑦 (𝑥𝑦 ′ cos 𝑦 + sin 𝑦 + 𝑒 𝑦 𝑦 ′ )
𝑦
⇒ 𝑦 ′ − 𝑥𝑦𝑦 ′ cos 𝑦 − 𝑦𝑒 𝑦 𝑦 ′ = 𝑦 sin 𝑦 ⇒ 𝑦 ′ [1 − 𝑥𝑦 cos 𝑦 − 𝑦𝑒 𝑦 ] = 𝑦 sin 𝑦
𝑦 sin 𝑦
∴ 𝑦′ =
1 − 𝑥𝑦 cos 𝑦 − 𝑦𝑒 𝑦
Exercise 8:
Find 𝑦 ′ for the functions:
(1) 𝑥 + 𝑦 3 + √𝑥𝑦 + ln 𝑥 = 0 (2) √𝑥 + 𝑥𝑦 + √𝑦 + 2 = 0
(3) 𝑦 2 + sec( 𝑥 + 𝑦) + 𝑦 sin−1 𝑥 = 4 (4) 𝑦 2 + sec( 𝑥 + 𝑦) + sin 𝑦 ⋅ sin 𝑥 = 0
(5) ln( 𝑥 + 𝑦) = 𝑥𝑦 + 𝑒 𝑥𝑦 (6) 𝑥√𝑦 + 𝑒 𝑥−𝑦 = 𝑥 − 3
25
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
Applications of Derivatives
I. L'Hopital's Rule and indeterminate forms
L'Hopital's rule provides a technique to evaluate limits of indeterminate forms. Application (or
repeated applications) of the rule often converts an indeterminate form to an expression that
can be easily evaluated by substitution.
L'Hôpital's rule states that for functions 𝑓(𝑥) and 𝑔(𝑥) which are differentiable on an open
𝑓(𝑥)
interval except possibly at a point 𝑥 = 𝑎 contained in that interval, if the limit lim
𝑥→𝑎 𝑔(𝑥)
0 ∞
gives or , which are indeterminate forms, then
0 ∞
𝑓(𝑥) 𝑓 ′ (𝑥)
lim = lim ′
𝑥→𝑎 𝑔(𝑥) 𝑥→𝑎 𝑔 (𝑥)
Then we should find the new limit, which maybe need to apply L'Hopital's rule again.
sin 𝑥
𝐄𝐱𝐚𝐦𝐩𝐥𝐞 1: Find the limit: lim
𝑥→0 𝑥
Solution:
sin 𝑥 sin 0 0
lim = = , using L′ Hopital′ s rule gives:
𝑥→0 𝑥 0 0
sin 𝑥 cos 𝑥
lim = lim == lim cos 𝑥 = cos 0 = 1
𝑥→0 𝑥 𝑥→0 1 𝑥→0
𝑥3 + 𝑥2 − 𝑥 − 1
𝐄𝐱𝐚𝐦𝐩𝐥𝐞 2: Find the limit: lim
𝑥→1 𝑥 2 + 2𝑥 − 3
Solution:
𝑥 3 + 𝑥 2 − 𝑥 − 1 13 + 12 − 1 − 1 0
lim = 2 = , using L′Hopital′s rule gives:
𝑥→1 𝑥 2 + 2𝑥 − 3 1 + 2(1) − 3 0
𝑥3 + 𝑥2 − 𝑥 − 1 3𝑥 2 + 2𝑥 − 1 3 + 2 − 1 4
lim = lim = = =1
𝑥→1 𝑥 2 + 2𝑥 − 3 𝑥→1 2𝑥 + 2 2+2 4
Then the limit exists and equals 1.
1 − cosh 𝑥
𝐄𝐱𝐚𝐦𝐩𝐥𝐞 3: Find the limit: lim
𝑥→0 𝑥2
26
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
Solution:
1 − cosh 𝑥 1 − cosh 0 0
lim = = , using L′Hopital′s rule gives:
𝑥→0 𝑥2 0 0
1 − cosh 𝑥 − sinh 𝑥 0
lim = lim = .
𝑥→0 𝑥2 𝑥→0 2𝑥 0
Using L'Hopital's rule gives:
− sinh 𝑥 − cosh 𝑥 − cosh 0 −1
lim = lim = =
𝑥→0 2𝑥 𝑥→0 2 2 2
Then the limit exists and equals 1.
cos 𝑥 − 1
𝐄𝐱𝐚𝐦𝐩𝐥𝐞 4: Find the limit: lim
𝑥→0 𝑥 sin 𝑥
Solution:
cos 𝑥 − 1 cos 0 − 1 1 − 1 0
lim = = = , 𝑢𝑠𝑖𝑛𝑔 𝐿′𝐻𝑜𝑝𝑖𝑡𝑎𝑙′𝑠 𝑟𝑢𝑙𝑒 𝑔𝑖𝑣𝑒𝑠:
𝑥 →0 𝑥 sin 𝑥 0 × sin 0 0 0
cos 𝑥 − 1 − sin 𝑥 0
lim = lim =
𝑥 →0 𝑥 sin 𝑥 𝑥 →0 𝑥 cos 𝑥 + sin 𝑥 0
Using L'Hopital's rule gives
− sin 𝑥 − cos 𝑥 1
lim = lim =−
𝑥 →0 𝑥 cos 𝑥 + sin 𝑥 𝑥 →0 −𝑥 sin 𝑥 + cos 𝑥 + cos 𝑥 2
Then the limit exists and equals (-1/2).
1 − 𝑥2
𝐄𝐱𝐚𝐦𝐩𝐥𝐞 5: Find the limit: lim
𝑥→1 sin 𝜋 𝑥
Solution:
1 − 𝑥2 0
lim = , using L′ Hopital′ s rule gives:
𝑥→1 sin 𝜋 𝑥 0
1 − 𝑥2 −2𝑥 −2 2
lim = lim = =
𝑥→1 sin 𝜋 𝑥 𝑥→1 𝜋 cos 𝜋 𝑥 𝜋 cos 𝜋 𝜋
Then the limit exists and equals (2/π).
sin 3 𝑥
𝐄𝐱𝐚𝐦𝐩𝐥𝐞 6: Find the limit: lim
𝑥→0 1 − cos 4 𝑥
Solution:
sin 3 𝑥 sin 0 0
lim = = , using L′Hopital′s rule gives:
𝑥→0 1 − cos 4 𝑥 1 − cos 0 0
27
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
Solution:
𝑒𝑥 𝑒∞ ∞
lim = = , using L′Hopital′s rule gives:
𝑥→∞ ln 𝑥 ln ∞ ∞
𝑒𝑥 𝑒𝑥
lim = lim 1 = lim 𝑥𝑒 𝑥 = ∞
𝑥→∞ ln 𝑥 𝑥→∞ 𝑥→∞
𝑥
28
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
Exercise 9:
Find the following limits:
2𝑥 3 + 𝑥 2 − 𝑥 − 2 ln 𝑥 𝑥 − sin 𝑥
1) lim 2) lim 3) lim
𝑥→1 𝑥 2 + 3𝑥 − 4 𝑥→∞ 𝑥 3 𝑥→0 𝑥2
tan 𝜋 𝑥 𝑥 2 − sin 𝑥 sin( 𝑥 3 − 1)
4) lim 5) lim 2 6) lim
𝑥→1 𝑥 − 1 𝑥→0 𝑥 + 4𝑥 𝑥→1 𝑥−1
tan 𝑥 − 𝑥 𝑥 − 1 − 𝑥 ln 𝑥 ln( 1 + 𝑥) − 𝑥
7) lim 8) lim 9) lim
𝑥→0 𝑥3 𝑥→1 (𝑥 − 1) ln 𝑥 𝑥→0 𝑥 ln( 1 + 𝑥)
sin(1/𝑥) 𝑥 tan 𝑥
10) lim 11) lim 12) lim
𝑥→+∞ ln(1 + 1/𝑥) 𝑥→0 sin 𝑥 𝑥→𝜋 sin 𝑥
√𝑥 + 5 − √5 √𝑥 + 3 − √3 − 𝑥 √𝑥 − 1
13) lim 14) lim 14) lim
𝑥→0 2𝑥 𝑥→0 𝑥 𝑥→1 𝑥 − 1
′
1 𝑓 ′ (0) = 1
𝑓 (𝑥) = = (1 + 𝑥)−1
(1 + 𝑥)
𝑓 ″ (𝑥) = −(1 + 𝑥)−2 𝑓 ″ (0) = −1
𝑓 ‴ (𝑥) = 2(1 + 𝑥)−3 𝑓 ‴ (0) = 2
𝑓 (4) (𝑥) = −6(1 + 𝑥)−4 𝑓 (4) (0) = −6
29
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
𝑥
𝑥 𝑥2 𝑥3 𝑥2 𝑥3
𝑒 = 1 + 2 + + + ⋯ = 1 + 2𝑥 + + + ⋯
1! 2! 3! 2 6
3) We have 𝑓(𝑥) = sin 𝑥, then
30
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
1 −1 1
𝑓 ′ (𝑥) = (1 + 𝑥) 2 ⟹ 𝑓 ′ (0) =
2 2
1 −3 1
𝑓 ″ (𝑥) = − (1 + 𝑥) 2 ⟹ 𝑓 ″ (0) = −
4 4
3 −5 3
𝑓 ‴ (𝑥) = (1 + 𝑥) 2 ⟹ 𝑓 ‴ (0) =
8 8
31
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
Exercise 10:
I. Find the first four terms of Maclaurin expansion of the following functions:
1
1) 𝑓(𝑥) = cos 𝑥 2) 𝑓(𝑥) = 𝑥𝑒 𝑥 3) 𝑓(𝑥) =
√1 + 𝑥
4) 𝑓(𝑥) = sin 2𝑥 + cos 𝑥 5) 𝑓(𝑥) = ln( 1 + sin 𝑥) 6) 𝑓(𝑥) = 𝑒 𝑥 + sin 𝑥
1
7) 𝑓(𝑥) = 𝑒 𝑥 − cos 𝑥 8) 𝑓(𝑥) =
1+𝑥
32
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
33
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
Critical points:
If 𝑓(𝑥) is a continuous function, then 𝑓 ′ (𝑥) can only change signs at values of 𝑥 where
𝑓 ′ (𝑥) = 0 or 𝑓 ′ (𝑥) doesn’t exist. The points where 𝑓 ′ (𝑥) = 0 or 𝑓 ′ (𝑥) doesn’t exist are
called “critical points” of the function.
Example 11:
(a) Find the critical points, the intervals in which the function is increasing and decreasing,
and the local maximum and minimum values of the function: 𝑓(𝑥) = (𝑥 2 − 9)2 .
Solution:
We have 𝑓(𝑥) = (𝑥 2 − 9)2 ⇒ 𝑓 ′ (𝑥) = 4𝑥(𝑥 2 − 9)
Putting 𝑓 ′ (𝑥) = 0 ⇒ 4𝑥(𝑥 2 − 9) = 0 ⇒ 4𝑥 = 0 𝑜𝑟 𝑥 2 − 9 = 0
Then the function has the critical points: 𝑥 = 0, 𝑥 = 3, −3
Now, we test the sign of 𝑓 ′ (𝑥) in the intervals (−∞, −3), (−3,0), (0,3), and (3, ∞) as:
𝑓 ′ (−4) = −16(16 − 9) < 0, 𝑓 ′ (−1) = −4(1 − 9) > 0, 𝑓 ′ (1) = 4(1 − 9) < 0,
and 𝑓 ′ (4) = 16(16 − 9) > 0. Thus,
34
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
Then, the function has a local maximum value 𝑓𝑚𝑎𝑥 = 𝑓(0) = 92 = 81 , and two local
minimum values: 𝑓𝑚𝑖𝑛 = 𝑓(−3) = 𝑓(3) = 0
(b) Find the critical points, the intervals in which the function is increasing and decreasing,
and the local maximum and minimum values of the function:𝑓(𝑥) = 6𝑥 2 − 𝑥 3 .
Solution:
We have 𝑓(𝑥) = 6𝑥 2 − 𝑥 3 ⇒ 𝑓 ′ (𝑥) = 12𝑥 − 3𝑥 2
Putting 𝑓 ′ (𝑥) = 0 ⇒ 12𝑥 − 3𝑥 2 = 0 ⇒ 3𝑥 = 0 or 4−𝑥 = 0
Then the function has the critical points: 𝑥 = 0, 4.
Now, we test the sign of 𝑓 ′ (𝑥) in the intervals (−∞, 0), (0,4), and (4, ∞) as follows:
𝑓 ′ (−1) = −15 < 0, 𝑓 ′ (1) = 9 > 0, and 𝑓 ′ (10) = 120 − 300 < 0
Then, the function has a local maximum value 𝑓𝑚𝑎𝑥 = 𝑓(4) = 6 × 16 − 43 = 32, and a local
minimum value: 𝑓𝑚𝑖𝑛 = 𝑓(0) = 0
(c) Find the critical points, the intervals in which the function is increasing and decreasing,
and the local maximum and minimum values of the function: 𝑓(𝑥) = 𝑥𝑒 𝑥 + 1.
Solution:
We have: 𝑓(𝑥) = 𝑥𝑒 𝑥 + 1 ⇒ 𝑓 ′ (𝑥) = 𝑥𝑒 𝑥 + 𝑒 𝑥
Putting 𝑓 ′ (𝑥) = 0 ⇒ 𝑒 𝑥 (𝑥 + 1) = 0 ⇒ 𝑥+1=0
Then the function has the critical point: 𝑥 = −1
Now, we test the sign of 𝑓 ′ (𝑥) in the intervals (−∞, −1), and (−1, ∞) as:
𝑓 ′ (−3) = −2𝑒 −3 < 0 , and 𝑓 ′ (0) => 1
Then, the function has a local minimum value: 𝑓𝑚𝑖𝑛 = 𝑓(−1) = −𝑒 −1 + 1 = 0.632
35
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
(d) Find the critical points, the intervals in which the function is increasing and decreasing,
and the local maximum and minimum values of the function:
𝑓(𝑥) = 3𝑥 4 − 4𝑥 3 − 12𝑥 2 + 12
Solution:
We have: 𝑓(𝑥) = 3𝑥 4 − 4𝑥 3 − 12𝑥 2 + 12 ⇒ 𝑓 ′ (𝑥) = 12𝑥 3 − 12𝑥 2 − 24𝑥
Putting 𝑓 ′ (𝑥) = 0 ⇒ 12𝑥 3 − 12𝑥 2 − 24𝑥 = 0 ⇒ 12𝑥(𝑥 2 − 𝑥 − 2) = 0
⇒ 12𝑥(𝑥 − 2)(𝑥 + 1) = 0
Then the function has the critical points: 𝑥 = −1, 0, 2
Now, we test the sign of 𝑓 ′ (𝑥) in the intervals (−∞, −1), (−1,0), (0,2), and (2, ∞) as
follows:
𝑓 ′ (−2) = 12(−2)3 − 12(−2)2 − 24(−2) = −96 < 0,
𝑓 ′ (−0.5) = 12(−0.5)3 − 12(−0.5)2 − 24(−0.5) = 7.5 > 0,
𝑓 ′ (1) = 12 − 12 − 24 = −24 < 0, and 𝑓 ′ (10) = 12000 − 1200 − 240 = 10660 > 0
Then, the function has two local minimum values: 𝑓(−1) = 7, 𝑓(2) = −20 and a local
maximum value: 𝑓(0) = 12.
(e) Find the critical points, the intervals in which the function is increasing and decreasing,
𝑥
and the local maximum and minimum values of the function: 𝑓(𝑥) =
𝑥−1
Solution:
𝑥 −1
We have: 𝑓(𝑥) = ⇒ 𝑓 ′ (𝑥) =
𝑥−1 (𝑥 − 1)2
We see that 𝑓 ′ (𝑥) ≠ 0 for all values of 𝑥, because the numerator is −1 ≠ 0 and 𝑓 ′ (𝑥) is not
defined at 𝑥 = 1. Then the function has the critical point at 𝑥 = 1 only, which is out of the
range of the given function. So that there is no local maximum or minimum values for the
given function. Since 𝑓 ′ (𝑥) < 0 for all values of 𝑥 , then the function is decreasing on
(−∞, ∞)
36
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
Then, the function has two local minimum values at 𝑥 = −3, 5 and a local maximum value
at 𝑥 = 1
Then, the function has two local minimum values at 𝑥 = −1, 1 and two maximum values at
𝑥 = −3, 0
37
Sinai University - Faculty of IT & CS == Calculus (MA 111) == Prof. Reda S Tantawi
Exercise 11:
1. Find the slope of the tangent line to the graph of:
𝑎) 𝑦 = 𝑥 6 − 2𝑥 4 + 3𝑥 at the point 𝑥 = 1
𝑏) 𝑦 = 2𝑥 3 + 𝑥 2 + 𝑥 − 1 at the point 𝑥 = 2
𝑐) 𝑥𝑦 − 𝑥 3 + y + +𝑥 = 1 at the point (0, 1)
𝑑) 𝑥 2 − 𝑦 2 + 𝑦 − 𝑥 = −2 at the point (0, 2)
2. Find the critical points, the intervals in which the function is increasing and decreasing, and
the local maximum and minimum values of the functions:
𝑥3 𝑥2
𝑎) 𝑓(𝑥) = − − 2𝑥 + 5 𝑏) 𝑓(𝑥) = 3𝑥 4 − 4𝑥 3 + 12
3 2
𝑐) 𝑓(𝑥) = 𝑥 3 − 6𝑥 2 + 9𝑥 + 6 𝑑) 𝑓(𝑥) = 4𝑥 3 + 3𝑥 2 − 18𝑥 − 9
𝑒) 𝑓(𝑥) = (𝑥 − 2)2 (𝑥 − 7) 𝑓) 𝑓(𝑥) = 𝑥 3 − 3𝑥 2 − 9𝑥
ℎ) 𝑓(𝑥) = 𝑥 2 𝑒 𝑥 𝑖) 𝑓(𝑥) = 𝑒 −𝑥 + 𝑥
𝑥2 𝑥2 − 1
𝑖𝑖) 𝑓(𝑥) = 𝑖𝑖) 𝑓(𝑥) =
𝑥−1 𝑥+3
3. Find the intervals in which the function 𝑓(𝑥) is increasing and decreasing for each of the
following functions:
a)𝑓 ′ (𝑥) = 𝑥 3 − 5𝑥 2 + 2𝑥 + 8 , 𝑓 ′ (𝑥) = 0 𝑎𝑡 𝑥 = −1, 2, 4
𝑏)𝑓 ′ (𝑥) = 𝑥 3 − 2𝑥 2 − 𝑥 + 2 , 𝑓 ′ (𝑥) = 0 𝑎𝑡 𝑥 = −1, 1, 2
𝑐) 𝑓 ′ (𝑥) = 𝑥 4 − 2𝑥 3 − 5𝑥 2 + 6𝑥 , 𝑓 ′ (𝑥) = 0 𝑎𝑡 𝑥 = −2, 0, 1, 3
38