Sets and set notation · Mathematics Class 9–10 | StemPy Lab
Course 17.1·Lesson 1 of 3
Sets and set notation
A set is a collection of things, called its elements. Sets are written with curly brackets, by listing the elements or by a rule. The symbols n(A), the universal set, the complement, the union and the intersection let us say exactly which things we mean. Extended adds the symbols for element, subset and the empty set.
about 25 min1 simulation1 practice question1 Python program5 questions to check yourself
This lesson is free to read. Enroll free to keep your place and take the tests.
Lesson 1 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
write a set by listing it and by a rule, and count its elements;
use the universal set, the complement, the union and the intersection;
Extended: use the symbols for element, not an element, subset and the empty set.
A set is a collection
Think of the things in your school bag: a book, a pen, a ruler. Together they form a collection. In mathematics a collection of things is called a set, and each thing in it is an element or a member.
We name a set with a capital letter and write its elements between curly brackets, separated by commas.
A={2,4,6,8}
Order does not matter, and an element is written once. So {2,4,6,8} and {8,6,4,2} are the same set.
Three dots show that a list carries on in the same way. The set B={a,b,c,…} is the letters of the alphabet. The set D={3,6,9,12,…} goes on for ever.
Describing a set by a rule
Some sets are too long to list. We then describe them with a rule. The symbol : is read "such that".
A={x:x is a natural number} means every x such that x is a natural number. In this chapter the natural numbers are 1,2,3,… (some books start at 0).
C={x:x is an integer,2≤x≤6} means {2,3,4,5,6}.
E={x:x is a prime number,x<12} means {2,3,5,7,11}.
An integer is a whole number, positive, negative or zero. Always say which kind of number x is. Without it, {x:2≤x≤6} would contain 2.5 and 5 as well.
Counting the elements: n(A)
The number of elements in a set A is written n(A). For A={2,4,6,8} we have n(A)=4. For C above, n(C)=5.
The universal set and the complement
The universal set, written ξ (the Greek letter xi), is the set of all the elements we are talking about in a problem. Everything else is left out.
The complement of A, written A′, is the set of elements of ξ that are not in A.
Union and intersection
Take two sets A and B.
The unionA∪B holds every element that is in A or in B or in both.
The intersectionA∩B holds only the elements that are in both A and B.
A useful memory: the symbol ∪ looks like a cup that holds everything, and ∩ looks like an arch that only lets the shared elements through.
A worked example
Let ξ={1,2,3,…,12}. Let A be the even numbers and B the multiples of 3.
List the sets.A={2,4,6,8,10,12} and B={3,6,9,12}.
Intersection. The numbers in both lists are 6 and 12. So A∩B={6,12}.
Union. Put everything together, writing each number once: A∪B={2,3,4,6,8,9,10,12}. So n(A∪B)=8.
Complement. The numbers of ξ that are not even: A′={1,3,5,7,9,11}.
Four small Venn diagrams of two overlapping circles, A on the left and B on the right, inside a rectangle that stands for the universal set. In the first the whole of both circles is shaded and the label is A union B. In the second only the lens-shaped overlap is shaded and the label is A intersection B. In the third everything outside circle A is shaded and the label is A complement. In the fourth circle B sits wholly inside circle A and the label is B is a subset of A.
Extended: element, subset and the empty set
The Extended syllabus adds four more symbols.
x∈A means "x is an element of A". The symbol ∈/ means "is not an element of". So 4∈{2,4,6} and 5∈/{2,4,6}.
∅ is the empty set, the set with no elements. For example {x:x is a prime number,24<x<29}=∅, because 25,26,27 and 28 are not prime. Note that n(∅)=0.
A⊆B means "A is a subset of B": every element of A is also in B. So {2,4}⊆{1,2,3,4}. The symbol ⊆ means "is not a subset of". The sets {2,5} and {1,2,3,4} give {2,5}⊆{1,2,3,4}, because 5 is missing from the second set.
Sets can also hold points. D={(x,y):y=mx+c} is the set of all points on a straight line.
Two facts help. If A⊆B, then A∩B=A and A∪B=B. And the empty set is a subset of every set.
Practise with new numbers
Try it in Python
Python has sets too. The program builds the sets from the worked example and checks each answer.
Common mistakes
Counting a repeated element twice. The set {1,2,2,3} has n=3, not 4.
Mixing up ∪ and ∩. Union means "or" and gives the bigger set. Intersection means "and" and gives the smaller set.
Forgetting the universal set. A complement only has a meaning inside a ξ. Always check what ξ is.
Writing ∈ when you mean ⊆. An element is in a set. A set is a subset of a set. So 2∈{2,4} but {2}⊆{2,4}.
Remember these
n(A) is the number of elements. ξ is the universal set. A′ is everything in ξ outside A.
A∪B is "in A or B or both". A∩B is "in both".
Extended:∈, ∈/, ∅, ⊆ and ⊆. If A⊆B then A∩B=A.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Let ξ={1,2,3,…,10} and A={2,3,5,7}. Write down A′ and n(A′).
Let A={x:x is an integer,2≤x≤6} and B={4,5,6,7,8}. Find A∩B, A∪B and n(A∪B).
Write the set {3,6,9,12,…} using a rule.
Extended. True or false? (a) 6∈{x:x is a multiple of 3}. (b) {1,2}⊆{2,3,4}. (c) ∅⊆{1,2}.
Extended.A⊆B, with n(A)=5 and n(B)=9. Write down n(A∩B) and n(A∪B).
References
Cambridge IGCSE Mathematics 0580 syllabus for 2025, 2026 and 2027, section 1.2 (Core and Extended), for the notation used here.
NCERT, Mathematics Textbook for Class XI, Chapter 1 on sets, for the same ideas at greater depth.
Enroll free in Sets and Limits of Accuracy
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.