Derivative
Derivative
function
Math for Electronics 1
Andrew Thangaraj
Electrical Engineering, IIT Madras
Introduction
Example 1: Cardboard box
a
Option 1 Option 2
Measure diameter with Measure volume with an
an error of ±100 μm error of ±100000 μm3
d = 2r V = 43 πr3
Spherical drop of liquid
Which is the better option for
Goal: Measure radius
measuring radius?
Important to look at
population growth rate.
x1 x2 x3 x4 x
Magnitude of step: h = 1
Right side
f (x0 + h) − f (x0 )
f (x0 + h) − f (x0 ) = 3 =3
h
Left side
f (x0 − h) − f (x0 )
f (x0 ) − f (x0 − h) = 1 =1
−h
Zooming into f (x) = x2 at x0 = 1
Right side
f (x0 + h) − f (x0 )
f (x0 + h) − f (x0 ) = 1.25 = 2.5
h
Left side
f (x0 − h) − f (x0 )
f (x0 ) − f (x0 − h) = 0.75 = 1.5
−h
Zooming into f (x) = x2 at x0 = 1
Right side
f (x0 + h) − f (x0 )
f (x0 + h) − f (x0 ) = 0.26.. = 2.125
h
Left side
f (x0 − h) − f (x0 )
f (x0 ) − f (x0 − h) = 0.23.. = 1.875
−h
Zooming into f (x) = x2 at x0 = 1
As we zoom in, or h → 0
Definition
A function f is said to have a derivative L at a point x0 if the following
holds:
f (x0 + h) − f (x0 )
lim =L
h→0 h
f (x0 + h) − f (x0 )
Notation f ′ (x0 ) = lim denotes the derivative of f at x0
h→0 h
Definition
A function f is said to be differentiable at x0 if f ′ (x0 ) exists.
Example: Derivative of f (x) = x2
2 2
(x0 + h) − x0
f ′ (x0 ) = lim
h→0 h
(x0 + h)2 − x20 2x0 h + h2
= = 2x0 + h = lim 2x0 + h
h h h→0
= 2x0
a b
Examples: Continuity and differentiability
f (x) = {
x2 , ∣x∣ < 1
f (x) = ∣x∣ 2, ∣x∣ > 1
x x
⎧
⎪−x, x ≤ −1
f (x) = ⎨∣x∣1/5 ,
f (x) = {
x7 , ∣x∣ < 1 ∣x∣ < 1
−1, ∣x∣ ≥ 1 ⎪
⎩
x/5 + 4/5, x≥1
x x
Differentiation rules
Constant and identity functions
f (x) = c f (x) = x
′ f (x + h)g(x + h) − f (x)g(x)
(f (x)g(x)) = lim
h→0 h
~
~+h ~)
~
~ = g(x), h f (g(x + h)) − f (g(x)) f (x ) − f (x
x = g(x + h) − g(x) = ~
g(x + h) − g(x) h
~ ~ ~)
f (x + h) − f (x ′ ~ (technical)
lim ~ = f (x)
h→0 h
(x)′ = 1
(xn )′ = nxn−1
Derivative of xr/s , r, s = 1, 2, … and xa , a: positive real
(g(x)s )′ = rxr−1
(xr/s )′ = (r/s)x(r/s)−1
(xa )′ = axa−1
g ′ (x) = (r/s)x(r/s)−1
Derivative of xa , a: real
If a < 0, xa xb = 1, b ≜ −a > 0
(xa xb )′ = 0
(xa )′ xb + xa (xb )′ = 0
(xa )′ = axa−1 , a > 0
(xa )′ = axa−1
Polynomials, rationals and
other examples
Polynomial functions
2 3
Assume pm
= 0.
p(x) = p0 + p1 x + p2 x + p3 x + ⋯ + pm xm
Degree m
Denominator q(x) = q0 + q1 x + q2 x2 + ⋯ + qn xn
′ ′
′ q(x)p (x) − q (x)p(x)
f (x) = 2
if q(x)
=0
q(x)
1+x
f (x) = f (x) = 1 − x2
1−x
x x−1
f (x) = f (x) =
1− 3
x (x + 1)(x + 2)
(x − 1)(x − 2)
f (x) =
(x + 1)(x + 2)(x + 3)
Properties and details
Another form of the definition of derivative
′ f (x0 + h) − f (x0 )
f (x0 ) = lim
h→0 h
Equation of line
f (x)
y = f (x0 ) + f ′ (x0 )(x − x0 )
f (x0 )
f (x) − f (x0 )
For x very close to x0 , f ′ (x0 ) ≈ or f (x) ≈ f (x0 ) + f ′ (x0 )(x − x0 )
x − x0
Differentiability implies continuity
f (x) − f (x0 )
Suppose f is differentiable at x0 , i.e. f (x0 ) = lim
′
exists
x→x0 x − x0
f (x) − f (x0 )
f (x) − f (x0 ) = (x − x0 )
x − x0
f : function from R to R
f (x0 + h) − f (x0 )
First derivative: f ′ (x0 ) = lim function from D1 to R
h→0 h
′ ′
f (x0 + h) − f (x0 ) function from D2 to R
Second derivative: f (x0 ) = lim
′′
h→0 h
′′ ′′
f (x0 + h) − f (x0 ) function from D to R
Third derivative: f (x0 ) = lim
′′′ 3
h→0 h
and so on....
Examples
f (x) = x
f (x) = 1+x+x2 +x3
f ′ (x) = 1/2 x
f ′ (x) = 1+2x+3x2
f ′′ (x) = 2 + 6x f ′′ (x) = −1/4 x3
f ′′′ (x) = 6 f ′′′ (x) = 3/8 x5
Linear and quadratic approximations
Approximations for function f (x) near x0
′′
′ f (x0 )
g(x) = f (x0 ) + f (x0 )(x − x0 ) ′
h(x) = f (x0 ) + f (x0 )(x − x0 ) + (x − x0 )2
2
At x = x0 At x = x0
f (x) = 1/x
quadratic
linear