Unit 3 - Differentiation
Unit 3 - Differentiation
Introduction
We are all familiar with the concept of variation, the mathematical relationship between two quan-
tities that behave in such a way that a change in one of them is accompanied by a change in the
other. To study the rates at which such changes take place, we use a branch of mathematics called
differential calculus. Developed in the 17th century to study motion, differential calculus can
be applied to problems involving such diverse fields as gravitation, heat, light, sound, electricity,
magnetism, hydrology etc. The methods of calculus can be used on many problems that would be
difficult or impossible to solve by algebra and trigonometry alone. In this unit, we introduce the
basic concepts of this powerful branch of mathematics.
Learning Outcomes
By the end of this unit you should be able to:
• Define a derivative;
88
89 M. Maliyoni
Key Terms
Ensure that you understand the key terms or phrases used in this unit as listed below.
f (3) − f (1) = 12 − 4 = 8
Thus, the rate of change refers to how much the function changes with respect to the change in the
independent variable.
Note: Whenever a variable is a function of another variable, changes in the value of one variable
are related to the changes in the value of the other. This concept takes us to the discussion
of a derivative.
3.2.1 Derivative
Definition 3.1 Let f (x) be a function. Then the derivative of the function f (x) with respect
to the variable x is the function f 0 defined by
f (x + h) − f (x)
f 0 (x) = lim , where h = ∆x, (1)
h→0 h
A function f (x) is said to be differentiable at x = a if its derivative exists at that point, and f (x)
is said to be differentiable on an interval if the derivative exists at each point in the interval.
If y = f (x) defines a function, then the derivative of y with respect to x maybe denoted as
dy
f 0 (x) or or y 0
dx
Note that:
dy
(i) f 0 (x), and y 0 is read as “f prime of x”, “dee y by dee x”, and “y prime”, respectively.
dx
(ii) With very rare exceptions f (x + h) 6= f (x) + f (h) and f (x + h) 6= f (x) + h.
∆y
(iii) The derivative is not the quotient but rather is the limit obtained from this quotient as
∆x
∆x approaches zero.
The following theorem indicates that a function must be continuous at each point where its deriva-
tive exists.
Proof.
Definition 2.7 is applied to prove continuity. We need to show that lim f (x0 + h) = f (x0 ) or
h→0
lim [f (x0 + h) − f (x0 )] = 0. Now,
h→0
f (x0 + h) − f (x0 )
lim [f (x0 + h) − f (x0 )] = lim ·h
h→0 h→0 h
f (x0 + h) − f (x0 )
= lim · lim h
h→0 h h→0
0
= f (x0 ) · 0 = 0
Remark: Theorem 3.1 implies that a function cannot be differentiable at a point of discontinuity.
Note: Theorem 3.1 shows that differentiability implies continuity. However, its converse is false
because a function maybe continuous at a point but not differentiable at that point.
In this section, we want to find derivatives of functions from “basics”, that is, by applying Defini-
tion 3.1 (of a derivative). Sometimes this is called “differentiation from first principles”.
Example 3.1 Differentiate the following functions with respect to x from first principles;
Solution
For all the functions, we use Definition 3.1 and then simplify the resulting expression before
evaluating the limit.
Activity 3.1
Differentiate the following functions with respect to x from first principles;
(a) 2 − x (c) x2 + 7x
We want to find the derivative of a constant function. To do this, we consider the theorem below:
Theorem 3.2 The derivative of a constant function is zero (0). That is, if c is any real number
d
and f (x) = c, then f 0 (x) = 0 or (c) = 0.
dx
Proof.
From Definition 3.1 we have
0 f (x + h) − f (x)
f (x) = lim
h→0 h
c−c
= lim
h→0 h
= lim 0
h→0
= 0
Geometrically, this result is obvious. That is, if f (x) = c is a constant function, then the graph of
f is a line that is parallel to the x−axis and thus, its slope or gradient is 0.
Example 3.2
(i) If y = 8, then y 0 = 0
In this section, we consider the derivative of a function that is obtained by adding or subtracting
two functions. Remember that a function is differentiable if it satisfies Definition 3.1.
Proof.
We use the definition of a derivative to prove this theorem.
(g + k)0 = g 0 + k 0
Now, g − k can be written as g − k = g + (−1)k. Then applying Theorems 3.5 and 3.3 it follows
that
d d d
[g(x) − k(x)] = [g(x)] − [k(x)]
dx dx dx
and in function notation we can write this result as
(g − k)0 = g 0 − k 0
Note: This property is not limited to two functions only; it can be applied to more than two
functions.
(x + h)2 − x2 (x + h) − x
f 0 (x) = lim + lim
h→0 h h→0 h
2 2 2
x + 2xh + h − x x+h−x
= lim + lim
h→0 h h→0 h
2xh + h2 h
= lim + lim
h→0 h h→0 h
h(2x + h)
= lim + lim 1
h→0 h h→0
= lim (2x + h) + lim 1
h→0 h→0
= 2x + 1.
One might be asking whether the only way to find derivatives of a power (i.e functions of the form
f (x) = xn ) is from first principles. The answer to the question is NO. Thus, in this section, we
derive a formula that can be used to quickly find the derivative of a power.
Theorem 3.4 (The Power Rule) If n is a positive integer, then for every real value of x
d n
[x ] = nxn−1
dx
Proof.
Let f (x) = xn . Then
f (x + h) − f (x) (x + h)n − xn
f 0 (x) = lim = lim
h→0 h h→0 h
We note that every term but the first in (2) has an h, and thus every term but the first approaches
zero as h → 0. Therefore,
f 0 (x) = nxn−1
Remark: The derivative of x to a positive integer power can be found by taking the power and
multiply it by x raised to the power minus one.
√
(a) y = 2x3 − 4x (b) y = x
Solution
In this section, we want to find the derivative of the product of a constant and a function.
Proof.
d c f (x + h) − c f (x)
[c f (x)] = lim
dx h→0
h
f (x + h) − f (x)
= lim c
h→0 h
f (x + h) − f (x)
= c lim using properties of limits
h→0 h
d
= c [f (x)]
dx
(cf )0 = cf 0
Solution
Applying Theorems 3.4 and 3.5 yield
d d
[8x2 ] = 8 [x2 ] = 8 (2x) = 16x
dx dx
Activity 3.2
Find f 0 (x) for the following functions;
In this section, we look at techniques that are used to differentiate product, quotient and composi-
tion of functions.
If f (x) = g(x)k(x) is f 0 (x) = g 0 (x)k 0 (x)? We will answer this question using the functions
below.
Now g 0 (x) = 3x2 and k 0 (x) = 2x ⇒ g 0 (x)k 0 (x) = 3x2 .2x = 6x3 .
Theorem 3.6 (The Product Rule) If g and k are differentiable at x, then so is the product
g · k, and
d d d
[g(x)k(x)] = g(x) [k(x)] + k(x) [g(x)]
dx dx dx
Proof.
We use differentiation from first principles
0
z }| {
d g(x + h)k(x + h) −g(x + h)k(x) + g(x + h)k(x) −g(x)k(x)
[g(x)k(x)] = lim
dx h→0 h
g(x + h)[k(x + h) − k(x)] + k(x)[g(x + h) − g(x)]
= lim
h→0
h
k(x + h) − k(x) g(x + h) − g(x)
= lim g(x + h) · + k(x) ·
h→0 h h
k(x + h) − k(x) g(x + h) − g(x)
= lim g(x + h) · lim + lim k(x) · lim
h→0 h→0 h h→0 h→0 h
d d
= lim g(x + h) [k(x)] + lim k(x) [g(x)] (3)
h→0 dx h→0 dx
because g is differentiable at x and by Theorem 3.1 it is continuous at x. Substituting (4) and (5)
into (3) yields
d d
g(x) [k(x)] + k(x) [g(x)]
dx dx
(g · k)0 = g · k 0 + k · g 0
Remark: The derivative of a product of two differentiable functions is the first function times
the derivative of the second function plus the second function times the derivative of the first
function.
√
Example 3.6 Let f (x) = (x2 − 3) x. Find f 0 (x).
Solution
We apply the product rule.
Let u = x2 − 3 =⇒ u0 = 2x
√ 1
and v = x =⇒ v 0 = √
2 x
√ 1
∴ f 0 (x) = u0 v + v 0 u = 2x x + √ (x2 − 3).
2 x
Theorem 3.7 (The Quotient Rule) Suppose g and k are differentiable at x. If k(x) 6= 0,
then g/k is differentiable at x and
Proof.
We apply differentiation from first principles and write the fractions as a single fraction.
d g(x) 1 g(x + h) g(x)
= lim −
dx k(x) h→0 h k(x + h) k(x)
k(x)g(x + h) − g(x)k(x + h)
= lim
h→0 hk(x + h)k(x)
1 k(x)[g(x + h) − g(x)] − g(x)[k(x + h) − k(x)]
= lim
h→0 k(x + h)k(x) h
1 k(x)[g(x + h) − g(x)] g(x)[k(x + h) − k(x)]
= lim −
h→0 k(x + h)k(x) h h
k(x)[g(x + h) − g(x)] g(x)[k(x + h) − k(x)]
lim − lim
= h→0 h h→0 h
lim k(x + h) · lim k(x)
h→0 h→0
g(x + h) − g(x) k(x + h) − k(x)
lim k(x) lim − lim g(x) lim
= h→0 h→0 h h→0 h→0 h
lim k(x + h) · lim k(x)
h→0 h→0
lim k(x) · g 0 (x) − lim g(x) · k 0 (x)
h→0 h→0
= (6)
lim k(x + h) · lim k(x)
h→0 h→0
g 0 k · g0 − g · k0
=
k k2
g 0 g0
Note: It is not generally true that = ; that is, the derivative of a quotient is not generally
k k0
the quotient of the derivatives.
x3 dy
Example 3.7 Let y = . Find .
1−x dx
Solution
We apply the quotient rule.
Let u = x3 ⇒ u0 = 3x2
and v =1−x ⇒ v 0 = −1
d 0
−g 0
d 1 [g(x)] 1
= − dx or = 2
dx g(x) [g(x)]2 g g
1
Example 3.8 If y = , find y 0 .
2x − 1
Solution
Let u = 2x − 1 =⇒ u0 = 2.
u0 −2
y0 = − 2
= .
u (2x − 1)2
Activity 3.3
dy
Find for the following functions;
dx
√ 3
(a) (3x2 − 4) 3 x (c)
2x3−6
x−1
(b) (d) (2x4 + 3x − 2)(5 − x2 )
3−x
So far we have been able to differentiate only functions of the form axn and combinations of
functions formed by addition, subtraction, multiplication and division. In particular, composition
of functions are often encountered.
dy dy du
= ×
dx du dx
Solution
Let u = 2x + 4 ⇒ y = u8 .
Hence,
dy du
= 8u7 and = 2.
du dx
Thus,
dy dy du
= × = 8u7 × 2
dx du dx
But u = 2x + 4.
dy
∴ = 16(2x + 4)7 .
dx
√
(b) Let u = x2 − 3 ⇒ y= u.
Hence,
dy 1 du
= √ and = 2x.
du 2 u dx
dy dy du 1 x x
∴ = × = √ × 2x = √ = √
dx du dx 2 u u 2
x −3
Activity 3.4
Find y 0 (x) for the following functions;
In this section, you will learn about the derivatives of the six trigonometric functions namely; sine,
cosine, tangent, secant, cosecant and cotangent.
sin h cos h − 1
We begin by exploring two important trigonometric limits which are lim and lim .
h→0 h h→0 h
sin h cos h − 1
Consider the graphs of the functions f (x) = and f (x) = below.
h h
(a) (b)
Figure 3.2: The graphs of y = (sin h)/h and y = (cos h − 1)/h, respectively
and
cos h − 1
lim = 0, (10)
h→0 h
respectively.
dy
Let y = sin x. We want to find .
dx
By definition of a derivative
d sin(x + h) − sin x
(sin x) = lim .
dx h→0 h
Thus,
d sin x cos h + sin h cos x − sin x
(sin x) = lim
dx h→0 h
sin x (cos h − 1) + sin h cos x
= lim f actor out sin x
h→0 h
0 1
z }| { z }| {
cos h − 1 sin h
= sin x lim + cos x lim
h→0 h h→0 h
= sin x × 0 + cos x × 1
= cos x
Note: The angles are in radians. Also, the derivative is valid for any composition of functions, and
not just for powers of functions. The chain rule also applies here.
d du
(sin u) = cos u.
dx dx
dy
Let y = cos x. We want to find .
dx
From the definition of a derivative
d cos(x + h) − cos x
(cos x) = lim .
dx h→0 h
d du
(cos u) = − sin u.
dx dx
Solution
Let u = x2 ⇒ u0 = 2x
and v = sin x ⇒ v 0 = cos x
∴ y 0 = u0 v + v 0 u = 2x sin x + x2 cos x.
Let u = x − 1 ⇒ u0 = 1
and v = sin 2x ⇒ v 0 = 2 cos 2x
Thus,
u0 v − v 0 u
y0 =
v2
sin 2x − 2(x − 1) cos 2x
=
(sin 2x)2
Activity 3.5
Find the derivative with respect to x for the following functions;
We now use the derivatives of sine and cosine functions to find the derivatives of tangent, secant,
cosecant and cotangent functions.
sin x
Recall that tan x = . Thus,
cos x
d d sin x
(tan x) = .
dx dx cos x
Thus,
u0 v − v 0 u
d d sin x
(tan x) = =
dx dx cos x v2
cos x cos x − (sin x)(− sin x)
=
(cos x)2
cos2 x + sin2 x
=
cos2 x
1
=
cos2 x
= sec2 x.
d du
(tan u) = sec2 u.
dx dx
1
Recall that cot x = .
tan x
Trigonometry and Elementary Calculus
111 M. Maliyoni
Now, letting g = tan x and applying the reciprocal rule, we have
g0
d d 1
(cot x) = = − 2 where g = tan x
dx dx tan x g
− sec2 x
=
tan2 x
1
= − sec2 x ×
tan2 x
1 cos2 x 1
= − 2 × 2 =− 2
cos x sin x sin x
= − csc2 x.
d du
(cot u) = − csc2 u.
dx dx
1
Recall that sec x = .
cos x
Now, if we let g = cos x and apply the reciprocal rule, we have
g0
d d 1
(sec x) = = − 2 where g = cos x
dx dx cos x g
−(− sin x) sin x
= 2
=
cos x cos2 x
sin x 1
= ×
cos x cos x
= tan x sec x.
d du
(sec u) = tan u sec u.
dx dx
1
Recall that csc x = .
sin x
Trigonometry and Elementary Calculus
112 M. Maliyoni
Now, if we let g = sin x and apply the reciprocal rule, we have
g0
d d 1
(csc x) = = − 2 where g = sin x
dx dx sin x g
− cos x
=
sin2 x
cos x 1
= − ×
sin x sin x
= − cot x csc x.
d du
(csc u) = − cot u csc u.
dx dx
Note: The derivatives in Sections 3.10.5, 3.10.6 and 3.10.7 can also be found using the quotient
rule.
All the derivatives of the six trigonometric functions can be generalised using the chain rule and
constant k as shown in Table 3.1.
f (x) f 0 (x)
sin kx k cos kx
cos kx −k sin kx
tan kx k sec2 kx
sec kx k tan kx sec kx
cot kx −k csc2 kx
csc kx −k csc kx cot kx
√
(b) Let u = x + 2 ⇒ y = csc u.
dy du 1
Thus, = − csc u cot u and = 12 (x + 2)− 2 .
du dx
dy dy du
∴ = ×
dx du dx
1
= − csc u cot u × √
2 x+2
√ √
csc x + 2 cot x + 2
= − √ .
2 x+2
Let u = tan3 x = [tan x]3 ⇒ u0 = 3 tan2 x sec2 x using the chain rule and v =
2 + cos x ⇒ v 0 = − sin x.
dy u0 v − v 0 u
∴ =
dx v2
3 tan2 x sec2 x (2 + cos x) − (− sin x) tan3 x
=
(2 + cos x)2
3 tan2 x sec2 x (2 + cos x) + sin x tan3 x
= .
(2 + cos x)2
Activity 3.6 .
1. Differentiate the following functions with respect to x using any correct method;
√ sin 4x
(a) 3 1 + tan x (c) (e) tan2 x − cot 4x
1 − cos x
sec x − 4 h cos x i2
(b) (d) (f) sec 5x tan 2x
cot x csc 2x
cos x
2. Suppose f ( π3 ) = 4 and f 0 ( π3 ) = −2. Let g(x) = f (x) sin x and h(x) = . Find
f (x)
(a) g 0 ( π3 ). (b) h0 (π/3).
Thus far, we have looked at the derivatives of functions of which all of them were of the form
y = f (x). Unfortunately, not all the functions that we are going to look at and seek their derivatives
will be of this form.
(a) z = xy (b) z = x2 y
dz dy
(a) = x + y = xy 0 + y.
dx dx
dz dy
(b) = 2xy + x2 = 2xy + x2 y 0 .
dx dx
Up to this point, functions have been stated explicitly. Thus, we define the two terms which are
very critical to this section.
If the dependent variable is not expressed solely in terms of the independent variable, then the
function is said to be an implicit function.
Solution
There are actually two solution methods for this problem and we will look at them both.
1
1. xy = 1 ⇒ y= = x−1 .
x
1
∴ y 0 = −x−1−1 = −x−2 = − .
x2
2. We leave the function in the form it is given and work with it in that form.
Making y the subject of formula in the first solution means that y is a function of x. Thus,
solving for y gives y = y(x).
xy = xy(x) = 1 (11)
We have seen that both solution techniques have given us the same derivative. The process that
we used in the second solution technique is called implicit differentiation and that is the subject
of this section. Below is a summary for the procedure for implicit differentiation.
Step 1. Differentiate both sides of the defining equation with respect to x. Use the chain rule for
terms containing y. That is, differentiate with respect to y and multiply by y 0 .
(b) x3 y 5 + 3x = cos y
Solution
In all these functions, we will differentiate both sides of the equation with respect to x. All terms
containing y will be differentiated with respect to y and then multiplied by y 0 .
d 2 d d d
(a) (x ) + (xy) + (y 3 ) = (7)
dx dx dx dx
⇒ 2x + xy 0 + y(1) + 3y 2 y 0 = 0 applying the product rule on xy
2x + xy 0 + y + 3y 2 y 0 = 0
xy 0 + 3y 2 y 0 = −2x − y
y 0 (x + 3y 2 ) = −2x − y factoring out y 0
−2x − y
∴ y0 = making y 0 the subject of formula
x + 3y 2
(c) We apply the chain rule on the left hand side of the equation and proceed as follows;
4 (2x + 1)3 × 2 = y 4 + 4xy 3 y 0 + cos x applying the chain rule on (2x + 1)4
8 (2x + 1)3 = y 4 + 4xy 3 y 0 + cos x
⇒ 4xy 3 y 0 = 8 (2x + 1)3 − y 4 − cos x
8 (2x + 1)3 − y 4 − cos x
∴ y0 =
4xy 3
Activity 3.7
dy
Use implicit differentiation to find for each of the following functions;
dx
√ √
(a) x3 − xy = x + y (c) x + y = 1 (e) sec x2 + tan y = 2x
Consider the function f (x) = 2x3 − x2 + 5x + 2. The derivative of this function is f 0 (x) =
6x2 − 2x + 5.
Likewise, the third derivative of f (x) is f 000 (x) which is read as “f triple prime of x” and is found
by differentiating the second derivative of f (x). Thus, f 000 (x) = 12.
Now, any derivative beyond the the first derivative can be referred to as a higher order derivative.
Thus, the second, third, fourth etc are higher order derivatives.
Let f (x) be a function in terms of x. Table 3.2 shows different notations for higher order deriva-
tives.
Derivative
2nd 3rd 4th nth Notation
f 00 (x) f 000 (x) (4)
f (x) (n)
f (x) Common
d2 (x) d3 (x) d4 (x) dn (x) Leibniz
d2 d3 d4 dn
[f (x)] [f (x)] [f (x)] [f (x)] Another form of Leibniz
dx2 dx3 dx4 dxn
D2 f D3 f D f4
Dn f Euler’s
Note
• f n (x) = [f (x)]n
Solution
We repeatedly differentiate v(w) until we find v (4) . Thus
v 0 = 15w4 − 12w2 − 1
v 00 = 60w3 − 24w we differentiate v 0 with respect to w
v 000 = 180w2 − 24 we differentiate v 00 with respect to w
v (4) = 360w we differentiate v 000 with respect to w
Activity 3.8 .
2. Let y = A cos 2x + B sin 3x, where A and B are constants. Show that
y (4) + 13y 00 + 36y = 0.
Recall
The natural logarithm is the logarithm to the base e, where e is an irrational constant and is
approximately equal to 2.71828182845905 · · · .
The natural logarithm function (ln x) and the natural exponential function (ex ) are inverses of each
other, leading to the following identities:
Note: All the rules/laws of logarithms and exponents apply to natural logarithms and natural
exponential functions, respectively as well.
Definition 3.3 The following are some of the definitions of e (listed without proof).
n
1
(i) e = lim 1+ .
n→∞ n
1
(ii) e = lim (1 + n) n .
n→0
eh − 1
(iii) e is the unique positive number for which lim = 1.
h→0 h
∞
X 1
(iv) e = .
n=0
n!
e(x+h) − ex
f 0 (x) = lim
h→0 h
ex · eh − ex
= lim
h→0 h
ex (eh − 1)
= lim factoring out ex
h→0 h
1
z }| {
x eh − 1
= e lim
h→0 h
= e · 1 = ex
x
d u du
[e ] = eu ×
dx dx
Let u = ax ⇒ y = eu .
dy du
Now, = eu and = a.
du dx
Hence,
dy dy du
= ×
dx du dx
= eu × a
= aeax
f 0 (x) = ax ln a (13)
(Verify result (13) using differentiation from first principles as we did with the derivative of ex ).
We note from (13) that if u is a differentiable function of x, then using the chain rule yields
d u du
[a ] = au × ln a ×
dx dx
Solution
We use an appropriate technique of differentiation. In some cases, we will need to apply atleast
two techniques of differentiation.
d 4x
(a) [e ] = 4 e4x .
dx
d x
(b) [5 ] = 5x ln 5.
dx
(c) We apply the chain rule.
Let u = 3x + x2 ⇒ y = eu .
dy du
Then, = eu and = 3 + 2x.
du dx
dy dy du 2
∴ = × = eu × (3 + 2x) = (3 + 2x)e3x+x .
dx du dx
(d) Here, we apply both the product rule and chain rule and proceed as follows:
Let u = x2 + 1 ⇒ u0 = 2x
√ 1 √
and v = e x
⇒ v 0 = √ e x . Thus
2 x
y 0 = u0 v + v 0 u
√ x2 + 1 √
= 2x e x + √ e x
2 x
x2 + 1
√
x
= e 2x + √ .
2 x
dy
= af (x) · ln a · f 0 (x)
dx
dy
= ef (x) · ln e · f 0 (x)
dx
= ef (x) · f 0 (x) since ln e = loge e = 1
ln (x + h) − ln x
f 0 (x) = lim
h→0
x+h
h
ln x
= lim from rules of logarithms
h→0 h
1 h
= lim · ln 1 +
h→0 h x
h
Now, let n = =⇒ h = nx and when h → 0 =⇒ n → 0, then
x
d 1
(ln x) = lim ln(1 + n)
dx n→0 nx
1 1
= lim · ln(1 + n)
n→0 x n
1 1
= lim ln(1 + n)
x n→0 n
1 1
= lim ln(1 + n) n from rules of logarithms
x n→0
e
zh }| i{
1 1
= ln lim (1 + n) n
x n→0
1
= · ln e
x
1 1
= .1 = , since ln e = loge e = 1.
x x
Alternatively we could have obtained the same derivative by the following method:
dy
Given that y = ln x, we want to find .
dx
Now, if y = ln x, x > 0 then
y = loge x =⇒ ey = x (14)
d 1 du d 1 du
[ln u] = · , u > 0 or [ln |u|] = ·
dx u dx dx u dx
Now, we want to find f 0 (x) from first principles given that f (x) = loga x. Thus
loga (x + h) − loga x
f 0 (x) = lim
h→0
x+h
h
loga x
= lim from rules of logarithms
h→0 h
1 h
= lim · loga 1 +
h→0 h x
h
Now, let n = =⇒ h = nx and when h → 0 =⇒ n → 0, then
x
d 1
(loga x) = lim loga (1 + n)
dx n→0 nx
1 1
= lim · loga (1 + n)
n→0 x n
1 1
= lim loga (1 + n)
x n→0 n
1 1
= lim loga (1 + n) n from rules of logarithms
x n→0
e
zh }| i{
1 1
= loga lim (1 + n) n
x n→0
1
= · loga e
x
1 loge e 1 ln e
= × = × using change of base formula
x loge a x ln a
1 1 1
= × = . (15)
x ln a x ln a
The result in (15) can also be obtained by using the change of base formula and the derivative of
Recall
Theorem 3.8 (Change of Base for Logarithm) If x is any positive number and if a and b
are positive real numbers, a 6= 1, b 6= 1, then
logb x
loga x = (16)
logb a
Now,
d d loge x
(loga x) = Applying Theorem 3.8
dx dx loge a
d ln x
=
dx ln a
1 d
= ln x
ln a dx
1
= .
x ln a
dy
Example 3.15 Find for the following functions;
dx
(a) y = ln(x2 − 6) (b) y = ln |4 + 5x − 2x3 |
Solution
We use an appropriate technique of differentiation. In some cases, we will need to apply atleast
two techniques of differentiation.
Let u = x2 − 6 ⇒ y = ln u.
dy 1 du
Now, = and = 2x.
du u dx
dy dy du 1 2x
∴ = × = 2x × = 2 .
dx du dx u x −6
dy f 0 (x)
=
dx f (x)
Activity 3.9
Find the derivative with respect to x for the following functions;
(a) (e−3x − 2) cos 2x (c) e4x − tan x (e) 2e5x − 5 cos 7x + ln |3x|
3
sin 3x + 5x
2x
e −4 x2 + 1
(b) (d) (f) ln
1 − ln 2x log3 x − x2 1−x
Differentiation is one of the most used branches of mathematics in our daily lives as such it has
a wide range of applications. Thus, in this section, we look at some of the many areas or fields
where differentiation can be applied. It is not possible for us to look at all areas as such, we ask
the reader to put effort and find out other areas that differentiation is/can be applied.
Definition 3.4 A tangent is a straight line or a plane that touches a curve or a curved surface
at a point but does not intersect it at that point.
n
t
Recall that, perpendicular lines have slopes that are negative reciprocals of each other. In other
words, the product of their slopes/gradients is −1. Thus, if two straight lines are perpendicular
and one has a gradient of m1 , then the gradient of the other line is − m11 .
For instance, the straight line given by the equation y = 2x − 5 has a gradient of 2. Thus, a
perpendicular line to y = 2x − 5 will have a gradient − 12 .
You may wish to note that tangents and normals are most often applied in technological problems.
Now, given that y = f (x), then f 0 (x) implies that the gradient of the function y = f (x) can be
evaluated at any point, x, provided this does not entail division by zero. In other words, the value
of f 0 (x) at a point x gives the gradient of the function/curve at x.
In order to find the equation of a tangent and normal to a curve y = f (x) at x = x1 , the
following steps are followed;
Step 4. Use the point-slope formula y = m(x − x1 ) + y1 to find the equation of the line y =
mx + c.
Example 3.16 Find the equation of the tangent and normal to the curve y = x2 − 5x + 6 at
x = 2.
Solution
Firstly, we find y 0 . Thus, y 0 = 2x − 5.
The y − value of the point at which the tangent touches the curve is
y1 = y(2) = 22 − 5(2) + 6 = 4 − 10 + 6 = 0.
Thus, the tangent is a line through the point (2, 0) with slope −1.
We now substitute the values x = 2 and y = 0 in the point-slope formula to find the equation of
the tangent. Thus,
y = m(x − x1 ) + y1 = −1(x − 2) + 0 = −x + 2.
y = m(x − x1 ) + y1 = 1(x − 2) + 0 ⇒ y = x − 2.
Solution
To show whether the point (−2, 2) is on the curve x2 + y 2 = 8, we substitute x = −2 and y = 2
on the left-hand side of the equation and see if it is equal to the right-hand side. Thus
2x + 2yy 0 = 0
y = m(x − x1 ) + y1 = x − (−2) + 2 ⇒ y = x + 4.
Note: A value of x for which the function f (x) = 0 is called a zero/root of f (x).
Activity 3.10
(a) Find the points on the curve given by y = x3 − 6x2 + x + 3 where the tangents are parallel
to the line y = x + 5.
(b) Find the equation of the tangent line and normal to the curve x3 − (2x − 1)4 = xy at the point
(1, 0).
(c) Find the equation of the tangent and normal to the curve x3 − 3x2 + x − 1 at the point x = 3.
(d) Find the equation of each tangent of the function x3 + x2 + x + 1 which is perpendicular to
the line 2y + x + 5 = 0.
In sketching the graph of a differentiable function it is important to know where the graph increases
(i.e., rises from left to right) and where it decreases (i.e., falls from left to right) over an interval. In
this section we use derivatives to determine where a graph is increasing and where it is decreasing.
We also discuss critical points and their nature (local or relative extrema). A function that is
increasing or decreasing on an interval is said to be monotonic on the interval.
From figure 3.4, we observe that the curve increases until the point A is reached. At point A, the
curve begins to decrease until point B is reached. From point B on, the curve starts to increase
again. Towards A the gradient/slope of the tangent at each and every point is positive, that is,
greater than zero. On the other hand, the gradient/slope of the tangent at each and every point
between points A and B is negative, that is, less than zero. As point A is approached, the slopes
of tangents become less steep and decrease. At A, the gradient/slope of the line tangent is 0.
Immediately to the right of A, the slopes of the tangents are negative and so on. Similarly, the
gradient of the line tangent at point B is 0. Recall that, the slope of a tangent at any point on the
curve is given by the value of the derivative at that point. Clearly, this means that the derivative of
a function can tell us whether a function is decreasing or not. We summarise this concept in the
following theorem.
Theorem 3.9 Suppose that f is continuous on (a, b) and differentiable on (a, b).
(i) If f 0 (x) > 0 for all x ∈ (a, b), then f is increasing on (a, b).
(ii) If f 0 (x) < 0 for all x ∈ (a, b), then f is decreasing on (a, b).
Proof.
Let x1 and x2 be any two points in (a, b) with x1 < x2 . Applying the mean value theorem to f
on (x1 , x2 ) leads to
f (x2 ) − f (x1 ) = f 0 (c)(x2 − x1 ) (17)
The sign of the right-hand side of equation (17) is the same as the sign of f 0 (c) since x2 − x1 is
positive. Hence, f (x2 ) > f (x1 ) if f 0 is positive on (a, b) and f (x2 ) < f (x1 ) if f 0 is negative on
(a, b).
At points A and B in Figure 3.4 the gradient of the tangent is 0, that is, f 0 (x) = 0. Thus, point A
is called local/relative maximum and point B is called a local/relative minimum. These points
are neither the highest points nor the lowest points on the curve/graph since the curve keeps going
higher and higher to the right and also lower and lower to the left. The local/relative extrema
refers to either the local maximum or local minimum. The x − values for which the derivative is
zero or does not exist are called critical values/numbers. Thus, the points on the graph associated
with critical numbers are called critical points or turning points of the curve.
Definition 3.6 .
(b) A point (x0 , y0 ) = (x0 , f (x0 )) for which f 0 (x0 ) = 0 is called a critical point.
The following is a test for determining local extrema for critical points of a fucntion.
(iii) if f 0 does not change sign at c (that is, f 0 is positive on both sides of c or negative on both
sides of c), then f has no local extremum at c.
Example 3.18 Find the critical points of f (x) = x3 − 12x − 5 and identify the intervals on
which f is increasing and on which f is decreasing.
Solution
We find the first derivative of f with respect to x. Thus,
f 0 (x) = 3x2 − 12
Thus, the critical points are (−2, 11) and (2, −21).
Now, these critical points subdivide the domain of f into nonoverlapping open intervals (−∞, −2),
(−2, 2), and (2, ∞) on which f 0 (x) is either positive or negative. To determine the sign of f 0 (x),
we evaluate f 0 (x) at a convenient point in each subinterval. Then, we apply Theorem 3.9 to
determine the interval on which the function is either increasing or decreasing. The results are
summarized in the table below.
The nature of the critical points can also be determined using the second derivative test.
(i) f 00 (x0 ) > 0 and f 0 (x0 ) = 0, then f has a minimum at x0 . See Figure 3.7(a).
(ii) f 00 (x0 ) < 0 and f 0 (x0 ) = 0, then f has a maximum at x0 . See Figure 3.7(b).
0
Note: If f 00 (x0 ) = 0, where f (x0 ) = 0, then the point is neither a maximum nor a minimum. In
fact, this point is called a point of inflection. This is the point where the function changes its sign.
(a) (b)
Figure 3.7: Second derivative test and nature of critical points
Example 3.19 Determine the nature of the critical points of the function given by f (x) =
27x − x3 .
Solution
We first of all compute the derivative of f (x). Thus
f 0 (x) = 27 − 3x2 .
f 0 (x) = 0 ⇒ 27 − 3x2 = 0,
Now, we find the critical point(s) of the function by evaluating the function f (x) at the critical
values. Thus,
Hence, the critical points of the function are (3, 54) and (−3, −54).
We now use the second derivative test to determine the nature of the critical points. Hence, we
f 00 (x) = −6x.
Hence,
f 00 (3) = −6(3) = −18 < 0 =⇒ (3, 54) is a local maximum.
and
f 00 (−3) = −6(−3) = 18 > 0 =⇒ (−3, −54) is a local minimum.
In this section we use derivatives as discussed in Section 3.14.2 to sketch graphs of different
functions.
Example 3.20 Sketch the graph of the function f (x) = 27x − x3 in Example 3.19.
Solution
We have already seen that f (x) has two critical points, that is, (3, 54) which is a local maximum
and (−3, −54) which is a local minimum.
Also, we see that when x = 0, y = f (0) = 0. That is, the graph of f (x) passes through the
origin, (0, 0).
We now plot the graph that passes through the origin with turning points at (3, 54) and (−3, −54).
The graph of this function is plotted in figure 3.8.
x2
Example 3.21 Sketch the graph of y = .
x+1
Solution
We first find y 0 using the quotient rule.
Now, let u = x2 ⇒ u0 = 2x
and v = x + 1 ⇒ v 0 = 1. Hence
u0 v − uv 0
y0 =
v2
2x(x + 1) − x2 x2 + 2x
= =
(x + 1)2 (x + 1)2
x2 + 2x
y0 = 2
= 0 ⇒ x2 + 2x = x(x + 2) = 0
(x + 1)
Now, when
02 0
x = 0; y= = = 0.
0+1 1
and when
(−2)2 4
x = −2; y= = = −4.
−2 + 1 −1
So the critical points are (0, 0) and (−2, −4).
Now, let u = x2 + 2x ⇒ u0 = 2x + 2
and v = (x + 1)2 ⇒ v 0 = 2(x + 1) = 2x + 2. Hence
u0 v − uv 0
y 00 =
v2
(2x + 2)(x + 1)2 − (x2 + 2x)(2x + 2)
=
[(x + 1)2 ]2
(2x + 2)[(x + 1)2 − (x2 + 2x)]
=
(x + 1)4
2(x + 1)(x2 + 2x + 1 − x2 − 2x)
=
(x + 1)4
2(x + 1)(1)
=
(x + 1)4
2
= .
(x + 1)3
Now,
2 2 2
y 00 (0) = 3
= 3 = =2>0
(0 + 1) 1 1
and hence (0, 0) is a local minimum point.
Similarly,
2 2 2
y 00 (−2) = 3
= 3
= = −2 < 0
(−2 + 1) (−1) −1
and hence (−2, −4) is a local maximum point.
We also note that at x = −1, the function is undefined, hence, x = −1 is a vertical asymptote.
The graph is plotted in figure 3.9.
x2
Figure 3.9: The graph of y =
x+1
Activity 3.11
(a) Find the critical points (or turning points) of the function.
(b) Determine the nature of the critical points found in (1a).
(c) Use the information in (1b) to sketch the graph of f (x).
2. Suppose (−1, 3) is a critical point for the curve f (x) = mx3 + 3x2 − 6x − 2.
In this section, we look at how differentiation can be used to solve some applied optimization
problems.
Example 3.22 A farmer has 100m of fencing. He wishes to to fence a rectangular field one
side of which need no fencing as it is formed by a straight river. What is the greatest area he can
enclose?
Solution
We sketch the rectangular field in question. See figure 3.10
Now, let the length of the field be L and the width be W , then the fencing available will be used
to cover three sides of the rectangular field. Thus
We test whether this critical value will give a maximum, minimum or neither.
Thus
A00 (W ) = −4 < 0
Example 3.22 illustrates the following five-step procedure that can be used for solving many ap-
plied maximum and minimum problems.
Step 1. Draw an appropriate figure and label the quantities relevant to the problem.
Step 3. Using the conditions stated in the problem to eliminate variables, express the quantity to
be maximized or minimized as a function of one variable.
Step 4. Find the interval of possible values for this variable from the physical restrictions in the
problem.
Step 5. If applicable, use the techniques covered in section 3.14.2 to obtain the maximum or
minimum.
However, not all problems follow the steps outlined above although many of them do.
Example 3.23 If the number of tourists taking a bus tour of a city is exactly 30, a company
charges $20 per person. For each additional person exceeding 30, the charge per person is reduced
by $0.50. Use derivatives to determine the number of tourists a bus should carry in order to
maximise the company’s revenue per bus.
Solution
Let x be the number of additional people.
y 0 = 5 − x.
leads to
5−x=0 =⇒ x = 5.
y 00 = −1.
Now, at x = 5, we obtain
y 00 (5) = −1 < 0
Therefore, the bus should carry 30 + x = 30 + 5 = 35 tourists in order to maximise the com-
pany’s revenue.
Activity 3.12
(a) A farmer has 2000m of fencing and wants to fence off a rectangular field. What is the largest
fenced area of field the farmer can get?
(b) A cylindrical tin, including a top and a bottom is to be made from 10m2 of metal. What will
be its radius if it is to be made to have the greatest possible volume?
Summary
In this Unit, we have looked at the concept of a derivative of a function (in terms of a limit) and a
differentiable function. We have seen how a derivative of a function can be found from first prin-
ciples, that is, using the definition of a limit. The Unit also covered techniques of differentiation
as well as derivatives of different types of functions, for example, exponential, logarithmic, and
Anton, H. (1992). Calculus with Analytic Geometry. John Wiley, New York.
Gersting, J.L. (2012). Technical Calculus with Analytic Geometry. Dover Publications Inc, New
York.
Larson, R. & Edwards, B.H. (2013). Calculus, 10th edition. Brooks/Cole, Boston.
Stewart, J. (2015). Calculus, 8th edition. Brooks Cole, Salt Lake City.
Weir, M.D. & Hass, J. (2010). Thomas’ Calculus, 12th edition. Pearson, Boston.
Zill, D.G. & Wright, W.S. (2011). Calculus: Early Transcendentals, 4th edition. Jones and
Bartlett Publishers LLC, Sudbury.
Unit Test
1 √
(a) f (x) = x + 1 (b) f (x) = (c) f (x) = x
x
dy
2. Find for the following functions using any correct method;
dx
g(x)
3. Suppose g(x) and k(x) are differentiable functions of x. If f (x) = and k(x) 6= 0,
k(x)
g 0 (x)k(x) − k 0 (x)g(x)
use the quotient rule to show that f 0 (x) = .
[k(x)]2
4. Use implicit differentiation to find y 0 for the following curves.
(a) esin x = ln y
(d) Use the results in 8a, 8b, and 8c to sketch the graph of f .
9. There are 50 mango trees in an orchard. Each tree produces 800 mangoes. For each addi-
tional tree planted in the orchard, the output per tree drops by 10 mangoes. Use derivatives
to find the number of mango trees that should be added to the existing orchard in order to
maximize the total output of the trees. [7 Marks]
ACTIVITY 3.1
ACTIVITY 3.2
ACTIVITY 3.3
√ 3x2 − 4 18x2
(a) 6x 3 x + √ (c) −
3
3 x2 (2x3 − 6)2
2
(b) (d) (8x3 + 3)(5 − x2 ) − 2x(2x4 + 3x − 2)
(3 − x)2
ACTIVITY 3.4
√ 3
(a) 40(3x2 − x)39 (6x − 1) −2 4 x2 − 1 (x2 − 1) 4 − x(1 − x)
(c) 3 √
2(x2 − 1) 4 x2 − 1
48x2 7(x2 + 1)6 (2x2 − 2x − 2)
(b) − (d)
(4x3 − 2)5 (2x − 1)8
ACTIVITY 3.6
ACTIVITY 3.7
1 − 3x2 + y −7y
(a) − (d)
x+1 10y(y 2 + 4)4 + 7x
−192x2 + 98x − 12 − y 2 2 − 2x sec x2 tan x2
(b) (e)
2xy sec2 y
√ √ √
y y x 2 sin 2x − 3x2 sin y
(c) − √ or − (f)
x x x3 cos y − 6y
ACTIVITY 3.9
1
(e) 10e5x + 35 sin 7x +
x
−x2 + 2x + 1
(f)
(x2 + 1)(x − 1)
ACTIVITY 3.10
(c) y-intercept: y = 7