Unit 3
Unit 3
Unit 3
Structure
3.1 Introduction
Objectives
3.2 The Derivative of a Function
3.2.1 Slope of a Tangent
3.2.2 Rate of Change
3.2.3 The Derivative
3.3 Derivatives of Some Simple Functions
3.4 Algebra of Derivatives
3.b.l Derivative of a Scalar Multiple o f a Function
3.4.2 Derivative of the Sum of Two Functions
3.4 3 Derivative of !he P~.oductof Two Functions
3.4.4 De~'ivaliveof the Quotient of TNO Functions
3.4.5 The Chain Rule af Differentiation
3.5 Continuity versus Derivability
3.6 Allmnary
3.6 Solutions and Answers
3.1 INTRODUCTION
It was the seventeenth bentury. Some European mathematicians were working on two basic
problems :
i) Is it possible to find the tangent to a given curve at a given point of the curve?
Objectives
L e i b n i i (1646-1716)
After studying this unit you should be able to :
draw a tangent to a given curve at a given point
determine the rate of change of a given quantity with respect to another
obtain the derivatives of some simple functions such as xn, I x 1, J;; etc. from the first
principles
find the derivatives of functions which can be written as the sum, difference, product,
quotient of functions whose derivatives you already know
derive and use the chain rule of differentiation for writing down the derivatives of a
composite of functions
discuss the relationship between continuity and derivability of a function.
Elements of Diffetential
Calculus 3.2 THE DERIVATIVE OF A FUNCTION
/
Before defining a derivetive, let us consider two problems in the next two subsections. The
fmt is to find the slope of a tangent and the second is to find the rate of change of a given
quantity in terms of another.
Fig. 1
We may define a tangent to a curve at P to be a line which best approximates the curve near P.
But this definition is still too vague. Then how can we define a tangent precisely? The concept
of limit which you have studied in Unit 2 comes to our aid here.
Let P be a fixed point on the curve in Fig. 2 (a), and let Q be a nearby point on the curve. The
line throughout P and Q is called a secant. We define the tangent line at P to be the limiting
position (if it exists) of the secant PQ as Q moves towards P along the curve (Fig. 2 (b)).
(b)
Fig. 2
It may not be always possible to find the limiting position of the secant. As we shall see later,
there are curves which do not have tangents at some points. In fact, there are curves hhich do
not have a tangent at any point!
There is another question which we can ask here. Suppose we know that a tangent to a curve
exists at a point, how do we go about actually drawing the tangent?
We have said earlier that the tangent at P is the limiting position of the secant PQ. With
The tangent of the angle
reference to a system of coordinate axes OX and OY (Fig. 3), we can also say that the tangent
which a line makes with the
positive direction of the x-axis at P is a line through P whose slope is the limiting value of the slope of PQ as Q approaches P
is called the slope of the line. along the cuhe. The problem of determining the tangent is, then, the problem of finding the
slope of the tangent line.
Fig. 3
Suppose the curve in Fig. 3 is given by y = f(x). Let P (x, f(x)) be the point P and let
Q (x + 6x, f(x + 6x)) be any other point on the curve. The prefix 6 before a variable quantity
means a small change in the quantity. Thus, 6x means a small change in the variable x.
(Caution: 6x is one inseparable quantity. It is not 6 x x). The coordinates(x + 6x, f(x + 6x))
indicate that Q is generally near P. If 8 is the angle which PQ makes with the x-axis, then the
slope of PQ = tan 8 = QMIPM
Then limiting value of tan 8, as Q tends to P, (and hence 6x + 0) gives us the slope of the
tangent at P. Thus,
Fig. 4
Elements o f D i f f e r e n t i a l
Calculus Let Q (x, x2) be any other point on the parabola. The slope of
y coordinate of Q - y coordinate of P
PQ = x coordinate of Q - x coordinate of P
(x + 2) - (x - 2)
= lim
x+2 x-2
= lim (x
x-2
+ 2) = 4
The equation of the tangent line will be (y - 4) = 4 (x - 2)
Now, how do we draw this tangent? Just mark the point P' by moving a distance 1 unit from
P, parallel to the x-axis to the right, and then, moving a distance equal to 4 units parallel to the
y-axis upwacd. Join P to P' as shown inFig. 4. The coordinates of p' are (2 + 1 , 4 + 4). The
resulting line will touch the parabola at P, and the slope of the tangent at P = tan 0 = 4.
E E 1) Find the equation of the tangent to the following curves at the given points.
a) y=l/xat(2,1/2)
In this subsection we have given a precise definition of a tangent to a curve. We have also
seen how to draw the tangent to a given curve at a given point. Now let us consider the
second problem mentioned at the beginning of this section.
But this does not give us the velocity of the particle at a particular instant t, which is called
the instantaneous velocity. Rather it is the average velocity over the internal 6f. How do we
calculate this?
To find the velocity at a particular time t, we proceed to find the average velocity in the time
interval [t, t + St] (or [t + t, t]) for smaller and smaller values of 6t.
If 6t is very small, then t + 6t is very near t and so the average velocity during the time interval
6t would be very near the velocity at t. It seems reasonable, therefore, to define the
lim f(t +tit)-f(t)
instantaneous velocity at time t to be gt+O
6t
Thus, we have
where s = f(t) is the distance travelled in time t. Comparing this box with the one given at the
end of the last subsection, we find that the concepts of the slope of a tangent and the
instantaneous velocity are identical. Further, velocity can be considered as the rate of change
of distance with respect to time. So, extending our definition of velocity to other rates of
change, we can say that if a quantity y depends on x according to the rule y = f(x), then the
rate of change of y with respect to x can be defined as
Example 2 Suppose we want to find the rate of change of the function f defined by
f(x)=x+5, + x ~ R a t x = O .
We shall first calculate the average rate of change off in an interval [O,6x].
This average rate of change off in [O,6x] is
-? Hence, the rate of change off at 0,which is the limiting value of this average rate as 6x 0,
m
Example 3 Suppose a particle is moving along a straight line and the distance s covered in time
t is given by the equation F = (1/2)t2. Let us draw the curve represented by the function
s = (1/2)$-easuring time along x-axis and distance along y-axis. Let P and Q be points on the
curve which correspond to t, = 2 and t, = 4.
We shall show that the average velocity of the particle in the time interval 12-41is the slope of .&
the line PQ and the velocity at time t, = 2 is the slope of the tangent to the curve at t, = 2.
The curve represented by s = (1/2)$ is a parabola, as shown in Fig. 5. P and Q correspond to
the values t, = 2 and t, = 4 oft. Now s, = (1/2)tI2= 2 and S, = ( 1 1 2 ) =
~~8. Therefore, the
coordinates of the pohts P and Q are (2,2) and (4,8), respectively.
8-2
The slope of PQ = -= 6/2 = 3.
4-2
Also, the distance travelled by the particle in the time (t2- t,) is s2- s, = 8 - 2 = 6.
I! Therefore, the average velocity of the particle in the time (t2-t,) is
distance Ravelled 6t may be positive or
i time taken
=6/2=3. negative
1 Hence, the slope of PQ is the same as the average velocity of the particle in the time (t2- t,).
Fig. 5
- 1
lim ---(2+&)'-2
2 - ,im (4+6t)-6t - ]jm 4 + 6t - 2
(2 + 6t) - 2 - 6t+0 26t - 6t+0 2-
Ans, what is the velocity at t,? It is 6sJ/Gt,, which is again equal to 2. Thus the velocity
at t, is the same as the slope of the tangent at P.
Remark 2 i) Example 3 is a particular case of the general result: If the path of a particle
moving according to s = f(t) is shown in the ts-plane and if P and Q are points on the path
which correspond to t = t, and t = 5, then the average velocity of the particle in time (t,-t,) is
given by the slope of PQ and the velocity at time t, is given by the slope of the tangen; at P.
ii) Distance is always measured in units of length (metres, centimetres, feet) and so velocity
v really means v units of distance per unit of time. The slope of the tailgent is a
dimensionless number, while the velocity has the dimension of lengthhime.
Now you can lry some exercises on your own.
E E 2) A particle is thrown vertically upwards in the air. The distance it covers in time t is given
-
by s(t) = ut (112) gt2 where u is the initial velocity and g denotes the acceleration due to
gravity. Find the velocity of the particle at any time t.
E E 3) Find the rate of change of the area of a circle with respect to its radius when the radius 1s 2
cm. (Hint: Eipress the area of a circle as a function of its radius first).
E E 4) Find the average rate of'change of the function f defined by f(x) + 1, ++x
= 2x2 E R in the
interval [I, 1 + h] and hence evaluate the rate of change o f f at x = 1.
lim lim
x,+ 6x=x, weget 6x=x-x,, and 6xo+0 x+x,
As we shall see later, it is not always necessary to find a derivative from the first principles. We
Elements of Differential shall develop certain rules which can be used to write down the derivatives of some functions
Calculus
without actually finding the limit. Some such rules are contained in the next section.
Hence, a constant function is differentiable and its derivatives is equal to zero at any point of
its domain.
The result of the above example can be seen more easily geometrically. The constant function
f(x) = c x E R represents the straightline y = c which is parallel to the x - axis (Fig. 6). If we
join any two points, P and Q, on it, the line PQ is parallel to the x-axis. Hence, the angle made
by PQ with the x-axis is zero. This means the slope ofPQ is tan 0 = 0. Since f (x) is the limit of
this slope as Q -+ P, we get f (x) = 0 for all x in the domain off.
Fig. 6
(x + h)" - xn
lim ,
h+O h
(xn + nhxn-'+...+h n ) - xn
= lim (by bionomial theorem)
h+O h
Differentiation
d
The result of the above example is very useful. We shall show later, that (x") = nx"-' for all
dx
non-zero x E R even when n is a negative integer. The result also holds for all x > 0 if n is any
non-zero real number. Of course, if n = 0, then x" = 1 ++ x and hence, Dx" = 0 for all x E R. This
means that the result is trivially hue for n = 0. Nevertheless, right now we are in a position to
prove this result for n 1/2. That is,
d
-( & ) =
dx
(t) x-"~, and this we do in the following example.
Example 6 We shall show that the function f defined by f(x) = & ,x > 0 is differentiable. & is defined fol- x < o
- lim
h+O
(x+y)-x
----------
h ( J x + h + hi)
The result of our next example is of great significance. Recall that, in Sec. 2 we mentioned that
there are functions that have no tangents at some point (or equivalently, have no derivative
there). This example will illustrate this fact. Before giving the example we give some definitions.
f ( a + h ) - f (- . ~t
a ) , if . exists, is called the right hand derivative of f(x) at x = a and is written
lim
\I-0 h
as R f (a). Likewise, lim f(a h)- f(a) is called the left hand derivative of flx) at x = a and is
+
II-+O- h
written as L f (a). I f f (a) exists, we must have Rf (a) = L f (a) = f ( a ) (See Unit 2, Theorem 4).
Example 7 The function f : R + R defined by f(x) = 1 x I is not derivable at x = 0 but is derivable
at every other point of its domain.
Fig. 7
IO+hl-IOl
NOW ~f (0) = lim = lim -l h=l- h = l ( s i n c e ( h ) = h f o r h > O )
h+O h h+0+ h h
Ihl -h
And L f (0) = lim
h+O-
1 0 + h ' - I OhI = lim-
h+O h
= -= -l(smce/h/=-hforh<0)
h
Therefore, RF'(0) = 1 # - 1 = L f (0).Hence f (0) does not exist. We shall now show that the
function is derivable at every other point.
First, let x > 0. Choose h so that 1 h 1 < x. This will ensure that x + h > 0 whether h > 0 or h < 0.
Now,
lim
-
f(x + h) f(x)
= lim
Ix+hl-1x1
-
h+O h h+O h
x+h-x
= lim
h+O
- h
- lim hh= 1
- h+O
E E 6) Show that each of the following functions is derivable at x = 2. Find f ( 2 ) in each case.
a)f:R-+Rgivenbyf(x)=x
b) f : R + R given by f(x) = ax + b where a and b are fixed real numbers.
E E7) Find dy/dx, wherever it exists, for each of the following functions: Differentiation
1
a)y=x3b)y=lx+l lc)y= m , x 2-7
So far we have obtained derivatives of certain functions by differentiating from the first
f(x+Sx)-f(x)
principles. That is, each time we have calculated lim
6x+O 6x
t
But the process of taking limits is a very lengthy and complicated affair. In the section we shall
see how to simplify the process of differentiation for some functions.
t
!
the first principles, we will have to do lengthy, complicated calculations. However, a close look
at thls function reveals that it is composed of several functions: constant functions like 2.3
and 1, and power functions like x'. x2and x4.We already know the derivatives of these
i
! functions. Can we use this knowledge to find the derivative of f(x)? In this section we shall
6 state and prove some theorems which help us do just that.
-
Example 8 To differentiate y 7 / x I we apply the scalar multiple rule obtalned in Theoreni 1 at
all polnts where the function 1 x ( is differentlable and get
d d
- (71x1) = 7 - (1x1)
dx dx
t
d d .
But, in view of Example 7: when x = 0, -- (I x I) does not exist. When x > 0, - (1 x 1) = 1 and
dx dx
d
whenxC0, -- ( ) X I ) = - 1 .
dx
d d
Therefore, (71 x 1) =7 - (1 x 1)
dx dx
d
and - (7 1 x I) does not exlst at x = 0.
dx
Note: In example 8 we have used the fact that if f ( x ) does not exist at a point then (cf).(x) also
does not exist at that point.
Try the following exercise now.
E E8) Differentiate the following, uslng Theorem 1.
a) (5!3)x3 b) 8 A
llrn (f + g ) ( x + h ) - ( f +g)(x)
h+O h
- lim
{f(x + h ) + g(x + h) - f(x) - g(x))
- h+O h
Differentiation
-
- lim f(x + h) - f(x) lim g(x + h) - g(x)
h+O h + h+O h
= f (x) + g'(x)
Thus,%e have proved the following :
Theorem 2 The sum of two differentiable functions f and g is a differentiable function and
each of (f +g)' (x) = f (x) + g'(x) + x E R.
The above result can be easily extended to a finite sum, that is,
d cbi2 . .
Now, - (3x2) =3 - (mvlew of the theorem)
dx &
= 3 x2x=6x
d
and - (-9) = 0 (see Example 4).
dx
d
Thus, -(3x2+41x-9)=6x+-41
dx
You are now in a position to solve this exercise.
E E9) Differentiate the following :
a) 5x3+ 2 (b) an+ a,x + a2x2+ ... + anxn,where a, E R for i = 1,2, ..., n.
Elements of Differential 3.4.3
Calculus
Derivative of the Product of Two Functions
Let f and g be two differentiable functions on R. We want to find out whether their product fg
is also differentiable.
- lim l'(x+h)g(x+h)-f(x)p(~)
-
- .- --
(We have added and subtracted f(x) g(; h))
h+O h 7
-
- lirn g(x + h) - g(x)
h+O
We can extend this result to the product of three differentiable funct~ons.This gives us
(fgh)'(x) = f (x)g(x)h(x)+ f(x)gf(x)h(x)+ f(x)g(x)h'(x)
You see, you have to differentiate only one function at a time. This result can also be extended
to the product of any finite number of differentiable functions. Thus, i f f , , ... $, are
differentiable functions, then,
(f,f2,...$,)'( x) = f,'(x)f,(x) ... S1(x)+ f,(x)f,'(x)f,(x) ... $,(x) + ....+ f,(x)f,(x) ...f,,'(x).
Theorem 3 is very useful in simplifying calculations, as you can see in the following example.
-
Example 10 The differentiate f(x) x2(x -i 4), nle take g(x) = x2,h(x) = x + 4. We have,
f(x) = x2(x+ 4) = g(x)h(x)
d d
Now, gf(x) = - (x') = 2x and hf(x) = - (x + 4)
dx dx
- 1
Therefore,
d
--
dx
(x? (X+ 4)) - d
-
dx
(x3 + 4 ~ ' )
d d
= - (x3) + - (4x2) (By Theorem 2)
dx dx
= 3x' + 4(2x)=3x2+8x
This shows that the same function can be differentiated by using different methods. You may
use any method that you find convenient. This observat~onshould also help you to check the
correctness of your result. (We assume that you would not make the same mistake while uslng
tu cr d~ffcrentmethods !1
E E 10)Using Theorem 3, differentiate the following functions. Also, differentiate these Differentiation
- lim
- -
-
- lim g(x) f(x+ h) - f(x) g ( x + h )
h-0 h g (x)g (x + h)
f(x + h) - f(x) g(x + h) -- g!x)
g(x> - - - -f(x)
- .lim - h h
g(x) f f ( x ) - f(x)g'(x)
-
(g(xN2
Thus, we get the following.
Elements o f Differential Theorem 4 The quotient flg of two differentiable functions f and g such that g(x) # 0, for any x
Calculus
in its domain, is again a differentiable function and its derivative at any point x is given by the
following formula :
numerator
-
(denominator) (derivative of numerator) - (numerator) (derivative of denominator)
-
(denominator)
Proof: In the result of Theorem 4, take f to be the constant function 1. Then f (x) = 0 for all x.
d
Example 11 We shall now show that (x") = nxn-I, where n is a negative integer and x # 0.
-
dx
We have already proved this result for a positive integer n in Example 5 .
Consider the function :R \ (0)+ R given by f(x) = x - ~ where
, m E N. Then f(x) = l/x-" V x E R.
Thus, f = l/g, where g(x) = xmfor all x E R, x # 0.g is a differentiable function and g(x) $0 as
x # 0.So, except at x = 0,we find that
-g' (x)
2 (from Corollary 1)
(g(x))
- mx'n-1
-
-
(g' (x) = mxn*' by using Example 5) -
(xmy
Also h'(x) = 2x + 2.
E E 11) Differentiate
a) 2x + 1 1
where a, b, c, d are fmed real numbers
+ bx + cx2 + dx3 '
--- b)
x+5 a
E E 12) Obtain the derivative of l/f(x) by differentiating from fust principles, assuming that
f(x) s0 for any x.
Elements of Differential
2 + 5x + 7x-'
Differentiate f(x) = by three different methods.
x
We have %
:/ 6u = /:To (E 6x)
6u
- lim - x lim 6x
6x+0ax 6x+O
Differentiation
. 6~ SY dy
This implies that i:-yo = lim -
6u-06u
exists and is equal to -
du
N~~~ --6~ = 6~ -
--
6~ , and we know that
' 6u 6u 6x
lirn 6Y = dy
6u = -
lim - du
6x-0 6u du and "-0 6x dx
Hence, we get
Bx-0
6~ = lim
lirn -
6X Sx-0 6U
6Y ' 6x-0
6u
lim -
6x
You might be thinking that there was really no iiecessity of using the chain rule here. We could
simply expand (2x + and then write the derivative. But the situation is not always as simple
as in this example. You would appreciate the power of the chain rule after using it in the next
example.
Example 14 To differentiate (x' + 2x2- l)loO,
let = (x' + 2x2- and let u = (x3+ 2x2- 1). Then
Since dyldu and duldx both exist, and dyldu = 1 0 0 and
uto0 -
~ = 3x2+ 4x, therefore, by chain
~ ~duldx
rule, dyldx = dyldu = dy/du.du/dx.
= 100 u99. (3x' + 4x)
= 100 (x3 .i-2x2- (3x2-1qx)
Can you really attempt to solve the above example without using the chain rule? Don't you
think the rule has simplified matters a lot for you ?
Instead of introducing u explicitly each time while applying the chain rule, after a little practice
you would find it more convenient to do away with u and arrange the working in the above
example as follows :
Elements o f Differential Our next example illustrates that this rule can be extended to three functions.
Calculus
Example 15To differentiate [(5x + 2)2 + 314,we write y = ((5x +2)2 + 3j4, u = (5x + 2)2 + 3 and
v=5x-t2
Then y = u4 and u = v2 + 3. That is, y is a function of u, u is a function of v, and v is function of
x. By extending the chain rule, we get
dy
- dy dy dv
dx du du dx
This gives,
dy/dx = 4u3 . 2 v . 5 = 40 u3v
= 40 [(Sx + 2)2 + 313 ( 5 +~ 2)
This example illllstrates that there m2y be situations m which we may go on using chain rule
for a function of a function ..., and so on. This perhaps justifies the name 'chain' rule. Thus, if
g, . . . g,, and h are functions such that h = (gIog2o. . . og,,) (x), then
h'(x) = g', !g, 0 . . . ogll( 4 ) gt2(gj 0 . . .ogJ (4.. . gtlFI (g,,) (x) . g',, (xi
E E 14) Find dy/dx for each of the following using the chain rule:
Theorem 6 Let f be a function defined on an interval I. Iff is derivable at a point x,E I, then it
is continuous at x,.
Proof:
*
If x x, then we may write f(x) - f(x,) f(x) - f(x,)
= .(x-xd)
X - Xo
Since f a derivable at x,, theiefore. lim %k
exists-
and'l%
equals (f(x,). d
X-:Xo X -
Thtls. taking limits as x -+ xo, we have,
- lim 1
X-+XU
(x - xO)l
=f ( s ) x 0 = 0
lim f(x) - s,so
Therefore .,," lim f(%) = 0
n a t is,
lim
,,Xo f(x) - lim
,,so f(x,) = f(x,)
Fig. 8
It shows the graph of a continuous function which is not derivable at infinitely many points.
Can you mark those infinitely many points at which this function is not derivable ? You can
take your hint from the graph of the functon y = 1 x I.
'The situation is, in fact, much worse. There are functions which are continuous everywhere
but differentlahle nowhere. The discovery came as a surprise to the nineteeth century
mathematicians who believed, till then, that if a function is so bad that it is not derivable at any
point, then it can't be so good that it is continuous at every point. The first such function was
put forth by Weierstrass (although he is said to have attributed the discovery to Riernann) in
m
18 12. He showed that the function f given by f(x) = bn cos (anm),where a is an odd
n-0
integer and b is a positive constant between 0 and 1 such that ab > 1 + 3x12, is a function
which is continuous everywhere, but derivable nowhere. It will not be possible for us to prove
this assertion at this stage.
Sometimes we use Theorem 6 to prove that a given function is continuous at a given point. We
prove tbat its derivative exists at that point. By Theorem 6 then, the community automatically
follows.
. (2x + 3yo
E E 15) Is the function f : [0, 11 +R : f(x) =
9x + 2
at x = 0.1?
co~~tinuous
Elentents of Differential
/ . Calculus
3.6 SUMMARY
We conclude this unit by summarising what we have covered in it.
1. For any function y = f(x)
lirnf(x +ax) - f(x)
SX+O (if it exists) is called the derivative off at x, denoted by f(x).
6x
The function f is the derived function. The derivative f(x) is the slope of the tangent to
the curve y = f(x) at the point (x, y). The derivative also gives the rate of change of the
function with respect to the independent variable.
2. The defivative of a constant function is 0.
(f-g)' = f -g'
(fg)' =!= fg' + g f
g' f - f' g
(fig)' =
g
5. Eve@ derivable function is continuous. The converse is not true, that is, there exist
functions which are continuous but not differentiable.
El) a) zl
dY
x=l
=-114. Equation : (y - 112) = (-114) (x - 2) or x + 4y = 4
= 3. Equation: (y - 1) = 3(x - 1)
x=I
E3) area = A = nr2 . dr
~("-1 ,=,
=4n
Differentiation
f (1 + h) - f(l)
El) average ratc of change off in [ I , 1 + h] =
h
f(l + h) - f(l)
rate of changc. ,f f at x = 1 =
4 i%------ -, where h may be positive or negative.
h
ah
- lim
- - =a.
h+O h
(X + h + 1) - ( X + 1)
- lim -
-
h+O = 1.
h
Thus dyldx exists when x >-I. It does not exist when x < -1. It does not exist when
x.= -1 since R f (-1) = 1 and
Lf (-I)=--1.
) dy -
- - lim
J - Jm
+ ,/G
dx h+O h mi + J K F i
Elements o f Differential
Calculus
1 f(x) - f(x+ h)
= lim -
h+O h f(x) f(x + h)
lim f(x)- --.
f(x
-
+ h)-
-
- h+O h
f(x) lim f(x + h)
h+O
-f '(x)
-
- -
fW2