5 Sets
Consider
Thirty students wrote down what kind of transport they used
one day to get to school.
• 15 used a bus. 18 used a car.
• 6 used both a bus and a car.
How can you find the number that used neither a bus nor a car?
You should be able to solve this problem after you have worked
through this chapter.
Class discussion
Thirty students were asked if they had a pencil with them. They were then
asked if they had a pen with them.
• 25 students said they had a pencil.
• 21 students said they had a pen.
These two numbers add up to more than the number of students in the class.
Why do you think this is the case?
Set notation
A set is a clearly defined collection of things that have something in common, for example,
a set of drawing instruments, a set of books.
Things that belong to a set are called members or elements. These members are usually
written down separated by commas and enclosed in curly brackets.
For example, the set of prime numbers between 0 and 10 can be written as {2, 3, 5, 7}.
We do not have to list all the members of a set when we can use words to describe them.
For example, instead of {1, 2, 3, 4, 5, …, 19, 20} we can write {whole numbers from 1 to 20
inclusive}.
Exercise 5a
Worked example
Write {the prime factors of 30} as a list of members.
30 5 2 3 15
5 2 3 3 3 5
Therefore {the prime factors of 30} 5 {2, 3, 5}
1
STP Maths 7
Write each of the following sets as a list of members.
1 {the days of the week}
2 {the even numbers between 1 and 11}
3 {the prime numbers between 10 and 20}
4 {the multiples of 3 between 1 and 20}
5 {the last four letters of the Roman alphabet}
6 {multiples of 5 between 20 and 50 inclusive}
7 {the prime factors of 70}
8 {the square numbers between 1 and 100 inclusive}
9 {the triangular numbers between 1 and 50 inclusive}
10 {the different factors of 12}
Finite and infinite sets
When we need to refer to a set several times, we can use a capital letter to label that set.
For example
A 5 {months of the year beginning with J}
or A 5 {January, June, July}
In many cases it is not possible to list all the members of a set. For example, if
N 5 {positive whole numbers}
we can write
N 5 {1, 2, 3, 4, 5, …}
where the dots show that the list continues indefinitely.
N is an example of an infinite set, whereas A is an example of a finite set.
Exercise 5b
State whether the following sets are finite or infinite.
1 A 5 {vowels of the Roman alphabet}
2 B 5 {the factors of 30}
3 C 5 {even numbers}
4 D 5 {even numbers between 3 and 9}
5 E 5 {students taking violin lessons}
6 F 5 {odd numbers}
7 G 5 {grains of sand on the Earth}
8 H 5 {multiples of 3}
9 I 5 {different shapes of triangle}
10 J 5 {different languages spoken in the world}
2
5 Sets
Universal sets
Consider the set X 5 {whole numbers less than 16}.
Now consider the sets A and B whose members are in X where
A 5 {prime numbers less than 16} 5 {2, 3, 5, 7, 11, 13}
and
B 5 {multiples of 5 less than 16} 5 {5, 10, 15}
The set X is called a universal set for the sets A and B. It is a set that contains all the
members of the sets A and B, together with other members that are not in A or in B.
The universal set could also be any set of whole numbers that includes the members of A
and B, for example {whole numbers less than 20}. The universal set is usually labelled U.
Exercise 5c
Worked example
Suggest a universal set for the sets
A 5 {pupils in my class having piano lessons}
B 5 {pupils in my class having guitar lessons}
U 5 {all the pupils in my class}
(The universal set could be any other set that includes the pupils in A and B.)
Suggest a universal set for
1 {2, 4, 6, 8, 10} and {4, 8, 12}
2 {1, 3, 5, 7, 11} and {3, 6, 9, 12, 15}
3 {knives} and {forks}
4 {odd whole numbers} and {multiples of 3}
5 {students in my class who play football} and {students in my class
who play tennis}
6 {cups and saucers} and {plates}
Venn diagrams
Venn diagrams are a way of representing sets. A Venn diagram consists of a rectangle
with circles inside, representing sets.
The rectangle represents a universal set. The members of a universal set are all the
members of the given sets together with possible other members.
For example, if A 5 {the odd numbers between 0 and 10} 5 {1, 3, 5, 7, 9} and
B 5 {multiples of 3 between 1 and 20} 5 {3, 6, 9, 12, 15, 18}, the universal set
could be {all whole numbers between 1 and 20 inclusive}.
3
STP Maths 7
This is the Venn diagram representing the sets A and B and U 5 {1, 2, 3, … 19, 20}.
17 19 20
2 A
1 6 16
4 3 There is nothing special about circles,
12
7 5 15 you can use any enclosed shape.
9 14
7
8 18
10 13
11 U
• The numbers 3 and 9 are in both sets, so they go in the overlapping part.
• The numbers 1, 5 and 7 are only in A, so they go in the left-hand part of the circle
marked A.
• The numbers 6, 12, 15 and 18 go in the right-hand side of the circle marked B.
The union of two sets
The union of two sets A and B is the set of members that are in either A or in B. This
includes the members that are in both A and B.
For example, if A 5 {1, 3, 5, 7, 9} and B 5 {3, 6, 9, 12, 15, 18}, the union of the sets A and B
is the set {1, 3, 5, 6, 7, 9, 12, 15, 18}.
The union of the sets A and B is written as A B.
This is represented in the Venn diagram above by the
region enclosed by both circles.
When two sets have no members in common the
circles are drawn without an overlap, as shown here:
Exercise 5d
Draw Venn diagrams to show the union of the following sets.
1 P 5 {a, b, c, d, e}, Q 5 {a, e, i, o, u}
2 X 5 {2, 4, 6, 8, 10}, Y 5 {4, 8, 12, 16}
3 A 5 {letters in the word ‘Bernado’},
B 5 {letters in the word ‘Bashira’}
4 F 5 {4, 8, 12, 16, 20}, G 5 {3, 6, 9, 12, 15}
5 P 5 {2, 3, 5}, Q 5 {2, 3, 7}
6 X 5 {prime numbers less than 10}, Describe the members of
Y 5 {even numbers less than 10} the union of these sets.
7 F 5 {square numbers less than 50},
G 5 {triangular numbers less than 50}
8 M 5 {square numbers less than 100},
N 5 {cube numbers less than 100}
4
5 Sets
9 A 5 {capital letters in the alphabet that can be written using
only straight lines},
B 5 { capital letters in the alphabet that cannot be written using
only straight lines}
10 P 5 {letters in the word ALGEBRA},
Q 5 {letters in the word GEOMETRY}
Intersection of sets
The intersection of two sets A and B is the set of members that is in both A and B.
Consider again the sets A 5 {1, 3, 5, 7, 9} and B 5 {3, 6, 9, 12, 15, 18}
A B
6
1 3 12
5 9 15
7 18
U
From the Venn diagram we can see that the members {3, 9} are in both A and B.
The intersection of A and B is written as A B.
Therefore A B 5 {3, 9}
Exercise 5e
Use the diagrams that you drew for Exercise 5D, questions 1 to 6 to
write down the intersection of each pair of sets.
7 Draw a Venn diagram to illustrate the sets A 5 {2, 4, 6, 8, 10, 12} and
B 5 {3, 6, 9, 12} with U 5 {whole numbers from 1 to 12 inclusive}.
Hence write down the set of numbers that are in U but not in either
A or B.
8 Draw a Venn diagram to illustrate the sets A 5 {factors of 6} and
B 5 {factors of 10} with U 5 {whole numbers from 1 to 10 inclusive}.
Hence write down the set of numbers that are in U but not in either
A or B.
9 Given F 5 {square numbers less than 50}, G 5 {triangular numbers
less than 50} and U 5 {whole numbers from 1 to 50 inclusive}
a list the members of F G
b find the number of members of the set that are not members
of F or G.
10 Given M 5 {square numbers less than 100}, N 5 {cube numbers
less than 100} and U 5 {whole numbers from 1 to 100 inclusive}
a list the members of M N
b find the number of members of the set that are not members
of M or N.
5
STP Maths 7
Consider again
Thirty students wrote down what kind of transport they used one day
to get to school.
If you need some help,
• 15 used a bus. 18 used a car. go to the STP website.
• 6 used both a bus and a car.
Now can you find the number that used neither a bus nor a car?
Investigation
Consider the following sets X and Y.
X 5 {0, 2, 4, 6, 8, 10, …}, Y 5 {1, 3, 5, 7, 9, 11, …}
a Describe X and Y in words.
b Write down the next three numbers in X. Write down the next three
numbers in Y.
c Choose two numbers from X and find their sum. Is this sum a
member of X? Is this always true?
d Choose two numbers from Y and find their sum. Which set contains
this sum? Is this always true?
e What can you say about two numbers so that their sum is in Y?