A set is a well-defined collection of objects, such as the vowels of the English alphabet or the even numbers below 10. Sets give mathematics a clear language for grouping things, and Venn diagrams let you see how groups overlap. They are also the quickest way to solve survey problems like “how many students play neither game?”
In this lesson you will learn
- Writing sets in roster form and set-builder form
- Subsets, power sets and the universal set
- Union, intersection, complement and difference
- De Morgan’s laws
- Solving survey problems with n(A ∪ B) = n(A) + n(B) − n(A ∩ B)
You should know the number families from Real Numbers.
Writing a Set
Sets are named with capital letters and their members, called elements, go inside curly brackets. “3 is an element of A” is written 3 ∈ A, and “7 is not an element of A” is written 7 ∉ A.
| Form | How it works | Example |
|---|---|---|
| Roster (tabular) form | List every element once | A = {2, 4, 6, 8} |
| Set-builder form | Describe the rule the elements follow | A = {x : x is an even natural number, x < 10} |
Order and repetition do not matter: {1, 2, 3}, {3, 1, 2} and {1, 1, 2, 3} are all the same set. The number of elements in A is written n(A). Here n(A) = 4.
- The empty set ∅ or { } has no elements. For example, {x : x is a natural number and x < 1} = ∅.
- The universal set U contains everything being discussed in a problem.
Subsets and Power Sets
A is a subset of B, written A ⊆ B, when every element of A is also in B. If A ⊆ B and B has at least one extra element, A is a proper subset, written A ⊂ B. The empty set is a subset of every set, and every set is a subset of itself.
The power set P(A) is the set of all subsets of A. For A = {a, b, c}:
P(A) = { ∅, {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {a, b, c} }
That is 8 subsets. In general, a set with n elements has 2n subsets, because each element is either in a subset or not: 2 × 2 × 2 = 8 choices for three elements.
Set Operations
Take U = {1, 2, 3, …, 10}, A = the even numbers in U, and B = the multiples of 3 in U. So A = {2, 4, 6, 8, 10} and B = {3, 6, 9}.
| Operation | Symbol | Meaning | Result |
|---|---|---|---|
| Union | A ∪ B | In A or B or both | {2, 3, 4, 6, 8, 9, 10} |
| Intersection | A ∩ B | In both A and B | {6} |
| Complement | A′ (or Ac) | In U but not in A | {1, 3, 5, 7, 9} |
| Difference | A − B (or A \ B) | In A but not in B | {2, 4, 8, 10} |
If A ∩ B = ∅, the sets are disjoint: they share no elements, like the odd and even numbers.
In a Venn diagram, U is drawn as a rectangle and each set as a circle inside it. Overlapping circles show the intersection. For the example above, 6 sits in the overlap; 2, 4, 8 and 10 sit in A only; 3 and 9 in B only; and 1, 5 and 7 sit outside both circles.
De Morgan’s Laws
De Morgan’s laws
(A ∪ B)′ = A′ ∩ B′ and (A ∩ B)′ = A′ ∪ B′
In words: “not in A or B” means “not in A and not in B”. Check the first law with our example:
(A ∪ B)′ = U − {2, 3, 4, 6, 8, 9, 10} = {1, 5, 7}
A′ = {1, 3, 5, 7, 9}, B′ = {1, 2, 4, 5, 7, 8, 10}
A′ ∩ B′ = {1, 5, 7} ✓ both sides match
Solving Survey Problems
Counting formula
n(A ∪ B) = n(A) + n(B) − n(A ∩ B)
Adding n(A) and n(B) counts the overlap twice, so you subtract it once.
Example: Cricket and football
In a class of 50 students, 30 like cricket, 25 like football and 10 like both. How many like at least one game, and how many like neither?
n(C ∪ F) = n(C) + n(F) − n(C ∩ F)
= 30 + 25 − 10
= 45 students like at least one game
Neither = 50 − 45 = 5 students
Cricket only = 30 − 10 = 20
Football only = 25 − 10 = 15
A quick check: 20 + 10 + 15 + 5 = 50, the whole class.
Cartesian Product
The Cartesian product A × B is the set of all ordered pairs (a, b) with a from A and b from B. If A = {1, 2} and B = {x, y}, then A × B = {(1, x), (1, y), (2, x), (2, y)}. In general n(A × B) = n(A) × n(B). Order matters: (1, x) is not the same as (x, 1), so A × B ≠ B × A unless the sets are equal or one of them is empty.
Common Mistakes
- Listing an element twice in roster form. Each element appears once.
- Confusing ∈ and ⊆. 2 ∈ {1, 2, 3}, but {2} ⊆ {1, 2, 3}. An element is not the same as a set containing it.
- Forgetting ∅ and the set itself when listing a power set.
- Adding without subtracting the overlap in survey problems, which counts “both” twice.
Practice Exercises
Exercise 1. Of 100 students, 60 read a Bangla newspaper, 45 read an English newspaper and 20 read both. How many read neither?
Show answer
n(B ∪ E) = 60 + 45 − 20 = 85, so 100 − 85 = 15 students read neither.
Exercise 2. How many subsets does {p, q, r, s} have? How many of them are proper subsets?
Show answer
24 = 16 subsets. All except the set itself are proper, so 15 proper subsets.
Exercise 3. Write {x : x ∈ ℕ, x² < 20} in roster form.
Show answer
{1, 2, 3, 4}, because 4² = 16 < 20 but 5² = 25 is too big.
Frequently Asked Questions
Is {0} the same as the empty set?
No. {0} has one element, the number 0, so n({0}) = 1. The empty set has no elements at all.
What is the formula for three sets?
n(A ∪ B ∪ C) = n(A) + n(B) + n(C) − n(A ∩ B) − n(B ∩ C) − n(A ∩ C) + n(A ∩ B ∩ C). The last term is added back because subtracting the three pairwise overlaps removes the centre region too many times.
What is the difference between a finite and an infinite set?
A finite set has a countable end, such as the days of the week. An infinite set goes on for ever, such as ℕ or the points on a line.
Summary
- Write sets in roster form or set-builder form; order and repeats do not matter.
- A set with n elements has 2n subsets.
- Union means “or”, intersection means “and”, complement means “not”.
- De Morgan: (A ∪ B)′ = A′ ∩ B′ and (A ∩ B)′ = A′ ∪ B′.
- For surveys use n(A ∪ B) = n(A) + n(B) − n(A ∩ B).
