Set Theory
Set Theory
Specifying sets
There are essentially two ways.
(i) Listing of elements or members separated by commas and enclosed in a curly
bracket e.g A 1,3,5,7,9, B 1, 2, 3,..., 20
(ii) State the property which characterize the elements of the set e.g
A x : x is an odd a positive int eger, x 10
B x : x is an odd int eger
C x : x 2 3x 2 0
NB
Elements of a set can be arranged in any order i.e C 1, 2, 3 2, 3, 1 1, 3, 2
No repetition is allowed i.e D 1, 2, 3, 1 1, 2, 3
Finite set is a set having countable elements e.g A 1, 2, 3..., 100
Infinite se is a set having uncountable elements e.g A 1, 2, 3,...
Example
Then C A and C B since 1 and 3 , the elements of C are also members of A and B .
Notations
2. Universal set
All sets under investigation in any application of set theory are assumed to belong to some large
fixed set called the universal set , usually denoted by .
3. Empty/ Null/ Void set
Given a universal set and a property say P , there may not be any elements of having the
desired property P e.g the following set has no elements :
S x : x is apositive int eger, x 2 3
A set with no elements is called an empty set and is denoted by or .
The empty set is also regarded as a subset of every other set.
i.e A
4. Disjoint sets
Two sets A and B are disjoint if they have no elements in common. For example
A 1, 2 , B 4, 5, 6 and C 5, 6, 7, 8, then A and B are disjoint as are A
and C . B and C are not disjoint as they have elements 5 and 6 in common.
5. Singleton
A set having exactly one element e.g. B 4
Set operations
1. Union
The union of two sets A and B , denoted by A B is the set of all elements which
belong to A or B , i.e.
A B x : x A or x B
Example
Let A 1, 2, 3, 4 and B 3, 4, 5, 6, 7 , then A B 1, 2, 3, 4, 5, 6, 7.
2. Intersection
The intersection of two sets A and B , denoted by A B is the set of elements which
belong to both A and B , i.e.
A B x : x A and x B
Example
Let A 1, 2, 3, 4 and B 3, 4, 5, 6, 7 , then A B 3, 4 .
3. Absolute Complement
All sets under consideration are subsets of a fixed universal set . The complement of a set
A , denoted by A C , is the set of elements which belong to but do not belong to A i.e.
AC x : x and x A.
Example
Let 1, 2, 3,...., 100 and A 1 ,2, 3, 4, then AC 5, 6,7,....., 100.
4. Difference
The set difference of two sets A and B denoted by A \ B or A B is the set of elements
which belong to A but do not belong to B i.e.
A \ B x : x A and x B.
Example
Let A 1, 2, 3, 4 and B 3, 4, 5, 6, 7 , then A \ B 1, 2 and B \ A 5, 6, 7 .
5. Symmetric difference
The symmetric difference of sets of sets A and B , denoted by AB or A B is the set of
elements which belong to A or B but not both i.e.
A B x : x A or x B, x A B
Example
Example 1.
List the elements of the following sets.
i) A x : x , 3 x 9
ii)
B x : x , x 2 1 10
iii) C x : x , x is odd, 5 x 5
iv)
D x : x , x 2 3x 2 0
v) E x : x , 3 x 12
vi) F x : x , x is even, x 15
vii) H x : x , 4 x 3
Solution
i) A 4, 5, 6, 7, 8
ii) Solving for the equation
x 2 1 10
x2 9
x 3
B 3 since 3
iii) C 1, 3
iv) Solving the quadratic equation
x 2 3x 2 0
x 1x 2 0
x 1 or 2
D 1,2
Example 2
Use set notation to describe the set of x values where x is a member of the set of:
Solution
i) x : x and 0 x 4
ii) x : x and 3 x 5
iii) x : x and 0 x 6
Example 3
Find
(i) A B
(ii) A B
(iii) A B C
(iv) A B C
(v) AC
(vi) A B C C
(vii) A B C C
(viii) A\ B
(ix) A B
(x) A B B C
(xi) n A B B C
Solution
(i) A B 1, 2, 3, 4, 6, 8
(ii) A B 2, 4
(iii) A B C 1, 2, 3, 4, 5, 6, 8
(iv) A B 4
(v) AC \ A 5, 6, 7, 8, 9
(vi) A B C C \ A B C 7, 9
(vii) A B C C \ A B C 1, 2, 3, 5, 6, 7, 8, 9
(viii) A \ B 1, 3
(ix) A B A \ B B \ A 1, 3 6,8 1, 3, 6, 8
(x) A B B C 1, 2, 3, 4, 6, 8 2, 3, 4, 5, 6, 8 2, 3, 4, 6, 8
(xi) n A B B C 5
Example 4
(i) A b, c, d , e , B d , e, f , g
(ii) A x : x and 0 x 3, B x : x and 1 x 1
(iii) A x : x and 1 x 9, B x : x and 5 x 12
Solution
(i) A B b, c, d , e, f , g
A B d , e
A B A \ B B \ A b, c f , g b, c, f , g
(ii) A B 1, 0, 1, 2, 3 A B 0, 1
A B A \ B B \ A 2,3 1 1, 2, 3
(iii) A B 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 A B 5, 6, 7, 8, 9
A B A \ B B \ A 1, 2, 3, 4 10, 11, 12 1, 2, 3, 4, 10, 11, 12
Exercises.
4. Let be the set of all students in a college. Let A be the set of all students taking mathematics
course and B be the set of students taking calculus course. Describe the following:
(i) A B
(ii) A B
(iii) A B
(iv) BA
5. The sets A , B and C are subsets of the . They are defined as follows
positive int egers less than 16
A prime numbers
B factors of 36
C multiples of 4
Find:
(i) A B C
(ii) A B C
(iii) A B
B \ A C
C
(iv)
6. Let U x : 1 x 17, x . P , Q and R are subsets of such that
P multiples of four, Q factors of 36 and R square numbers .
List the elements of:
(i) U
(ii) P
(iii) Q
(iv) R
(v) P Q R
(vi) Describe in words the set P Q .
7. Let positive int egers less than 15 , X multiples of 2, Y multiples of 3.
Find:
(i) X Y
(ii) X Y
(iii) X Y
(iv) X Y C
8. The universal set is defined as the se of positive integers less than 10 . The subsets A and
B are defined as follows:
A int egers that are multiples of 3
A int egers that are factors of 30
Find:
(i) A B C
(ii) AC B C
9. A company makes products A , B and C from a number of basic components. A requires
components a , b and c . B requires b , d and e . C requires components a and f .
Determine (a) A B , (b) A B C and explain what is meant by these sets.
Classes of sets
Given a set S ,we might wish to talk about some of its subsets. Thus we would be
considering a “set of sets”. Whenever such a situation arises we speak of a class or
collection or family of sets rather than a set of sets
Example
Consider A 1, 2, 3, 4
a) Let B be the class of subsets of A which contains exactly three elements of A . Then
B 1,2,3, 1,2,4, 1,3,4, 2,3,4
i.e. the elements of B are 1,2,3, 1,2,4 , 1,3,4 and 2,3,4. (Cardinality of 4).
b) Let C be the family of subsets of A each which contains 2 and two other elements of A . Then
C 1,2,3, 1,2,4, 2,3,4
i.e. the elements of C are 1,2,3, 1,2,4 and 2,3,4. (Cardinality of 3).
Power sets
For a given set S , the power set of S is the set of all subsets of S , denoted by PS .
The number of elements of PS is given by 2 n , where n is the cardinality of S .
Example 1.
Solution
n 1, PS , a
Solution
Solution
Let P A , 1, 2, 3, 1,2, 1,3, 2,3, 1,2,3 or P A , 1, 2, 3, 1,2, 1,3, 2,3, A .
Exercises
Find the power sets of the following:
(i) A a, b, c
(ii) A a, b, c, d
(iii) A a, b, c, d
(iv) A 1, 1,3
(v) A , 1,2,3
(vi) A a, b, c, d , e
(vii) A 1,2,3,4,5
Venn diagram
Definition
A Venn diagram is a graph made of two or more circles contained in a universe that is used to
show the relationships between sets.
A Venn diagram is a pictorial representation of sets.
The universal set is represented by the rectangle while the circles represent sets.
A set is a collection of things or objects.
The universe is a collection of all the things that can be members of the set in a Venn diagram.
Examples
A B
A B
AC
A \ B or A B
B \ A or B A
…
A B A \ B B \ A
A B C
A B C
A B C
A B C C
B A C
A B B C
Exercises
1. Shade the region represented by the following on a Venn diagram.
a) AC B
b) A B A C
c) A B A C
d) Given W V ,shade the regions;
(i) V C W C
(ii) W V
(iii) W V
(iv) V C W
(v) WC
(vi) W C V
2. On a Venn diagram shade the region represented by;
(i) B A C C
(ii) C B A
(iii)
C A BC
(iv) C A B C
(v) A B A C
C
(vi) C
A B C
C
(iv) AC B C
(v) A B C
Exercises.
Solution
2 3
6 1
7
8
9
6
8
5 3
7 10
Example.
NOTE: If A and B are disjoint finite sets, then A B is finite and n A B n A nB e.g.
A 1, 2, 3, 4, B 7, 8, 9, then n A B n A nB 4 3 7
Examples
1. Among 1000 personal computer users, it was found that 375 have a scanner and 450 have a
DVD player attached to their personal computer. Moreover 150 had both devices.
(i) Draw a Venn diagram to represent the above information.
(ii) How many had either a scanner or a DVD player?
(iii) How many had neither device?
Solution
(i)
S D
225 150
55 300
325
(iii)
325 or n S D C 325
2. A travel agent in Nairobi surveyed 100 people who had visited the cities of Mombasa and Kitale.
The results were given below:
30 people had visited Mombasa.
26 people had visited Kitale.
12 people had visited both Mombasa and Kitale.
Required:
(i) Present the above information in a Venn diagram.
(ii) The number of people who had visited Mombasa or Kitale.
(iii) The number of people who had visited Kitale but not Mombasa.
(iv) The number of people who had visited only one of the two cities.
(v) The number of people who had visited neither of the two cities.
Solution
(i)
M
K
18
12
14
56
(i)
n M E A
C
n nM E A 50 47 3
nM E A nM nE n A nM E nM A nE A nM E A
(ii) 47 30 18 26 9 16 8 nM E A
nM E A 6
(iii)
11
10 3
E
8 2 7
3
(iv) 21
(v) 3
(vi) 26
(vii) 15
Exercises.
1. A group of 191 students , of which 10 are taking French , Business, and Music; 36 are taking
French and Business; 20 are taking French and Music; 18 are taking Business and Music; 65
are taking French; 76 are taking Business; and 63 are taking music.
(i) How many are taking French and Music but not Business?
(ii) How many are taking Business and neither French nor Music?
(iii) How many are taking none of the three subjects?
(iv) How many are taking French or Business or both?
(v) How many are taking at least one of the three subjects?
(vi) How many are taking exactly one of the three subjects?
(vii) How many are taking exactly two of the three subjects?
2. In an examination , 70% of the candidates passed in Mathematics, 73% passed in Physics, and
64% passed in both subjects. If 63 candidates failed in both subjects, use a Venn diagram to find
the total number of candidates who appeared at the examination.
3. 500 people were asked about their morning vitamin intake. It was found that 150 take vitamin
B , 200 take vitamin C , 165 take vitamin E , 57 take both B and C , 125 take both B and E ,
82 take both C and E , and 52 take all three vitamins.
(i) Draw a Venn diagram for the above information.
(ii) How many people take both B and E but do not take C ?
(iii) How many take none of these vitamins?
4. 100 people were surveyed to find out whether newspaper advertisements or flyers were more
efficacious in advertising supermarket specials. 20 of them said they pay no attention to either
medium. 50 said they read the flyers, and 15 of those said they also check newspapers. How
many use the newspaper advertisement in total?
5. 1865 voters were surveyed about a new highway. Of them , 805 were in favor of financing it
with a new tax, 627 favored toll on the highway , while 438 said they would vote in favor of
either measure.
(i) How many favor taxes but not tolls?
(ii) How many favor tolls but not taxes?
(iii) How many would vote against either form of funding?
6. A shopping mall contains K-Mart, Walmart and Target stores. In a survey of 100 shoppers, it is
found that:
47 shopped at Walmart.
61 shopped at K-Mart.
52 shopped at Target.
32 shopped at both Walmart and K-Mart.
35 shopped at both K-Mart and Target.
22 shopped at both Walmart and Target.
12 shopped at all three stores.
(i) How many people shopped only at Walmart?
(ii) How many shopped at Walmart and K-Mart, but not at Target?
(iii) How many people shopped at exactly one of the stores?
(iv) How many people shopped at none of the three stores?
7. Sixty people were asked about news magazines. It was found that 32 read Newsweek regularly ,
25 read Time and 20 read US News and World Report. 9 read both Time and US News and
World Report, 11 read both Newsweek and Time, and 8 read both Newsweek and US News and
World Report. 8 of the people do not read any of the magazines.
(i) How many read all three magazines?
(ii) Represent the data in a Venn diagram?
(iii) How many people read exactly one of the three magazines?
8. A survey on a sample of 25 new cars being sold at a local auto dealer was conducted to see
which of the three popular options, air-conditioning (A) , radio (R) ,and power windows (W)
were already installed . The survey found that:
15 had air-conditioning.
12 had radio.
5 had air-conditioning and power windows.
9 had air conditioning and radio.
4 had radio and power windows.
3 had all the three options.
2 had no option.
Find the number of cars that had:
(i) Only power windows.
(ii) Only air-conditioning
(iii) Only radio.
(iv) Radio and power windows but not air-conditioning.
(v) Air-conditioning and radio but not power windows.
(vi) Only one of the options.
9. A survey of 2000 students in Strathmore showed that 500 students played squash , 480 played
rugby and 760 students played chess. The number that played squash and rugby is 240 ,the
number that played squash and chess is 200 number that played rugby and chess is 300 .Only
100 played all the three.
(i) Illustrate this information by use of a Venn diagram.
(ii) How many students played exactly two of the three?
(iii) How many students played none of the games?
10. In a group of fifty students, the number of students studying French, English and Sanskrit were as
follows: French 17 , English 13 and Sanskrit 15 . French and English 9 ,
English and Sanskrit 4 , French and Sanskrit 5 . Given that twenty students do not
take any of the three, determine:
(i) nF S \ E
(ii) nE S \ F
(iii) At least one of the three languages.
(iv) F S E