Week 5
Week 5
Designers
B. Arch/ B. ID. MATH-141 (2 Cr. Hr.)
Week-5
INSTRUCTOR
DR. ADNAN ASLAM
ASSOCIATE PROFESSOR SEECS- NUST.
PH.D. IN MATHEMATICS
Derivative at a Point
The derivative of the function 𝑓(𝑥) at 𝑥 = 𝑎 is
denoted by 𝑓 ′ 𝑎 and defined by
𝑓 ′ 𝑎 = Slope of tangent
at 𝑎, 𝑓 𝑎 .
When does a function not have a derivative at
a point
Differentiability Implies Continuity
If 𝑓 is differentiable at a point then 𝑓 is continuous there.
But
𝑓 is continuous at a point does not necessarily implies 𝑓 is differentiable there.
Notations for Derivative
Let 𝑦 = 𝑓(𝑥) then derivative of 𝑦 with respect to 𝑥 is denoted by
𝑑𝑦
𝑑𝑥
or
𝑓 ′ (𝑥)
or
𝑑𝑓
𝑑𝑥
or
𝑦′
Differentiation Rules
SECTION 3.2
THOMAS CALCULUS
Derivative is…
Used to find the “slope” of a function at a point.
2. Power Rule:
𝑑 𝑟
𝑥 = 𝑟𝑥 𝑟−1 , 𝑤ℎ𝑒𝑟𝑒 𝑟 ≠ 0 𝑖𝑠 𝑎 𝑟𝑒𝑎𝑙 𝑛𝑢𝑚𝑏𝑒𝑟
𝑑𝑥
For example:
𝑑
i. 𝑥 5 = 5𝑥 4
𝑑𝑥
𝑑 −3/2 3 −3−1 3 −5
ii. 𝑥 = − 𝑥 2 = − 𝑥 2
𝑑𝑥 2 2
Algebraic Rules
3. Derivative of a Constant Times a Function
𝑑 𝑑𝑓
(𝑐𝑓(𝑥)) = c
𝑑𝑥 𝑑𝑥
For example:
𝑑 𝑑𝑥
3𝑥 = 3 =3 1 =3
𝑑𝑥 𝑑𝑥
SECTION 3.5
THOMAS CALCULUS
Derivative of Composite Function
If 𝑔 is differentiable at 𝑥 and 𝑓 is differentiable at 𝑔(𝑥), then the composition 𝑓𝑜𝑔 is
differentiable at 𝑥. Moreover, if
𝑦 = 𝑓 𝑔 𝑥 𝑎𝑛𝑑 𝑢 = 𝑔 𝑥
Then 𝑦 = 𝑓(𝑢) and
𝑑𝑦 𝑑𝑦 𝑑𝑢
= .
𝑑𝑥 𝑑𝑢 𝑑𝑥
OR
𝑑
𝑓 𝑔 𝑥 = 𝑓 ′ 𝑔 𝑥 𝑔′ (𝑥)
𝑑𝑥
Derivativ
e of
Derivative of outside function inside
function
Example
Differentiate 𝑓 𝑥 = 1 − tan2 𝑥 3/2
Solution:
𝑑𝑓 𝑑
= 1 − tan2 𝑥 3/2
𝑑𝑥 𝑑𝑥
3 2
3
−1 𝑑
= 1 − tan 𝑥 2 1 − tan2 𝑥
2 𝑑𝑥
3 2
1 𝑑
= 1 − tan 𝑥 2 0 − 2𝑡𝑎𝑛𝑥 𝑡𝑎𝑛𝑥
2 𝑑𝑥
3 1 1
= 1 − tan2 𝑥 2 −2𝑡𝑎𝑛𝑥 𝑠𝑒𝑐 2 𝑥 = −3 2
1 − tan 𝑥 2 𝑡𝑎𝑛𝑥 𝑠𝑒𝑐 2 𝑥
2
Parametric Equations
If 𝑥 and 𝑦 are given as functions
𝑥=𝑓 𝑡 , 𝑦 = 𝑔(𝑡)
Over an interval of t-values, then the set of points 𝑥, 𝑦 = (𝑓 𝑡 , 𝑔 𝑡 ) defined by
these equations is a Parametric Curve. The equations are parametric equations for
the curve.
Derivative/Slope of Parametric Curves:
A parametric curve 𝑥 = 𝑓 𝑡 𝑎𝑛𝑑 𝑦 = 𝑔(𝑡) is differentiable at 𝑡 if 𝑓 and 𝑔 are
differentiable at 𝑡. Then
𝑑𝑦
𝑑𝑦 𝑑𝑡 𝑑𝑥
= , 𝑝𝑟𝑜𝑣𝑖𝑑𝑒𝑑 ≠0
𝑑𝑥 𝑑𝑥 𝑑𝑡
𝑑𝑡
Example
The parametric equations for a curve are given by
𝑥 = 𝑎𝑐𝑜𝑠𝑡 𝑎𝑛𝑑 𝑦 = 𝑏𝑠𝑖𝑛𝑡, 0 ≤ 𝑡 ≤ 2𝜋
𝑎 𝑏
Find the line tangent to the curve at , .
2 2
Solution:
𝑑𝑦 𝑏
𝑑𝑦 𝑑𝑡 𝑏𝑐𝑜𝑠𝑡 𝑥 𝑏 2𝑥
𝑠𝑙𝑜𝑝𝑒 𝑜𝑓 𝑡𝑎𝑛𝑔𝑒𝑛𝑡 = = = = 𝑎𝑎 = − 2
𝑑𝑥 𝑑𝑥 −𝑎𝑠𝑖𝑛𝑡 − 𝑦 𝑎 𝑦
𝑑𝑡 𝑏
𝑎 𝑏
At , ,
2 2
𝑎 2
𝑏
𝑑𝑦 2 𝑏
=− =−
𝑑𝑥 𝑏 𝑎
𝑎2
2
Equation of tangent line is
𝑏𝑏 𝑎
𝑦− =− 𝑥−
2 𝑎 2
Exercise 3.5
▪ Q1 to Q66, Q87 to Q104
Implicit Differentiation
SECTION 3.6
THOMAS CALCULUS
Explicit Functions
Implicit Functions
If one variable 𝑦 is
▪ If 𝑦 is not expressed as function
described as function of
of other variable 𝑥 then 𝑦 is
other variable 𝑥 then 𝑦 is
said to be described implicitly,
said to be described
then equation of curve is
explicitly, i.e;
represented by
𝑦=𝑓 𝑥
𝐹 𝑥, 𝑦 = 𝑐
For example For example
1. 𝑦= 𝑥 𝑥2 + 𝑦2 = 𝑐2
2. 𝑦=
1 Here 𝑦 can be written explicitly
𝑥 as
𝑥+1
3. 𝑦= 𝑦 = ± 𝑐2 − 𝑥2
𝑥−1
Implicit Differentiation
But in some cases, 𝑦 can not be written explicitly as a function of 𝑥.
For example
sin 𝑥𝑦 + 𝑥 2 𝑦 = 1
To differentiate such equations we use Implicit Differentiation.
Solution:
Taking natural logarithm on both sides,
𝑥 𝑥+1
𝑙𝑛 𝑦 = 𝑙𝑛 3
𝑥+2 𝑥+3 5
𝑎
Using 𝑙𝑛 = 𝑙𝑛𝑎 − 𝑙𝑛𝑏
𝑏
3 5
𝑙𝑛 𝑦 = 𝑙𝑛 𝑥 𝑥 + 1 − 𝑙𝑛 𝑥+2 𝑥+3
Using 𝑙𝑛 𝑎𝑏 = 𝑙𝑛𝑎 + 𝑙𝑛𝑏
3 5
𝑙𝑛 𝑦 = 𝑙𝑛 𝑥 + 𝑙𝑛 𝑥 + 1 − 𝑙𝑛 𝑥 + 2 + 𝑙𝑛 𝑥+3
Example 1
Using 𝑙𝑛 𝑎𝑏 = 𝑏𝑙𝑛 𝑎 ,
1 1
𝑙𝑛 𝑦 = 𝑙𝑛 𝑥 + 𝑙𝑛 𝑥 + 1 − 𝑙𝑛 𝑥 + 2 − 5 𝑙𝑛 𝑥 + 3
2 3
Differentiating w.r.t 𝑥,
1 𝑑𝑦 1 1 1 5
= + − −
𝑦 𝑑𝑥 𝑥 2 𝑥 + 1 3 𝑥+2 𝑥+3
𝑑𝑦 1 1 1 5
=𝑦 + − −
𝑑𝑥 𝑥 2 𝑥+1 3 𝑥+2 𝑥+3
𝑑𝑦 𝑥 𝑥+1 1 1 1 5
= 3 + − −
𝑑𝑥 𝑥+2 𝑥+3 5 𝑥 2 𝑥+1 3 𝑥+2 𝑥+3
Example 2
𝑑𝑦 𝑥3
Find if 𝑦 = cos(2𝑥)
𝑑𝑥
Solution:
Taking natural logarithm on both sides,
𝑙𝑛 𝑦 = 𝑙𝑛 cos(2𝑥) 𝑥3
Using 𝑙𝑛 𝑎𝑏 = 𝑏𝑙𝑛 𝑎 ,
𝑙𝑛 𝑦 = 𝑥 3 𝑙𝑛 cos 2𝑥
Differentiating w.r.t 𝑥,
1 𝑑𝑦 2 3
−2 sin 2𝑥
= 3𝑥 𝑙𝑛 cos 2𝑥 + 𝑥
𝑦 𝑑𝑥 cos 2𝑥
𝑑𝑦 𝑥 3 2 3
−2 sin 2𝑥
= cos(2𝑥) 3𝑥 𝑙𝑛 cos 2𝑥 + 𝑥
𝑑𝑥 cos 2𝑥
Exercise 3.6
Q1 to Q74