Differentiation: Rate of Change of A Function at A Point
Differentiation: Rate of Change of A Function at A Point
INTRODUCTION y(t)
Differentiation is concerned with the rate at which a Suppose we have a function of x, y (x) . We want to
function is changing. find the rate of change of y a general point of value x.
We begin by finding the rate of change across an
y(t)
interval and then shrink the interval to a single point.
Consider the interval [x, x + δx ] . At the beginning of the
interval the function has a value y (x) and at the end a
value y ( x + δx) . Hence, the change in y is
t y ( x + δx) − y (t ) , which we denote δy (see figure
5 7 8
bellow).
There are different regions to the above curve y
corresponding to different interval of t. From 0 to 5 the
function does not change and so the rate of change of y y(x+δx)
is zero. From 5 to 7 the function increases slightly.
Thus, the rate of change of y as t increases is small.
δy = y(x+δx) - y(x)
Since y is increasing, the rate of change is positive. y(x)
From 7 to 8 there is a rapid rise. The rate of change is
large and positive. From 8, the function decreases very
rapidly. The rate of change is large and negative...
x
The aim of differentiation calculus is to specify the rate x x+δx
of change of a function precisely.
δx
Rate of change of a function across an change in y
interval rate of change of y =
change in x
y ( x + δx ) − y ( x )
y(t2) B =
δx
δy
=
y(t2)–y(t1) δx
Now let δx tend to 0, so that the interval shrinks to a
y(t1) A C point
t2 – t1
t ⎛ y ( x + δx ) − y ( x ) ⎞
t1 t2 rate of change of y = lim ⎜ ⎟
δx → 0⎝ δx ⎠
The rate of change of a function between two points A δ
⎛ ⎞ y
and B equals the gradient (or slope) of the chord AB = lim ⎜ ⎟
δx → 0⎝ δx ⎠
change in y BC y (t2 ) − y (t1 )
gradient = = =
change in t AC t2 − t1
TECHNIQUES OF DIFFERENTIATION
WORK EXERCISE 1
As it is time consuming to find the derivative of a
Using the above definition find the derivative f ' ( x) function from first principles. We usually use a table of
when the function f ( x) is defined as, derivatives (see Standard Derivatives and Integrals
sheet). This table is useful to memorise the most
(a) x 2 common derivatives listed bellow:
d n
(b)
1 ( x ) = nx n−1
x dx
Rules of differentiation dy dy dz
= = f ' ( z ) g ' ( x)
dx dz dx
The rules of differentiation should be learnt and
practice. Example: Differentiate (worked during lecture)
(
(a) y ( x) = ln 3x 2 + 5 x + 7 )
Constant multiplication rule
If y = f ( x) and k is a constant then (b) y ( x) = e −2 x cos 3 x
d dy
(ky ) = k = kf ' ( x) Derivative of common functions
dx dx
Example: Differentiate y ( x) = 5 x (worked during Derivative of a power functions
lecture).
If y ( x) = x n then
Sum rule dy
=
d n
( )
x = nx n −1
If y ( x) = u ( x) + v( x) then dx dx
dy d du dv
= (u + v ) = + = u '+ v' WORK EXERCISE 3
dx dx dx dx
Differentiate the following,
Example: Differentiate y ( x) = 3 x + 5 x 2 (worked
1 1
during lecture). (a) 2x 3 (b) x (c) 5
(d)
3
x x
Product rule
If y ( x) = u ( x)v ( x) then Derivative of polynomial functions
Differentiate any polynomial function of the form
dy d ⎛ du ⎞ ⎛ dv ⎞
= (uv) = ⎜ ⎟v + u ⎜ ⎟+ = u ' v + uv' f ( x) = a0 + a1 x + a 2 x 2 + a3 x 3 + L + a n x n
dx dx ⎝ dx ⎠ ⎝ dx ⎠
is only a matter of using of the constant multiplication
Example: Differentiate (worked during lecture)
rule together with the sum rule and differentiate term by
(a) y ( x) = x sin x term to give
If y ( x) =
u ( x)
then (a) y = 2 x 4 − 2 x 3 − x 2 + 3x − 1
v( x)
(b) The distance s, in metres, travelled by a body in t
⎛ du ⎞ ⎛ dv ⎞ seconds is given by s = 2t 3 − 1.5t 2 − 6t + 12 . Determine
⎜ ⎟v − u ⎜ ⎟
dy
=
d ⎛ u ⎞ ⎝ dx ⎠ ⎝ dx ⎠ = u ' v − uv' the velocity and the acceleration after 2 seconds.
⎜ ⎟=
dx dx ⎝ v ⎠ v 2
v2 (c) After expansion differentiate f ( x) = ( x + 3)(2 x − 1) ,
Example: Differentiate (worked during lecture) and then differentiate f (x) by using the product rule.
sin x
(a) y ( x) =
x Rational function
The general form of rational function is
x2
(b) y ( x) = N ( x)
2x + 1 f ( x) =
D( x)
e2 x
(c) y ( x) = where the numerator N (x ) and the denominator D(x)
x2 + 1
are polynomials. To differentiate such function we use
the constant multiplication, sum and quotient rules.
Chain rule or composite function
If y = f (z ) and z = g (x ) , i.e. y ( x) = f (g ( x) ) then WORK EXERCISE 5
Find the derivative of the following function of x:
3x + 2 2x + 3 d
(a) (b) (cos x) = − sin x
2x + 1
2
x + x +1
2 dx
1 1 Since tan x = sin x / cos x , we can use the quotient rule.
(c) x 3 + 2 x 2 − + +3
x x2 Thus, setting
u = sin x and v = cos x
Other algebraic functions du dv
When dealing with more elaborated functions, we make giving = cos x and = − sin x
dx dx
intensive use of the chain rule.
and applying the rule gives the derivative of a tangent
For example consider (
y = 5 x 2 + 11 )
9
and find its function,
dy d 1
derivative (tan x) = 2
= sec 2 x
dx dx cos x
In this case we could expand out y and treat it as a The derivatives of other circular functions can be
polynomial of degree 18. However, it is easier to see it derived in the same manner.
as a composite function. Introduce an intermediate (or
auxiliary) variable z as follows
Set y = z 9 and z = 5 x 2 + 11
WORK EXERCISE 7
dy dz
Thus, = 9z 8 and = 10 x Find the derivative with respect to x when y is defined
dz dx by
and the chain rule gives sin 2 x
(a) sin(3x + 3) (b) x 2 cos x (c)
dy dy dz x2 + 2
= ⋅
dx dz dx (d) sec 6 x (e) x tan 2 x (f) sin −1 6 x
= 9 z 8 .10 x
2x
= 9(5 x 2 + 11)8 (10 x) (g) x 2 cos −1 x (h) tan −1
1− x2
= 90 x(5 x 2 + 11)8
Note: Sometime there are more than two component Derivative of the exponential function
functions in a composite function. In that case the chain From the first principle, you could find that the
rule can be extended to the number of composite
derivative of the exponential function e x (to the base e)
function required, e.g.
is its own derivative
dy dy dw dz
= d x
dx dw dz dx (e ) = e x
dx
Note: when the exponent of the exponential function is a
WORK EXERCISE 6 more elaborate function of x, use the rules to determine
Differentiate the following function y the derivative of the composite function.
(
(a) 3 x 3 − 2 x 2 + 1 ) 5 1
(5x )
(b) 7 Derivative of a logarithmic function
2
−2
d 1
(ln x) = , x > 0
( )3 2x + 1 dx x
(c) x 2 + 1 x −1
(x + 1)
(d)
2 3
dy f ′( x)
Note when y ( x) = ln f ( x) then =
dx f ( x)
d2 f
or f ' ' ( x) or f ( 2) ( x)
dx 2
This may be differentiated, yielding the third derivative B
and so on.
In general, the nth derivative is written as
The figure shows that these extremal values are
dn f (n) generally on local maximum or minimum values,
or f ( x)
dx n corresponding to the turning points on the graph.
In seeking the extremal value of a function it is also
d2 f
The second derivative represents the rate of necessary to check the end-points (if any) of the domain
dx 2 of the function.
df
change of ; geometrically, this gives us information At some points of inflexion, that is points where the
dx graph crosses its own tangent - the tangent may be
on how the slope of the tangent to the graph of
horizontal.
y = f (x) is changing with increasing x.
f ( x ) = 4 x 3 − 21x 2 + 18 x + 6
WORK EXERCISE 12
Using the second derivative confirm the nature of the
stationary points of the function,
f ( x ) = 4 x 3 − 21x 2 + 18 x + 6