Union of sets
A pizza shop counts everyone who ordered a pizza or a burger — people who ordered both are counted once.
The union A ∪ B is the set of all elements that are in A or in B or in both.
Formula: A ∪ B = {x : x ∈ A or x ∈ B}
In the figure: The whole shaded region is A ∪ B.
Rule 1: Find a union — List all elements of A, then add the new ones from B.
- Easy: {1, 2} ∪ {2, 3} = {1, 2, 3}.
- Medium: {1, 2, 3, 4, 5, 6} ∪ {4, 5, 6, 7, 8} = {1, 2, 3, 4, 5, 6, 7, 8}.
- Exam-type: A ∪ ∅ = A and A ∪ A = A.
A ⊆ A ∪ B and B ⊆ A ∪ B; also A ∪ B = B ∪ A.
Writing common elements twice.
UNION = bring everybody together (U for United).
Practice questions
- 1Find {1, 3, 5} ∪ {2, 3}.
- 2Find {a, b} ∪ ∅.
- 3If A ⊆ B, what is A ∪ B?
- 4A = {2, 4, 6}, B = {3, 6, 9}. Find A ∪ B.
- 5A = {x : x ∈ N, x < 4}, B = {x : x ∈ N, 2 < x < 6}. Find A ∪ B.
- 6Is A ∪ B = B ∪ A always?
- 7Find P ∪ Q where P = multiples of 5 up to 30 and Q = multiples of 10 up to 30.
- 8If A ∪ B = A, what do you know?
Show answers (try them yourself first)
- 1{1, 2, 3, 5}
- 2{a, b}
- 3B
- 4{2, 3, 4, 6, 9}
- 5{1, 2, 3, 4, 5}
- 6Yes.
- 7{5, 10, 15, 20, 25, 30} (so P ∪ Q = P)
- 8B ⊆ A
Intersection of sets
The students who play both cricket and chess are the ones counted in both lists.
The intersection A ∩ B is the set of elements that are in both A and B. If A ∩ B = ∅, the sets are disjoint.
Formula: A ∩ B = {x : x ∈ A and x ∈ B}
In the figure: Only the overlap is shaded: A ∩ B.
Rule 1: Find an intersection — Pick the elements that appear in both lists.
- Easy: {1, 2, 3} ∩ {3, 4} = {3}.
- Medium: {1, 2, 3, 4, 5, 6} ∩ {4, 5, 6, 7, 8} = {4, 5, 6}.
- Exam-type: {1, 3} ∩ {2, 4} = ∅, so the sets are disjoint.
A ∩ B ⊆ A and A ∩ B ⊆ B; A ∩ B = B ∩ A; A ∩ ∅ = ∅.
Confusing ∪ with ∩.
∩ looks like a cap that catches only the common part.
Spot the difference
| A ∪ B | A ∩ B |
|---|---|
| A or B | A and B |
| Bigger or equal set | Smaller or equal set |
Practice questions
- 1Find {1, 2, 3, 4} ∩ {3, 4, 5}.
- 2Find {2, 4} ∩ ∅.
- 3If A ⊆ B, what is A ∩ B?
- 4A = multiples of 2 up to 20, B = multiples of 3 up to 20. Find A ∩ B.
- 5Are {1, 3, 5} and {2, 4, 6} disjoint?
- 6Find {x : x ∈ N, x < 8} ∩ {x : x ∈ N, x even}.
- 7If A ∩ B = A, what do you know?
- 8Prime numbers up to 20 intersect odd numbers up to 20. How many elements?
Show answers (try them yourself first)
- 1{3, 4}
- 2∅
- 3A
- 4{6, 12, 18}
- 5Yes — nothing is common.
- 6{2, 4, 6}
- 7A ⊆ B
- 87 elements: {3, 5, 7, 11, 13, 17, 19}
Difference of sets
Out of all students who play cricket, remove those who also play chess — the rest play only cricket.
The difference A − B is the set of elements that are in A but not in B. Note that A − B and B − A are usually different.
Formula: A − B = {x : x ∈ A and x ∉ B}
In the figure: The shaded part of A, outside B, is A − B.
Rule 1: Find A − B — Strike off from A every element that is in B.
- Easy: {1, 2, 3} − {3} = {1, 2}.
- Medium: {1, 2, 3, 4, 5, 6} − {4, 5, 6, 7, 8} = {1, 2, 3} but {4, 5, 6, 7, 8} − {1, 2, 3, 4, 5, 6} = {7, 8}.
- Exam-type: A − A = ∅ and A − ∅ = A.
A − B, A ∩ B and B − A never overlap, and together they make A ∪ B.
Assuming A − B = B − A.
A − B: A minus what B already took.
Practice questions
- 1Find {1, 2, 3, 4} − {2, 4}.
- 2Find {5, 6} − {1, 2}.
- 3What is A − A?
- 4A = {2, 4, 6, 8}, B = {4, 8, 12}. Find A − B and B − A.
- 5A = {x : x ∈ N, x ≤ 10}, B = even numbers up to 10. Find A − B.
- 6If A ∩ B = ∅, what is A − B?
- 7Write A ∪ B using A − B, A ∩ B and B − A for A = {1, 2, 3}, B = {3, 4}.
- 8If A − B = ∅, what do you know?
Show answers (try them yourself first)
- 1{1, 3}
- 2{5, 6}
- 3∅
- 4{2, 6} and {12}
- 5{1, 3, 5, 7, 9}
- 6A
- 7{1, 2} ∪ {3} ∪ {4} = {1, 2, 3, 4}
- 8A ⊆ B
Complement of a set
If U is the whole class, the students who are not in the football team form the "other" group.
The complement of A is the set of elements of U that are not in A: A′ = U − A.
Formula: A′ = {x : x ∈ U and x ∉ A}
In the figure: The shaded region outside A (inside U) is A′.
Rule 1: Find A′ — List U, then remove the elements of A.
- Easy: U = {1, 2, 3, 4, 5, 6}, A = {1, 2}: A′ = {3, 4, 5, 6}.
- Medium: U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, A = {2, 4, 6, 8, 10}: A′ = {1, 3, 5, 7, 9}.
- Exam-type: (A′)′ = A, U′ = ∅ and ∅′ = U.
Rule 2: De Morgan laws — Complement turns ∪ into ∩ and ∩ into ∪.
- Easy: (A ∪ B)′ = A′ ∩ B′.
- Medium: (A ∩ B)′ = A′ ∪ B′.
- Exam-type: Check: U = {1, 2, 3, 4, 5, 6}, A = {1, 2, 3}, B = {3, 4}: (A ∪ B)′ = {5, 6} = A′ ∩ B′.
A ∪ A′ = U and A ∩ A′ = ∅.
Taking the complement without naming U — A′ depends on U.
Complement = the Left-outs of U.
Spot the difference
| A − B | A′ |
|---|---|
| Both sets given | Needs the universal set |
| Elements of A not in B | Elements of U not in A |
Practice questions
- 1U = {1, 2, 3, 4, 5, 6, 7, 8}, A = {1, 3, 5}. Find A′.
- 2What is A ∪ A′?
- 3What is (A′)′?
- 4U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, A = {1, 2, 3, 4}, B = {3, 4, 5, 6}. Find (A ∪ B)′.
- 5For the same sets find A′ ∩ B′.
- 6For the same sets find (A ∩ B)′.
- 7If A′ = ∅, what is A?
- 8U = {x : x ∈ N, x ≤ 15}, A = multiples of 3. Find n(A′).
Show answers (try them yourself first)
- 1{2, 4, 6, 7, 8}
- 2U
- 3A
- 4{7, 8, 9, 10}
- 5{7, 8, 9, 10} — same as (A ∪ B)′
- 6{1, 2, 5, 6, 7, 8, 9, 10}
- 7A = U
- 8n(A) = 5, so n(A′) = 15 − 5 = 10
Counting with sets
In a class of 40, some join music, some join dance, some join both. To know how many join at least one club, we must not count the "both" students twice.
For finite sets, the number of elements in the union is the sum of the two counts minus the common part.
Formula: n(A ∪ B) = n(A) + n(B) − n(A ∩ B)
In the figure: The overlap is inside both circles, so it is counted twice in n(A) + n(B); subtract it once.
Rule 1: Find the union — Plug the three known numbers in.
- Easy: n(A) = 20, n(B) = 15, n(A ∩ B) = 5: n(A ∪ B) = 30.
- Medium: In a class of 50, 28 take Hindi, 30 take English, 10 take both: n(Hindi or English) = 48, so 2 take neither.
- Exam-type: If A and B are disjoint, n(A ∪ B) = n(A) + n(B).
Rule 2: Find the common part — Rearrange: n(A ∩ B) = n(A) + n(B) − n(A ∪ B).
- Easy: n(A) = 25, n(B) = 18, n(A ∪ B) = 35: n(A ∩ B) = 8.
- Medium: Only A = n(A) − n(A ∩ B) = 25 − 8 = 17.
- Exam-type: Only A (17) + only B (10) + both (8) = 35 = n(A ∪ B).
Always check "neither" using n(U) − n(A ∪ B).
Adding n(A) + n(B) and forgetting to subtract the overlap.
Add both, subtract the double-count.
Practice questions
- 1n(A) = 12, n(B) = 9, n(A ∩ B) = 4. Find n(A ∪ B).
- 2n(A) = 14, n(B) = 10 and A, B are disjoint. Find n(A ∪ B).
- 3n(A ∪ B) = 30, n(A) = 20, n(B) = 18. Find n(A ∩ B).
- 4In a group of 60, 35 like tea, 30 like coffee, 15 like both. How many like at least one?
- 5In the same group, how many like neither?
- 6In the same group, how many like only tea?
- 7In a class of 45, 25 play cricket, 20 play kho-kho and 8 play neither. How many play both?
- 8If n(A) = 18, n(A ∩ B) = 7 and n(A ∪ B) = 31, find n(B).
Show answers (try them yourself first)
- 112 + 9 − 4 = 17
- 224
- 320 + 18 − 30 = 8
- 435 + 30 − 15 = 50
- 560 − 50 = 10
- 635 − 15 = 20
- 7Play at least one = 37; both = 25 + 20 − 37 = 8
- 8n(B) = 31 − 18 + 7 = 20