Learn how to find the difference of two sets step by step, with a video, Venn diagrams, an animation, 10 worked examples, and interactive games. Math is fun, so let's begin!
High School Math Problem
Given A = {x | x is a prime number < 11} and B = {x | x is an odd number < 11}, the elements of A – B are ...
A. 1 B. 2 C. 3 D. 7 E. 9
Take a guess first! Tap your answer:
What is a set?
A set is a well-defined collection of objects or numbers. The objects inside are called members or elements. Example: the collection of prime numbers less than 11 is a set, but “a collection of tasty foods” is not, because “tasty” is different for everyone.
Key notation: x ∈ A reads “x is an element of A”, and x ∉ A reads “x is not an element of A”.
Two ways to write a set
• Roster (listing) method: A = {2, 3, 5, 7}.
• Set-builder notation: A = {x | x is a prime number < 11}. Read it as “A is the set of all x such that x is a prime number less than 11”. The bar “|” means “such that”.
First, know your primes and odd numbers (1 to 10)
A prime number is a whole number greater than 1 that has exactly two factors: 1 and itself. An odd number is a number that is not divisible by 2.
| Number | Factors | Prime? | Odd? |
|---|---|---|---|
| 1 | 1 | No (only 1 factor) | Yes |
| 2 | 1, 2 | Yes | No |
| 3 | 1, 3 | Yes | Yes |
| 4 | 1, 2, 4 | No | No |
| 5 | 1, 5 | Yes | Yes |
| 6 | 1, 2, 3, 6 | No | No |
| 7 | 1, 7 | Yes | Yes |
| 8 | 1, 2, 4, 8 | No | No |
| 9 | 1, 3, 9 | No | Yes |
| 10 | 1, 2, 5, 10 | No | No |
Operations on sets
For A = {2, 3, 5, 7} and B = {1, 3, 5, 7, 9}:
| Operation | Meaning | Result |
|---|---|---|
| Intersection A ∩ B | Elements in A and in B | {3, 5, 7} |
| Union A ∪ B | Elements in A or in B (no repeats) | {1, 2, 3, 5, 7, 9} |
| Difference A − B | Elements of A that are not in B | {2} |
| Difference B − A | Elements of B that are not in A | {1, 9} |
| Complement Aᶜ | Elements of the universal set S that are not in A | Depends on S |
Venn diagram for our problem
The yellow region is A − B: the part of A that does not overlap with B.
3 steps to find A − B
1) List the elements of set A and set B.
2) Find the elements of A that are also in B (that is the intersection A ∩ B).
3) Cross out those elements from A. What remains is A − B.
Quick formula for counting elements
n(A − B) = n(A) − n(A ∩ B)
Another form: A − B = A ∩ Bᶜ (the elements of A that lie outside B).
1) Treating 1 as a prime number.
2) Mixing up A − B and B − A. Order matters: A − B ≠ B − A.
3) Also including the intersection elements (3, 5, 7) in the answer.
4) Answering with elements that belong only to B (1 and 9).
📝 Video script (about 2 minutes 45 seconds)
0:00–0:12 Greeting and title. “Hello everyone! Today we learn about set operations, especially the difference of two sets.”
0:12–0:40 Show the problem: A is the prime numbers less than 11, B is the odd numbers less than 11. Find A − B. Explain a set as a “group” and elements as “students in the group”.
0:40–1:15 Step 1: write the elements of A. Check the numbers 1 to 10 one by one. The result is A = {2, 3, 5, 7}. Remind students that 1 is not prime.
1:15–1:40 Write the elements of B = {1, 3, 5, 7, 9}.
1:40–2:10 Steps 2 and 3: look at A's elements one by one. Is 2 in B? No, keep it. Are 3, 5, 7 in B? Yes, cross them out. What remains is A − B = {2}. The answer is B.
2:10–2:35 Show the Venn diagram: the part of A not covered by circle B is shaded yellow, and it holds only the number 2.
2:35–2:50 Quick example: A − B and B − A are not the same. Here B − A = {1, 9}.
2:50–3:00 Closing: the order in A − B matters, so check A's elements one by one. Invite students to try the examples and practice.
Tap an example title to open the step-by-step solution. The examples run from easy to challenging.
Levels of thinking (Bloom's taxonomy)
C1 Remember | C2 Understand | C3 Apply | C4 Analyze | C5 Evaluate | C6 Create. Plus a HOTS (higher-order thinking) problem and an everyday-life application.
Read the definitions of the two sets. Tap every number that is an element of A − B, then press Check.
