SETS
SETS
Consider the sets A = {1, 5, 6, 7}, B = {2, 5, 7, Consider the sets, A = {1, 2, 5, 8, 9}, B = {2,
6} and C = {1, 7, 8, 10} 5, 8, 9, 10} and C = {5, 9, 12, 13}
(A∪B)∪C = {1, 2, 5, 6, 7}∪{1, 7, 8, 10} A ∪ (B ∩ C) = {1, 2, 5, 8, 9} ∪ {5, 9}
= {1, 2, 5, 6, 7, 8, 10} = {1, 2, 5, 8, 9}
A∪ (B∪C) = {1, 5, 6,7}∪{1, 2, 6, 7, 8,10}
= {1, 2, 5, 6, 7, 8, 10} (A ∪ B) ∩ (A ∪ C)
(A∪B)∪C = A∪ (B∪C) = {1, 2, 5, 8, 9, 10} ∩{1, 2, 5, 8, 9, 12, 13}
= {1, 2, 5, 8, 9}
Hence for any three sets A, B and C,
(A∪B)∪C = A∪(B∪C). A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
The operation of union of sets is associative. Hence for any three sets A, B and C,
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C).
Similarly, (A∩B)∩C = {5, 6, 7} ∩{1,7, 8, 10} The union is said to be distributive over
= {7} intersection.
Hence for any three sets A, B and C, A∪B = {1, 3, 5, 15}∪ { 1, 2, 5, 10}
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C). The = {1, 2, 3, 5, 10, 15}
intersection is said to be distributive over the
union. (A – B)∪B = A∪B = {1, 2, 3, 5, 10, 15}
iii. If P = D(8) ∪ [D(12) ∩ D(18)] and B. Find the complement of the following sets
Q = [D(8) ∪ D(12)]∩,D(8)∪D(18)] if the universal set is the set of natural
numbers;
Solution 1. {x : x is a prime number}
i. D(12) ={2, 3, 4, 6, 12} 2. {x : x is a multiple of 2}
D(18) = {2, 3, 6, 9, 18} 3. {x : x ≥ 100}
4. {x : x N, 5x + 1 > 20}
ii. D(12) ∩ D(18) = D(r)
{2, 3, 4, 6, 12} ∩ {2, 3, 6, 9, 18} = D(r) C. Let A, B and C be the subset of the universal
{2, 3, 6} = D(r) set U. For each of the following statements,
But D(6) ={2, 3, 6} determine whether it is true or not.
⇒ D(r) = D(6) = {2, 3, 6} i. A – B = A1∩B
r=6 ii. (A∪B) ∩ C = A∪(B∩C)
iii. (A1∪B1) ∩ B = B – A
iii. P = D(8) ∪ [D(12) ∩ D(18)]
P = {2, 4, 8} ∪ {2, 3, 6} Challenge Problems
P = {2, 3, 4, 6, 8} The universal set is the set of integers p such
that 10 ≤ p ≤ 100.
Q = [D(8) ∪ D(12)]∩[D(8)∪D(18)] A = {p : p divided by 12 leaves a remainder 5}.
D(8) ∪ D(12) = {2, 4, 8}∪{2, 3, 4, 6, 12} B = {p : p divided by 16 leaves a remainder 5}.
= {2, 3, 4, 6, 8, 12} Four positive integers a, b, c and d are such
D(8) ∪ D(18) = {2, 4, 8} ∪{2, 3, 6, 9, 18} that:
= {2, 3, 4, 6, 8, 9, 18} a = 12c + 5
Q = {2, 3, 4, 6, 8, 12}∩ {2, 3, 4, 6, 8, 9, 18} b = 16d + 5
Q = {2, 3, 4, 6, 8} a + b = 78
Find a and b.
P = Q = {2, 3, 4, 6, 8}
Illustration of Diagrams
Exercises 1.3 A. Joint Sets
A. Let U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; U
A B
A = {1, 2, 4, 6, 8, 10};
B = {1, 3, 5, 7, 8, 9}.
Find:
1. B1 2. A1
3. A1∪ B1 4. A1 ∩ B1 The shaded regions represent A∪B.
5. (A∪ B)1 The non-shaded region represents (A∪B) 1
2. A B U 2. U
A B
3. 3. A B U
A B U
5. U
C. Subsets (B ⊂ A)
A B
1. U
A
B
A B
ii. The number of people speaking English
only; 14 + x x 3x
n(A) = n(A – B ) + n(A∩B)
⇒ n(A – B) = n(A) – n(A∩B)
= 72 – 15 Given that n (A) = n (B), calculate:
= 57 people i. x ii. n(A∪ B)
Solution a. How many cars needed both repairs?
i. 14 + x + x = x + 3x b. How many cars needed new brakes but
14 + 2x = 4x not exhaust system?
14 = 4x – 2x
14 = 2x 4. Twenty – four people go on holidays. If 15
x= =7 go swimming 12 go fishing and 6 do neither;
a. How many go swimming and fishing?
ii. n ( ∪ ) b. Draw a Venn diagram and fill in the number
= n(A) only + n(B) only + n(A ∩ B ) of people in all four regions.
But n(A) only = 14 + x
5. A travel agent surveyed 100 people to find
= 14 + 7 = 21
out how many of them had visited the cities of
n( ) only = 3x = 3(7) = 21 Accra and Kumasi. 31 people had visited
n(A ∩ B ) = 7 Accra, 26 people had been to Kumasi, and 12
people had visited both cities. Draw a Venn
⇒n(A∪ B) = 21 + 21 + 7 = 49 diagram to find the number of people who had
visited;
Exercises 1.4 a. Accra or Kumasi.
1. M = {x : x is an integer and 2 ≤ x ≤ 20} b. Kumasi but not Accra.
N = {Prime numbers less than 30} c. Only one of the two cities.
a. Draw a Venn diagram and illustrate the d. neither city.
information above.
b. Copy and complete the statement: 6. Draw a Venn diagram of two sets and .
i. M∩N = {…} ii. (M∩N)1 = {…} Given that / / = 15, / / = 20, / ∪ / = 25 and
/ / = 50;
2. In a group of 100 customers at a shopping a. Insert the number of elements to each of the
mall, 80 of them ordered Milo and 72 of them four regions.
ordered Nido. 60 customers ordered both Milo b. Hence find / ∩ / and / ∪Q1/.
and nido;
a. How many customers ordered Milo but not 7. Let the universal set be E = {whole numbers
Nido? less than 20} and let A = {squares less than 20},
b. How many customers ordered Nido but not B = {even number less than 20} and C = {odd
Milo? squares less than 20}
c. How many customers ordered neither of the a. Draw A and C on a Venn diagram, and place
two? the numbers in the correct regions.
b. Draw B and C on a Venn diagram, and place
3. At a certain automotive shop, 50 cars were the numbers in the correct regions.
inspected. 23 of them needed brakes, 34 of c. Shade A∩B on a Venn diagram, and place the
them needed exhaust system? numbers in the correct region.
d. Shade ∪ on a Venn diagram, and place C. If P = { p : p is prime and 3 ≤ p ≤ 31} and
the numbers in the correct region. A = {a :a is an odd number and 3 ≤ a ≤ 35},
where p and a are integers, which of the
8. In a class of 35 boys, is the set of boys following are true and which are false?
who take athletics and is the set who play i. A⊂P ii. P⊂A
cricket. n (A) = 15, n( ) = 16, n( ∩ ) = 5.
iii. 25 P iv. 25 A
Using the whole class as the Universal set,
draw a Venn diagram and mark the numbers in v. ∩A = P, vi. P∪A = A
their appropriate regions. vii. 17 (A∩ ) viii. 27 (P∪A)
ii. How many boys take neither athletics nor ix. If C is the set of all even numbers what can
cricket? you say about A∩C?
Sketch Venn diagrams to illustrate (vii) and
9. and are two sets and the numbers of (viii)
elements are shown in the diagram below;
Three Set Problems
P Q Three set problem arises when a number of
10 + 2x x 5x –8 people are made to choose between three items.
The choice could be for one item only, two
items only, all the three items or none of the
Given that n (P) = n ( ), calculate: three items.
i. n(P ∩Q) ii. n( ) iii. n(P∪ )
Diagrams for Three Sets
10. In an examination, x pupils take the history A. Shading One Region
paper and 3x pupils take the mathematics paper. 1.
Given that 6 pupils take both papers, illustrate U
A B
the data on a Venn diagram indicating the
number of pupils in each region. If the number C
of pupils taking the examination is 46, find x.
The shaded region is A∩B∩C
B. Use true or false for the following;
1. If two sets are equal, they are also 2.
equivalent. U
A B
2. 4 {x : 4 < x ≤ 10
3. An empty set is a finite set C
4. If P = {x : x = 2n, n N} and Q = {x : x = 2n
+ 1, n N}, then P and Q are disjoint sets
The shaded region represents A only
5. A = {x : x is a factor of 24} and B = {x : x is
= A∩B1∩C1 = A∩ (B∩C)1
a multiple of three less than 30}, then P and Q
are overlapping sets
3. U C. Shading Three Regions
A B 1. U
A B
C
C
4. 2. U
U B
A B A
C
C
The shaded region represents C only The shaded region represents B∩ (A∪C)
= A1∩B1∩C = (AUB)1∩C
3. U
B. Shading Two Regions A B
1. U
A B C
C
The shaded region represents C∩ (A∪B)
5. U
3. U A B
A B
C C
The shaded region represents A∩C The shaded region represents (B∪C) ∩A1
6. The shaded regions represent exactly two items
U
A B
8.
U
C B
A
7. U
A B The shaded regions represent exactly one item
U U
B B
A A
I x
III IV (A∩C) - x (B∩C) - x
Fig. I Fig. II
Note: Questions must be carefully read in order to place values at their respective regions in the
diagram. Any region without a given value must be represented by a preferred variable.
Type 1 v. n(Art or Chemistry or both)
It involves the situation whereby the values of = 3 + 7 + 20 + 5 + 6 + 12 = 53
all the regions of the Venn diagram is given to
answer some related questions. vi. n(Art or Chemistry (but not both)
= 3 + 7 + 6 + 12 = 28
Worked Examples
1. The number of students at Asaaman S.H.S vii. Neither Arts nor Biology nor Chemistry
1A, offering the various combinations of Arts, = 10
Biology and Chemistry is shown on the
diagram below; viii. Number of students in the class
= 7 + 3 + 5 + 20 + 2 + 6 + 12 + 10
U= 65
= 65
A = 35 C = 43
a 23 - n b
Covering set C,
70 + f + 40 – x + g + 20 = 200 n 18 - n
20 - n
But f = 30 + x and g = 20 + x
c
H = 44
By substitution,
70 + 30 + x + 40 – x + 20+ x + 20 = 200
180 + x = 200 Method I
x = 200 – 180 For set T,
x = 20 a + 23 – n + n + 20 – n = 56
a = 56 – 23 – 20 + n
b. i. n(P) only = g = 20 + x, but x = 20 a = 13 + n……………………..(1)
= 20 + 20
= 40 For set F,
b + 23 – n + n + 18 – n = 67
ii. n(C) only = h = - 10 + x, but x = 20 b = 67 – 23 – 18 + n
= - 10 + 20 b = 26 + n……………………..(2)
= 10
For set H,
2. In a certain school , there are 118 boys in c + 18 – n + n + 20 – n = 44
form three. Of these, 56 play table – tennis, 67 a = 44 – 18 – 20 + n
play football and 44 play hockey. 23 play table a = 6 + n……………………..(1)
tennis and football, 18 play football and
hockey, and 20 play hockey and table tennis. For three sets T, F and H, n(T∪F∪H)
Everybody play at least one game and n boys = (I + II + III + IV + V + VI + VII + VIII)
play all the three. Express these facts in a Venn = n + 23 – n + 18 – n + 20 – n + a + b + c
diagram and hence find the value of n.
By substitution,
Solution 118 = n + 23 – n + 18 – n + 20 – n + 13 + n +
Let U = {Boy in form three} 26 + n + 6 + n
T = {Boys who play table tennis} 118 = 106 + n
H = { Boys who play hockey} x = 118 – 106
F = { Boys who play football} x = 12
Method II 12 owned exactly two types of the three pet
On the diagram, cover up one of the circles and ⇒ p + q + r = 12…………(i)
add the value of that covered circle to the sum Now,
of the values of the other regions uncovered For set C,
and equate them to the value of the universal a + p + q + x = 30
set. a = 30 – x – p – q ………..(1)
Solution
A1 = r + 3 + 2
Method 1:Without the Venn diagram
A1 = 15
A = {persons who get medals in dance}
⇒ r + 3 + 2 = 15
B = {persons who get medals in dramatics}
r = 15 – 2 – 3 = 10
C = {persons who get medals in music}
n(A) = 36, n(B) =12 , n(C) =18
B1 = p + 3 + 2 = 10
n(A∪B∪C) = 45
⇒ p + 3 + 2 = 10
n(A∩B∩C) = 4
p = 10 – 2 – 3 = 5
Exactly two of the three sets A, B and C
C1 = q + 3 + 3= 34
= n(A∩B) + n(B∩C) + n(A∩C) – 3n(A∩B∩C)
⇒ q + 3 + 2 = 34
= n(A∩B) + n(B∩C) + n(A∩C) – 3 (4)……(1)
q = 34 – 3 – 3 = 28
n(A∪B∪C) = n(A) + n(B) + n(C) – n(A∩B) –
n(B∩C) – n(A∩C) + n(A∩B∩C)
n(A∪B ∪ C) = 75
But, Now,
n(A∩B) + n(B∩C) + n(A∩C) a + p + q + 4 + b + r + c = 45
= n(A) + n(B) + n(C) + n(A∩B∩C) – n(AUBUC) a + b + c + p + q + r + 4 = 45
= 36 + 12 + 18 + 4 – 45 = 25
Substitute a, b and c;
By substitution, eqn (1) now becomes; 32 – p – q + 8 – q – r +14 – p – r + 4+ p + q +
= n(A) + n(B) + n(C) + n(A∩B∩C) – r = 45
n(A∪B∪C) – 12 58 – p – q – r = 45
= 25 – 12 58 – 45 = p + q + r
= 13 people 13 = p + q + r
Therefore, 13 students received medals in
Method 2: Using the Venn diagram
exactly two categories.
Let A = {persons who got medals in dance}
B = {persons who got medals in dramatics}
2. This semester, each of the 90 students in a
C = {persons who got medals in music}
certain class took at least one course from A, B
n(A) = 36, n(B) =12 , n(C) =18
and C. If 60 students took A, 40 students took
n(ABUC) = 45, n(A∩B∩C) = 4
1
B, 20 students took C and 5 students took all
n(A∪B∪C) = { } the three, how many students took exactly two
U(45)
B(12) courses?
A(36)
a q b
Solution
p 4 r
Let U = {Students}
c A = {Students studying course A}
C(18)
b + q + r + 4 = 12 B(40)
A(60)
b = 12 – 4 – q – r q b
a
b = 8 – q – r ……………(2)
p 5 r
For set C, c
C(20)
c + p + r + 4 = 18
c = 18 – 4 – p – r
For set A,
c = 14 – p – r ……………(3) a + p + q + 5 = 60
a = 60 – 5 – p – q
a = 55 – p – q ……………(1) which represents the complement of the three
sets can be calculated.
For set B,
b + q + r + 5 = 40 Worked Examples
b = 40 – 5 – q – r 1. a. The Venn diagram below shows choices
b = 35 – q – r ……………(2) of subject by 40 students. 18 chose Chemistry
(C), 20 chose Physics (P) and 15 chose Biology
For set C, (B), 2 chose Chemistry only, 8 chose Physics
c + p + r + 5 = 20 only and1 chose Biology only, 4 chose all
c = 20 – 5 – p – r subjects. Find the number of students who
c = 15 – p – r ……………(3) chose none of the three subjects.
U= 40
Now, C = 18 P = 20
a + p + q + 5 + b + r + c = 90 x
2 8
a + b + c + p + q + r + 5 = 90 4
Substitute a, b and c; y 1 B = 15
55 – p – q + 35 – q – r +15 – p – r + 5+ p + q
+ r = 90 Solution
110 + p + q + r = 90 Let x be the number of students who chose P
p + q + r = 110 – 90 and C only
p + q + r = 20 Number of students who offer Physics and
Biology only;
Therefore, the number of students who took
= 20 – (8 + x + 4)
exactly two courses = 20
=8–x