Quick answer: The main set operations are union A∪B (elements in A or B), intersection A∩B (in both), difference A−B (in A but not B), complement A′ (in U but not A) and symmetric difference AΔB=(A−B)∪(B−A). The most tested laws are De Morgan's laws: (A∪B)′=A′∩B′ and (A∩B)′=A′∪B′.
This article builds on sets, subsets and power sets.
The operations
| Operation | Notation | Definition |
|---|
| Union | A∪B | {x:x∈A or x∈B} |
| Intersection | A∩B | {x:x∈A and x∈B} |
| Difference | A−B | {x:x∈A,x∈/B} |
| Complement | A′ | {x∈U:x∈/A} |
| Symmetric difference | AΔB | (A−B)∪(B−A) |
Two sets are disjoint if A∩B=ϕ.
A quick example
Let U={1,2,…,8}, A={1,2,3,4} and B={3,4,5,6}.
| Expression | Result |
|---|
| A∪B | {1,2,3,4,5,6} |
| A∩B | {3,4} |
| A−B | {1,2} |
| B−A | {5,6} |
| AΔB | {1,2,5,6} |
| A′ | {5,6,7,8} |
Laws of the algebra of sets
| Law | Union form | Intersection form |
|---|
| Idempotent | A∪A=A | A∩A=A |
| Identity | A∪ϕ=A | A∩U=A |
| Domination | A∪U=U | A∩ϕ=ϕ |
| Commutative | A∪B=B∪A | A∩B=B∩A |
| Associative | (A∪B)∪C=A∪(B∪C) | (A∩B)∩C=A∩(B∩C) |
| Distributive | A∪(B∩C)=(A∪B)∩(A∪C) | A∩(B∪C)=(A∩B)∪(A∩C) |
| Complement | A∪A′=U | A∩A′=ϕ |
| De Morgan | (A∪B)′=A′∩B′ | (A∩B)′=A′∪B′ |
| Absorption | A∪(A∩B)=A | A∩(A∪B)=A |
Also: (A′)′=A, U′=ϕ and ϕ′=U.
Useful identities for difference
| Identity |
|---|
| A−B=A∩B′ |
| A−(B∪C)=(A−B)∩(A−C) |
| A−(B∩C)=(A−B)∪(A−C) |
| AΔB=(A∪B)−(A∩B) |
The first identity is the most useful: it turns every difference into an intersection, so the other laws apply directly.
Properties of symmetric difference
- Commutative: AΔB=BΔA.
- Associative: (AΔB)ΔC=AΔ(BΔC).
- AΔϕ=A and AΔA=ϕ.
- n(AΔB)=n(A)+n(B)−2n(A∩B).
Worked examples
Example 1: simplify using laws
Simplify (A∪B)∩(A∪B′).
By the distributive law, this is A∪(B∩B′)=A∪ϕ=A.
Example 2: prove a difference identity
Show that A−(A−B)=A∩B.
Step 1: A−(A−B)=A∩(A∩B′)′.
Step 2: By De Morgan, (A∩B′)′=A′∪B.
Step 3: A∩(A′∪B)=(A∩A′)∪(A∩B)=ϕ∪(A∩B)=A∩B.
Example 3: symmetric difference count
If n(A)=12, n(B)=9 and n(A∩B)=4, find n(AΔB).
12+9−2⋅4=13.
Example 4: when is A ∪ B = A ∩ B?
This happens only when A=B. If some element were in A but not B, it would be in the union but not the intersection.
Summary table
| Idea | Key result |
|---|
| Difference | A−B=A∩B′ |
| De Morgan | Complement swaps ∪ and ∩ |
| Symmetric difference | (A∪B)−(A∩B) |
| Count of AΔB | n(A)+n(B)−2n(A∩B) |
| A∪B=A∩B | Only if A=B |
Exam tips
- Replace A−B by A∩B′ before simplifying.
- For identity questions, test with small sets or a Venn diagram to rule out wrong options quickly.
- Learn De Morgan's laws in words: "the complement of a union is the intersection of complements".
Next, see Venn diagrams and the inclusion-exclusion principle or the NIMCET Set Theory chapter.
Common mistakes
- Treating A−B and B−A as the same set.
- Writing (A∪B)′=A′∪B′; the operation must switch.
- Forgetting that the complement depends on the universal set.
- Confusing disjoint sets with equal-size sets.
Frequently Asked Questions
What is De Morgan's law in sets?
(A ∪ B)′ = A′ ∩ B′ and (A ∩ B)′ = A′ ∪ B′. Taking a complement switches union and intersection.
What is the symmetric difference of two sets?
A Δ B is the set of elements in exactly one of A and B. It equals (A − B) ∪ (B − A).
How is A − B written using intersection?
A − B = A ∩ B′.
What does it mean for two sets to be disjoint?
Two sets are disjoint if they have no common element, that is, A ∩ B = φ.
What is the distributive law for sets?
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C), and A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C).