Maths 102
Maths 102
MTH 1302
Differential and Integral Calculus
LECTURE NOTE
Course Contents:
– Function of a function
– Inverse of a functions
– Domain and range of functions
– Functions and algebraic operations
– Even and odd functions
– Graph of real functions
• Derivative of functions
• Integral Calculus
– Standard Integrals
– Integration of Polynomial Expression
– Indefinite Integration
– Definite Integration
1
MODULE 1
1. Technique of Mapping: A map indicates a relation between sets by drawing directed lines
from the set of inputs X to the set of outputs Y as illustrated in the following diagram
Example 1.1: Using the technique of mapping, show the relation y = x2 for the set
of input values X = {−1, 0, 1, 2}.
2. Ordered Pairs: This consist of collecting the set of inputs X and outputs Y of the related
sets x → y as an ordered pairs (x, y). This indicates that for related sets containing n
inputs, each pair contains the (input, output) value of the related sets
where x1 , x2 , ..., xn and y1 , y2 , ..., yn are the input and output values of the related sets
respectively
2
1
Example 1.2: Using an ordered pairs technique, show the relation y = x2
for the
first five positive integers.
1 1 1 1 1
1, , 2, , 3, , 4, , 5,
1 4 9 16 25
3. Equation form: Relation between two non-empty sets X and Y can be expressed in an
equation form
Example 1.3: The following expressions indicate a relation between two variables
(i) y = 3x − 5
(ii) y = 3x2 − 1
(iii) A = πr2
(iv) x2 + y 2 = 1
√
(v) y = ± x2 + 2
One of the most important concept in algebra, and an important ingredient in calculus is the
idea of functions
Definition 1.1 (Function) Let X and Y be two non-empty sets, a function of real values is
a rule that assign to every real value x ∈ X only one real value y ∈ Y , such that a value y ∈ Y
may be repeated only for different values x ∈ X
It follows that if X and Y are two sets and f is a function that receive values x ∈ X to generate
values y ∈ Y , then mathematically we say that y is a function of x written as
y = f (x),
where
• The set X from which the function f accept input values x is called the domain of the
function
• The set Y which contains the processed values y of the function f is called the range or
co-domain of the function
• The value x is called the independent variable
• The value y is called the image and is the dependent variable
Functions are often represented by letters such as F, f, G, g, H, h and others, while any letter
or symbol may be used to denote the dependent and independent variables, f (x) = x3 , f (t) = t3
and f (λ) = λ3 represent the same function
Example 1.4: Show that the rule y = 3x2 − 1 defines a function, hence find the values
of the function for the first three positive integers
Solution:
3
(i) The rule y = 3x2 − 1 tells us to take a value x from the domain, square it, multiply it by
factor 3 and subtract 1. Therefore since to each value x in the domain, the rule generate
only one value y in the range then the rule y = 3x2 − 1 is a function
(ii) The values of the function for the first three positive integers are
x = 1 then y = 3(1)2 − 1 = 2
x = 2 then y = 3(2)2 − 1 = 11
x = 3 then y = 3(3)2 − 1 = 26
Example 1.5: The volume of a solid sphere of radius r is given as V (r) = 34 πr3 . Find the
volume of the sphere of radius 3 meters
Example 1.6: Suppose that a function f is defined for all real numbers t by f (t) = 2(t−1)+3.
Find:
(i) f (0)
(ii) f (−2)
(iii) f (x + 2)
Solution:
(iii) f (x + 2) i.e, t = x + 2
f (x + 2) = 2(x + 2 − 1) + 3 = 2x + 5
NOTE: All functions are rules but not all rules are functions. It is therefore imperative for
students to be able to identify rules that are not functions.
A rule is said to be a function if and only if corresponding to each value x in the domain
X, there exist only one value y in the range Y , the case where two or more different values
x ∈ X correspond to the same value y ∈ Y is not a violation, but the reverse is not allowed as
illustrated in the following mappings
4
Exercise: State whether or not the following relations are functions
1
(i) y = x3
(ii) x2 + y 2 = 1
(iii) y = cos x
1
(iv) y = 2x − 4x 3
2 1
(v) y = x2
+ 3x 4
It is indeed helpful to think of a function f as a machine that receive input from the domain
X, process it and produce an output in the range Y . There exist restrictions on the so-called
input-output machine:
(ii) Corresponding to each input x ∈ X, there exist only one output y ∈ Y and which may
be repeated for different input values
Definition 1.2 Let f (x) and g(x) be two functions, the composite function denoted by f o g (f
circle g) is defined by
(f o g)(x) = f (g(x)).
To find (f o g)(x), first find g(x) and then find f (g(x)). Similarly, to find (g o f )(x), first find
f (x) and then find g(f (x)).
(i) (f o g)(x)
(ii) (g o f )(x)
(iii) (f o f )(x)
(iv) (g o g)(x)
Solution:
5
f (g(x)) = f (x + 1) = (x + 1)2 + 1
= x2 + 2x + 2
= x2 + 2
= x4 + 2x2 + 2
g(g(x)) = g(x + 1) = x + 2
(i) f (g(0))
(iii) f (f ( 12 ))
(iv) g(g(1))
Solution:
(i) f (g(0))
f (g(0)) = f (−3) = −3 + 5 = 2
(iii) f (f ( 21 ))
but f ( 12 ) = 1
2
+5= 11
2
, therefore
f (f ( 21 )) = f ( 11
2
)= 11
2
+5= 21
2
(iv) g(g(1))
6
g(g(1)) = g(−2) = (−2)2 − 3 = 4 − 3 = 1
(i) (u o v o f )(x)
(ii) (v o f o u)(x)
(iii) (f o v o u)(x)
Solution:
1.3.2 Inverse:
A function f has an inverse if and only if it is one-to-one. The function defined by reversing
a one-to-one function is called the inverse of f . The symbol for the inverse of f is written as
f −1 and read as ”f inverse”, but −1 in f −1 is not an exponent and also f −1 (x) does not mean
1
the reciprocal of f (x) i.e, f (x) . The following diagram illustrate the concept of inverse f −1 of a
function f
7
1.3.3 How to Find Inverse of a Function:
Suppose f (x) is a function, to find f −1 (x):
1. Let y = f (x) and solve the equation for x in terms of y
(ii) f (x) = x3 + 1
Solution:
(i) Let y = 31 x − 2
3y = x − 6
therefore x = 3y + 6
y = 3x + 6
f −1 (x) = 3x + 6
Student should solve (ii) as an exercise.
Definition 1.4 (Domain) Domain of a function of real variable is the largest set of real values
for which the value of the function y has real values
Definition 1.5 (Range) The range of a function is the largest set of real values for which y
has real values
• If the function has a denominator of algebraic expression, then exclude any value that
give zero denominator
• If the function contain a radical of even index, then exclude any value that makes the
expression inside the radical to be negative
The domain of functions are expressed using any of the following four ways which ever is most
convenient
8
(i) In-equalities
(iv) Words
Example 1.11: Find the domain and range of the following functions
√
(i) y = 1 − x2
1
(ii) y = x
√
(iii) f (x) = x
√
x2 −2
(iv) f (x) = x2 −1
4
(v) y = x3
√
(vi) y = x2 − 1
√
(vii) h(t) = 3t − 4 − 3t
√
(viii) y = 4 − x
Solution:
√
(i) y = 1 − x2
1 − x2 ≥ 0
−x2 ≥ −1
x2 ≤ 1
x≤1
But the only values x in the inequality x ≤ 1 for which y has real values are in the interval
√
[−1, 1], therefore the domain of the function y = 1 − x2 is the interval −1 ≤ x ≤ 1.
Range: The range is obtained by substituting the maximum and minimum values of the
domain in the function, therefore the range is closed in the interval 0 ≤ y < 1.
1
(ii) y = x
9
Domain: Since division by zero is not allowed, then the function can take any real value
or = {x|x 6= 0, x ∈ R}
Range: From the domain, the range is the set of all real numbers except zero, therefore
or = {y|y 6= 0, y ∈ R}
√
Example 1.12: If f (x) = x and g(x) = x + 1, find the domain and range of the following
(i) (f o g)(x)
(ii) (g o f )(x)
Solution:
Domain = x + 1 ≥ 0
x ≥ −1
Domain = [−1, ∞)
Range = [0, ∞)
D = [0, ∞)
R = [1, ∞)
10
1.5 Functions and Algebraic Operations
Like real numbers, the algebraic operations of addition (+), multiplication (×), subtraction
(−) and division (/) applies to functions. Let f (x) and g(x) be two functions, then
where the domain of the function f + g consist of the values x that are in the domains of
both f and g, i.e,
where the domain of the function f − g are the values x that are in the domains of both
f and g, i.e,
where the domain of the function f g are the values x that are in the domains of both
f and g, i.e,
where the domain of the function fg consist of the values x for which g(x) 6= 0 and that
are in the domains of both f and g, i.e,
f
Domain of g
= {x|x 6= 0}∪ domain of f ∩ domain of g
Find the following, and determine the domain and range in each case:
(i) (f + g)(x)
(ii) (f − g)(x)
(iii) (f g)(x)
(iv) fg (x)
11
1.6 Even and Odd Functions
Definition 1.6 (even function) A function y = f (x) is called an even function if f (−x) =
f (x) for every x in the domain of f , i.e., both x and −x must be in the domain of f .
Definition 1.7 (odd function) A function y = f (x) is called an odd function if f (−x) =
−f (x) for every x in the domain of f , also x and −x must be in the domain of f .
Example 1.14: Determine whether the following functions are even, odd or neither
(i) f (x) = x2
(ii) f (x) = x3
(iii) f (x) = x2 + x
1
(iv) x2 +1
1
(v) x−1
Solution:
(i) f (x) = x2
(ii) f (x) = x3
(iii) f (x) = x2 + x
f (−x) = (−x)2 − x
= x2 − x
1 1
f (−x) = (−x)2 +1
= x2 +1
= f (x)
1 −1
f (−x) = −x−1
= x+1
12
1.7 Graph of Functions
Let the equation y = f (x) be a function in x and y, the graph of the function f is defined as
the set of points (x, y) in the xy−plane that satisfies the equation.
Solution:
Step 1: Make a table of xy−pairs that satisfy the function rule of the equation y = x2
Step 2: Plot the points (x, y) whose coordinate appear in the above table
Step 3: Carefully draw a smooth curve joining the plotted points, and label the curve with its
equation
13
Example 1.16: Graph the function f (x) = |x| over the interval [−4, 4] such that
x for x ≥ 0
|x| =
−x for x < 0
Solution: The function f (x) = |x| is called the absolute value function with domain X as the
set of whole real numbers −∞ < x < ∞. The absolute value function is an even function such
that f (−x) = f (x), and the range Y is the set of non-negative real numbers 0 ≤ y < ∞
Solution: This is a piecewise defined function that uses different formula on different parts of
its domain
Let y = f (x)
y = x2 for 0 ≤ x ≤ 2 [0, 2]
14
MISCELLANEOUS PROBLEMS
(i) f (0)
(ii) f (−1.6)
√
(iii) f ( 2)
(iv) f (x + 1)
2. Find g(3), g(−1), g(π) and g(t2 − 1) for each of the following functions
x+1
(a) g(x) =
2 √
x+1 x≥1
(b) g(x) =
undefined x<1
(i) f (g(0))
(ii) g(f (0))
(iii) f (g(−2))
(iv) g(f (5))
(v) (f o g)(x)
(vi) (g o f )(x)
√
4. If u(x) = 4x − 8, v(x) = x and w(x) = x4 , find the following:
(i) u(v(w(x)))
(ii) u(w(v(x)))
(iii) w(u(v(x)))
(iv) w(v(u(x)))
(v) v(u(w(x)))
(vi) v(w(v(x)))
(i) f (x) = x + 5
(ii) f (x) = 6x
(iii) f (x) = x3
15
x
(iv) f (x) = 2
(i) f (x) = x3
1
(ii) f (x) = (x−1)(x−3)
√
(iii) f (x) = x2 − 5x + 6
(i) f (x) = x + 1
(ii) f (x) = 3
x5 −x
(iii) f (x) = 1−x2
3
(iv) f (t) = t + t
t
(v) g(t) = t2 −1
−5
(vi) h(w) = w
16
MODULE 2
Definition 2.1 Let L be a real number and suppose that f (x) is a function defined on an open
interval containing x0 but not necessarily at x0 itself. The limit as x approaches x0 of f (x) is
L and mathematically written as
lim f (x) = L,
x→x0
where the symbol x → x0 is read as ”x tends or approaches x0 ”. This means that x will
approach or moves as close as possible to x0 but never reaches x0
1. Sum rule:
2. Difference rule:
3. Product rule:
4. Quotient rule:
f (x) lim f (x)
L
lim = x→a
= , M 6= 0
x→a g(x) lim g(x)
x→a
M
17
To understand what happens to the function f (x) = x2 + 1 as x gets close to a particular
value x0 = 2, consider the table below putting in mind that x can get close to 2 from the right
and from the left along the x−axis. The table show that as x gets close to x0 = 2 from both
sides, the function f (x) = x2 + 1 gets close to 5 from both sides. Therefore, in mathematical
symbol we write it as lim (x2 + 1) = 5 and is read as the limit as x approaches or tends to 2 of
x→2
x2 + 1 is equal to 5
Solution:
18
Using the difference rule, we have
lim 2x2 − 31 x = lim 2x2 − lim 1
= 2(−2)2 − 13 (−2) = 26
x
x→−2 x→−2 x→−2 3 3
(−1)3 +4(−1)2 −3 0
∴= (−1)2 +5
= 6
=0
√
(vii) lim 4x2 − 3
x→−2
Since we are dealing with real-valued function, provided the function does not give
a complex number, we evaluate the limit using substitution
√ p √
∴ lim 4x2 − 3 = 4(−2)2 − 3 = 13
x→−2
19
Solution:
x2 −4 x2 −22
(i) lim = lim
x→−2 x+2 x→−2 x+2
(x−2)(x+2)
= lim x+2
x→−2
= lim (x − 2)
x→−2
= −2 − 2 = −4.
x2 +3x−10
(ii) lim x+5
x→−5
(x+5)(x−2)
lim x+5
x→−5
lim (x − 2) = −5 − 2 = −7.
x→−5
t+3
(iii) lim 2
t→−3 t +4t+3
t+3
lim
t→−3 (t+1)(t+3)
lim 1 = 1
−3+1
= − 12 .
t→−3 t+1
x3 −x2 −5x−3
(vi) lim (x+1)2
x→−1
= lim (x − 3)
x→−1
= −1 − 3 = −4.
20
Solution:
√ √
2+x− 2
(i) lim x
x→0
We create the common factor using the idea of rationalization of either the numerator
or the denominator as the case may be, thus
√ √ √ √ √ √
2+x− 2 2+x− 2 2+x+√2
lim x
= lim x
√
2+x+ 2
x→0 x→0
√ √ √ √
= lim (2+x)+ 2(x√2+x)− √
2( 2+x)−2
2+x+x 2
x→0
= lim √ x √
x→0 x( 2+x+ 2)
1 √
= lim √
2+x+ 2
x→0
1 √ √ 1√ 1
= √
2+0+ 2
= 2+ 2
= √
2 2
2.4 Limits as x → ±∞
Consider a function f (x) = x1 , the function is defined for all real-values x except x = 0, i.e., for
all x 6= 0. The function f (x) = x1 approaches zero when x goes to positive or negative infinity,
that is x → ±∞
1
lim =0
x→±∞ x
Solution:
1
3x2 −7x+3 (3x2 −7x+3)
x2
lim 2 = lim 1
(2x2 +5)
x→∞ 2x +5 x→∞ x2
3− x7 + 3
x2
= lim 5
2+ 2
x→∞ x
7 3
3− ∞ +∞
= 5
2+ ∞
3−0+0 3
= 2+0
= 2
21
Case 2: Degree of numerator greater than degree of denominator
3x2 −2x+1
Example 2.4: Find lim x+3
x→−∞
Solution:
1
3x2 −2x+1 (3x2 −2x+1)
lim x+3
= lim x
1
(x+3)
x→−∞ x→−∞ x
3x−2+ x1
= lim 3
x→−∞ 1+ x
1
3(−∞)−2+ −∞
= 3
1+ ∞
−∞−2+0 −∞−2
= 1+0
= 1
= −∞
Solution:
1
3x+7 (3x+7)
x2
lim 2 = lim 1
x→−∞ x −2 x→−∞ x2
(x2 −2)
3
x
+ 72
= lim x
1− 22
x→−∞ x
3 7
−∞
+ −∞
= 2
1− −∞
0+0 0
= 1−0
= 1
=0
Solution:
√
3x √
5 x
√
3 x− √
5x 3 x−
√ √
3x
lim √ 5 x lim
3 x+ √ = lim √
3x √
5 x
x→∞ x→∞ x→∞ 3 x+
√ √
3x
!
1
1− x 15
x3
= lim 1
!
x→∞
1+ x 15
x3
2
1−x− 15
= lim 2
− 15
x→∞ 1+x
1
1− 2
x 15
= lim 1+ 21
x→∞
x 15
1
1− ∞ 1−0 1
= 1
1+ ∞
= 1+0
= 1
=1
22
x−1 +x−4
(ii) lim x −2 −x−3
x→∞
Solution:
−1 −4
h −2 i
x−1 x−4 x−3
lim x−2 +x−3 = lim x−2
+ x−2
/ xx−2 + x−2
x→∞ x −x x→∞
x+x−2
= lim −1
x→∞ 1−x
1
x+
x2
= lim 1
1− x
x→∞
1
∞+ ∞
= 1
1− ∞
∞+0
= 1−0
=∞
f (x) f 0 (x)
lim = lim 0
x→a g(x) x→a g (x)
x2 +5x−14
Example 2.6: Find lim 2
x→2 x −5x+6
Solution:
Using substitution:
x2 +5x−14 22 +5(2)−14
lim 2 = lim 2
x→2 x −5x+6 x→2 2 −5(2)+6
4+10−14 0
= 4−10+6
= 0
x+7
= lim
x→2 x−3
2+7
= 2−3
= −9
23
2x+5
= lim
x→2 2x−5
2(2)+5
= lim
x→2 2(2)−5
4+5 9
= 4−5
= −1
= −9
x3 +x2 −x−1
Example 2.7: Find lim 2
x→1 x +2x−3
3x2 +2x−1
= lim 2x+2
x→1
3(1)2 +2(1)−1
= 2(1)+2
3+2−1 4
= 2+2
= 4
=1
x 3 + x2 − x − 1 0
lim 2
=
x→1 x + 2x − 3 0
2.6 Continuity
The following limits in sections (2.6.1) - (2.6.3) will provide an intuition towards understand-
ing the concept of continuity
24
2.6.2 Right Hand Limit
A function f (x) has a right hand limit (R.H.L) L at x = a if and only if
lim f (x) = L
x→a+
lim f (x) = L
x→a−
Definition 2.2 A function f (x) is continuous at an interior point x = a of its domain if and
only if
Example 2.8: Determine whether the following functions are continuous at the indicated point
x2 −x+2
(ii) f (x) = x3 +x2 −3
at x = 1
x+3 x 6= 1
(iii) g(x) = at x = 1
−4 x=1
3 − x if x ≤ 2
(iv) f (x) = at x = 2
x2 −4
if x > 2
x−2
Solution:
f (4) = √4−4 = 0
= 0
4−2 2−2 0
25
x2 −x+2
(ii) f (x) = x3 +x2 −3
at x = 1
1−1+2
= 1+1−3
= −2
x2 −x+2
2. lim x 3 +x2 −3 = −2 by using substitution
x→1
1. g(1) = −4
1. f (2) = 3 − 2 = 1
2. To find lim f (x), we have to find both the right hand and left hand limits
x→2
(x+2)(x−2)
= lim+ x−2
x→2
= lim+ x + 2 = 2 + 2 = 4
x→2
∴ The overall lim f (x) does not exist, hence f (x) is not continuous at x = 2
x→2
26
2.6.5 Discontinuity
If a function f (x) defined over an interval I is not continuous at point x = a, then f (x) is said
to be discontinuous at x = a
Types of Discontinuity
Example 2.9: Determine if the following functions are continuous or discontinuous at the
given points. If discontinuous state the type of discontinuity
x2 −6x+5
(i) f (x) = x2 −4x+3
at x = 1
x+3 x<3
(ii) f (x) = at x = 3
2
x +1 x≥3
1
x
x 6= 0
(iii) f (x) = at x = 0
0 x=0
Solutions:
x2 −6x+5
(i) f (x) = x2 −4x+3
at x = 1
12 −6(1)+5 0
f (1) = 12 −4(1)+3
= 0
x−5 1−5
= lim = =2
x→1 x−3 1−3
Therefore, since lim f (x) exist, then conclude that f (x) has removable discontinuity at
x→1
x=1
x+3 x<3
(ii) f (x) = at x = 3
2
x +1 x≥3
1. f (3) = 32 + 1 = 9 + 1 = 10
27
Since R.H.L 6= L.H.L, then lim f (x) does not exist and hence f (x) has jump discontinuity
x→3
Example 2.10: Determine for what values of x the following functions are discontinuous
x3 +x2 +2
(i) f (x) = x2 −x−2
2x2 −3x+1
(ii) f (x) = 2x+1
Solution:
(x − 2)(x + 1) = 0 and x = 2 or x = −1
2x = −1
x = − 12
∴ f (x) is discontinuous at x = − 12
28
MISCELLANEOUS PROBLEMS
2. Determine whether the following functions are continuous at the indicated points
x2 −4
x−2 , x 6= 2
(a) g(x) =
3, x=2
7x − 2, x≤1
(b) f (x) =
5x2 , x>1
3. Find the values of x for which the following functions are not continuous
x
(a) f (x) = x2 −1
3x+1
(b) f (x) = x2 +7x−2
4. Find the values of x for which the following functions are discontinuous, determine
whether each value is a removable discontinuity
x2 +3x
(a) f (x) = x+3
29
x2 −4
(b) f (x) = x3 −8
2x − 3, x≤2
(c) f (x) =
x2 , x>2
30
MODULE 3
• Rate of change
The gradient of the sloping straight line shown in the figure above is defined as
y2 − y1 ∆y dy
Gradient = = =
x2 − x1 ∆x dx
31
Contrary to the slope of a straight line, the slope of a curve varies along its length or changes
from point to point on the curve. Let us try to find the slope at a point P (x, y) by taking
another point on the curve Q(x, y), therefore the slope of the secant line (straight line) joining
points P and Q is given by
dy y1 − y
Msec = =
dx x1 − x
If we change Q to another point, we get another secant line and hence another slope. In partic-
ular we can take Q closer to P , and as Q gets closer and closer to P (i.e, as ∆x approaches 0)
the value of Msec may approach a fixed value. In that case, the fixed value is the slope of the
tangent line at point P or simply the slope of the curve at P , thus
∆y dy
Mtan = lim =
∆x→0 ∆x dx
Example 3.0: Find the slope of the tangent line to the curve y = x3 + 3x + 5 at point x1 .
Solution:
where ∆y = y2 − y1
∆x = x2 − x1
= x1 + ∆x − x1 = ∆x
3x21 ∆x+3x1 (∆x)2 +(∆x)3 +3∆x
∴ Mtan = lim ∆x
∆x→0
as ∆x → 0
= 3x21 + 3
32
3.3 Rate of Change
The same procedure is applied to investigate rate of change
Example 3.1: How does the change in radius of a circle affects its area? Moreover, if the
radius of a circle is increased from 2 cm to 2.01 cm, what happen to its area?
Solution:
A(r) = πr2
Let A1 = πr12
A2 = πr22
where ∆A = A2 − A1
∆r = r2 − r1
∴ A2 = π(r1 + ∆r)2
Further, let y = f (x) be function over an open interval I containing x, then the derivative of f
or of y at the point x is defined to be the slope of the function at x, or the rate of change of y
with respect to x is defined as
f (x + ∆x) − f (x)
f 0 (x) = lim
∆x→0 ∆x
or
dy f (x + ∆x) − f (x) ∆y
= lim = lim
dx ∆x→0 ∆x ∆x→0 ∆x
where ∆x and ∆y are a small increments in x and y respectively. The above process of finding
slope or rate of change of a function is called differentiation from the ’first principle’
Note: The words slope, gradient and rate of change in relation to differentiation are the
same and are often used interchangeably
Solution:
33
f (x+∆x)−f (x)
f 0 (x) = lim ∆x
,
∆x→0
1
but f (x) = x2 + x
1
∴ f (x + ∆x) = (x + ∆x)2 + x+∆x
1
(x+∆x)2 + x+∆x −(x2 + x1 )
f 0 (x) = lim ∆x
∆x→0
1 1
= lim 2x + ∆x + ∆x(x+∆x)
− x∆x
∆x→0
As ∆x → 0,
f 0 (x) = 2x − 1
x2
√
Example 3.3: Find the derivative of the function y = x from the first principle.
1 √
= lim √
x+∆x+ x
∆x→0
As ∆x → 0,
dy 1
dx
= √
2 x
.
Remark:
Differentiation from the first principle is rather a tedious exercise especially for more com-
plex functions. Therefore the need for more effective and robust methods for differentiating the
following functions are necessary:
• Polynomial functions
• Trigonometric functions
• Logarithmic functions
• Exponential functions
• Constant functions
EXERCISE
Differentiate the following functions with respect to x (w.r.t x) using the first principle ap-
proach
1. y = 3x3 − 2x2 + 3x + 2
34
1
2. y = x
1
3. y = x2
4. y = 3 − x2
2
5. y = x
6. y = 4x3
4 Polynomial Functions
Polynomial functions are functions that involved non-negative integer exponents on the inde-
pendent variable (i.e, xn , n ≥ 0), multiplied by constant coefficients and separated by only the
operations of addition (+) and subtraction (−). Mathematically written as
f (x) = c0 + c1 x + c2 x2 + c3 x3 + ... + cn xn
(i) f (x) = x2
(iii) f (x) = 3x + 1
Theorem 4.1 If f (x) = xn , then f (x)0 = nxn−1 for any real number n
Proof: Using the idea of the first principle
f (x+∆x)−f (x)
f 0 (x) = lim ∆x
∆x→0
n n n−1 n
x + x ∆x + xn−2 (∆x)2 + ... + (∆x)n − xn
1 2
f 0 (x) = lim
∆x→0 ∆x
n n
∆x xn−1 + xn−2 ∆x + ... + (∆x)n−1
1 2
= lim
∆x→0 ∆x
n
As ∆x → 0, and since =n
1
dy
∴ f 0 (x) = dx
= nxn−1
Moreover, the rule for differentiating a power of x is simply multiplying by the index (power)
and reducing the index by 1
Example 3.4: The derivative of the following functions are given as:
35
d
(i) dx
(x20 ) = 20x20−1 = 20x19
√ 1
(ii) d
dt
( t) = 12 t 2 −1 = 2√
1
t
d 1
= −3x−3−1 = −3x−4
(iii) dx x3
Solution:
d d d d
(i) dx
(4x4 − 3x2 + 5) = dx
(4x4 ) − dx
(3x2 ) + dx
(5)
= 16x3 − 6x + 0
= 16x3 − 6x
d d d d
(ii) dx
(ax2 + bx + c) = dx
(ax2 ) + dx
(bx) + dx
(c)
= 2ax + b
d 12 13 12 91
(iii) dx
(3x2 − 4x + 16 − x
+ x7
) = 6x − 4 + x2
− x8
3
(iv) y = x− 2
2
(v) y = √
3 x
2
(vi) y = x
(vii) y = x
(viii) 5 − 3x2
(ix) y = 7
36
4.1 Techniques of Differentiation (Explicit)
Differentiation where the dependent variable can be expressed explicitly in terms of the inde-
pendent variable is called explicit differentiation
In general, suppose that y = y(u) such that u = u(x), that is y is a function of u and u
is a function of x. The derivative of y is given by
dy ∆y
= lim
dx ∆x→0 ∆x
∆y ∆y ∆u
but =
∆x ∆x ∆u
∆y ∆y ∆u
=
∆x ∆u ∆x
dy ∆y ∆u
∴ = lim
dx ∆x→0 ∆u ∆x
dy ∆y ∆u dy du
= lim lim =
dx ∆x→0 ∆u ∆x→0 ∆x du dx
dy dy du
=
dx du dx
Solution:
Let u = (2x + 3)
dy dy du
by the chain rule dx
= du
dx
, where
37
dy du
du
= 37u36 and dx
=2
dy
∴ dx
= 37u36 2
= 74u36
= 74(2x + 3)36 .
dp 1 1
dt
= 12 u− 2 2 = u− 2
dp √ 1
dt
= 2t−3
p 2
(iv) u = 3
(θ2 + 3θ − 4)2 = (θ2 + 3θ − 4) 3
2
Let v = θ2 + 3θ − 4, and u = v 3
1
where dv
dθ
= 2θ + 3 and du
dv
= 23 v − 3
du du dv
∴ dθ
= dv
dθ
1
= 23 v − 3 (2θ + 3)
1
= 23 (θ2 + 3θ − 4)− 3 (2θ + 3)
2(2θ+3)
= 1
3(θ2 +3θ−4) 3
du 2(2θ+3)
∴ dθ
= √
3 3 θ2 +3θ−4
.
EXERCISES
dy
p
1. If y = 3x2 + 4x − (5x − 2)4 , find dx
3. Differentiate
38
2
(i) y = (6x2 − 4x)− 3
−1
(ii) y = √
(1+ x)2
1 2
(iii) y = 1 − x
1
(iv) y = 2x2 − x32 3
√ 2
(v) y = x − √1x
q
1
(vi) y = 1−x2
y + ∆y = (u + ∆u)(v + ∆v)
∆y ∆v ∆u ∆u∆v
=u +v +
∆x ∆x ∆x ∆x
Therefore as ∆x → 0, ∆u, ∆v and ∆y approaches zero also
dy ∆y
= lim
dx ∆x→0 ∆x
dy ∆v ∆u ∆u∆v
= lim u +v +
dx ∆x→0 ∆x ∆x ∆x
dy ∆v ∆u ∆u∆v
= u lim + v lim + lim
dx ∆x→0 ∆x ∆x→0 ∆x ∆x→0 ∆x
dy dv du
=u +v
dx dx dx
d du dv
Note: dx
(uv) 6= dx
dx
39
(iii) y = (x2 + 1)(x + 3)−2
p
(iv) y = (x − 1) (x2 + 1)
Solution:
EXERCISES
1. Differentiate w.r.t x
√
(i) y = (x2 − 1) 1 + x
(ii) y = x2 (x + 1)3
3 5
(iii) y = (x + 1) 2 (x − 1) 2
p
(iv) y = (1 − x2 ) 3 (1 − 2x)−2
p
(v) y = (x + 1)(x − 2)3
40
4.1.3 Quotient Rule
u
Suppose that y = v
where both u and v are functions of x, then
u + ∆u
y + ∆y =
v + ∆v
u + ∆u
∆y = −y
v + ∆v
u + ∆u u
∆y = −
v + ∆v v
v∆u − u∆v
=
v(v + ∆v)
dividing through by ∆x, we have
∆y v∆v − u∆v
=
∆x v(v + ∆v)∆x
∆y ∆v
v ∆u − u ∆x
= ∆x
∆x v(v + ∆v)
but
dy ∆y
= lim
dx ∆x→0 ∆x
as ∆x → 0, ∆u → 0, ∆v → 0 and ∆y → 0
!
dy v ∆u
∆x
∆v
− u ∆x
∴ = lim
dx ∆x→0 v(v + ∆v)
dy v lim ∆u ∆v
− u lim ∆x
∆x→0 ∆x ∆x→0
=
dx v(v + ∆v)
dy v du
dx
dv
− u dx
∴ =
dx v2
(3x+4)3
Example 3.8: If y = (x−2)2
, find y 0
dy v du dv
−u dx
Solution: Using quotient rule dx
= dx
v 2
41
dv
dx
= 2(x − 2)
dy (x−2)2 9(3x+4)2 −(3x+4)3 2(x−2)
∴ dx
= ((x−2)2 )2
(3x+4)3
the above gives the derivative of the function y = (x−2)2
, what remains is to simplify
further
(x − 2)(3x + 4)2 [9(x − 2) − 2(3x + 4)]
y0 =
(x − 2)4
y 0 = u dx
dv
+ v du
dx
, where u = (3x + 4)3 and v = (x − 2)−2
du
dx
= 9(3x + 4)2 , dv
dx
= −2(x − 2)−3
Solution:
r 3
(x+1)3 (x+1) 2
y= x+2
= 1
(x+2) 2
3 1
let u = (x + 1) 2 , v = (x + 2) 2
1 dy 1
such that du
dx
= 23 (x + 1) 2 1, du
= 12 (x + 2)− 2
1 1 3 1
0 (x+2) 2 32 (x+1) 2 −(x+1) 2 21 (x+2)− 2
y = 1 2
(x+2) 2
1 1
1
(x+2)− 2 (x+1) 2 [3(x+2)−(x+1)]
= 2
x+2
1 1
(x+2)− 2 (x+1) 2 (2x+5)
= 2(x+2)
1
(x+1) 2 (2x+5)
= 3
2(x+2) 2
EXERCISES
1. If y = √ x , show that y = (1 + x2 )
1+x2
42
2. Differentiate w.r.t x the following functions
q
2 )3
(i) y = (1+x 2+x2
2
(ii) y = √x
1+x2
3. x = y 4 − y − 1
In examples 1 and 3 we can solve for x, so let us consider cases where we can solve for x.
Consider the function
1
x = y2 ∴ x2 = y
dx 1
but dy
= 2y = 2x 2
1
Now from y = x 2
dy 1
dx
= 12 x− 2 = 1
1
2x 2
dy 1
∴ dx
= dx
dy
generally
dy ∆y
dx
= lim
∆x→0 ∆x
1
= lim ∆x
∆x→0 ∆y
dy 1
dx
= dx .
dy
dy 1
∴ dx
= 6y 2 −2y
But in the case of example 2, i.e, 3xy 2 + 4x2 y + 3y 3 + 4x3 = 7 differentiate by differentiating
each term w.r.t x
d d
dx
(3xy 2 + 4x2 y + 3y 3 + 4x3 ) = dx
(7)
43
d d d d
dx
(3xy 2 ) + dx
(4x2 y) + dx
(3y 3 ) + dx
(4x3 ) =0
d d d d
3 dx (xy 2 ) + 4 dx (x2 y) + 3 dx (y 3 ) + 4 dx (x3 ) = 0
dy dy dy
3(x 2y dx + y 2 ) + 4(x2 dx
+ 2xy) + 3(3y 2 dx ) + 12x2 = 0
dy dy dy
3(2xy dx + y 2 ) + 4(x2 dx + 2xy) + 9y 2 dx + 12x2 = 0
dy dy dy
6xy dx + 3y 2 + 4x2 dx + 8xy + 9y 2 dx + 12x2 = 0
dy dy dy
6xy dx + 4x2 dx + 9y 2 dx = −3y 2 − 8xy − 12x2
dy
dx
(6xy + 4x2 + 9y 2 ) = −3y 2 − 8xy − 12x2
dy 2
−8xy−12x 2
dx
= − 3y
6xy+4x2 +9y 2
Example 3.10: Find the gradient of the curve x2 + 2xy − 2y 2 + x = 2 at (−4, 1).
dy
Solution: The gradient is dx
when x = −4, y = 1. Differentiating through with respect
to x, we have
d 2 d d d d
dx
x+ 2 dx (xy) − 2 dx (y 2 ) + dx (x) = dx
(2)
dy dy
2x + 2 x dx + y − 2 2y dx +1=0
dy dy
2x + 2x dx + 2y − 4y dx +1=0
dy dy
2x dx − 4y dx = −2x − 2y − 1
dy
dx
(2x − 4y) = −(2x + 2y + 1)
dy
dx
= − (2x+2y+1)
2x−4y
when x = −4 and y = 1
dy
dx
= − [2(−4)+2(1)+1]
2(−4)−4(1)
5
= − 12 .
dy
Example 3.11: If x = t3 + t2 , y = t2 + t, and dx
in terms of t.
Solution:
dx dy
dt
= 3t2 + 2t, dt
= 2t + 1
dy dy dt
but dx
= dt
dx
(using chain rule)
dy dy 1 1
∴ dx
= dt
dx = (2t + 1) 3t2 +2t
dt
EXERCISES
dy
1. Find dx
when
(i) x2 + 2xy + y 2 = 3
(ii) x2 − 3xy + y 2 − 2y + 4x = 0
(iii) 3x2 − 4xy = 7
(iv) 3(x − y)2 = 2xy + 1
44
(v) (x − y)xy = 4
dy
2. Find dx
in terms of t
(i) x = t2 , y = t3
t t2
(ii) x = 1−t
, y = 1−t
(iii) x = √ 1 , y= √ t
1+t2 1+t3
4. Find the gradient of the conic x2 − 3yx + 2y 2 − 2x = 4 at the point (1, −1).
5 Higher Derivatives
dy dy
Given y = f (x) we can find dx which is also a function of x. We can further differentiate dx
with respect to x which is referred to us the second derivative written as
d2 y
d dy
= 2,
dx dx dx
similarly, we find
d2 y d3 y
d
= .
dx dx2 dx3
Thus, we have
y - original function
dy
dx
- first derivative
d2 y
dx2
- second derivative
d3 y
dx3
- third derivative
.........
dn y
dxn
- nth derivative
Alternative notations are:
y, y 0 , y 00 , y 000 , ..., y (n) or
Solution:
y = x2 − x−2
y 0 = 2x + 2x−3 = 2x + 2
x3
y 00 = 2 − 6x−4 = 2 − 6
x4
y 000 = 24x−5 = 24
x5
45
d2 y d3 y d4 y
Example 3.13: If y = 2x3 − 11x2 + 12x − 5, determine , ,
dx2 dx3 dx4
.
Solution:
EXERCISES
dy d2 y
1. If y = 4x3 − 6x2 − 9x + 1, find dx
and hence find the values of dx2
when the gradient is
zero.
dy d2 y
2. If x = at2 , y = 2at, find dx
and dx2
.
dy d2 y d3 y
3. If x2 + 3xy − y 2 = 3, find ,
dx dx2
and dx3
at the point (1, 1).
d y 2 dy
4. If y = √ x , prove that (1 + x2 ) dx2 + 2x dx = 0
1+x2
6 Trigonometric Functions
These are functions that involve trigonometric ratios e.g, sin, cos, tan e.t.c. Another way of
measuring angles is radian
In a unit circle, an arc of length s subtends an angle of s radians. Since a unit circle has
an arc of length 2π
∴ 3600 = 2π rad
π rad = 1800
π
2
= 900
π
3
= 600
π
4
= 450
46
To find the derivative of trigonometric functions, use is made of the following limits:
(i) lim sinθ θ = 1
θ→0
2
(ii) lim sinθ θ
=0
θ→0
(cos(δx) − 1) sin(δx)
= lim sin x + cos x
δx→0 δx δx
(cos(δx) − 1) sin(δx)
= sin x lim + cos x lim
δx→0 δx δx→0 δx
dy
= cos x
dx
d
2. If y = cos x, find the derivative dx
(y)
47
cos x cos(δx) − sin x sin(δx) − cos x
= lim
δx→0 δx
cos x cos(δx) − cos x sin(δx)
= lim − sin x
δx→0 δx δx
(cos(δx) − 1) sin(δx)
= lim cos x − sin x
δx→0 δx δx
(cos(δx) − 1) sin(δx)
= cos x lim − sin x lim
δx→0 δx δx→0 δx
dy
= − sin x
dx
d
3. If y = tan x, find the derivative dx
y
dy v du − u dv
= dx 2 dx
dx v
du dv
Let u = sin x, v = cos x and dx
= cos x, dx
= − sin x
dy 1
= = sec2 x.
dx cos2 x
Therefore the derivative of the function y = tan x is given by
dy
= sec2 x
dx
dy
4. If y = cot x, find the derivative dx
Solution:
cos x 1
y = cot x = =
sin x tan x
48
dy v du − u dv
= dx 2 dx
dx v
where u = cos x and v = sin x, therefore
− sin2 x − cos2 x
= ,
sin2 x
−1
= 2 = −cosec2 x.
sin x
Alternatively, y = cot x can be written as y = (tan x)−1 and therefore using the chain
rule
dy dy du
=
dx du dx
dy
Let u = tan x and y = u−1 such that du
dx
= sec2 x and du
= −u−2 respectively, thus
dy
= −u−2 sec2 x
dx
1
= = −cosec2 x.
sinx
Therefore if y = cot x, the derivative is given by
dy
= −cosec2 x
dx
dy
5. If y = sec x, find the derivative dx
Solution:
1
y = sec x =
cos x
therefore
dy cos x(0) − 1(− sin x)
= ,
dx cos2 x
= sec x tan x.
dy
= sec x tan x
dx
49
dy
6. If y = cosec x, find the derivative dx
Solution:
1
y = cosec x =
sin x
therefore
dy sin x(0) − 1(cos x)
= ,
dx sin2 x
= −cosec x cot x.
Therefore if y = cosec x, the derivative is given by
dy
= −cosec x cot x
dx
solution:
dy dy du
=
dx du dx
du dy
Let u = 5x + 4 and y = sin u, where dx
= 5 and du
= cos u
dy
= cos u 5
dx
dy
∴ dx
= 5 cos(5x + 4)
(ii) y = sin(x5 )
solution:
dy dy du
=
dx du dx
du dy
Let u = x5 and y = sin u, where dx
= 5x4 and du
= cos u
dy
= 5x4 cos u
dx
50
dy
∴ dx
= 5x4 cos(x5 )
(iii) y = cos5 x
solution:
du dy
Let u = cos x and y = u5 , where dx
= − sin x and du
= 5u4
dy
= −5u4 sin x
dx
dy
∴ dx
= −5 cos4 x sin x
(iv) y = cos 3x
solution:
du dy
Let u = 3x and y = cos u, where dx
= 3 and du
= −sinu
dy
= − sin u 3
dx
dy
∴ dx
= −3 sin 3x
dy
Example 3.15: If y = sin x cos x, find dx
dy
= sin x(− sin x) + cos x(cos x)
dx
dy
∴ = − sin2 x + cos2 x = cos 2x
dx
EXERCISES:
51
7 Exponential Functions
7.1 Natural Exponential Function
The natural exponential function is expressed by the equation y = ex or y = expx where
e = 2.7182818..., in addition, the natural exponential function is expressible using the tailors
series
x x2 x3
ex = 1 + + + + ...
1! 2! 3!
7.1.1 Properties of y = ex
1. It is defined for all real numbers x (range is R)
2. e0 = 1
7.1.2 Derivative of y = ex
If y = ex , then taking the natural of both sides, we’ve
ln y = ln ex
ln y = x
1 dy
=1
y dx
dy
= ex .
dx
Therefore the derivative of the natural exponential function y = ex is the same with the original
function
dy
= ex
dx
ln y = ln eu
ln y = u
52
1 dy du
=
y dx dx
dy du
=y
dx dx
dy du
= eu
dx dx
Example 3.16: Differentiate the following
2
(i) y = ex
3
(ii) y = e−x
7.2.1 Derivative of y = ax
If y = ax , then by letting a = ek , we’ve
y = ax = (ek )x = ekx
k = ln a
therefore taking the natural logarithm of both sides of the function y = ekx and differentiating
it, we’ve
ln y = kx
d dy
dx
(ln y) dx =k
dy
dx
= ky
dy
= ax ln a
dx
loge y = loge au
loge y = u loge a
53
therefore, taking the derivative of both sides we’ve
dy du
= y loge a
dx dx
but y = au , thus, the derivative of the function y = au(x) is given by
dy du
= au ln a
dx dx
dy
Example 3.17: Find dx
if
2 +1
(i) y = 2x
dy 2 +2
∴ dx
= 2x x loge 2
2 +2x
(ii) y = 7x
dy 2 +2x
∴ dx
= 7x (2x + 2) ln 7
dy
EXERCISES: Find the derivative dx
of the following functions
3
(i) y = 5x
2 +√x
(ii) y = 3x
8 Logarithmic Function
The logarithmic function is the inverse of exponential function, and is expressed by the equation
y = loga x where a is the base of the function. If the base takes the value e = 2.7182818..., then
the function is called natural logarithm and is written as y = loge x or y = ln x
dy
Case 1: If y = loge x = ln x, then dx
is derived by taking the exponent of both sides
ey = eln x
ey = x
dy 1
=
dx x
In general if y = ln u or equivalently y = loge u where u is a known function of x, then using
the chain rule
dy dy du
=
dx du dx
dy 1
but =
du u
54
therefore, the derivative of the function y = ln u(x) is given by
dy 1 du
=
dx u dx
dy
Case 2: If y = loga x, then dx
is derived as
y = loge x loga e, therefore the derivative of y = loga x is given by
dy 1
= loga e
dx x
dy
In general, if y = loga u where u is a known function of x and a is constant, then dx
is given by
y = loge u loga e, therefore the derivative of y = loga u(x) is given by
dy 1 du
= loga e
dx u dx
dy
Example 3.18: Find the derivative dx
of the following functions
(i) y = ln(x5 − 4x + 8)
dy 3x2 −4
∴ dx
= x3 −4x+8
(ii) y = ln x2
dy 2
∴ dx
= x
2
(iii) y = loge x 3
dy 2
∴ dx
= 3x
√
(iv) y = loge x2 − 4x
dy x−2
∴ dx
= x2 −4x
dy
Example 3.19: Find dx
of the following functions
(i) y = log3 (x2 − x + 1)
dy 2x−1
∴ dx
= x2 −x+1
log3 e
55
q
4+x2
(v) y = loge 4−x2
dy
2. Find dx
if:
9 Combination of Functions
The separate functions treated so far can be combined together, and of which derivative (slope
or gradient) can be determined using different differential techniques, i.e, chain rule, product
rule and or quotient rule
dy
∴ dx
= x2 cos x + 2x sin x
solution:
dy y
dx
= − x+cos y
(ii) y = ecos x ln x2
solution:
dy 2
dx
= ecos x x
− sin x ln x2
2 3 −2
(iii) y = 2x ex
dy 2 3 −2
solution: dx
= x2x ex (3x + 2 ln 2)
56
EXERCISES:
(i) y = x2 cos x
(ii) y = ex sin x
sin x
(iii) y = x3
3
(iv) y = 5x sec x
2
(v) y = 7x4 e−x
ex
(vi) y = ln x
dy
2. Find dx
of the following functions
e4x sin x
(i) y = x cos 2x
(ii) y = ln(sec x + tan x)
2 −2)
(iii) y = eln(x
2 −2 2 −2)
(iv) y = ex eloge (x
3 −3x 2
(v) y = 4x ex
x2
(vi) y = 3e loge (x2 + 2)
2
(vii) y = ex loge (x2 + 2)
(viii) y = log5 [loge (x2 + 4)]
2
(ix) y = ex log3 6x
57
MODULE 4
10 Integral Calculus
Integration can be considered from two angles
The two approaches are the same, just like differentiation, integration has so many applications
in mathematics, physics, chemistry, engineering, economics, e.t.c.
Solution:
R
I = 4x3 dx = x4 + C
3 = 24 + C
C = −13
∴ I = x4 − 13.
58
10.1 Standard Integrals
Every derivative written in reverse order gives an integral, for instance
d
dx
(sin x) = cos x
R
∴ cos x dx = sin x + C
It follows therefore that the following list of standard derivatives provides a source of standard
integrals
d
1. dx
(xn ) = nxn−1 replacing n by n + 1, we have
d
dx
= (n + 1)xn , therefore
n+1
d x
dx n+1
= xn , we therefore conclude that
xn+1
R
xn dx = n+1
+C
This is true for all real number n except when n = −1, for which division by zero is not
allowed.
d
2. dx
(sin x) = cos x
R
∴ cos x dx = sin x + C
d
3. dx
(cos x) = − sin x
d
dx
(− cos x) = sin x
R
∴ sin x dx = − cos x + C
d
4. dx
(tan x) = sec2 x
R
∴ sec2 x dx = tan x + C
d
5. dx
(ex ) = ex
R
∴ ex dx = ex + C
d 1
6. dx
(ln x) = x
1
R
∴ x
dx = ln x + C
(iii) 4x5
Solution:
59
R R R R R
(i) (4x3 + 5x2 − 2x + 7) dx = 4x3 dx + 5x2 dx − 2x dx + 7 dx
5x3
= x4 + 3
− x2 + 7x + C
x4 +1
dx = (x2 + x−2 ) dx
R R
(ii) x2
x3 x−2+1
= 3
+ −2+1
+C
= 13 x3 − x−1 + C
5+1
4x5 dx = 4 x5+1 + C
R
(iii)
4x6
= 6
+C
10.2.1 Properties
If f (x) and g(x) are two integrable functions, k is some real number:
R R R
(i) [f (x) ± g(x)] dx = f (x) dx ± g(x) dx
R R
(ii) kf (x) dx = k f (x) dx
R
(iii) k dx = kx + C
R
(iv) 0 dx = C
To find the anti-derivative of such as an integral, we use problem solving strategy of introducing
something extra. The something extra is a new variable introduced say u to change from the
old variable x. Suppose that we let u be equals the expression under the root sign u = 1 + x2 ,
then the differential of u is du = 2x dx
Z √ Z √
∴ 2
2x 1 + x dx = 1 + x2 2x dx
√
Z
= u du
2 3
= u2 + C
3
2 3
= (1 + x2 ) 2 + C
3
60
We can therefore check the answer by using chain rule to differentiate the final function
d 2 2 23 2 3 1
(1 + x ) + C = (1 + x2 ) 2
dx 3 3 2
√
= 2x 1 + x2
In general, this standard method work for all integral that can be written in the form
Z
f (g(x))g 0 (x) dx
= F (u) + C
Z
= F 0 (u) du
or F 0 = f , we get
Z Z
0
f (g(x))g (x) dx = f (u) du
61
(ii) Let t = x2 + 1 so that dt = 2x dx, then it follows that 4dt = 8x dx
4t dt = 45 t5 + C
R 4
= 54 (x2 + 1)5 + C
du
= − 13 u4 du
R 2 4 R
x u − 3x 2
= − 15 u5 + C
= − 15 (1 − x3 )5 + C
(ii) √a21−x2 dx
R
R 1
(iii) 1+x 2 dx
Solution:
du
(i) Let u = x2 so that du = 2x dx and hence dx = 2x
sin u du 1
R R
2x
= 2
sin u du
= 21 (− cos u) + C
= − 21 cos x2 + C
dx
(ii) Let x = a sin θ such that dθ
= a cos θ and dx = a cos θ dθ
by substitution, we’ve
= √ 2a cos2 θ
R dx R
√
a2 −x2
dθ
a −a sin2 θ
√ a cos θ
R
= dθ
a2 (1−sin2 θ)
p
but (cos θ = 1 − sin2 θ), therefore
√ a cos θ 2 dθ = aa cos θ
R R
2 cos θ
dθ
a (1−sin θ)
R
=
dθ = θ + C
−1 x
∴ √adx
R
2 −x2 = sin a
+C
62
therefore by substitution, the integral becomes
R 1 R sec2 θ
1+x2
dx = 1+tan 2 θ dθ
Remarks:
√
1. In general, if the denominator of an integrand is in the form a2 − b2 x2 such as in example
4.3 (ii) above, then substitute (a sin θ) for bx, when the integrand has a minus sign (−),
then substitute (a cos θ) for bx.
1
R
(vi) √4−9x 2 dx
R −1
(vii) √1−4x 2 dx
R 1
(viii) 1+9x 2 dx
d x d f df
(e ) = ex or if x = f is a function e = ef
dx dx dx
Example 4.4:
2 +4x
1. If y = e3x find y 0
2 +4x
y 0 = e3x (6x + 4)
√
2. Find y 0 if y = x3 e x
1 √ √
y 0 = x3 12 x− 2 e x + e x (3x2 )
63
√
2 x x
=x e √
2 x
+3
= 13 ef + C
= 13 e3x + C
R 2 +1
(iii) 4xex dx
df
let f = x2 + 1 such that df = 2x dx and dx = 2x
by substitution the integral becomes
R 2 R df
4xex +1 dx = 4xef 2x
R
= 2 ef df
= 2ef + C
2 +1)
= 2e(x +C
x −x ex −e−x
cosh(x) = e +e
R
Example 4.5: Given thatR 2
and sinh(x) = 2
, show that cosh x dx =
sinh x + C, hence, find cosh x sinh x dx.
Solution:
ex +e−x
R R
cosh x dx = 2
dx
= 12 [ex − e−x ] + C
= sinh x + C
−x −x
R R 1 x 1 x
cosh x sinh x dx = 2
(e + e ) 2
(e − e ) dx
= 41 (e2x − e−2x ) dx
R
= 41 12 e2x + 12 e−2x + C
= 14 12 (e2x + e−2x ) + C
= 18 cosh 2x + C
64
10.3.3 Natural Logarithm (ln x)
Recall that
d 1 d 1 df
(ln x) = or if x = f is a function (ln f ) =
dx x dx f dx
(i) y = ln(x2 − 4x + 8)
y0 = 1
x2 −4x+8
(2x − 4)
y0 = 1
2 cos 2x =
sin 2x
2 cos 2x
sin 2x
= 2 cot 2x
2
x +3
(iii) y = ln x2 −2
= ln(x2 + 3) − ln(x2 − 2)
y0 = 2x
x2 +3
− 2x
x2 −2
1
10.3.4 Integral of f (x) = x
We know that the derivative of y = ln x is x1 , hence given a function f (x) = x1 , the integral is
given by
Z
1
dx = ln |x| + C
x
R
(iii) tan x dx
Solution:
du
(i) Let u = 2x + 1 ⇒ du = 2 dx ⇒ dx = 2
= 12 u1 du
R
= 12 ln u + C
= 12 ln(2x + 1) + C
dt
(ii) Let t = x3 + 5 ⇒ dt = 3x2 dx ⇒ dx = 3x2
, therefore
65
6x2 6x2 dt
R R
x3 +5
dx = t
3x2
1
R
=2 t
dt
= 2 ln t + C
= 2 ln(x3 + 5) + C
sin x
R R
(iii) tan x dx = cos x
dx
du
let u = cos x ⇒ du = − sin x dx ⇒ dx = − sin x
, therefore
R sin x R sin x
cos x
dx = u
− du
sin x
R du
=− u
= − ln u + C
= − ln(cos x) + C
= ln(cos x)−1 + C
= ln(sec x) + C
(ii) x22x+1 dx
R
R
(iii) cot x dx
2
(v) (e3−2x + xe−3x ) dx
R
(vi) 2 sinh x4 dx
R
66
we can also re-write the above equation as
Z Z
f (x)g (x) dx = f (x)g(x) + g(x)f 0 (x) dx.
0
The above equation is the formula for integration by parts, it is perhaps easily remembered in
the following notation.
Let u = f (x), v = g(x), then their respective differentials are du = f 0 (x) dx and dv = g 0 (x) dx.
Then by substitution, the formula for integration by part becomes
Z Z Z
u dv = uv − v du, where v = g 0 (x) dx
Solution:
(i) Let u = x ⇒ du = dx
dv = sin x dx ⇒ v = − cos x
R R
by integration by parts u dv = uv − v du, we have
R R
x sin x dx = x(− cos x) − (− cos x) dx
R
= −x cos x + cos x dx
= −x cos x + sin x + C
(ii) Let u = ln x ⇒ du = x1 dx
dv = dx ⇒ v = x
R R
by integration by parts u dv = uv − v du, we have
ln x dx = x ln x − x( x1 ) dx
R R
R
= x ln x − dx
= x ln x − x + C
= x(ln x − 1) + C
(iii) Observe that t2 becomes simpler when differentiated, whereas et remain unchanged when
differentiated or integrated.
67
Let u = t2 ⇒ du = 2t dt
dv = et dt ⇒ v = et
R R
by integration by parts u dv = uv − v du, we have
R 2 t R
t e dt = t2 et − et 2t dt
R
= t2 et − 2 tet dt
R
by integration by parts again for tet dt, we have
R t R
te dt = tet − et dt
= tet − et + C
Let u = x ⇒ du = dx
x x
dv = e− 2 dx ⇒ v = −2e− 2
R R
by integration by parts u dv = uv − v du, we have
R −x x x
xe 2 dx = x(−2e− 2 ) − (−2e− 2 ) dx
R
x R x
= x(−2e− 2 ) + 2 e− 2 dx
x x
= x(−2e− 2 ) + 2(−2e− 2 + C)
x x
= x(−2e− 2 ) − 4e− 2 + C where C = 2C
(iii) xe−x dx
R
R
(iv) cos x sin x dx
R
(v) x2 e2x dx
R 4x
(vi) 3e x dx
68
10.3.6 Integration of Rational Function by Partial fraction
In this section, we show how to integrate any rational function (a ratio of polynomials) by
expressing it as a sum of simpler fractions called partial fractions that we already know how
2 1
to integrate. To illustrate the method, observe that by taking the fractions x−1 and x+2 to a
common denominator, we have
2 1 2(x + 2) − (x − 1)
− =
x−1 x+2 (x − 1)(x + 2)
x+5
=
x2 +x−2
if we reverse the procedure, we see how to integrate the rational function
p(x)
f (x) =
q(x)
where p(x) and q(x) are polynomials. It is therefore possible to express the rational function
f (x) as a sum of simple fractions provided that the degree of p(x) is less than the degree of q(x),
and such a rational function is called proper. But if the rational function f (x) is improper, i.e,
deg (p(x)) ≥ deg (q(x)), then we must take the preliminary step of dividing p(x) by q(x) using
long division until a remainder r(x) is obtained such that deg (r(x)) < deg (q(x)). The division
Statement is given by
p(x) r(x)
≡ s(x) +
q(x) q(x)
the two algebraic expressions above are equivalent, where s(x) and r(x) are polynomials. There
are three possible factors for the complex fraction.
This means that we can write q(x) = (a1 x + b1 )(a2 x + b2 )...(ak x + bk ), where no factor is
repeated and no factor is a constant multiple of another. In this case, the partial fraction
theorem states that there exist constants A1 , A2 , ..., Ak such that
r(x) A1 A2 Ak
= + + ... +
q(x) a1 x + b 1 a2 x + b 2 ak x + b k
1
Example 4.9: Express x2 −16
as a partial fraction.
Solution:
1 1
=
x2 − 16 (x + 4)(x − 4)
1 A B
= +
(x + 4)(x − 4) x+4 x−4
1 = A(x − 4) + B(x + 4)
69
Substituting x = 4, we’ve
1 = A(0) + B(x + 4)
1
B=
8
1 1 1
∴ = −
(x + 4)(x − 4) 8(x − 4) 8(x + 4)
Suppose that the first linear factor is repeated r times such that (a1 x + b1 )r occurs in the
factorization of q(x). Then instead of single term a1 A 1
x+b1
, the idea is to use
A1 A2 Ak
1
+ 2
+ ... +
(a1 x + b1 ) (a1 x + b1 ) (a1 x + b1 )r
x+1
Example 4.10: Express x2 (x−1)
as a partial fraction
x+1 A B C
= + + 2
x2 (x
− 1) x−1 x x
2
x + 1 = Ax + B(x − 1)x + (x − 1)
Substituting x = 1, we’ve
A=2
Substituting x = 0, we’ve
C = −1
3 = 4A + 2B + C
3 = 8 + 2B − 1
B = −2
x+1 1 2 1
= − − 2
x2 (x − 1) x−1 x x
70
(3) Quadratic Factors:
If Q(x) has the factors (ax2 + bx + c)r where b2 − 4ac < 0, then instead of the single
partial fraction, the following sum occur in the partial fraction decomposition of p(x)
q(x)
or
r(x)
q(x)
as the case may be
A1 x + B1 A2 x + B2 Ar x + Br
+ + ... +
(ax2 + bx + c)1 (ax2 + bx + c)2 (ax2 + bx + c)r
1−x+2x2 −x3
Example 4.11: Express x(x2 +1)2
as partial fraction
1 − x + 2x2 − x3 A Bx + C Dx + E
2 2
= + 2 + 2
x(x + 1) x (x + 1) (x + 1)2
Equating the coefficients from both sides yields the following system of equations
A+B =0
C = −1
2A + B + D = 2
C + E = −1
A=1
which has the solutions
A = 1, B = −1, C = −1, D = 1, E = 0
1 − x + 2x2 − x3 1 (x + 1) x
∴ 2 2
= − 2 + 2 .
x(x + 1) x x +1 (x + 1)2
Some integrals can only be evaluated using the technique of partial fraction, the concept is
illustrated via the following examples
1
R
Example 4.12: Find 1−x2
dx
1 = A(1 + x) + B(1 − x)
71
Substituting x = 1, we’ve
1
1 = 2A ⇒ A =
2
1 1
= ln(1 − x) + ln(1 + x) + C
2 2
1
= [ln(1 − x) + ln(1 + x)] + C.
2
x2
R
Example 4.13: Find x2 +3x+2
dx
(x2 + 3x + 2) −
−3x − 2
therefore, the integrand can be written as
x2 −3x − 2
2
≡1+ 2
x + 3x + 2 x + 3x + 2
−3x − 2 −3x − 2
=
x2 + 3x + 2 (x + 1)(x + 2)
Integration by partial fraction states that there exist constants say A and B such that
−3x − 2 A B
= +
(x + 1)(x + 2) x+1 x+2
1=A
4 = −B, ⇒ B = −4
72
x2 1 4
2
=1+ −
x + 3x + 2 x+1 x+2
x2
Z Z Z Z
1 4
∴ = 1 dx + dx − dx
x2 + 3x + 2 x+1 x+2
= x + ln(x + 1) − 4 ln(x + 2) + C
Suppose that the function is defined over an interval [a, b], then it follows that for the given
value x = a the integral will be F (a) + C, and for the given value x = b the integral will be
F (b) + C. Then the difference between the two values of the integral will be F (b) − F (a) for
which a < b, this difference is written as
Z b
f (x) dx = F (b) − F (a)
a
This is called the definite integral of f (x) with respect to x from the limit x = a to the limit
x = b. In another way, it can be express as
Z b
f (x) dx = [g(x)]ba
a
= g(b) − g(a)
Note: In definite Integral, there is no arbitrary constant of integration.
73
= [2(1)3 + 2(1)2 + 1] − 2(−1)3 + 2(−1)2 − 1]
= 5 − (−1) = 6.
R2
(iii) 1
(x + 3)2 dx
1. Evaluate the indefinite integral first and then substitute the limits, consider the following
example
R4√ R√
Example 4.15: Evaluate 0
2x + 1 dx = 2x + 1 dx]40
du
Solution: Let u = 2x + 1, du = 2 dx which implies that dx = 2
R√ R 1
since 2x + 1 dx]40 = (2x + 1) 2 dx]40
R 1
= 12 u 2 du]40
3
= 12 [ 23 u 2 ]]40
3
= 13 (2x + 1) 2 ]40
3 3
= 13 (9) 2 − 13 (1) 2
= 31 (27 − 1) = 26
3
2. Evaluating the indefinite integral by changing the limits of integration when the variable
is changed, this method is usually the most preferable
R1
(ii) −1 (2x − 1)(x + 1)2 dx
R3
(iii) 0 x21+9 dx
Solution:
−du
(i) Let u = 3 − 5x, du = −5 dx ⇒ dx = 5
when x = 1 ⇒ u = −2, and when x = 2 ⇒ u = −7
1 −7 1
R2 1 R
1 (3−5x) 2 dx = − 5 −2 u2
du
−7
= − 51 −2 u−2 du
R
74
h i−7
u−1
= − 15 −1
−2
therefore substituting limits we’ve
= 51 − 17 + 21 = 14
1
.
(ii) Let t = x + 1, dt = dx
when x = −1 ⇒ t = 0, and when x = 1 ⇒ t = 2, therefore we’ve
R2 3
R2 4
0
(2t − 3)t dx = 0
(2t − 3t3 ) dt
2
= 25 t5 − 43 t4 0
= 25 (2)5 − 34 (2)4 − 0
= 24 45 − 34 = 45 .
x
(iii) Let x = 3 tan t and dx = 3 sec2 t dt, such that tan t = 3
when x = 0 ⇒ t = 0, and when x = 3 ⇒ t = π4 , therefore we’ve
R3 1 R π 3 sec2 t
0 x2 +9
dx = 04 9+9 tan2 t
dt
R π sec2 t
= 13 04 sec 2 t dt
π
= 13 04 dt
R
π
= 31 [t]04 = π
12
.
75
Test Questions CBT
(a) x2 + 4x + 3
(b). 2x2 + 4x + 3
(c) 2x + 4x
(d) 2x2 + 4x − 3
(e) 2x − 4x + 3
(a) {x|x ∈ R}
(b) {x|x 6= 0, x 6= 1, x ∈ R}
(c) {x|x 6= 3, x ∈ R}
(d). {x|x 6= 1, x 6= 3, x ∈ R}
(e) {x|x 6= 1, x 6= 2, x ∈ R}
1
5. Find the range of the function f (x) = x
(a). {y|y 6= 0, y ∈ R}
(b) {y|y 6= 1, y ∈ R}
(c) {y|y 6= 2, y ∈ R}
(d) {y|y 6= 3, y ∈ R}
(e) {y|y 6= 4, y ∈ R}
x3 +4x2 −3
6. Evaluate the limit lim x2 +5
x→−1
(a). 0
(b) 3
(c) 5
76
(d) 2
(e) 1
(a). 2x + 5
(b) 2x + 2
(c) x + 5
(d) 2x + 3
(e) x − 5
dy
8. Find the derivative ( dx ) of the function y = 6x + √4x with respect to x leaving your answer
in radicals
dy
√
(a) dx = 6x + 4 x3
dy
√3
(b) dx = 6 − 4 x2
dy √4
(c). dx
=6− x3
dy √4
(d) dx
= 6x − x3
dy √1
(e) dx
=6− x3
3x2 −2x+1
9. Evaluate the limit lim x+3
x→−∞
(a) 5
(b) +∞
(c) 0
(d) −1
(e). −∞
10. Given the functions f (x) = x + 3 and g(x) = x2 + 2, evaluate g(f (5))
(a) 27
(b) 5
(c) 54
(d). 51
(e) 13
x3 +x2 −x−1
11. Using L0 Hopital’s rule, evaluate the limit lim 2
x→1 x +2x−3
(a) −1
(b). 1
(c) 2
(d) 5
(e) 3
1 √ 3x
12. Let f (x) = x+2
and g(x) = 1−x3
be two functions, find the domain of (f + g)(x)
77
(a). −∞ < x ≤ 1
(b) x ≥ 1
(c) −∞ < x < 3
(d) x ≤ −5
(e) −∞ < x < ∞
R
13. Evaluate the integral 8x(x2 + 1) dx
(a) − 23 cos x2 + C
(b) − 12 sin x2 + C
4
(c). 5
(x2 + 1)5 + C
2
(d) 5
tan(x2 + 1) + C
2
(e) 5
cos x2 + C
R√
14. Use substitution method to evaluate the integral 4x − 3 dx
1
(a) 5(x + 2) 2 + C
3
(b) 5
(2x − 1)2 + C
1 2
(c) 4
(4x − 3) 3 + C
3 2
(d) 2
(3x − 2) 3 + C
1 3
(e). 6
(4x − 3) 2 + C
xe−x dx
R
15. Use integration by parts to evaluate the integral
78
2
18. Find the derivative of the function y = √
3x
dy 4
(a) dx
= 53 x− 3
dy 4
(b) dx
= − 13 x 3
dy 1
(c) dx
= 53 x− 3
dy 2
(d) dx
= 23 x− 3
dy 4
(e). dx
= − 23 x− 3
2
19. Use chain rule to find the derivative of the function y = (3x − 1) 3
dy 2
(a) dx
= 5(3x − 2)− 3
dy 1
(b). dx
= 2(3x − 1)− 3
dy 2
(c) dx
= 2(5x − 2) 3
dy 2
(d) dx
= (3x − 2) 3
dy 2
(e) = 3(5x − 2)− 5
dx
R2
20. Evaluate the integral 1 3x2 dx
(a) 9
(b) 10
(c) 5
(d). 7
(e) 12
79