Set Notation and Operations
Set Notation and Operations is about describing groups of objects clearly and using symbols to compare or combine those groups. In maths, a set is a collection of items, called elements. Sets help us organize numbers and ideas in a precise way.
This lesson will teach you how to write sets, how to read common symbols, and how to perform basic set operations such as union, intersection, and complement. These ideas are important in algebra, probability, and many other parts of mathematics.
1. What is a set?
A set is a well-defined collection of elements. “Well-defined” means we can tell clearly whether something belongs in the set or not.
For example, the set of even numbers less than 10 is a set because we know exactly which numbers belong:
$$\{2,4,6,8\}$$
The curly brackets \(\{\}\) show that we are writing a set.
2. Basic symbols used with sets
- \(\{ \}\): curly brackets used to write a set
- \(\in\): “is an element of”
- \(\notin\): “is not an element of”
- \(=\): two sets are exactly the same
- \(\subseteq\): is a subset of
- \(U\): the universal set, which contains all items being considered
- \(\varnothing\) or \(\{\}\): the empty set, a set with no elements
Examples:
- \(3 \in \{1,2,3,4\}\)
- \(7 \notin \{1,2,3,4\}\)
- If \(A=\{1,2\}\) and \(B=\{1,2\}\), then \(A=B\)
3. Ways to write sets
There are two common ways to write a set: roster notation and set-builder notation.
Roster notation lists all the elements of the set inside curly brackets.
Example:
$$A=\{1,2,3,4,5\}$$
This means the set \(A\) contains the numbers 1, 2, 3, 4, and 5.
Set-builder notation describes a rule that tells which elements belong to the set.
Example:
$$A=\{x\mid x \text{ is a whole number and } 1\le x\le 5\}$$
This is read as: “the set of all \(x\) such that \(x\) is a whole number and \(1\le x\le 5\).”
Both notations describe the same set.
4. Subsets
A set \(A\) is a subset of set \(B\) if every element of \(A\) is also an element of \(B\).
For example, if
$$A=\{2,4\}, \qquad B=\{1,2,3,4,5\}$$
then \(A\subseteq B\) because every number in \(A\) is also in \(B\).
If even one element of \(A\) is not in \(B\), then \(A\) is not a subset of \(B\).
5. The universal set and complement
The universal set, often written as \(U\), is the set of all elements we are discussing in a problem. The universal set matters because the complement of a set depends on it.
The complement of a set \(A\), written as \(A'\) or sometimes \(A^c\), is the set of all elements in the universal set that are not in \(A\).
If
$$U=\{1,2,3,4,5,6,7,8,9,10\}$$
and
$$A=\{2,4,6,8,10\}$$
then the complement of \(A\) is
$$A'=\{1,3,5,7,9\}$$
6. Union of sets
The union of two sets combines all elements from both sets. The symbol for union is \(\cup\).
For sets \(A\) and \(B\),
$$A\cup B$$
means all elements that are in \(A\), in \(B\), or in both.
Example:
$$A=\{1,2,3,4\}, \qquad B=\{3,4,5,6\}$$
Then
$$A\cup B=\{1,2,3,4,5,6\}$$
Notice that elements are not repeated in a set. Even though 3 and 4 are in both sets, they are written only once.
7. Intersection of sets
The intersection of two sets contains only the elements that are in both sets. The symbol for intersection is \(\cap\).
Using the same sets:
$$A=\{1,2,3,4\}, \qquad B=\{3,4,5,6\}$$
Then
$$A\cap B=\{3,4\}$$
These are the elements shared by both sets.
If two sets have no elements in common, their intersection is the empty set:
$$\{1,2\}\cap\{3,4\}=\varnothing$$
8. Reading and comparing operations
It is important to understand the difference between union, intersection, and complement.
- Union \(A\cup B\): everything in either set
- Intersection \(A\cap B\): only what the sets share
- Complement \(A'\): everything in the universal set that is not in \(A\)
A quick way to remember:
- Union joins sets together.
- Intersection finds overlap.
- Complement finds what is left out.
Worked Example 1: Writing a set in two ways
Write the set of odd numbers less than 10 in roster notation and set-builder notation.
Step 1: List the odd numbers less than 10.
They are \(1,3,5,7,9\).
Roster notation:
$$\{1,3,5,7,9\}$$
Set-builder notation:
$$\{x\mid x \text{ is an odd whole number and } x<10\}$$
Answer: The set can be written as \(\{1,3,5,7,9\}\) or \(\{x\mid x \text{ is an odd whole number and } x<10\}\).
Worked Example 2: Finding union and intersection
Let
$$A=\{2,4,6,8\}, \qquad B=\{4,6,8,10\}$$
Find \(A\cup B\) and \(A\cap B\).
Step 1: Find the union.
Take all elements from both sets without repeating any:
$$A\cup B=\{2,4,6,8,10\}$$
Step 2: Find the intersection.
Look for elements that appear in both sets:
$$A\cap B=\{4,6,8\}$$
Answer:
$$A\cup B=\{2,4,6,8,10\}$$
$$A\cap B=\{4,6,8\}$$
Worked Example 3: Finding a complement
Let
$$U=\{1,2,3,4,5,6,7,8,9,10,11,12\}$$
and
$$C=\{3,6,9,12\}$$
Find \(C'\).
Step 1: Identify the universal set.
The universal set contains the numbers 1 through 12.
Step 2: Remove the elements in \(C\).
The numbers not in \(C\) are:
$$1,2,4,5,7,8,10,11$$
Answer:
$$C'=\{1,2,4,5,7,8,10,11\}$$
Worked Example 4: Using all three ideas together
Let
$$U=\{1,2,3,4,5,6,7,8,9,10\}$$
$$A=\{1,2,3,4,5\}$$
$$B=\{4,5,6,7\}$$
Find:
- \(A\cup B\)
- \(A\cap B\)
- \(A'\)
1. Union
Combine all elements in \(A\) and \(B\):
$$A\cup B=\{1,2,3,4,5,6,7\}$$
2. Intersection
Find the elements in both sets:
$$A\cap B=\{4,5\}$$
3. Complement of \(A\)
Take everything in \(U\) that is not in \(A\):
$$A'=\{6,7,8,9,10\}$$
9. Common mistakes to avoid
- Repeating elements: In a set, each element is written only once.
- Mixing up union and intersection: Union means combined; intersection means shared.
- Forgetting the universal set: You need the universal set to find a complement.
- Listing elements out of the rule: In set-builder notation, make sure the rule matches the set exactly.
10. Quick practice ideas
Try these on your own:
- Write the set of multiples of 5 less than 25 in both roster and set-builder notation.
- If \(A=\{1,3,5,7\}\) and \(B=\{5,6,7,8\}\), find \(A\cup B\) and \(A\cap B\).
- If \(U=\{1,2,3,4,5,6,7,8\}\) and \(D=\{2,4,6,8\}\), find \(D'\).
Summary
A set is a collection of elements, and it can be written in roster notation or set-builder notation. The symbol \(\cup\) means union, which combines elements from sets. The symbol \(\cap\) means intersection, which gives only the shared elements.
The complement of a set gives the elements in the universal set that are not in that set. Learning these symbols and operations helps you describe number groups clearly and solve problems in a logical way.
Put what you read to the test
You've worked through Set Notation and Operations. Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.