Relation, Function and Graph-1
Relation, Function and Graph-1
1.3.1 Introduction
In mathematics, function plays very crucial role in all the brances of mathematics,
not only in the mathematics but also other fields of studies such as physics,
engineering, medicine, biology, business, computer science and industry has been
used widely. The notion of the function are used day to day life as well.
1.3.2 Ordered pair
Before defining an ordered pair we need to define what is a pair? A set with two
elements is called a pair. For examples:- a couple of crows, a pair of sandals, a pair
of bags and a pair of natural number and so on. But orders are not mentioned in each
of the above examples. Infact, a pair which are kept(arranged) in an order is
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 58
called an ordered pair. Since, (a, b) and (b, a) are two ordered pairs. In first ordered
pair a is the first element and b is the second element. But, in second ordered pair, b
is the first element and a is second element although their elements are same. The
ordered pair are written within a parenthesis bracket i.e. (,) but {} or curly brackets
are used to denote a set. The co-ordinates on a graph are represented by an ordered
pair, x and y. Where first element is x and second element is y. Two ordered pairs are
said to be equal orif the corresponding elements are same which is also called an
equality of an ordered pair. But (a, b) and (b, a) are not equal ordered pair because
their corresponding elements are different i.e. a b and b a.
And,
Q × P = {8, 9} × {2, 4, 6}
= {(8, 2), (8, 4), (8, 6), (9, 2), (9, 4), (9, 6)}
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 59
Q P
Q×P
2
8
4
9
6
Hence, P × Q Q × P
2. Find A = {2, 8, 9} find the Cartesian product with itself.
Soln: Here,
A = {2, 8, 9}
A × A = {2, 8, 9} × {2, 8, 9}
= {(2, 2), (2, 8), (2, 9), (8, 2), (8, 8), (8, 9), (9, 2), (9, 8), (9, 9)}
Representation of Cartesian product: The Cartesian product can be
represented in a mapping diagram, in a tabular form and Graphical form.
Example: If A = {2, 4, 6} and B = {a, b, c} find (A × B) in a mapping diagram,
in a tabular form and a graphical form.
Here,
A = {2, 4, 6} and B = {a, b, c}
A × B = {2, 4, 6} × {a, b, c}
= {(2, a), (2, b), (2, c), (4, a), (4, b), (4, c), (6, a), (6, b), (6, c)}
i) In a mapping diagram
A B
2 a
4 b
6 c
b
B
a
0 2 4 6
A
1.3.4 Relation
If A and B be two non-empty sets, then the relation ℜ from set A to set B is a subset
of the Cartesian product A and B i.e. A × B such that ℜ ⊆ (A × B). If (x, y)
ℜ,then we write x ℜ y and read as x is related to y. A relation from set A to itself is
called a relation on A.
In other word, an association/mapping between the elements of first set A to
the elements of second set B based on some properties(conditions) possesses by
them is called a relation. It is denoted by ℜ. Indeed, a relation is the relationship
between two or more sets of values. Let us assume that X and Y be two sets. Since,
set X has relation with set Y, then the values of x are called domain where the values
of set Y are called range.
For example:
ℜ = {(1, 2), (3, 4), (5, 6), (7, 8)}
Domain = D(f ) = {1, 3, 5, 7} [Input]
Range = R(f ) = {2, 4, 6, 8} [Output]
Types of Relations:
There are various types of relations which are described below:
(i) Empty Relation: A relation which has no relation between any elements of set
is called empty relation or void relation. For example: If A = {1, 2}. Then one
of the void relation can be ℜ = { x, y} where | x - y| = 6
(ii) Identity Relation: A relation in which every element of a set is related to itself
only.
If A = {a, b} then its identity relation i.e.
A × A = {a, b} × {a, b} = {(a, a), (a, b), (b, a), (b, b)}
It's identity Relation = I = {(a, a), (b, b)}
(iii) Inverse Relation : An inverse relation is the set of ordered pairs which is
obtained by interchanging the first and second elements of each pair. It is
denoted by R – 1. For example:
ℜ = {(2, 3), (4, 5), (6, 7), (8, 9)}
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 61
–1
ℜ = {(3, 2), (5, 4), (7, 6), (9, 8)}
(iv) Reflexive Relation: A relation ℜ in a set A is said to be reflexive if and only if
for each a A : (a, a) ℜ or a ℜ a.
For example: Let ℜ be a relation is defined on a set A = {1, 2, 3}.
ℜ = {(1, 1), (2, 2), (3, 3)}
(v) Symmetric Relation: A relation ℜ on set A is said to be a symmetric relation
iff (if and only if) (a, b) ℜ (b, a) ℜ or a ℜ b b ℜ a
Thus, a relation is a symmetric if ℜ = ℜ – 1.
For example:
Let A = {1, 2, 3} and ℜ be a relation defined on set A as:
ℜ = {(1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3)} then
ℜ – 1 = {(1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3)}
Since, ℜ = ℜ – 1, it is symmetric Relation.
Note:
a) is symmetric relation b) A × A is a symmetric relation.
(vi) Transitive relation: Let A be any set. A relation ℜ on A is said to be a
transitive relation if (a, b) ℜ and (b, c) ℜ (a, c) ℜ for all a, b, c A.
For example: If A = {1, 2, 3}. Then, the relation R = {(1, 2), (2, 3), (1, 3)} is a
transitive because 1 ℜ 2 and 2 ℜ 3 1 ℜ 3.
(vii) Equivalence Relation: A relation on a set A is called an equivalence relation
on A if it is reflexive, symmetric and transitive. It is generally denoted by the
symbol ~ .
Moreover,
10 6 – 10 – 4
or, y = 2 – 3 = 3 = 3
5 –4
Hence, the required values of x is 3 and y is 3
Example:2
If A = {1, 2}, B = {2, 3} and C = {1, 3, 4} find (i) (A B) × C
(ii) (A – B) × C (iii) (A B) × C,
Note: AB = (A – B)(B – A), where, - Symmetric Difference between sets A
and B.
Solution: Here,
A = {1, 2}
B = {2, 3}
C = {1, 3, 4}
(i) (A B) × C
A B = {1, 2} {2, 3} = {2}
(A B) × C = {2} × {1, 3, 4} = {(2, 1), (2, 3), (2, 4)}
(ii) (A – B) × C
(A – B) = {1, 2} – {2, 3} = {1}
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 63
(A – B) × C = {1} × {1, 3, 4} = {(1, 1), (1, 3), (1, 4)}
(iii) (A B ) × C
A B = (A – B) (B – A) = {1} {3} = {1, 3}
(A B) × C = {1, 3} × {1, 3, 4} = {(1, 1), (1, 3), (1, 4), (3, 1), (3, 3), (3, 4)}
Example:3
If A = {1, 2, 3, 4} and B = {1, 3, 5}. Find the relation ℜ from set A to set B
determined by the relation x > y where, x ϵ A and y ϵ B.
Solution: Here,
A = {1, 2, 3, 4}
B = {1, 3, 5}
A × B = {1, 2, 3, 4} × {1, 3, 5}
= {(1, 1), (1, 3), (1, 5), (2, 1), (2, 3), (2, 5), (3, 1), (3, 3), (3, 5), (4, 1),
(4, 3), (4, 5)}
Under the relation ℜ x >y is {(2, 1), (3, 1), (4, 1), (4, 3)}
Example:4
If A = {3, 4, 5, 6}, find the relation ℜ in A × A satisfying the condition
x + y = 9; x A, y A.
Solution: Here,
A = {3, 4, 5, 6}
A × A = {3, 4, 5, 6} × {3, 4, 5, 6}
= {(3, 3), (3, 4), (3, 5), (3, 6), (4, 3), (4, 4), (4, 5), (4, 6), (5, 3), (5, 4),
(5, 5), (5, 6), (6, 3), (6, 4), (6, 5), (6, 6)}
Under the relation ℜ x + y = 9 i.e.
(A × A)x + y = 9 is {(3, 6), (4, 5), (5, 4), (6, 3)}
Example:5
If ℜ = {(a, b), (c, d), (e, f), (g, h)}. Find ℜ 1.
Solution: Here
ℜ = {(a, b), (c, d), (e, f), (g, h)}
ℜ – 1 = {(b, a), (d, c), (f, e), (h, g)}
Exercise
1. Find the values of a and b if
a) (a + b, 2) = (3, a – b)
b) (a – 1, b + 2) = (b – 2, 2a + 1)
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 64
2) If P = {2, 3}, Q = {1, 2} and R = {2, 4, 6}. Find
a) P × Q b) Q × P c) (P Q) × R
d) (P Q) × R e) (P – Q) × R f) (P Q) × R
3) If A = {2, 4, 6} and B = {a, b, c}, find A × B and B × A. Are they equal?
4) If P = {1, 2, 3}, Q = {4, 5, 6} and R = {c, d, e} verify that:
a) P × (Q R) = (P × Q) (P × R)
b) (P × Q) (P × R) = P × (Q R)
5) Find the domain, range and inverse of the following relations.
a) ℜ 1 = {(4, 5), (5, 6), (6, 7), (7, 8)}
b) ℜ 2 = {(1, 3), (2, 5), (3, 7), (4, 9)}
c) ℜ 3 = {(1, 4), (3, 4), (5, 4), (7, 4)}
d) ℜ 4 = {(1, 4), (1, 4), (2, 1), (4, 3), (4, 5)}
6. If P = {2, 4, 6} and Q = {2, 3, 6,8}. Find the relation from set P to set Q
determined by the condition that x
divides y.Also,find the domain and range of the relation.
7. Let P= { 1,2,3,4} and the relation is defined as ℜ = {(x, y): x, y∈ P and x+ y ≤ 4}.
Express ℜ as a set of ordered pairs. Find the domain, Range and ℜ –1
Answers
5 1
1.(a) a = 2 and b = 2 b) a = 2 and b=3.
2. (a) P × Q = {(2,1),(2,2),(3,1),(3,2)}
(b)Q × P = {(1,2),(1,3),(2,2),(2,3)}
(c) (P Q) × R ={(1,2),(1,4),(1,6),(2,2),(2,4),(2,6),(3,2),(3,4),(3,6)}.
(d)(P Q) × R ={ (2,2),(2,4),(2,6)}.
(e) (P – Q) × R = {(3,2),(3,4),(3,6)}.
(f) (P Q) × R = {(1,2),(1,4),(1,6),(3,2),(3,4),(3,6)}.
3.A × B = {(2,a),(2,b),(2,c),(4,a),(4,b),(4,c),(6,a),(6,b),(6,c)}
B × A = {(a,2),(b,2),(c,2),(a,4),(b,4),(c,4),(a,6),(b,6),(c,6)}
∴(A × B) ≠ (B × A).
5. a) Domain ={4,5,6,7}, Range ={ 5,6,7,8} and inverse relation i.e. R1–1 = {(5, 4),
(6, 5), (7, 6), (8, )}
b) Domain ={1,2,3,4}, Range = {3,5,7,9} and inverse relation i.eR2–1 = {(3, 1), (5,
2), (7, 3), (9, 4)}
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 65
–1
c) Domain ={ 1,3,5,7},Range ={4} and inverse relation i.e. R3 = {(4, 1), (4, 3), (4,
5), (4, 7)}
d) Domain ={ 1,2,4},Range ={ 1,3,5}and inverse relation i.e. R4 –1 = {(4, 1), (4, 1),
(1, 2), (3, 4), (5, 4)}
6. R={ (2,2),(2,6),(2,8),(4,8),(6,6)}, Domain = { 2,4,6} and Range ={ 2,6,8}.
7. R = {(1,1),(1,2),(1,3),(2,1),(2,2),(3,1)},Domain ={1,2,3} and Range ={ 1,2,3}
1.3.5 Functions
The concept of a function was developed after the development of calculus in the
17th century. Functions are everywhere where the technologies have been used
widely. A refinement of the concept of relation provides is the important definitions
of function. In information technology, function is regarded as processing.
Definition: Let A and B be two non-empty sets. A function from set A to set B is a
relation/association/mapping/rule from A to B such that for all x A there is one and
only one (unique) element y B with (x, y) f. We write f : A B to mean f is a
function from set A to set B.
If a variable y is so related to a variable x that whenever a numerical value is
assigned to x, there is a rule according to which a unique value of y is determined,
then y is said to be a function of the independent variable x. Commonly, the relation
in Cartesian form is symbolized as y = f (x). In addition to f (x) other symbols also is
used such as g(x), h(x) and p(x) etc.
The above definition can be rephrase as given below:
A function from set A to set B is a relation or rule which associates each element of set
A with the unique element of set B. Symbolically, we write f : A B which means f
is the function from set A to set B. The equation y = f (x), read, 'y equals f of x', is said
to define the function f from A to B. Here, f (x) is known as the image of f at x. The
following mapping diagram clearly define which one is a function or not.
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 66
f g
A B A B
a 5 a e
b f
b 6 c g
c 7 d
(i) (ii)
h k
P Q
a g a p
b h b q
c k c r
(iii) (iv)
From the above mapping diagrams (i) and (iv) are functions because every
elements in a domain has unique image in the Co-domain. But, fig (ii) and fig (iii)
are not functions because in fig (iii) element 'a' has two images which disobey the
definition of a function and in fig (ii) there is one-element in a set A which doesnot
associate in set B.
Domain, Co-domain and Range of the function
Domain and Co-domain: If f : A B be a function then the first set A or set of
input is the domain and second set B is called the Co-domain of the function f .
Range : The range is the set of possible output (images) values which are shown on
the y-axis of the graph. In shorten: the set of all values of f is called the range of f .
The range of f is denoted by f (x). Or, Set of images is Range.
Example: Let P = {– 3, – 1, 0, 2, 4} and a function is defined by f (x) = x – 4. Find
the values of f (– 3), f (– 1), f (0), f (2) and f (4).
Solution: Given,
f (x) = x– 4
f (– 3) = – 3 – 4 = 3 – 4 = – 1
f (– 1) = – 1 – 4 = 1 – 4 = – 3
f (0) = 0 – 4 = 0 – 4 = – 4
f (2) = 2 – 4 = 2 – 4 = – 2
f (4) = 4 – 4 = 4 – 4 = 0
Domain of f = P = {– 3, – 1, 0, 2, 4}
Range of f = {– 1, – 3, – 4, – 2, 0}
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 67
Image and Pre-imageof a function: If a function f : A B where x A and y B
then y = f (x) is said to be image of f at x or value of f at x. Then, x is said to be a
Pre-image of y under f . For eg:-
f
A B
a 4
b 5
c 6
d 7
Thus, in this case, for x1 x2, we must have f (x1) f (x2). [distinct object distinct
image]
Equivalently, f (x1) = f (x2) x1 = x2. [ equal image equal object]
Counter Example:-
a) The function f : ℕ ℕ is defined by f (x) = x2 where ℕ is the set of
natural numbers.
Solution:-
Given, f : ℕ ℕ where, ℕ = {1, 2, 3, 4 .....}
Now,
2, 3 ℕ f (2) = 22 = 4
f (3) = 32 = 9
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 68
Then, 2 3 f (2) f (3)
Hence, f is one to one function.
N N
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 10
b) If f : ℝ ℝ be defined by f (x) = 4x – 3.
Solution:- For any x1, x2 ℝ
let f(x1) = f (x2) 4x1 – 3 = 4x2 – 3
4x1 = 4x2
x1 = x2
f (x1) = f (x2) x1 = x2
Hence, f is one to one or injective function.
(ii) Onto function (or Surjective function): A function f : A B is said to be
onto or surjective if every element of B has at least one Pre-image in set A.
OR,
This means that f : A B is onto function if range of f is equal to Co-domain
then f (A) = B or f(x) = y , Where x A and y B.
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 69
Counter Examples:
a) If ℝ be the set of real numbers, show that the function defined by
f : ℝ ℝ such that f (x) = 4x – 7, x ℝ onto function.
Solution:-
Let y = f(x), then
y = 4x – 7
or, y + 7 = 4x
y+7
or, x = 4
Given, f (x) = 4x – 7
y + 7 y + 7
f 4 = 4 4 – 7 = y + 7 – 7 = y
⇒ f(x) = y
So, f is onto function.
b) If f : ℞ + ℞ + be defined by f(x) = x, where ℞ +is the set of positive
integers. It can be shown as;
f
℞+ ℞+
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
Solution:-
Let y = f(x)
⇒ y = 2x
𝑦
⇒ x=2
⇒ for every y ∈ ℞+, x ∉ ℞+. Hence, given function is not onto.
d) Check whether f : [– 2, 3] ℝ given f (x) = x3 onto function.
Solution: Here,
f (x) = x3
And, f : [– 2, 3] ℝ
f (– 2) = (– 2)3 = 8
f (3) = 33 = 27
– 2 3 8 27
So, f is one to one function
Again, For onto function,
Range of f = Co-domain of f
But, Range of f = [f (– 2), f (3)]
= [– 8, 27]
Here, Co-domain of f = R
but, [– 8, 27] ℝ
Hence, f is not onto function.
e) Let P = {2, 4, 6} and Q = {2, 6}. If a function f : P Q is onto function.
f
P Q
2
2
4
6
6
Counter Examples:
a) Let P = {2, 3, 4, 5} and Q = {3, 4, 5, 6} and a function f : P Q is defined by
f (x) = x + 1. Is it a bijective function ?
Here,
P = {2, 3, 4, 5} P
f(x) = (x + 1)
Q
Q = {3, 4, 5, 6} 2 3
Since, every elements of domain have unique image in co-domain. 3 4
So, it is one to one function. And, range is equal to co-domain. It is 4 5
also onto function. 5 6
Example:2
Let A = {0, 1, 2, 3, 4, 5, 6} and a function f : A ℚ is defined by
x
f (x) = 2. Find the range of f , where ℚ is the set of rational numbers.
Solution: Here,
x
f : A Q be defined by f (x) = 2,
where A = {0, 1, 2, 3, 4, 5, 6}
0
when x = 0, f (0) = 2 = 0
1
when x = 1, f (1) = 2
2
when x = 2, f (2) = 2 = 1
3
when x = 3, f (3) = 2
4
when x = 4, f (4) = = 2.
2
5
when x = 5, f (5) = 2
6
when x = 6, f (6) = 2 = 3
1 3 5
Range of f = 0‚ 2‚ 1‚ 2‚ 2‚ 2‚ 3
Example:3
If a function f (x) is defined by f (x) = 4x – 3 on the interval [– 2, 2], find the value
1
of the following: a) f(0) b) f(3) c) f(2) d) f 2
Solution: Here,
f (x) = 4x – 3
a) When x = 0, f (0) = 4 × 0 – 3 = – 3 [ x [– 2, 2] – 2 x 2]
b) When x = 3, f (3) is not defined because 3 [– 2, 2].
c) When x = 2, f (2) = 4 × 2 – 3 = 8 – 3 = 5
1 1 1
d) When x = 2, f 2 = 4 × 2 – 3 = 2 – 3 = – 1
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 74
Example:4
If f : ℕ ℕ is a functions defined by f (x) = 4x – 3. Find
(i) f (2), f (3) and f (4)
(ii) The domain and range of f
(iii) Is this function bijective. Justify your answer.
Solution: Here,
f (x) = 4x – 3
For (i) f (2) = 4 × 2 – 3 = 8 – 3 = 5
f (3) = 4 × 3 – 3 = 12 – 3 = 9
f (4) = 4 × 4 – 3 = 16 – 3 = 13
For (ii) Domain of function f = { 2, 3, 4} and the range of function f = {5, 9, 13}.
x y = f(x)
Example:
1. Let f: X Y be defined by the function shown in an arrow diagram. Then,
X Y
a 1
b
c 2
d 3
2. If h : Z Z defined by the function f(x) = x2, then
f – 1 (9) = {3,– 3}, f –1(4) = {2, – 2}, f –1(0) = 0,
f –1(– 2) = and so on.
b) Inverse function: Let f: A B be a bijective function (i.e. one to one and
onto). Then, there exists an another function f – 1: B A, which associate every
elements of set B to the unique element of set A. Such function is called the
inverse function of f and it is denoted by f – 1.
In other word "If f is a function then the set of ordered pair obtained by interchange
the first and second co-ordinates of each ordered pair in f is called the inverse of f. It
is denoted by f – 1. For example:
If G = {(1, 2), (3,4), (5, 6), (7,8)}
G – 1 = {(2, 1) (4,3), (6,5), (8,7)}
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 79
A f B B f –1 A
1 2 2 1
3 4 4 3
And,
5 6 6 5
7 8 8 7
Notes:
i) To find inverse function, first of all, need to check whether it is bijective or not.
ii) When a function is a bijective, then f – 1 exist.
1
iii) f – 1(x) f(x) . It is very important not to confuse function notation, with negative
exponents.
Required steps to find the inverse function:
Sept 1: Check whether the given function is a bijective or not. If it is not then write
inverse does not exist. If it exists then go to step 2.
Step 2: Change f(x) to y.
Step 3: Interchange x and y.
Step 4: Solve for y.
Step 5: Change y back to f – 1(x).
Counter Example:-
If a function f: ℝ ℝ defined by f(x) = 4x – 7, x ℝ. Find f – 1 (x).
Solution:-
let y = f(x)
Given, f(x) = 4 x – 7.
Or, y = 4x – 7
Interchanging x and y. We get
x = 4y – 7
Or, 4y = x + 7
x+7
Or, y = 4
(x + 7)
Or, f – 1(x) = y = 4
(x + 7)
f – 1(x) = 4 .
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 80
c) Composition of functions: A composite function is a function that depends on
another function. A composite function is created when one function is
substituted into another function. For example, f (g (x)) is the composite
function that is formed when g(x) is substituted for x in f(x). f(g(x)) is read as "f
of g of x".
f(g(x)) can also be written as (fog) (x) or fg(x). In the composition (fog)(x),
then domain of f becomes g(x).
Let f:A B and g : B C be any two functions defined from A to B and B to
C. Then, the new function defined from A to C is called composite
function(function of function) of f and g. It is denoted by gof or gf. For
example:
A f C
g0f
a 6
b 8
c 9
B
f 1 g
2
From the above mapping diagram, gof = {(a,6), (b,8), (c, 9)}.
Example:1
If f = {(a, 1), (b, 2), (c, 3) (d, 4)} and g = {1, 4), (2, 5), (3, 6), (4, 8)}. Find the value
of gf (a), gf(c) and gf(d).
Solution: Here,
f = {(a, 1), (b, 2), (c, 3), (d, 4)}.
g = {(1, 4), (2, 5), (3, 6), (4, 8)}.
gf (a) = g[ f(a)] = g(1) = 4 i.e (a, 4).
gf (c) = g[f(c)] = g(3) = 6 i.e. (c, 6).
gf (d) = g[f(d)] = g(4) = 8 i.e (d, 8).
Example:2
If A, B and C be the sets of real number. Such that f : A B and g : B C are defined
by f(x) = x2 + 6 and g(x) = 2x – 1, find (a) (fog) (x) (b) (gof) (x).
Solution: Here,
f(x) = x2 + 6.
g(x) = 2x – 1.
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 81
(a) (fog) (x) = f[g(x)]
= f(2x – 1) = (2x – 1)2 + 6.
2
= 4x – 4x + 1 + 6. = 4x2 – 4x + 7.
(b) (gof) (x) = g[f(x)]
= g (x2 + 6) = 2 (x2 + 6) – 1
= 2x2 + 12 – 1 = 2x2 + 11.
Properties of composite functions:
1. Composite functions are not commutative i.e. fog gof.
2. Composite function are associative i.e. (fog)oh = fo(goh).
3. A function f : A B and g : B C are one to one functions.
Then gof : A C is also one to one.
4. A function f: A B and g: B C are onto function then gof: A C is also
onto. Indeed, two functions f and g can be combined in various ways to form a
new function, such as:
i) (f g) (x) = f(x) g(x)
ii) (fg) (x) = f(x). g(x)
f f(x)
iv) g (x) = g(x) ; g (x) 0.
Worked out examples:
Example:1
By studying the adjoining diagram, find the values of the following:
i) h – 1 (d) ii) h – 1 (a)
iv) h – 1(a, b, c) iv) h(p)
h
P Q
2 a
4 b
6 c
8 d
Solution:
Here,
From the given mapping diagram
i) h – 1(d) = ii) h – 1 (a) = {2, 4}
iii) h – 1(a, b, c) = {2, 4, 6} iv) h(p) = {a, b, c}
Example:2
If h(a) = 4, h(b) = 6 and h(c) = 8 where P = {a, b, c} and Q = {4, 6 8}. Write down
h – 1: Q P as a set of ordered pairs
Solution: Here,
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 82
h(a) = 4
h(b) = 6
h(c) = 8
h(x)
P h(x) Q
a 4
b 6
c 8
It is a bijective function because distinct elements of set P has distinct image in set Q
i.e. it is one to one function. Also, it is onto function as well because range i.e. {4, 6
8} is equal to co-domain.
Function h(x) is a bijective so that h – 1(x) exists.
Now, h(a) = 4 a = h – 1 (4) or, h – 1 (4) = a
h(b) = 6 b = h – 1 (6) or, h – 1 (6) = b
h(c) = 8 c = h – 1(8) or, h – 1 (8) = c
h – 1 : Q P = {(4, a), (6, b), (8, c)}
Example:3
If a function g: ℝ ℝ defined by g(x) = 4x – 7, x ℝ. Check whether g is one to
one or onto or both. Find g – 1 (x).
Solution:
Here,
Since, g : ℝ ℝ defined by
g(x) = 4x – 7, x ℝ.
At first, we need to check whether a given function is a bijective or not.
For this, Let x1, x2 ℝ (domain).
g(x1) = 4x1 – 7 and g(x2) = 4x2 – 7.
Now, g(x1) = g(x2) 4x1 – 7 = 4x2 – 7
4x1 = 4x2
x1 = x2
i.e. g(x1) = g(x2) x1 = x2.
g is one to one function.
For onto function: Let, y ℝ. Then,
g(x) = 4x – 7, x ℝ.
Or, y = 4x – 7
Or, y + 7 = 4x
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 83
(y + 7)
4 R (Which is a real number).
Or, x=
y + 7 y + 7
Or, g 4 = 4. 4 – 7
=y+7–7 =y
y + 7
g 4 =y
It is onto function because range is equal to co-domain.
Hence, function g(x) is one to one onto so the inverse of a function g(x) i.e. g– 1(x) exists.
Now, To find g– 1(x),
g (x) = 4 x – 7.
Or, y = 4x – 7
Interchanging x and y. We get
x = 4y – 7
Or, 4y = x + 7
x+7
Or, y = 4
(x + 7)
Or, g – 1(x) = y = 4
(x + 7)
g – 1(x) = 4
Example:4
Let h : ℝ ℝ by h(x) = 3x + 2 and g: ℝ ℝ by g(x) = x3. Then find:
a) goh (x) b) hog (x) c) gog (– 3) d) goh– 1(x).
Solution:
Here,
h(x) = 3x + 2 and g(x) = x3.
Since, the function h(x) is a linear. So, it is always a bijective. Therefore, h– 1(x)
exists.
Then, h(x) = 3x + 2
Or, y = 3x + 2
Interchanging x and y, we get.
x = 3y + 2.
Or, x – 2 = 3y
(x – 2)
Or, y = 3
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 84
(x – 2)
Or, h– 1 (x) = y = 3 .
a) goh (x) = g[h(x)] = g(3x + 2)
= (3x + 2)3 = (3x)3 + 3.(3x)2. 2+ 3 .3x.22 + 23
= 27x3 + 54 x2 + 36x + 8
b) hog(x) = h[g(x)] = h(x3)
= 3.x3 + 2 = 3x3 + 2.
c) gog (–3) = g[g(– 3)] = g{(– 3)3}
= g (– 27) = (– 27)3 = – 19683.
3 3 3 2
–1 x – 2 x – 2 (x – 2) x – 6x + 12x – 8
d) goh (x) = g 3 = 3 = 27 = .
27
Example:5
Find the domain and range of the following function defined on the real valued
functions.
1
a) y = 3x + 1 b) y = – x2 + 4x – 3 c) y = x + 1
𝑥−2
d) y = x2 – 3x – 4 e) 𝑥−2
a) Solution: Here,
y = 3x + 1.
For domain,
For all x ℝ, y is defined.
Domain of f = D(f) = (– , ) = ℝ.
For range;
y = 3x + 1.
Or, 3x = (y – 1)
y–1
Or, x = 3 ℝ.
For all x ℝ, y ℝ
Range of f = ℝ = (– , ).
b) Solution: Here,
y = – x2 + 4x – 3.
For domain,
For all x ℝ, y is defined.
Domain of f = D (f) = ℝ = (– , ).
For range:
y = – x2 + 4x – 3
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 85
2 2 2
Or, –y = x – 2.x.2 + 2 – 2 + 3.
Or, –y = (x – 2)2 – 4 + 3.
Or, –y = (x – 2)2 – 1
Or, 1–y = (x – 2)2
As, (x – 2)2 0.
So, (1 – y) 0.
Or, 1 y.
Or, y (– , 1]
Range of f = R(f) = (– , 1)
c) Solution: Here,
1
y = (x + 1)
For domain:
y is defined for all x except at x = – 1
Domain of f = y = ℝ – {– 1}.
For range;
1
y = x+1
Or, xy + y = 1.
Or, xy = 1–y
1–y
Or, x = y ; Provided y 0.
Range of f = ℝ – {0}.
d) Solution:
Here,
y = x2 – 3x – 4
2
3 3 32
Or, y = x2 – 2.x. 2 + 2 – 2 – 4
2
3 25
Or, y = x – 2 – 4
2 2
3 5
Or, y = x – 2 –2
The function is defined only where
2
{ 32 5
x – 2 – 2
} 0.
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 86
2 2
3 5
Or, x – 2 – 2 0.
2
32 5
Or, x – 2 2 .
3 5
Or, x – 2 2
For + ve sign, For – ve sign,
3 5 3 5
x– 2 2 x–2–2
8 3 5
Or, x 2 Or, x 2 – 2
3–5
Or, x4 Or, x 2
Or, x – 1
Domain of f = [4, ) [– 1, )
For range;
y = x2– 3x – 4
Or, y2 = x2 – 3x – 4
Or, y2 + 4 = x2– 3x.
3 32 32
Or, y2 + 4 = x2 – 2.x. 2 + 2 – 2 .
2
9 3
Or, y2 + 4 + 4 = x – 2 .
2
3 25
Or, y2 = x – 2 – 4
2 2
3 5
Or, y= x – 2 – 2
2 2
If {x – 32 – 32 } 0 the range is only defined. So,
Range of f = R (f) = [0, ).
𝑥−2
e)
𝑥−2
𝑥−2
𝑥−2
= 1 𝑖𝑓 𝑥 − 2 ≥ 0
𝑥−2
Solution: Let y = e) = 𝑥−2
𝑥−2
− = −1 𝑖𝑓 𝑥 − 2 < 0
𝑥−2
So, Domain = ℝ -{2} and Range = {1, 1}
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 87
Exercise-3.3
1. a) Let f: P Q be defined by f = {(a, b), (b, c), (c, d), (d, e) be a function. If
f – 1 exists, find f – 1as a set of ordered pairs.
b) Draw a mapping diagram of the inverse of the function f.
c) Let P = {1, 2, 3, 4}, Q = {4, 5, 6, 7} and f: P Q is a function such that
f(1) = 4, f(2) = 5, f(3) = 6 and f(4) = 7. Find f– 1 as a set of ordered pairs.
2. If f: ℝ ℝ defined by the following functions. Find the inverse of each of the
given functions.
a) f(x) = x3 + 5
b) f(x) = 4x – 7, x ℝ
c) f(x) = cx + d, where c 0.
3. a) If f = {(1, 2), (3, 4), (5, 6)} and g = {(2, 3), (4, 1), (6, 5)}. Find fog and
gof. Are they equal?
b) Find fog and gof of the following:
i) f(x) = 2x + 3, g(x) = x2, ii) h(x) = 2x – 1, k(x) = x2 – 2.
x+2
iii) k(x) = 2x + 1, g(x) = 3 iv) p(x) = x3 – 1 and q(x) = x2.
4. Let ℚ be the set of all rational number. Show that the function f: ℚ ℚ Such
that f(x) = 3x – 5 for all x ℚ. Find f – 1 (x).
5. State the condition for a function to be bijective, f(x) = x3 + 5, x R, find f – 1.
6. If f: ℝ ℝ be defined by f(x) = x 2 – 3, find f – 1(x). Also, determine
whether fof – 1(x) = f – 1of(x).
1
7. Show that f : ℝ – {2} ℝ – {0} given by f(x) = (x – 2) is bijective. Also, find
f – 1.
8. If f : ℝ ℝ defined by f(x) = 2x + 3 is bijective. Also, find f – 1(2).
9. Find the domain and range of the following real valued functions.
a) y = 4x – 3 b) y = x2 – 1 c) y = x3.
1
d) y = x + 5 e) y = x f) y = – x2 + 4x – 3
x
g) y = 5 – (x + 3)2 h) y = |x| i) y = x – 2
x2 – 16
j) y = x – 4 k) y = x2 – 2x – 8 l) y = 21 – 4x – x2
|x – 1| 1 1
m) y = x – 1 n) y = 2 o) y =
x + 6x + 8 4 + 3x – x2
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 88
10. If g : ℝ ℝ, h : ℝ ℝ defined by g = {(a, d), (b, e), (c, f)} and hog = {(a, a),
(b, e), (c, i)}. Find h. Present hog in arrow diagram. Can goh be defined? Given
reason.
Answers
1. (a) f–1 = { (b,a),(c,b),(d,c),(e,d)} (c) f–1 = { (4,1),(5,2),(6,3),(7,4)}
3 x+7 x–d
2. (a) f –1(x) =y= 𝑥– 5 (b) f –1(x) = 4 (c) f –1(x) = c
3 (a) fog={ (1,3),(3,1),(5,5)} (b) gof={ (3,1),(1,3),(5,5)}.Yes, they are equal
2
(b) (i) gof=4x +12x +9 (ii) hok =2x2 –5
(iii)koh = 4x2 –4x –1 (iv)poq=x6 –1
(v) qop =x6–2x3 +1
x+5 3
4. f –1(x) = 3 (5) f –1(x)= 𝑥– 5 (6) f –1(x) = 𝑥 + 3
1 1
7. f –1(x) = x +2 (8) f–1(x) = – 2
y=4
x
x' O
y'
y=x+2
(0, 2)
O
x' x
(– 2, 0)
y'
y = f(x) = x
x' x
O
y'
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 90
d) Quadratic function: A function f: A B defined by y =f (x) = ax2 + bx + c, a
0 for x A, where a, b and c are constants, is called a quadratic function.
If A = B = ℝ, the set of real numbers, the function defined by y = f(x)= x 2 is a
quadratic function. The graph of a quadratic function is shown in the adjoining
diagram.
y
y = x2
x' x
O
y'
y = x3
x' x
y'
f) Greatest integer function: The greatest integer function is denoted by y = [x].
For all real number x. the greatest integer function returns the largest integer
less than or equal to x. Since, it can be written to the nearest integer. For
example:
[1] = 1, [1.5] = 1, [3.7] = 4, [4.3] = 4
Beware;
[– 2] = – 2 [– 1.6] = – 2, [– 3.2] = – 3.
For example; if we have f(x) = [– 1.6], the two closest integer are – 1 and – 2.
For the greatest integer value, we always choose the small integer, this means
that [– 1.6] = – 2.
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 91
Also, if the number inside the brackets is an integer, we return to the original number
such as [2] = 2, [– 5] = – 5 and [0] = 0
Let us see the graph of the greatest integer function as:
x –4x–2 –2x0 0x2 2x4
Y –4 –2 0 2
y
x' x
O
y'
p(x)
g) Rational function: A function f defined by f (x) = q(x), where p(x) and q(x)
are polynomial in x and q(x) 0 is known as a rational function for example:
4x3 – 3x2
f(x) = x2 + 8x – 7 is a rational function.
h) Absolute value function: If x is a real number, then absolute value or modulus
of x is a non- negative real number denoted by |x| is defined by;
𝑥 𝑖𝑓 𝑥 ≥ 0
|x| =
−𝑥 𝑖𝑓 𝑥 < 0
Since, the domain of the absolute value is the set of real number and range is
non-negative real number. Thus,
Domain = D(f) = ℝ
Range = R(f) = [0, )
The graph of the absolute value function f(x) = |x| is shown in the adjoining
figure,
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 92
y
x
O
y'
x' x
–360º –270º –180º –90º 0 90º 180º 270º 360º
y' |sinx | 1
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 93
ii) Cosine function: A function f: ℝ ℝ is said to be cosine function if it is
expressed as f(x) = y = cosx.
Domain = D (f) = ℝ.
Range = [– 1, 1]
Table of cosine function:
y
+1
x' x
–360º –270º –180º –90º 0 90º 180º 270º 360º
–1
|cosx | 1
y'
iii) Tangent function: A function f: ℝ – { (2n + 1). 2 , n ℞ ℝ is said to be
tangent function if it is expressed as y = f(x) = tan x.
Domain = D (f) = ℝ – { (2n + 1). 2 , n ℞ }.
Range = ℝ
Table of tangent function:
0º 30º 45º 60º 90º 120º 135º 150º 180º 210º 225º 240º 270º 300º 315º 330º 360º
Y= tan 0 0.58 1 0.73 –1.73 – 1 –0.58 0 0.58 1 1.73 –1.73 –1 –0.58 0
y
– 270º – 90º 90º 270º
x x'
O
y'
By the above method, the graph of cosec, sec and cot can be shown.
b) Exponential function: A function f: ℝ (0, ) defined by y = f(x) = ax,
x ℝ where a 0, a 1 is called an exponential function of base a. It is bijective ex
n
lim 1 lim
n
is a typical exponential function. Where, e= 1 + n = (1+h)1/h.
h
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 94
y y
y = a,x a 1
(0, 1)
(0, 1)
x x' x x'
O O
o a 1
y' y'
x x
y = (1/2) y=2
(0, 1)
x x'
O
y'
x
1
And, Graph of y = 2 and y = 2xintersect at the point (0, 1).
c) Logarithmic function: Let a and b are two positive real number and a 1. Such
that ax= b then x is called logarithmic of b to the base a . i.e. ax = b x logab.
The domain of the logarithmic function is the set of positive real numbers ℝ +
and the range is ℝ.
Remarks
i) The logarithm of a number with base 10 is called common logarithm and the
logarithm with base e is called natural logarithm.
ii) The natural logarithm i.e. logex is simply written as lnx.
The graph of y = logex = logx = lnx.
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 95
y
y = ax
(1, a)
y = loga x
(a, 1)
(0, 1)
x x'
O (1, 0)
y'
x
Or, (p – q) = logay
x
Or, loga x – logay = logay
x
loga y = (logax – logay)
Theorem-4: For any positive number x, y and a.
logax = logab. logbx (change base)
Proof:
Let, logbx = P x = bp
Hence, logax = logabp = plogab= logab. logbx
1
Theorem -5: For any positive number x, n and a, logana = n logax ; n 0.
Proof:
loganx = logana. logax …… (i)
Put, logana = y a = (an)y
a = any
ny = 1
1
y =n
1
logana = n
Then,
loganx = logana. logax.
1
loganx = n . logax.
Theorem -6: Prove that loga1 = 0
Proof: Here,
aº = 1
Or, 0 = loga1
Or, loga1 = 0
Theorem-7: For any positive integer a, Prove that logaa =1.
Proof: Here,
a1= a
Or, loga a= 1 [ 23 = 8 log28 = 3]
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 97
Theorem-8: For all positive real numbers a and b, prove that: logab. logba= 1.
Proof: Here,
logaa = logab. logba.
Or, 1 = logab. logba.
logab. logba = 1.
Example:3
Prove that: xlogy –logz.ylogz –logx. zlogx–logy= 1.
Solution: Here,
Put, k = xlogy –logz.ylogz –logx. zlogx–logy
Taking 'log' both sides.
logk = log (xlogy –logz.ylogz –logx. zlogx–logy)
Or, logk = logxlogy –logz + ylogz –logx + zlogx–logy
Or, logk = (log y – logz). logx + (logz – logx). logy + (logx – logy). logz
= logx. logy – logx. logz + logy. logz –logx. logy + logx. logz –logy. logz
Or, logk = 0
Or, logk = log 1
Or, k = 1.
xlogy –logz.ylogz –logx. zlogx–logy= 1.
R.H.S. = R.H.S
Example:4
If x= log2aa, y = log3a2a and z = log4a3a, Prove that: xyz + 1 = 2yz.
Solution: Here,
x = log2aa, y = log3a2a and z = log4a3a.
L.H.S.
xyz + 1
= log2aa. log3a2a. z + 1 = log3a2a. log2aa.z + 1 = log3aa.z + 1
= log3aa. log4a3a + 1 = log4a3a. log3aa + 1 = log4aa + 1
= log4aa + log4a4a = log4a (a. 4a) = log4a(2a)2
= 2log4a2a. = 2. log4a 3a. log3a2a = 2.z.y
= 2yz = R.H.S
Example:5
1
If log45 = a and log56 = b, then prove that: llog23 = 2ab –1
Solution: Here,
a= log45 and b = log56.
a.b = log45. log56
Or, 2ab = 2log46.
log 6
Or, 2ab – 1 = 2 log4 – 1
log(2 × 3)
Or, 2ab – 1 = 2. log22 – 1.
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa Mathematics| 99
log2 + log3
Or, 2ab – 1 = 2. –1
2log2
log2 log3
Or, 2ab – 1 = log2 + log2 – 1
log3
Or, 2ab – 1 = 1 + log2 – 1.
log3
Or, 2ab – 1 = log2
1 log2
Or, 2ab –1 = log3
1 logb
log32 = 2ab – 1 [ logab = loga ]
logb logb
Note: [Let, logab = p b = ap logb = logap logb = ploga =P = logab]
loga loga
Exercise - 3.5
1 (a) Prove that: Cosh2x = 2cosh2x – 1
2tanhx
b) Prove that: tanh2x = 1 + tanh2x
2. Find the value of x if
–1
a) log5x = 5 b) log5x = 2
3. Prove that:
3
pq
a) loga r2 = logap + 3logaq – 2logar. b) logax = logax2 – 2loga x
logx
c) b = x. d) log (4 + 5 + 6) = log4 + log5 + log6
7
e) loga a a a = 8
4. Prove that:
a) xlog (y/z). ylog(z/x). zlog(x/y) = 1.
b) (yz)logy –logz. (zx)logz –logx. (xy)logx – logy = 1.
a+b 1
5. If a2 + b2 = 7ab, then prove that: log10 3 = 2 (log10 a + log10b)
1 + x
6. If h(x) = log 1 – x (– 1 < x < 1), show that;
a+b
h(a) + h(b) = h 1 + ab (|a| < 1, |b| < 1)
Kumar Subedi, Lecturer, Mechi Multiple Campus, Jhapa
Mathematics| 100
logx logy logz
7. If y – z = z – x = x – y , prove that xx. yy. zz = 1.
4 5
8. Show that: logv 43 × logw v5 × log4 w4 = 3
1 1 1
9. If x = logabc, y = logbca, z = logcab Prove that: x + 1 + y + 1 + z + 1 = 1
Answer
1
2(a) 3125 b)
5