Sets, Relations and Functions
Sets, Relations and Functions
SETS
A set is a collection of well-defined and well distinguished In this form, we write a variable (say x) representing any
objects of our perception or thought. member of the set followed by a property satisfied by each
member of the set.
1.1 Notations
For example, the set A of all prime numbers less than 10 in
The sets are usually denoted by capital letters A, B, C, etc. the set-builder form is written as
tr
and the members or elements of the set are denoted by lower- A = {x | x is a prime number less that 10}
case letters a, b, c, etc. If x is a member of the set A, we write
x A (read as 'x belongs to A') and if x is not a member of the
c v
The symbol '|' stands for the words 'such that'. Sometimes,
we use the symbol ':' in place of the symbol '|'.
set A, we write x A (read as 'x does not belong to A,). If x
and y both belong to A, we write x, y A. 3. TYPES OF SETS ac
2. REPRESENTATION OF A SET - @
am
3.1 Empty Set or Null Set
Usually, sets are represented in the following two ways :
g r
A set which has no element is called the null set or empty
(i) Roster form or Tabular form
le set. It is denoted by the symbol I .
Te
(ii) Set Builder form or Rule Method
sit
2.1 Roster Form For example, each of the following is a null set :
Vi
(a) The set of all real numbers whose square is –1.
In this form, we list all the member of the set within braces
(curly brackets) and separate these by commas. For example, (b) The set of all rational numbers whose square is 2.
re
the set A of all odd natural numbers less that 10 in the Roster (c) The set of all those integers that are both even and odd.
form is written as :
o A set consisting of atleast one element is called a
rM
A = {1, 3, 5, 7, 9}
non-empty set.
3.5 Equal Sets The union of two sets A and B, written as A B (read as 'A
union B'), is the set consisting of all the elements which are
Two sets A and B are said to be equals, written as A = B, if
every element of A is in B and every element of B is in A. either in A or in B or in both Thus,
Clearly, x A B x A or x B, and
Two finite sets A and B are said to be equivalent, if n
(A) = n (B). Clearly, equal sets are equivalent but equivalent x A B x A and x B.
sets need not be equal.
For example, the sets A = { 4, 5, 3, 2} and B = {1, 6, 8, 9} are
equivalent but are not equal.
3.7 Subset
v tr
c
ac
Let A and B be two sets. If every elements of A is an element
of B, then A is called a subset of B and we write A B or
B A (read as 'A is contained in B' or B contains A'). B is
called superset of A. - @
r am
For example, if A = {a, b, c, d} and B = {c, d, e, f}, then
le g
A B = {a, b, c, d, e, f}
r M
subsets of A are 2m and the number of proper
subsets of A are 2m -1. Clearly, x A B x A and x B, and
Fo
For example, let A = {3, 4}, then the subsets of A
are I , {3}, {4}. {3, 4}. Here, n(A) = 2 and number
x A B x A or x B.
The set of all subsets of a given set A is called the power set
of A and is denoted by P(A).
For example, if A = {1, 2, 3}, then
P(A) = { I , {1}, {2}, {3}, {1,2} {1, 3}, {2, 3}, {1, 2, 3}}
For example, if A = {a, b, c, d) and B = {c, d, e, f}, then
Clearly, if A has n elements, then its power set P (A) contains A B = {c, d}.
exactly 2n elements.
SETS, RELATIONS & FUNCTIONS
Two sets A and B are said to be disjoint, if A B = I , i.e. A If U is a universal set and A is a subset of U, then the
and B have no element in common. complement of A is the set which contains those elements
of U, which are not contained in A and is denoted by
A'or Ac. Thus,
Ac = {x : x U and x A}
Important Results
For example, if A = {1, 3, 5} and B = {2, 4, 6},
then A B = I , so A and B are disjoint sets.
a) Uc = I b) I c = U c) A Ac = U
4.4 Difference of Two Sets
d) A Ac = I
v tr
If A and B are two sets, then their difference A - B is defined
c
ac
as : 5. ALGEBRA OF SETS
A - B = {x : x A and x B}.
Similarly, B - A = {x : x B and x A }.
1.
- @
For any set A , we have
am
a) A A = A b) A A = A
2.
g r
For any set A, we have
lec) A I = A d) A I = I
Te
sit
e) A U = U f) A U = A
Vi
3. For any two sets A and B, we have
g) A B = B A h) A B = B A
re
For example, if A = {1, 2, 3, 4, 5} and B = {1, 3, 5, 7, 9} then A
- B = {2, 4} and B - A = {7, 9}. o 4. For any three sets A, B and C, we have
rM
i) A (B C) = (A B) C
Important Results
Fo
j) A (B C) = (A B) C
(a) A- B z B –A
5. For any three sets A, B and C, we have
(b) The sets A - B , B - A and A B are disjoint sets
k) A (B C) = (A B) (A C)
(c) A - B A and B - A B
l) A (B C) = (A B) (A C)
(d) A - I = A and A - A = I
6. If A is any set, we have (Ac)c = A.
4.5 Symmetric Difference of Two Sets 7. Demorgan's Laws For any three sets A, B and C, we have
The symmetric difference of two sets A and B , denoted by m) (A B)c = Ac Bc
A ' B, is defined as
n) (A B)c = Ac Bc
A ' B = (A - B) (B - A).
o) A - (B C) = (A - B) ( A - C)
For example, if A = {1,2,3,4,5} and B = {1, 3,5,7,9} then
p) A - (B C) = (A - B) (A - C)
A ' B = (A - B) (B - A) = {2,4} {7,9} = {2,4,7,9}.
SETS, RELATIONS & FUNCTIONS
(i) A A B, B A B, A B A, A B B Write the set {x : x is a positive integer and x2 < 30} in the
roster form.
(ii) A - B = A Bc (iii) (A - B) B = A B
(iv) (A - B) B = I (v) A B Bc Ac Sol. The squares of positive integers whose squares are less
than 30 are : 1, 2, 3, 4, 5.
(vi) A - B = Bc - Ac (vii) (A B) (A Bc) = A Hence the given set, in roster form, is {1, 2, 3, 4, 5}.
(viii) A B = (A - B) (B - A) (A B)
Example – 4
(ix) A - (A - B) = A B
Write the set {0, 1, 4, 9, 16, .......} in set builder form.
(x)A - B = B -A A= B (xi)A B =A B A= B
(xii) A (B ' C) = (A B) ' (A C) Sol. The elements of the given set are squares of integers :
0, r 1, r 2, r 3, r 4, .......
v tr
Example – 1
c
Write the set of all positive integers whose cube is odd. ac
Hence the given set, in set builder form, is {x2 : xZ}.
Example – 5
- @
am
Sol. The elements of the required set are not even.
State which of the following sets are finite and which are
[' Cube of an even integer is also an even integer]
g r
infinite
Moreover, the cube of a positive odd integer is a positive
e le (i) A = {x : x N and x2 – 3x + 2 = 0}
odd integer.
t T (ii) B = {x : x N and x2 = 9}
si
The elements of the required set are all positive odd integers.
i (iii) C = {x : x N and x is even}
e V
Hence, the required set, in the set builder form, is :
(iv) D = {x : x N and 2x – 3 = 0}.
2k 1 : k t 0, k Z .
o r Sol. (i) A = {1, 2}.
Example – 2
r M [' x2 – 3x + 2 = 0 (x – 1) (x – 2) = 0 x = 1, 2]
Fo
1 2 3 4 5 6 7½ (ii)
Hence A is finite.
B = {3}.
Write the set ® , , , , , , ¾ in the set
¯2 3 4 5 6 7 8¿
[' x2 = 9 x = + 3. But 3 N]
builder form. Hence B is finite.
Example – 6 Example – 8
Which of the following are empty (null) sets ? Are the following pairs of sets equal ? Give reasons.
(i) Set of odd natural numbers divisible by 2 (i) A = {1, 2}, B = {x : x is a solution of x2 + 3x + 2 = 0}
(ii) {x : 3 < x < 4, x N}
(ii) A = {x : x is a letter in the word FOLLOW},
(iii) {x : x2 = 25 and x is an odd integer}
B = {y : y is a letter in the word WOLF}.
(iv) [x : x2 – 2 = 0 and x is rational]
(v) {x : x is common point of any two parallel lines}.
Sol. (i) A = {1, 2}, B = {–2, –1}
Sol. (i) Since there is no odd natural number, which is divisible [' x2 + 3x + 2 = 0 (x + 2) (x + 1) = 0 x = –2, —1]
by 2.
Clearly A z B.
? it is an empty set.
(ii) A = {F, O, L, L, O, W} = {F, O, L, W}
(ii) Since there is no natural number between 3 and 4.
? it is an empty set. B = {W, O, L, F} = {F, O, L, W}.
Te
Example – 7 (iii) A B C (iv) B C D
giving reasons :
si t
Find the pairs of equal sets from the following sets, if any, (b) (i) A B (ii) B D (iii) A B C.
or
C = {x : x – 5 = 0}, D = {x : x2 = 25},
E = {x : x is a positive integral root of the equation = {1, 2, 3, 4, 5, 6, 7}.
x2 – 2x – 15 = 0}.
r M (ii) B D = {3, 4, 5, 6, 7} {7, 8, 9, 10}
Sol. Here we have,
A = {0} Fo (iii)
= {3, 4, 5, 6, 7, 8, 9, 10}.
Example – 10 Example – 13
If A1 = {2, 3, 4, 5}, A2 = {3, 4, 5, 6}, A3 = {4, 5, 6, 7}, find Let A = {1, 2, 3, 4, 5, 6}, B = {3, 4, 5, 6, 7, 8}. Find
(A – B) (B – A).
Ai and Ai, where i = {1, 2, 3}.
Sol. We have, A = {1, 2, 3, 4, 5, 6} and B = {3, 4, 5, 6, 7, 8}.
Sol. (i) A i = A1 A 2 A 3 = {2, 3, 4, 5} {3, 4, 5, 6} ? A – B = {1, 2} and B – A = {7, 8}
{4, 5, 6, 7} ?(A – B) (B – A) = {1, 2} {7, 8} = {1, 2, 7, 8}.
= {2, 3, 4, 5} {3, 4, 5, 6, 7} = {2, 3, 4, 5, 6, 7}. Some Basis Results about Cardinal Number
(ii) A i = A1 A 2 A 3 = {2, 3, 4, 5} {3, 4, 5, 6} If A, B and C are finite sets and U be the finite universal set,
then
{4, 5, 6, 7}
(i) n (Ac) = n (U) - n (A)
= {2, 3, 4, 5} {4, 5, 6} = {4, 5}.
(ii) n (A B) = n (A) + n (B) - n (A B)
Example – 11 (iii) n (A B) = n(A) + n (B), where A and B are disjoint non -
(ii)
A = {5, 6, 7, 8, 9}.
C
B = Set of those elements of U, which are not in
(ix)
le g
n (A B C) = n (A) + n (B) + n (C) - n (A B) – n(B C) –
n(C A) + n (A B C)
B = {1, 3, 5, 7, 9}.
t Te
(x) If A1, A2, A3, ... An are disjoint sets , then
n (A1 A2 A3 ... An) = n(A1) + n (A2) + n (A3)
(iii) (AC)C = Set of those elements of U, which are not in
A’ = {1, 2, 3, 4} = A.
i si + ... + n(An)
(iv) V
A B = {1, 2, 3, 4} {2, 4, 6, 8} = {1, 2, 3, 4, 6, 8}.
e
(xi) n (A ' B) = number of elements which belong to exactly
or
one of A or B.
C
AB = Set of those elements of U, which are not in Example – 14
A B = {5, 7, 9}.
r M If A = {1, 2, 3}, B = {4, 5, 6} and C = {7, 8, 9}, verify that
Example – 12 Fo A B C = A B A C .
If U = {x : x is a letter in English alphabet}, Sol. We have, A = {1, 2, 3}, B = {4, 5, 6} and C = {7, 8, 9}.
A = {x : x is a vowel in English alphabet}. A B = {1, 2, 3} {4, 5, 6} = {1, 2, 3, 4, 5, 6} ...(1)
Find AC and (AC)C. A C = {1, 2, 3} {7, 8, 9}
= {1, 2, 3, 7, 8, 9} ...(2)
Sol. (i) Since A = {x : x is a letter in English alphabet}, and B C = {4, 5, 6} {7, 8, 9} = I ...(3)
? AC is the set of those elements of U, which are not vowels
Now A B C 1, 2, 3 I = {1, 2, 3} ...(4)
= {x : x is a consonant in English alphabet}.
(ii) (AC)C is the set of those elements of U, which are not and A B A C = {1, 2, 3, 4, 5, 6} {1, 2, 3, 7, 8, 9}
consonants = {x : x is a vowel = {1, 2, 3} ...(5)
in English alphabet} = A. From (4) and (5), A B C A B A C , which
C C
Hence (A ) = A. verifies the result.
SETS, RELATIONS & FUNCTIONS
Example – 15 Example – 17
result.
- @
y A (B – C)
(A B) – (A C) A (B – C) ... (2)
(ii) A B = {2, 4, 6, 8} {2, 3, 5, 7} = {2}
am
Combining (1) and (2).
r
A (B – C) = (A B) – (A C).
A B
C
= {1, 3, 4, 5, 6, 7, 8, 9} ...(3)
le g
Example – 18
and A C BC = {1, 3, 5, 7, 9} {1, 4, 6, 8, 9}
T e
= {1, 3, 4, 5, 6, 7, 8, 9} ...(4)
si t Prove the following :
result.
re Sol. Let x Bc, where x is arbitrary.
Example – 16 o Now x Bc
r M
If A and B are any two sets, prove using Venn Diagrams xB
(i) A – B = A BC
Fo
(ii) (A – B) B = A B.
x A
x Ac
[' A B]
Sol.
Bc Ac ... (1)
x Ac
(ii) x B
A B
n(X) = 200
Prove the following :
n(M A I) = n(M) + n(A) + n (I) –
A – B = A – (A B)
n(M A) –n (A I) – n (M I) + n (M A I)
where U is the universal set.
= 35 + 40 + 40 – 20 – 17 – 15 + 5 = 68
Sol. Let x (A – B), where x is arbitrary. (i) Number of students passed in all three examination
Now x (A – B) = 200 – 68 = 132
x A and x B (ii) Number of students failed in IIT or AIEEE
(x A and x A) and x B =n (I A) = n(I) + n(A) – n (I A)
[Note this step] = 40 + 40 – 17 = 63
x A and (x A and x B)
Example – 21
v tr
[Associative Law]
c
x A and x (A B) ac
In a hostel, 25 students take tea, 20 students take coffee,
x A – (A B) - @
15 students take milk, 10 students take both tea and coffee,
am
8 students take both milk and coffee. None of the them
Hence A – B = A – (A B).
r
take tea and milk both and everyone takes atleast one
g
le
Example – 20 beverage, find the number of students in the hostel.
V i
40 in IIT, 20 failed in MHTCET and AIEEE, 17 in AIEEE Sol.
re
and IIT, 15 in MHTCET and IIT and 5 failed in all three
examinations. Find how many students o
(i)
r M
Did not fail in any examination.
(ii)
Fo
Failed in AIEEE or IIT. Let the sets, T and C and set M are the students who drink
tea, coffee and milk respectively. This problem can be solved
by Venn diagram.
= n (T C M)