Sets
Sets
11
Sets, Relations
and Functions
Learning Part
Session 1
● Definition of Set
● Representation of Set
Session 2
● Ordered Pair
● Definition of Relation
● Ordered Relation
Session 3
● Definition of Functions
● Composition of Mapping
● Equivalence Classes
● Partition of Set
● Congruences
Practice Part
● JEE Type Examples
● Chapter Exercises
It is clear that A - B and B - A . A # B. (ii) Set of Gold Medalist students in Civil Branch,
For example, sec A in A.M.I.E. (India).
1. The sets {1, 2, 5} and {5, 2, 1} are equal. (iii) Set of natural numbers less than 500.
2. {1, 2, 3} # { x : x 3 ' 6 x 2 ( 11x ' 6 # 0} 2. Each one of the following is an infinite set.
(i) Set of all integers.
6. Power Set (ii) Set of all points in a plane.
(iii) { x : x ! R, 1 & x & 2 }
The set of all the subsets of a given set A is said to be the
(iv) Set of all concentric circles with centre as origin.
power set A and is denoted by P ( A ) or 2 A .
Symbolically, P ( A ) # { x : x - A }
Thus, x ! P (A) . x - A.
10. Cardinal Number of a Finite Set
The number of distinct elements in a finite set A is called
Remark cardinal number and the cardinal number of a set A is
1. * and Aare both elements of P( A). denoted by n ( A ).
2. If A # *, then P ( *) # {*}, a singleton but * is a null set. For example,
3. If A # {a}, then P( A) # {*, {a}} If A # { '3, ' 1, 8, 9, 13, 17 }, then n ( A ) # 6.
For example, If A # {a, b, c}, then
P( A) or 2A # {*, {a}, {b}, {c}, {a, b}, {b, c}, {c, a}, {a, b, c}} 11. Comparability of Sets
Also, n( P ( A)) or n( 2A ) # 23 # 8 Two sets A and B are said to be comparable, if either
4. Since, P( *) # {*} A 1 B or B 1 A or A # B, otherwise A and B are said to be
incomparable.
, P( P( *)) # {*, {*}}
and P ( P( P( *))) # {*, {*}, {{*}}, {*, {*}}} For example,
5. If Ahas n elements, then P ( A) has 2n elements. 1. The sets A # { 1, 2 , 3 } and B # { 1, 2 , 4 , 6 } are
incomparable (since A 2 B or B 2 A or A ) B )
2. The sets A # {1, 2, 4 } and B # {1, 4 } are comparable
7. Super Set (since B 1 A).
The statement A - B can be rewritten as B / A, then B is
called the super set of A and is written as B 0 A . 12. Universal Set
All the sets under consideration are likely to be subsets of
8. Proper Subset a set is called the universal set and is denoted by 3 or S
or U .
A set A is said to be proper subset of a set B, if every
element of A is an element of B and B has atleast one For example,
element which is not an element of A and is denoted by 1. The set of all letters in alphabet of English language
A 1 B (read as “A is a proper subset of B ”). U # {a, b, c , K, x , y , z } is the universal set of vowels in
For example, alphabet of English language.
1. If A # {1, 2, 4 } and B # {5, 1, 2, 4, 3 }, then A 1 B i.e., A # {a, e , i, o , u }.
Since, 3, 5 " A. 2. The set of all integers I # { 0 , 4 1, 4 2 , 4 3 ,K } is the
2. If A # {a, b, c } and B # {c , b, a }, then A 2 B (since, B universal set of all even integers
does not contain any element which is not in A). i.e., { 0 , 4 2 , 4 4 , 4 6 ,K }
3. N 1 I 1 Q 1 R 1 C
13. Union of Sets
9. Finite and Infinite Sets The union of two sets A and B is the set of all those
A set in which the process of counting of elements comes elements which are either in A or in B or in both. This set
to an end is called a finite set, otherwise it is called an is denoted by A 5 B or A ( B (read as ‘A union B ’ or ‘A
infinite set. cup B ’ or ‘A join B ’).
For example, Symbolically, A 5 B # { x : x ! A or x ! B }
1. Each one of the following sets is a finite set. or A 5 B # {x : x ! A 6 x ! B}
(i) Set of universities in India. Clearly, x ! A 5 B . x ! A or x ! B
Chap 11 Sets, Relations and Functions 789
For example,
1. If A # {1, 2, 3, 4 } and B # { 4, 5, 6 },
16. Difference of Sets
then A 5 B # {1, 2, 3, 4, 4, 5, 6 } # {1, 2, 3, 4, 5, 6 } If A and B be two given sets, then the set of all those
2. If A # {1, 2, 3 }, B # {2, 3, 4, 5 }, C # {7, 8 }, elements of A which do not belong to B is called difference
then A 5 B 5 C # {1, 2, 3, 4, 5, 7, 8 } of sets A and B. It is written as A ' B. It is also denoted by
A ~ B or A\B or C A B (complement of B in A).
Remark
The union of a finite number of sets A1, A2, A3, K, An is represented
Symbolically, A ' B # { x : x ! A and x " B }
by A1 5 A2 5 A3 5 K 5 An or 5 Ai.
n
Clearly, x ! A ' B . x ! A and x " B.
i #1
n
Symbolically, 5 Ai # {x : x ! Ai for atleast one i} Remark
i #1
1. A ' B ) B ' A
2. The sets A ' B, B ' A and A 7 B are disjoint sets.
14. Intersection of Sets 3. A ' B - A and B ' A - B
The intersection of two sets A and B is the set of all 4. A ' * # A and A ' A # *
elements which are common in A and B. This set is For example,
denoted by A 7 B or AB (read as ‘A intersection B ’ or ‘A If A # {1, 2, 3, 4 } and B # { 4, 5, 6, 7 }, then A ' B # {1, 2, 3 }.
cap B ’ or ‘A meet B ’).
Symbolically, A 7 B # { x : x ! A and x ! B } 17. Symmetric Difference of Two Sets
or A 7 B # {x : x ! A 8 x ! B } Let A and B be two sets. The symmetric difference of sets
Clearly, x ! A 7 B . x ! A and x ! B A and B is the set ( A ' B ) 5 ( B ' A ) or ( A 5 B ) ' ( A 7 B )
For example, and is denoted by A < B or A = B (A direct sum B).
1. If A # {1, 2, 3 } and B # {3, 4, 5, 6 }, then A 7 B # {3 }.
2. If A # {1, 2, 3 }, B # {2, 3, 4 } and C # {3, 4, 5 }, then i.e., A = B or A < B # ( A ' B ) 5 ( B ' A )
A 7 B 7 C # {3 } and A = B or A < B # ( A 5 B ) ' ( A 7 B )
Remark Remark
The intersection of a finite number of sets A1, A2, A3,K, An 1. A < B # {x : x ! A and x " B}
represented by
n or A < B # {x : x ! B and x " A}
A1 7 A2 7 A3 7 K 7 An or 7 Ai. 2. A < B # B < A (commutative)
i #1
n
Symbolically, 7 Ai # {x : x ! Ai for all i} For example,
i #1
Let A # { 1, 2 , 3 , 4 , 5 } and B # { 1, 3 , 5 , 7 },
then A ' B # { 2 , 4 }, B ' A # { 7 }
15. Disjoint Sets , A < B # ( A ' B ) 5 ( B ' A ) # {2 , 4 , 7 }
If the two sets A and B have no common element.
i.e., A 7 B # *, then the two sets A and B are called disjoint
or mutually exclusive events.
18. Complement Set
Let U be the universal set and A be a set, such that A 1 U .
For example, If A # {a, b, c } and B # {1, 2, 3 }, then A 7 B # *
Then, the complement of A with respect to U is denoted
Hence, A and B are disjoint sets. by A$ or A c or C ( A ) or U ' A .
Remark Symbolically, A$ or A c or C ( A ) # { x : x !U and x " A } .
If S # {a1, a2, a3, K, an}, so Clearly, x ! A$ . x " A.
3n ( 1
number of ordered pairs of disjoint sets of S is .
2 Remark
(Qeach element in either (A) or (B) or neither 1. U$ # * and *$ # U
, Total ways # 3n i.e., A # B, iff A # B # * (1 case) otherwise A 2. A 5 A$ # U and A 7 A$ # *
and B are interchangeable.
For example,
, Number of ordered pairs of disjoint sets of
S #1 (
3n ' 1 3n ( 19
# ;.
Let U # {1, 2 , 3 , 4 , 5 , 6 , 7} and A # {1, 3 , 5 , 7}.
2 2 : Then, A$ # U ' A # {2, 4, 6}
790 Textbook of Algebra
& [( A " B ) ( ( A ( B ) % ] " ( A ( B ) ❙ Example 2. Let A, B and C be three sets such that
& [( A " B ) " ( A ( B )] ( [( A ( B ) % " ( A ( B )] A " B & A " C and A ( B & A ( C . Show that B & C .
& (A " B ) ( U & A " B Sol. Given, A " B & A "C …(i)
Hence, A " B & ( A ) B ) " ( B ) A ) " ( A ( B ) and A ( B & A (C …(ii)
9. A ) ( A ) B ) & A ( B To prove B & C .
Proof A ) ( A ) B ) & A ) ( A ( B % ) From Eq. (i), ( A " B ) ( C & ( A " C ) ( C
& A ( (A ( B % )% , ( A ( C ) " ( B ( C ) & ( A ( C ) " (C " C )
& A ( (A% " B ) , (A ( B) " ( B ( C ) & ( A ( C ) " C
& (A ( A% ) " (A ( B ) [Q A ( C & A ( B ]
& + " (A ( B ) & A ( B , (A ( B) " ( B ( C ) & C [Q A ( C $ C ]
Thus, C & (A ( B) " ( B ( C ) …(iii)
Hence, A ) ( A ) B ) & A ( B
Again, from Eq. (i), ( A " B ) ( B & ( A " C ) ( B
10. A ) B & B ) A # A & B
, ( A ( B ) " ( B ( B ) & ( A ( B ) " (C ( B )
Proof Only if part Let A ) B & B ) A …(i)
, (A ( B) " B & (A ( B) " ( B ( C )
To prove A & B
, B & (A ( B) " ( B ( C )
Let x ! A # (x ! A and x ' B ) or (x ! A and x ! B )
# x ! ( A ) B ) or x ! ( A ( B ) [Q A ( B $ B ]
# x ! (B ) A) Thus, B & ( A ( B) " ( B ( C ) …(iv)
or x !A ( B [from Eq. (i)] From Eqs. (iii) and (iv), we have B & C .
# (x ! B and x 'A ) or (x ! B and x ! A) ❙ Example 3. Let A and B be any two sets. If for some
# x !B set X, A ( X & B ( X & + and A " X & B " X ,
Hence, A & B prove that A & B.
If part Let A & B Sol. Given, A (X &B(X &+ …(i)
To prove A ) B & B ) A
and A "X &B"X …(ii)
Now, A)B&A)A&+ [Q B & A ]
From Eq. (ii), A ( ( A " X ) & A ( ( B " X )
and B)A&A)A&+ [Q B & A ] , A & (A ( B) " (A ( X )
* A)B&B)A [Q A $ A " X * A ( ( A " X ) & A ]
Hence, A &B ,A )B &B )A , A & (A ( B) " + [Q A ( X & + ]
11. A " B & A ( B # A & B , A & (A ( B)
Proof Only if part Let A " B & A ( B , A$B …(iii)
Now, x !A , x !A " B Again, A "X & B"X
, x !A ( B [Q A " B & A ( B ] , B ((A " X ) & B ((B " X )
, x !B , (B ( A) "(B ( X ) & B
Thus, A$ B …(i) [Q B $ B " X * B ( ( B " X ) & B ]
Again, y !B ,y !A " B , (B ( A) " + & B [QB ( X & + ]
, y !A ( B [Q A " B & A ( B ] , B(A &B
, y !A , B$ A …(iv)
Thus, B$A …(ii) From Eqs. (iii) and (iv), we have A & B.
From Eqs. (i) and (ii), we have A & B
❙ Example 4. If A and B are any two sets, prove that
Thus, A " B & A ( B , A & B.
P ( A ) & P (B ) , A & B.
If part Let A & B …(iii)
To prove A" B &A( B Sol. Given, P( A ) & P( B ) …(i)
Now, A" B &A" A &A [Q B & A ] …(iv) To prove A & B
and A( B &A( A &A [Q B & A ] …(v) Let x ! A , there exists a subset X of A such that x ! X .
From Eqs. (iv) and (v), we have A " B & A ( B Now, X $ A , X ! P( A )
Hence, A" B &A( B #A &B , X ! P( B ) [from Eq. (i)]
Chap 11 Sets, Relations and Functions 793
, X$B (C " M ) % & Set of students which have not both subjects
, x !B [Q x ! X ] Chemistry and Mathematics.
Thus, x !A , x !B ( M ( P ( C ) & Set of students which have all three
* A$B …(ii) subjects Mathematics, Physics and Chemistry.
Let y ! B , there exists a subset Y of B such that y !Y . ( M " P " C ) & Set of all students which have three
Now, Y $ B , Y ! P( B )
subjects.
, Y ! P( A ) [Q P ( B ) & P ( A )]
, Y$A Cardinal Number of Some Sets
, y !A [Qy !Y ] If A, B and C are finite sets and U be the finite universal
Thus, y !B , y !A set, then
(i) n ( A % ) & n (U ) ) n ( A )
* B$ A …(iii)
(ii) n( A " B ) & n ( A ) - n ( B ) ) n ( A ( B )
From Eqs. (ii) and (iii), we have A & B
(iii) n ( A " B ) & n ( A ) - n ( B ), if A and B are disjoint
non-void sets.
Use of Sets in Logical Problems (iv) n( A ( B % ) & n( A ) ) n( A ( B )
M & Set of students which have Mathematics. (v) n( A % ( B % ) & n( A " B ) % & n(U ) ) n( A " B )
P & Set of students which have Physics. (vi) n( A % " B % ) & n( A ( B ) % & n(U ) ) n( A ( B )
C & Set of students which have Chemistry. (vii) n( A ) B ) & n( A ) ) n( A ( B )
Applying the different operations on the above sets, then (viii) n( A ( B ) & n( A " B ) ) n( A ( B % ) ) n( A % ( B )
we get following important results. (ix) n( A " B " C ) & n( A ) - n( B ) - n(C ) ) n( A ( B )
M % & Set of students which have no Mathematics. ) n( B ( C ) ) n(C ( A ) - n( A ( B ( C )
P % & Set of students which have no Physics. (x) If A 1 , A 2 , A 3 , K, A n are disjoint sets, then
n (A 1 " A 2 " A 3 " K" A n )
C % & Set of students which have no Chemistry.
& n (A 1 ) - n (A 2 ) - n (A 3 ) - K - n (A n )
M " P & Set of students which have atleast one subject
Mathematics or Physics. ❙ Example 5. If A and B be two sets containing 6 and 3
P " C & Set of students which have atleast one subject elements respectively, what can be the minimum
Physics or Chemistry. number of elements in A " B ? Also, find the maximum
C " M & Set of students which have atleast one subject number of elements in A " B.
Chemistry or Mathematics. Sol. We have, n ( A " B ) & n ( A ) - n ( B ) ) n ( A ( B ),
M ( P & Set of students which have both subjects n ( A " B ) is minimum or maximum according as n ( A ( B )
Mathematics and Physics. is maximum or minimum, respectively.
P ( C & Set of students which have both subjects Physics Case I If n ( A ( B ) is minimum i.e., n ( A ( B ) & 0 such that
and Chemistry. A & {a, b, c , d , e , f } and B & { g , h , i }
C ( M & Set of students which have both subjects * n ( A " B ) & n( A ) - n( B ) & 6 - 3 & 9
Chemistry and Mathematics. Case II If n ( A ( B ) is maximum i.e., n ( A ( B ) & 3, such
that
M ( P % & Set of students which have Mathematics but not A & {a, b, c , d , e , f } and B & {d , a, c }
Physics.
* n( A " B ) & n ( A ) - n( B ) ) n ( A ( B ) & 6 - 3 ) 3 & 6
P ( C % & Set of students which have Physics but not
Chemistry. ❙ Example 6. Suppose A 1, A 2 ,..., A 30 are thirty sets
C ( M % & Set of students which have Chemistry but not each with five elements and B 1, B 2 ,..., B n are n sets
Mathematics. each with three elements.
30 n
( M " P ) % & Set of students which have not both subjects Let " Ai & " B j & S
Mathematics and Physics. i &1 j &1
( P " C ) % & Set of students which have not both subjects Assume that each element of S belongs to exactly ten
Physics and Chemistry. of the A i ’s and exactly to nine of the B j ’s. Find n.
794 Textbook of Algebra
Sol. Given, A’s are thirty sets with five elements each, so Sol. Let F, H and B be the sets of television watchers who
30 watch Football, Hockey and Basketball, respectively.
. n ( A i ) & 5 / 30 & 150 …(i) Then, according to the problem, we have
i &1
If the m distinct elements in S and each element of S belongs n (U ) & 500, n ( F ) & 285, n ( H ) & 195,
to exactly 10 of the A i ’s, so we have n ( B ) & 115, n ( F ( B ) & 45,
30 n ( F ( H ) & 70, n ( H ( B ) & 50
. n( A i ) & 10m …(ii)
i &1 and n ( F % " H % " B % ) & 50,
* From Eqs. (i) and (ii), we get 10m & 150 where U is the set of all the television watchers.
* m & 15 …(iii) Since, n ( F % " H % " B % ) & n (U ) ) n ( F " H " B )
n n , 50 & 500 ) n ( F " H " B )
Similarly, . n( B j ) & 3n and . n( B j ) & 9 m
, n ( F " H " B ) & 450
j &1 j &1
9m We know that,
* 3n & 9 m , n & & 3m
3 n( F " H " B ) & n( F ) - n( H ) - n( B ) ) n( F ( H )
& 3 / 15 & 45 [from Eq. (iii)] ) n( H ( B ) ) n( B ( F ) - n( F ( H ( B )
Hence, n & 45 , 450 & 285 - 195 - 115 ) 70 ) 50 ) 45 - n ( F ( H ( B )
* n ( F ( H ( B ) & 20
❙ Example 7. In a group of 1000 people, there are 750
which is the number of those who watch all the three
who can speak Hindi and 400 who can speak Bengali. games. Also, number of persons who watch football only
How many can speak Hindi only? How many can speak
& n( F ( H % ( B % )
Bengali only? How many can speak both Hindi
and Bengali? & n( F ) ) n( F ( H ) ) n( F ( B ) - n( F ( H ( B )
Sol. Let H and B be the set of those people who can speak & 285 ) 70 ) 45 - 20 & 190
Hindi and Bengali respectively, then according to the The number of persons who watch hockey only
problem, we have
& n( H ( F % ( B % )
n ( H " B ) & 1000,
& n( H ) ) n( H ( F ) ) n( H ( B ) - n( H ( F ( B )
n( H ) & 750, n ( B ) & 400
We know that, & 195 ) 70 ) 50 - 20 & 95
n( H " B ) & n( H ) - n( B ) ) n( H ( B ) and the number of persons who watch basketball only
1000 & 750 - 400 ) n ( H ( B ) & n( B ( H % ( F % )
* n ( H ( B ) & 150 & n( B ) ) n( B ( H ) ) n( B ( F ) - n( H ( F ( B )
* Number of people speaking Hindi and Bengali both is & 115 ) 50 ) 45 - 20 & 40
150. Hence, required number of those who watch exactly one of
Also, n ( H ( B % ) & n ( H ) ) n ( H ( B ) the three games
& 750 ) 150 & 190 - 95 - 40 & 325
& 600
Thus, number of people speaking Hindi only is 600.
Again, n ( B ( H % ) & n ( B ) ) n ( B ( H ) & 400 ) 150 & 250 Venn Diagrams
Thus, number of people speaking Bengali only is 250. (Euler-Venn Diagrams)
❙ Example 8. A survey of 500 television watchers The diagram drawn to represent sets are called Venn
produced the following information, 285 watch diagrams or Euler Venn diagrams. Here, we represent the
football, 195 watch hockey, 115 watch basketball, universal set U by points within rectangle and the subset
45 watch football and basketball, 70 watch football A of the set U is represented by the interior of a circle. If a
and hockey, 50 watch hockey and basketball, 50 do set A is a subset of a set B, then the circle representing A is
not watch any of the three games. How many watch all drawn inside the circle representing B. If A and B are not
the three games? How many watch exactly one of the equal but they have some common elements, then to
three games? represent A and B by two intersecting circles.
Chap 11 Sets, Relations and Functions 795
1. Subset U U
U
B B C B C
A
A A
AÕB B∩C A ∩ (B ∩ C)
2. Union of sets
U U
U U
B C B C
A B A B A A
A∩B (A ∩ B) ∩ C
A ∪ B, when A ∪ B, when
A∩B=φ neither A Õ B nor B Õ A Hence, A ( ( B ( C ) & ( A ( B ) ( C which is
associative law for intersection.
3. Intersection of sets
U U 8. Distributive law
(i) A " ( B ( C ) & ( A " B ) ( ( A " C )
A B A B
(ii) A ( ( B " C ) & ( A ( B ) " ( A ( C )
(i)
A ∩ B, when neither A ∩ B, when U U
A Õ B nor B Õ A A ∩ B = φ (no shaded one) B C B C
4. Difference of sets A A
U U
(B ∩ C) A ∪ (B ∩ C)
A B A B
U U U
U U B C B C
B C B C
A A
A A
(B ∪ C) A ∩ (B ∪ C )
B∪C A ∪ (B ∪ C)
U U U
U U
B C B C B C
B C B C
A A A
A A
(A ∩ B) (A ∩ C) (A ∩ B) ∪ (A ∩ C)
A∪B (A ∪ B) ∪ C
Hence, A " ( B " C ) & ( A " B ) " C which is It is clear from diagrams that
associative law for union. A ( (B " C ) & (A ( B ) " (A ( C )
796 Textbook of Algebra
4. If U be the universal set and A " B " C & U, then [( A ) B ) " (B ) C ) " (C ) A)% ] equals
(a) A " B "C (b) A ( B (C (d) A " (B (C ) (d) A ( (B "C )
6. If A & {x : x is a multiple of 4} and B & {x : x is a multiple of 6}, then A 0 B consists of all multiple of
(a) 4 (b) 8 (c) 12 (d) 16
7. A set contains 2n - 1 elements. The number of subsets of this set containing more than n elements equals
(a) 2n ) 1 (b) 2n (c) 2n - 1
(d) 22 n
9. Given n(U ) & 20, n( A) & 12, n(B ) & 9, n( A ( B ) & 4, where U is the universal set, A and B are subsets of U, then
n(( A " B ) % ) equals
(a) 3 (b) 9 (c) 11 (d) 17
10. A survey shows that 63% of the Indians like cheese, whereas 76% like apples. If x % of the Indians like both
cheese and apples, then x can be
(a) 40 (b) 65 (c) 39 (d) None of these
11. In a class of 55 students, the number of students studying different subjects are 23 in Mathematics, 24 in
Physics, 19 in Chemistry, 12 in Mathematics and Physics, 9 in Mathematics and Chemistry, 7 in Physics and
Chemistry and 4 in all the three subjects. The number of students who have taken exactly one subject is
(a) 6 (b) 7 (c) 9 (d) 22
Session 2
Ordered Pair, Definition of Relation, Ordered Relation,
Composition of Two Relations
Ordered Pair and B / A & {4, 5} / {1, 2, 3} & {(4, 1), (4, 2), (4, 3), (5, 1),
(5, 2), (5, 3)}
If A be a set and a, b ! A, then the ordered pair of elements It is clear that A / B 2 B / A .
a and b in A denoted by (a, b ), where a is called the first
coordinate and b is called the second coordinate. ❙ Example 12. If A and B be two sets and A / B & {(3, 3),
Remark (3, 4), (5, 2), (5, 4)}, find A and B.
1. Ordered pairs ( a, b) and ( b, a) are different. Sol. A & First coordinates of all ordered pairs & {3, 5}
2. Ordered pairs ( a, b) and ( c, d ) are equal iff a & c and b & d. and B & Second coordinates of all ordered pairs & {2, 3, 4}
Hence, A & {3, 5} and B & {2, 3, 4}
Relations
Introduction of Relation and if (a, b ) is not an element of the relation R, then we
We use sentences depending upon the relationship of an write a R b (read as ‘a is not related to b ’),
object to the other object in our daily life such as i.e. (a, b ) ' R # a R b.
(i) ‘Ram, Laxman, Bharat, Shatrughan’ were the sons of Remark
Dashrath. 1. Any subset of A / A is said to be a relation on A.
(ii) ‘Sita’ was the wife of Ram. 2. If Ahas m elements and B has n elements, then A / B has
(iii) ‘Laxman’ was the brother of Ram. m / n elements and total number of different relations from A
to B is 2 mn .
(iv) ‘Dashrath’ was the father of Ram.
3. If R & A / B, then Domain R & A and Range R & B.
(v) ‘Kaushaliya’ was the mother of Ram. 4. The domain as well as range of the empty set + is +.
If Ram, Laxman, Bharat, Shatrughan, Sita, Kaushaliya and 5. If A & Dom R and B & Ran R, then we write B & R [ A].
Dashrath are represented by a, b, c, d, e, f and y For example,
respectively and A represents the set, then Let A & {1, 2, 3 } and B & {3, 5, 7 }, then
A & {a , b , c , d , e , f , y } A / B & {(1, 3), (1, 5), (1, 7), (2, 3), (2, 5), (2, 7),
Here, we see that any two elements of set A are related (3, 3), (3, 5), (3, 7)}.
many ways, i.e. a, b, c, d are sons of y. ‘a’ is the son of y is But R$A/B
represented by aRy. Similarly, b is the son of y, c is the son i.e., every subset of A / B is a relation from A to B. If
of y and d is also son of y are represented as b R y, c R y we consider the relation, R & {(1, 5 ), (1, 7 ), (3, 5 ), (3, 7 )}
and d R y, respectively. Then, 1 R 5; 1 R 7; 3 R 5; 3 R 7
If we write here y R a it means that y is the son of a which Also, 1 R 3; 2 R 3; 2 R 5; 2 R 7; 3 R 3;
is impossible, since a is the son of y. Hence, y and a Clearly, Domain R & {1, 3 } and Range R & {5, 7 }
cannot be related like this. Its generally represented as For example,
yRa. Hence, we can say that a and y are in definite order. a Let A & {1, 2, 3 } and B & { 4, 5 }, then number of different
comes before R and y after R. Therefore, aRy may be
relations from A to B is 2 3 /2 & 2 6 & 64 because A has 3
represented as a order pair (a, y ). Similarly, bRy, cRy and
dRy are represented by (b, y ), (c , y ) and (d , y ), respectively. elements and B has 2 elements.
If all pairs will represented by a set, then we see that first
element of each pair is the son of second element. Hence, Types of Relations from One Set to
the set of these pairs may be represented by set R, then
R & {(a, y ), (b, y ), (c , y ), (d , y )}
Another Set
Symbolically, R & {( x , y ) : x , y ! A , where x is son of y} 1. Empty Relation
It is clear that R is subset of A / A A relation R from A to B is called an empty relation or a
i.e., R$A/A void relation from A to B if R & +.
Corollary In above example, if For example,
A & {a, b, c , d } and B & {e , f , y }, then Let A & {2, 4, 6 } and B & {7, 11}
R & {( x , z ) : x ! A, z ! B , where x is son of z} Let R & {(a, b ) : a ! A, b ! B and a ) b is even}
It is clear that R $ A / B. As, none of the numbers 2 ) 7, 2 ) 11, 4 ) 7, 4 ) 11,
6 ) 7, 6 ) 11 is an even number, R & +.
Hence, R is an empty relation.
Definition of Relation 2. Universal Relation
A relation (or binary relation) R, from a non-empty set A A relation R from A to B is said to be the universal
to another non-empty set B, is a subset of A / B. relation, if R & A / B.
i.e., R $ A / B or R $ {(a, b ) : a ! A, b ! B } For example, Let A & {1, 2 }, B & {1, 3 } and
Now, if (a, b ) be an element of the relation R, then we R & {(1, 1), (1, 3), (2, 1), (2, 3) }
write aRb (read as ‘a is related to b ’) Here, R & A / B
i.e., (a, b ) ! R # aRb Hence, R is the universal relation from A to B.
Chap 11 Sets, Relations and Functions 801
4. Transitive Relation ❙ Example 17. Let N be the set of natural numbers and
A relation R on a set A is said to be a transitive relation, relation R on N be defined by x R y # x divides y,
4 x , y !N.
if a R b and b R c , aRc , 4 a, b, c ! A Examine whether R is reflexive, symmetric,
i.e., (a, b ) ! R and (b, c ) ! R , (a, c ) ! R, 4 a, b, c ! A anti-symmetric or transitive.
For example, Sol. (i) x divides x i.e., x R x, 4 x ! N
Let A & {1, 2, 3 } * R is reflexive.
(ii) 1 divides 2 i.e., 1 R 2 but 2 R 1 as 2 does not divide 1.
R 1 & {(1, 2 ), (2, 3 ), (1, 3 ), (3, 2 )}
(iii) x divides y and y divides x , x & y
R 2 & {(2, 3 ), (3, 1)}
i.e., x Ry and y R x , x & y
R 3 & {(1, 3 ), (3, 2 ), (1, 2 )} * R is anti-symmetric relation.
Then, R 1 is not transitive relation on A because (2, 3 ) ! R 1 (iv) x Ry and y Rz , x divides y and y divides z.
and (3, 2 ) ! R 1 but (2, 2 ) ' R 1 . Again, R 2 is not transitive , kx & y and k % y & 2, where k , k % are positive
relation on A because (2, 3 ) ! R 2 and (3, 1) ! R 2 but integers.
(2, 1) ' R 2 . Finally R 3 is a transitive relation. , kk % x & z , x divides z , x Rz
❙ Example 14. Let A & {1, 2, 3} and R & {(a, b ) : a, b ! A , a * R is transitive.
divides b and b divides a}. Show that R is an
identity relation on A. Equivalence Relation
Sol. Given, A & {1, 2, 3} A relation R on a set A is said to be an equivalence relation
a ! A , b ! B, a divides b and b divides a.
on A, when R is (i) reflexive (ii) symmetric and (iii)
transitive. The equivalence relation denoted by ~.
, a&b
* R & {(a, a ), a ! A } & {(1, 1), (2, 2), (3, 3)} ❙ Example 18. N is the set of natural numbers. The
Hence, R is the identity relation on A . relation R is defined on N / N as follows
❙ Example 15. Let A & { 3, 5}, B & {7, 11}. (a, b ) R (c , d ) # a - d & b - c
Let R & {(a, b ) : a ! A, b !B, a ) b is even}. Prove that R is an equivalence relation.
Show that R is an universal relation from A to B. Sol. (i) (a, b ) R (a, b ) , a - b & b - a
Sol. Given, A & {3, 5}, B & {7, 11}. * R is reflexive.
Now, R & {(a, b ) : a ! A , b ! B and a ) b is even} (ii) (a, b ) R (c , d ) , a - d & b - c
& {(3, 7 ), (3, 11), (5, 7 ), (5, 11)} , c - b & d - a , (c , d ) R (a, b )
Also, A / B & {(3, 7 ), (3, 11), (5, 7 ), (5, 11)} * R is symmetric.
Clearly, R&A/B (iii) (a, b ) R (c , d ) and (c , d ) R (e , f ) , a - d & b - c
Hence, R is an universal relation from A to B. and c - f &d -e
, a-d -c - f &b-c -d -e
❙ Example 16. Prove that the relation R defined on the , a - f & b - e , (a, b ) R (e , f )
set N of natural numbers by xRy # 2x 2 ) 3xy - y 2 & 0 * R is transitive.
is not symmetric but it is reflexive. Thus, R is an equivalence relation on N / N .
Sol. (i) 2x 2 ) 3x 5 x - x 2 & 0, 4 x ! N .
❙ Example 19. A relation R on the set of complex
* x R x , 4 x ! N , i.e. R is reflexive. z1 ) z 2
(ii) For x & 1, y & 2, 2x 2 ) 3xy - y 2 & 0 numbers is defined by z 1 R z 2 # is real, show
z1 - z 2
* 1R2
that R is an equivalence relation.
But 2 5 22 ) 3 5 2 5 1 - 12 & 3 2 0 z1 ) z1
Sol. (i) z1Rz1 , ,4z1 ! C , 0 is real
So, 2 is not related to 1 i.e., 2R1 z1 - z1
* R is not symmetric. * R is reflexive.
Chap 11 Sets, Relations and Functions 803
,
6 z1 ) z 2 9
8
-
6z ) z 9
; & )8 1 2 ;
7 z1 - z 2 :
Composition of Two Relations
7 1 2:
z z
If A, B and C are three sets such that R $ A / B and
6z ) z 9 6z ) z 9 S $ B / C, then (SOR ) )1 & R )1 OS )1 . It is clear that aRb, bSc
, 8 1 2;-8 1 2; &0
7 z1 - z 2 : 7 z1 - z 2 :
, aSORc.
, 2(z1z1 ) z 2 z 2 ) & 0 , | z1| 2 & | z 2 | 2 ...(i) A B C
2 2 R S
Similarly, z 2 Rz 2 , | z 2 | & | z 3 | ...(ii)
a c
From Eqs. (i) and (ii), we get b
z1Rz 2 ,z 2 Rz 3
, | z1| 2 & | z 3 | 2 SOR
6. If S & {1, 2, 3, .., 20}, K & {a, b , c, d }, G & {b , d , e, f }. The number of elements of (S / K ) " (S / G ) is
(a) 40 (b) 100 (c) 120 (d) 140
7. The relation R is defined on the set of natural numbers as {(a, b ): a & 2b }, then R )1 is given by
(a) {(2, 1) (4, 2) (6, 3), …} (b) {(1, 2) (2, 4) (3, 6), …} (c) R )1 is not defined (d) None of these
8. The relation R & {(1, 1), (2, 2), (3, 3),(1, 2),(2, 3), (1, 3)} on set A & {1, 2, 3} is
(a) reflexive but not symmetric (b) reflexive but not transitive
(c) symmetric and transitive (d) Neither symmetric nor transitive
9. The number of equivalence relations defined in the set S & {a, b , c} is
(a) 5 (b) 3! (c) 23 (d) 3 3
10. If R be a relation > from A & {1, 2, 3, 4} to B & {1, 3, 5}, i.e. (a, b ) ! R # a > b , then ROR )1, is
(a) {(1, 3), (1, 5), (2, 3), (2, 5), (3,5), (4, 5)} (b) {(3, 1), (5, 1), (3, 2), (5, 2), (5, 3), (5, 4)}
(c) {(3, 3), (3, 5), (5, 3), (5, 5)} (d) {(3, 3), (3, 4), (4, 5)}
Session 3
Definition of Functions, Domain, Codomain and Range,
Composition of Mapping, Equivalence Classes,
Partition of Set, Congruences
Remark
1. If to each value of x, which belongs to set E there Onto and Into Mappings
corresponds one or more than one values of the quantity y.
In the mapping f : A = B such
Then, y is called the multiple valued function of x defined on
the set E. f (A) & B
2. The word ‘FUNCTION’ is used only for single valued function. i.e., Range & Codomain
For example, y & x is single valued functions but y 2 & x is a
multiple valued function.
Then, the function is Onto and if f ( A ) 0 B, i.e. Range 0
* y 2 & x , y & @ x for one value of x, y gives two values.
Codomain, then the function is Into.
Remark
Definition of Functions Onto functions is also known as surjective.
If A and B be two non-empty sets, then a function from A Method to Test Onto or Into Mapping
to B associates to each element x in A, a unique element Let f : A = B be a mapping. Let y be an arbitrary element
f ( x ) in B and is written as
in B and then y & f ( x ), where x ! A. Then, express x in
f
f : A = B or A <= B terms of y.
806 Textbook of Algebra
gof
Important Remarks
1. (i) ( fog ) x & f {g ( x )} (ii) ( fof ) x & f {f ( x )} We see that, f (1) & 2, f (3) & 5, f ( 4 ) & 1
(iii) ( gog ) x & g{g( x )} (iv) ( fg ) x & f ( x ). g( x ) and g(2) & 3, g(5) & 1, g(1) & 3
6f 9 f( x ) * ( gof )(1) & g { f (1)} & g (2) & 3
(v) ( f @ g ) x & f ( x ) @ g( x ) (vi) 8 ; x & ; g( x ) 2 0
7g: g( x ) ( gof )(3) & g { f (3)} & g (5) & 1
808 Textbook of Algebra
( gof )( 4 ) & g { f ( 4 )} & g (1) & 3 Continue this process, we see that the equivalence class
Hence, gof & {(1, 3), (3, 1), (4, 3)} [ 4 ] & [0], [5] & [1], [6] & [2], [7 ] & [3], [8] & [0]
Now, since Range of f 0 Dom f Hence, total equivalence relations are [0], [1], [2], [3] and
* fog is defined. also clear
(i) I & [0] " [1] " [2] " [3]
Then, fog mapping defined following way (ii) every equivalence is a non-empty.
g f
{2, 5, 1} æÆ {1, 3, 4} æÆ {2, 5, 1} (iii) for any two equivalence classes [a ] ( [b ] & +.
We see that,
fog
g (2) & 3 , g(5) & 1, g(1) & 3
Partition of a Set
f (1) & 2 , f (3) & 5, f ( 4 ) & 1 If A be a non-empty set, then a partition of A, if
* ( fog )(2) & f { g (2)} & f (3) & 5 (i) A is a collection of non-empty disjoint subsets of A.
( fog )(5) & f { g (5)} & f (1) & 2 (ii) union of collection of non-empty sets is A.
( fog )(1) & f { g (1)} & f (3) & 5 i.e., If A be a non-empty set and A 1 , A 2 , A 3 , A 4 are
Hence, fog & {(2,5),(5,2),(1,5)} subsets of A, then the set { A 1 , A 2 , A 3 , A 4 } is called
partition, if
(i) A 1 " A 2 " A 3 " A 4 & A
Equivalence Classes (ii) A 1 ( A 2 ( A 3 ( A 4 & +
For example,
If R be an equivalence relation on a set A, then [a ] is
equivalence class of a with respect to R. If A & {0, 1, 2, 3, 4 } and A 1 & {0 }, A 2 & {1}, A 3 & { 4 } and
A 4 & {2, 3 }, then we see that for P & { A 1 , A 2 , A 3 , A 4 }
Symbolically, X a or [a ] & { x : x ! X , x R a }.
(i) all A 1 , A 2 , A 3 , A 4 are non-empty subset of A
Remark (ii) A 1 " A 2 " A 3 " A 4 & {0, 1, 2, 3, 4 } & A and
1. Square brackets[ ] are used to denote the equivalence classes. (iii) Ai ( A j 2 +, 4 i 2 j (i, j & 1, 2, 3, 4 )
2. a ![ a] and a ![ b] ,[ a] & [ b] Hence, from definition P & { A 1 , A 2 , A 3 , A 4 } is
3. Either [ a] & [ b] or [ a] ( [ b] & + partition of A.
4. Equivalence class of a also denoted by E( a) or a.
( a ) b)
5. If a ~ b, & k, the total number of equivalence class is m.
m
Congruences
❙ Example 26. Let I & {0, @ 1, @ 2, @ 3, @ 4, ...} and Let m be a positive integer, then two integers a and b are
R & C(a, b ) :(a ) b ) / 4 & k , k ! ID is an equivalence said to be congruent modulo m, if a ) b is divisible by m.
relation, find equivalence class. i.e., m a )b F
a)b
Sol. Given, &k a )b
4 ) +
, a & 4k - b, where 0 B b > 4 0
It is clear b has only value in 0, 1, 2, 3. * a ) b & mF, where F is a positive integer.
(i) Equivalence class of [0] & {x : x ! I and x E 0} The congruent modulo ‘m’ is defined on all a b ! I by a G b
& { x : x ) 0 & 4k } & {0, @ 4, @ 8, @ 12, ...) (mod m), if a ) b & mF, F ! I - .
where, k & 0, @ 1, @ 2, @ 3, ...
(ii) Equivalence class of [1] & {x : x ! I and x E 1} ❙ Example 27. Find congruent solutions of 155 G 7
& { x : x ) 1 & 4k } & { x : x & 4k - 1} (mod 4).
& {..., ) 11, ) 7, ) 3, 1, 5, 9, ...} 6 155 ) 7 148 9
Sol. Since, 8 & & 37 ;
(iii) Equivalence class of [2] & {x : x ! I and x E 2} 7 4 4 :
& { x : x ) 2 & 4k } & { x : x & 4k - 2} and a & 155, b & 7, m & 4
& {..., ) 10, ) 6, ) 2, 2, 6, 10, ...} a ) b 155 ) 7 148
* F& & &
(iv) Equivalence class of [3] & {x : x ! I and x E 3} 4 4 4
& { x : x ) 3 & 4k } & { x : x & 4k - 3} [here,a & 155,b & 7]
& {..., ) 9, ) 5, ) 1, 5, 9, 13, ...} & 37 (integer)
Chap 11 Sets, Relations and Functions 809
4. If g & {(1, 1), (2, 3), (3, 5), (4, 7)} is a function described by the formula g ( x ) & Hx - I, what values should be
assigned to H and I?
(a) H & 1,I & 1 (b) H & 2, I & ) 1 (c) H & 1, I & ) 2 (d) H & ) 2, I & ) 1
5. The values of the parameter H for which the function f ( x ) & 1 - Hx , H 2 0 is the inverse of itself, is
(a) )2 (b) )1 (c) 1 (d) 2
7. If f ( x ) & (ax 2 - b )3, the function g such that f ( g( x )) & g (f ( x )), is given by
1/ 2 1/ 2
6 b ) x1/ 3 9 1 6 x 1/ 3 ) b 9
(a) g (x ) & 88 ;; (b) g (x ) & (c) g (x ) & (ax 2 - b )1/ 3 (d) g (x ) & 88 ;;
7 a : (ax 2 - b )3 7 a :
be equal sets.
12 If A is any set, then A $ A is true but A 0 A is false. 29 If fog & gof , then either f )1 & g or g )1 & f .
13 If A $ B, then A " B & B 30 If f and g are bijective functions such that f : A = B and
14 A 0 B # A $ B and A 2 B g : B = C, then gof : A = C is bijective. Also,
15 x ' A " B # x ' A and x ' B (gof ))1 & f )1og )1.
16 x ' A ( B # x ' A or x ' B
31 Let f : A = B, g : B = C be two functions, then
17 If A1, A2 , ..., An is a finite family of sets, then their union is
n (i) f and g are injective , gof is injective
denoted by " A i orA1 " A2 " A3 " ... " An .
i &1 (ii) f and g are surjective , gof is surjective
18 If A1, A2 , A3 , ..., An is a finite family of sets, then their (iii) f and g are bijective , gof is bijective
n
intersection is denoted by ( Ai 32 Let f : A = B, g : B = C be two functions, then
i &1