Anil.S.C Jnnce, Shivamogga
Anil.S.C Jnnce, Shivamogga
C
JNNCE, SHIVAMOGGA
A × B = {(a, b): a ∈ A, b ∈ B}
A × B is not same as B × A
B × A = {(b, a): b ∈ B, a ∈ A}
𝐏𝐫𝐨𝐛𝐥𝐞𝐦𝐬:
Solution: A × B = {(1,2)(1,3)(3,2)(3,3)(5,2)(5,3)}
B × A = {(2,1)(2,3)(2,5)(3,1)(3,3)(3,5)}
B × C = {(2,4)(2,6)(3,4)(3,6)}
A × C = {(1,4)(1,6)(3,4)(3,6)(5,4)(5,6)}
(A × B) ∪ C = {(1,2)(1,3)(3,2)(3,3)(5,2)(5,3), 4,6}
A ∩ (B × C) = ∅
(A × B) ∪ (B × C) = {(1,2)(1,3)(3,2)(3,3)(5,2)(5,3)(2,4)(2,6)(3,4)(3,6)}
(A × B) ∩ (B × A) = {(3,3)}
(A × B) ∩ (B × C) = ∅
ANIL.S.C
JNNCE, SHIVAMOGGA
Solution:
A×B
= {(1,3(1,4)(1,5)(1,6)(2,3)(2,4)(2,5)(2,6)(3,3)(3,4)(3,5)(3,6)(4,3)(4,4)(4,5)(4,6)}
B×A
= {(3,1)(3,2)(3,3)(3,4)(4,1)(4,2)(4,3)(4,4)(5,1)(5,2)(5,3)(5,4)(6,1)(6,2)(6,3)(6,4)}
A × (B ∪ C) = {1,2,3,4} × {2,3,4,5,6}
= {(1,2)(1,3)(1,4)(1,5)1,6)(2,2)(2,3)(2,4)(2,5)(2,6)(3,2)(3,3)(3,4)
(3,5)(3,6)(4,2)(4,3)(4,4)(4,5)(4,6)}
B × C = {(3,2)(3,4)(3,6)(4,2)(4,4)(4,6)(5,2)(5,4)(5,6)(6,2)(6,4)(6,6)}
(A × B) ∩ (B × C) = {(3,4)(3,6)(4,4)(4,6)}
Solution:
Let (x, y) ∈ A ∩ B
(x, y) ∈ A and (x, y) ∈ B
y = 5x − 1 and y = 6x
5x − 1 = 6x
x = −1 and y = −6
A ∩ B = {(−1, −6)}
Let (x, y) ∈ B ∩ C
(x, y) ∈ B and (x, y) ∈ C
y = 6x and 3x − y = −7
6x = 3x + 7
7
x = 3 , not possible because x ∈ Z
B∩C=∅
ANIL.S.C
JNNCE, SHIVAMOGGA
A A ∩ C and ̅̅̅̅̅̅̅
̅ ∪ C̅ = ̅̅̅̅̅̅̅ ̅ ∪ C̅ = ̿̿̿̿̿̿̿
A A∩C=A∩C
Let (x, y) ∈ A ∩ C
(x, y) ∈ A and (x, y) ∈ C
y = 5x − 1 and 3x − y = −7
5x − 1 = 3x + 7
x = 4 and y = 19
̅̅̅̅̅̅̅
̅ ∪ C̅ = A ∩ C = {(4,19)}
A
̅ ∪ C̅ = ̅̅̅̅̅̅̅
B B ∩ C but B ∩ C = ∅
̅ ∪ C̅ = ̅̅̅̅̅̅̅
B B ∩ C = Z × Z, Universal set.
b) A × (B − C) = (A × B) − (A × C) (JAN 2020)
c) (A ∪ B) × C = (A × C) ∪ (B × C) (JAN 2021)
d) A × (B ∩ C) = (A × B) ∩ (A × C) (JAN 2021)
e) (A ∩ B) × C = (A × C) ∩ (B × C)
𝐑𝐄𝐋𝐀𝐓𝐈𝐎𝐍𝐒
Let A and B be two sets then A × B is a relation from A to B.
Problems:
1) Let A and B be finite sets with |B| = 3. If there are 4096 relations from A to B,
then what is|A|?
2mn = 4096
loge 4096
=> m = =4
3loge 2
ANIL.S.C
JNNCE, SHIVAMOGGA
Functions
A function f from a non empty set A to a non empty set B is a relation from A to B
such that for each a ∈ A there is a unique b ∈ B and (a, b) ∈ f ie b = f(a).
Here b is called image and a is called preimage of b.
3x − 5, x > 0
5) Let f: R → R be defined by f(x) = {
−3x + 1, x ≤ 0
(JAN 2020, APR 2022, AUG 2021)
5 5
a) Determine f(0), f(−1), f (3) , f (− 3)
5 5
a) f(0) = 1, f(−1) = 4 , f (3) = 0, f (− 3) = 6
5
b) f −1 (0) = {x ∈ R: f(x) = 0} = {3}
4
f −1 (−1) = {x ∈ R: f(x) = −1} = { }
3
8 2
f −1 (3) = {x ∈ R: f(x) = 3} = { , − }
3 3
2
f −1 (−3) = {x ∈ R: f(x) = −3} = { }
3
If x > 0, −5 ≤ 3x − 5 ≤ 5
or 0 ≤ 3x ≤ 10
10
or 0≤x≤
3
If x ≤ 0, −5 ≤ −3x + 1 ≤ 5
or − 6 ≤ −3x ≤ 4
4
or − 2 ≤ −x ≤
3
4
or −3≤x≤2
4 10
f −1 ([−5,5]) = {x ∈ R: [− ≤ 𝑥 ≤ 2 𝑜𝑟 0 ≤ 𝑥 ≤ }
3 3
ANIL.S.C
JNNCE, SHIVAMOGGA
4 10 4 10
= {x ∈ R: [− ≤ 𝑥 ≤ ]} = [− , ]
3 3 3 3
If x > 0, −6 ≤ 3x − 5 ≤ 5
or − 1 ≤ 3x ≤ 10
1 10
or − ≤x≤
3 3
If x ≤ 0, −6 ≤ −3x + 1 ≤ 5
or − 7 ≤ −3x ≤ 4
7 4
or − ≤ −x ≤
3 3
4 7
or −3≤x≤3
4 7 1 10
f −1 ([−6,5]) = {x ∈ R: [− ≤ x ≤ or − ≤ x ≤ }
3 3 3 3
4 10 4 10
= {x ∈ R: [− ≤ x ≤ ]} = [− , ]
3 3 3 3
Types of functions:
1) Identitiy function: A function f: A → A such that f(a) = a, ∀a ∈ A is called identity
function.
elements of A have different images in B. One to one function is also called injuctive function.
5) One to one correspondence: A function which is both one to one and onto is called a
one to one correspondence or a Bijective function or Bijection.
Properties of functions:
1) Let A and B be finite sets and f be a function from A to B, then the following are true.
a) If f is one to one then |A| ≤ |B|
b) If f is onto then |B| ≤ |A|
d) If f is a one to one correspondence, then |A| = |B|
e) If |A| > |B| then atleast two different elements of A have the same image.
Problems:
Solution:
2) Let A and B be finite sets, if there are 60 one to one functions from A to B and
|A| = 3, what is |B|?
n!
Here m = 3 and = 60, n is to be determined.
(n − m)!
n!
(n−3)!
= 60
n(n−1)(n−2)×(n−3)!
(n−3)!
= 60
n(n − 1)(n − 2) = 60
n=5
|B| = 5
3) If A = {1,2,3,4,5} and there are 6720 one to one functions from A to B. What is |B|?
(AUG 2020)
n!
Here m = 5 and = 6720, n is to be determined.
(n − m)!
n!
(n−5)!
= 6720
n(n−1)(n−2)(n−3)(n−4)×(n−5)!
(n−5)!
= 6720
n=8
|B| = 8
4) If A = {2,6,9}, B = {p, q, r, s, t}, find the number of one to one functions from A to B
Here m = 3, n = 5
n! 5!
Number of one to one functions from A to B = = = 5 × 4 × 3 = 60
(n − m)! 2!
ANIL.S.C
JNNCE, SHIVAMOGGA
Here m = 7, n = 4
6) If A = {w, x, y, z}, B = {1,2,3}, find the number of onto functions from A to B (Ans: 36)
Here m = 4, n = 6
n! 6!
The number of one to one functions from A to B is = = = 360
(n − m)! 2!
COMPOSITION OF FUNCTIONS
Let f: A → B, g: B → C be two functions then (g ∘ f)(x) = g[f(x)] for all x ∈ A
9x 2 − 9x + 3 = (g ∘ f)(x)
= g[f(x)]
= a2 x 2 + (2ab − a)x + (1 − b + b2 )
a2 = 9 hence a = ±3, 2ab − a = x
Case i) when a = 3, b = −1
Case ii) when a = −3, b = 2
(h ∘ g ) ∘ f = h ∘ (g ∘ f)
INVERTIBLE FUNCTIONS
A function f: A → B is said to be invertible if there exists a function g: B → A such that
(g ∘ f) = IA and (f ∘ g) = IB , where IA is the identity function on A and IB is identity
function on B.
1
2) Consider the functions f: R → R defined by f(x) = 2x + 5 and g(x) = 2 (x − 5)
Prove that g is an inverse of f.
1
(g ∘ f)(x) = g[f(x)] = g(2x + 5) = 2 × [2x + 5 − 5] = x = IR (𝑥)
2
1 1
(f ∘ g)(x) = f[g(x)] = f [ (x − 5)] = 2 × (x − 5)5 = x = IR (𝑥)
2 2
f and g are inverse of each other
ANIL.S.C
JNNCE, SHIVAMOGGA
h ∘ (g ∘ f) = (f −1 ∘ g −1 ) ∘ (g ∘ f) = f −1 ∘ (g −1 ∘ g) ∘ f = f −1 ∘ IB ∘ f = f −1 ∘ f = IA
(g ∘ f) ∘ h = (g ∘ f) ∘ (f −1 ∘ g −1 ) = g ∘ (f ∘ f −1 ) ∘ g −1 = g ∘ IA ∘ g −1 = g ∘ g −1 = IC
h is the inverse of g ∘ f
h = (g ∘ f)−1
(g ∘ f)−1 = f −1 ∘ g −1
Matrix of the relation: Let R be a relation from A to B, then the matrix formed by
1, (a, b) ∈ R
mij = { is called matrix of the relation or relation matrix of R. It is denoted
0, (a, b) ∉ R
by MR or M(R).
Example:
1 0
M R = (0 1)
1 0
0 1 1 0
0 0 0 1
MR = ( )
0 1 0 0
0 0 0 0
ANIL.S.C
JNNCE, SHIVAMOGGA
Example: A = {a, b, c, d}, R = {(a, b)(b, b)(b, d)(c, b)(c, d)(d, a)(d, c)} defined on A
Problems:
1) Let A = {1,2,3,4} and let R be the relation on A defined by xRy if and only if y = 2x.
a) Write down R as a set of ordered pair.
b) Draw the digraph of R
c) Determine the in − degrees and out − degrees of the vertces in the digraph.
a) R = {(1,2)(2,4)}
b)
c)
Vertex 1 2 3 4
In-degree 0 1 0 1
Our-degree 1 1 0 0
ANIL.S.C
JNNCE, SHIVAMOGGA
2) Let A = {1,2,3,4} and let R be the relation on A defined by xRy if and only if
′x divides y ′ , written as x/y (FEB 2021)
a) Write down R as a set of ordered pair.
b) Draw the digraph of R
c) Determine the in − degrees and out − degrees of the vertces in the digraph.
a) R = {(1,1)(1,2)(1,3)(1,4)(2,2)(2,4)(3,3)(4,4)}
b)
c)
Vertex 1 2 3 4
In-degree 1 2 2 3
Our-degree 4 2 1 1
3) Let A = {1,2,3,4,6} and let R be the relation on A defined by aRb if and only if
′a is a multiple of b′ . Represent the relation R as a matrix and draw its digraph.
(JAN 2020, FEB 2022)
R = {(1,1)(2,1)(2,2)(3,1)(3,3)(4,1)(4,2)(4,4)(6,1)(6,2)(6,3)(6,4)}
1 0 0 0 0
1 1 0 0 0
MR = 1 0 1 0 0
1 1 0 1 0
(1 1 1 0 1)
ANIL.S.C
JNNCE, SHIVAMOGGA
0 1 1 0 0
1 0 1 0 0
MR = 1 1 0 0 1
1 0 0 0 1
(0 0 1 1 0)
R = {(u, v)(u, x)(v, u)(v, x)(x, u)(x, v)(x, z)(y, u)(y, z)(z, x)(z, y)}
Digrahp:
5) Find the relation represented by the digraph given below. Also write down its matrix.
A = {1,2,3,4}
R = {(1,2)(1,4)(2,2)(2,3)(4,1)(4,4)}
0 1 0 1
0 1 1 0
MR = ( )
0 0 0 0
1 0 0 1
0 1 0 0 0 0
0 0 0 0 1 0
0 0 0 0 0 0
MR =
0 1 1 0 0 0
0 0 0 0 0 1
(0 0 0 0 0 0)