Sets
Sets and Their Representation
A set is a well-defined collection of distinct objects. "Well-defined" means that, given any object, you can decide without ambiguity whether or not it belongs to the collection. The objects in a set are its elements (or members). We write $a \in A$ for "$a$ is an element of $A$" and $a \notin A$ for "$a$ is not an element of $A$".
"The collection of tall students" is not a set — "tall" is subjective. "The collection of students above 170 cm" is a set. Sets are named with capital letters; elements are usually written in lower case.
Two ways to represent a set:
In roster (tabular) form you list every element inside braces, separated by commas. Order does not matter and elements are never repeated — $\{1,2,2,3\}$ is just $\{1,2,3\}$. In set-builder form you state the property all elements share, read as "the set of all $x$ such that …".
Standard number sets have reserved symbols you will use throughout the syllabus:
| Symbol | Set | Examples |
|---|---|---|
| $\mathbb{N}$ | Natural numbers | $1, 2, 3, \dots$ |
| $\mathbb{W}$ | Whole numbers | $0, 1, 2, 3, \dots$ |
| $\mathbb{Z}$ | Integers | $\dots, -2, -1, 0, 1, 2, \dots$ |
| $\mathbb{Q}$ | Rational numbers | $\tfrac{p}{q},\ q \ne 0$ |
| $\mathbb{R}$ | Real numbers | all points on the number line |
Types of sets by size: The empty set $\varnothing$ (or $\{\,\}$) has no elements. A singleton has exactly one. A set is finite if its elements can be counted and the counting ends, and infinite otherwise. The number of elements in a finite set $A$ is its cardinal number, written $n(A)$.
Equal sets: $A = B$ exactly when they have precisely the same elements — every element of $A$ is in $B$ and vice versa. Equivalent sets only need the same cardinal number: $\{a,b,c\}$ and $\{1,2,3\}$ are equivalent but not equal.
Deeper Insight — why "well-defined" and "distinct" carry the whole subject: Every idea in this chapter rests on the two words in the definition. Well-defined guarantees that membership is a yes/no question with no grey area, which is exactly what lets us reason about sets with certainty — and it is why a vague collection like "good books" can never be a set. Distinct is the reason $\{1,1,2\}=\{1,2\}$: a set records only which objects are present, never how many times or in what order. Confusing a set with a list (where order and repetition matter) is the single most common beginner error, and it quietly breaks later work — for instance, counting in Permutations and Combinations depends on knowing exactly when arrangement matters and when only membership does. Treat a set as a pure "yes/no membership table" and the operations that follow become almost obvious.
- We need integers strictly greater than $-3$ and at most $2$.
- List them in order: $-2, -1, 0, 1, 2$.
Answer: $A = \{-2, -1, 0, 1, 2\}$, and $n(A) = 5$.
- Spot the pattern: each element is a perfect square — $1^2, 2^2, 3^2, 4^2, 5^2$.
- State the property: $x = n^2$ for natural numbers $n$ from $1$ to $5$.
Answer: $B = \{x : x = n^2,\ n \in \mathbb{N},\ 1 \le n \le 5\}$.
- (a) Even integers $\dots,-4,-2,0,2,4,\dots$ never end in either direction.
- (b) Natural numbers below a million can be counted and the count stops at $999999$.
Answer: (a) infinite; (b) finite ($n = 999999$).
- Letters of FOLLOW, taken as distinct: $\{F, O, L, W\}$ (repeats dropped).
- Letters of WOLF: $\{W, O, L, F\}$.
- Both contain exactly the same four letters.
Answer: Yes, $P = Q$ — order and repetition do not matter in a set.
- (a) No natural number lies strictly between $1$ and $2$ — empty.
- (b) $x^2 = 4$ gives $x = \pm 2$, neither of which is odd — empty.
- (c) $\{0\}$ contains the element $0$, so it has one member — not empty.
Answer: (a) and (b) are empty sets; (c) is a singleton, not empty.
- Factorise: $x^2 - 5x + 6 = (x-2)(x-3) = 0$.
- Roots: $x = 2$ and $x = 3$.
Answer: $A = \{2, 3\}$.
- A set is a well-defined collection of distinct objects; order and repetition are irrelevant.
- Roster form lists elements; set-builder form states the common property.
- Know the symbols $\mathbb{N} \subset \mathbb{W} \subset \mathbb{Z} \subset \mathbb{Q} \subset \mathbb{R}$.
- Empty set $\varnothing$ has no elements; $n(A)$ is the cardinal number of a finite set $A$.
- Equal sets have identical elements; equivalent sets only share the same $n(A)$.
Subsets, Power Set and Intervals
$A$ is a subset of $B$, written $A \subseteq B$, if every element of $A$ is also an element of $B$. Formally:
If $A \subseteq B$ but $A \ne B$ (so $B$ has at least one element not in $A$), then $A$ is a proper subset, written $A \subset B$. Two facts hold for every set $A$: the empty set is a subset of it ($\varnothing \subseteq A$), and every set is a subset of itself ($A \subseteq A$).
Universal set $U$ is the fixed "background" set containing all objects under discussion for a particular problem. Every other set in that problem is a subset of $U$.
Intervals are subsets of $\mathbb{R}$ describing continuous stretches of the number line. A square bracket includes the endpoint; a round bracket excludes it:
| Interval | Set-builder | Endpoints |
|---|---|---|
| $[a, b]$ | $\{x : a \le x \le b\}$ | both included (closed) |
| $(a, b)$ | $\{x : a < x < b\}$ | both excluded (open) |
| $[a, b)$ | $\{x : a \le x < b\}$ | left included only |
| $(a, b]$ | $\{x : a < x \le b\}$ | right included only |
| $(a, \infty)$ | $\{x : x > a\}$ | $\infty$ is never included |
Power set: the set of all subsets of $A$, written $P(A)$. Its elements are themselves sets. The count of subsets is fixed by the size of $A$:
The reason is a counting argument: to build a subset you make one independent yes/no choice per element — "include it or not" — giving $2 \times 2 \times \dots \times 2 = 2^m$ possibilities. Of these, $2^m - 1$ are proper subsets (all except $A$ itself).
Deeper Insight — subset is the backbone, $2^m$ is its first dividend: The subset relation $\subseteq$ is the most important relation in set theory because nearly every later definition is phrased through it — equality ($A=B$ means $A\subseteq B$ and $B\subseteq A$), the complement, even the way a universal set frames a problem. Keep two edge cases permanently in mind: $\varnothing$ is a subset of everything (vacuously — there is no element of $\varnothing$ that could fail the test), and every set is a subset of itself. The power-set formula $2^m$ is your first real glimpse of why these ideas matter beyond bookkeeping: it is the same "independent binary choice" logic that powers the Binomial Theorem ($\sum \binom{m}{k} = 2^m$, the total number of subsets counted by size) and probability over finite outcomes. Once you see a subset as a string of yes/no decisions, $2^m$ stops being a formula to memorise and becomes something you can re-derive on the spot.
- Size $0$: $\varnothing$.
- Size $1$: $\{a\}, \{b\}, \{c\}$.
- Size $2$: $\{a,b\}, \{a,c\}, \{b,c\}$.
- Size $3$: $\{a,b,c\}$.
- Total $= 1+3+3+1 = 8 = 2^3$. ✓
Answer: $P(A)$ has $8$ elements; $7$ of them are proper subsets.
- Subsets: $2^5 = 32$.
- Proper subsets exclude $A$ itself: $32 - 1 = 31$.
Answer: $32$ subsets, $31$ proper subsets.
- Left endpoint $-2$ uses $\le$ → included → square bracket.
- Right endpoint $5$ uses $<$ → excluded → round bracket.
Answer: $[-2, 5)$. Here $-2 \in$ the set but $5 \notin$ the set.
- Proper subsets $= 2^m - 1$.
- $2^m - 1 = 63 \Rightarrow 2^m = 64 = 2^6$.
- So $m = 6$.
Answer: $6$ elements.
- (a) $\{1\}$ is a set contained in the bigger set, and it is not equal to it → $\{1\} \subset \{1,2,3\}$.
- (b) $1$ is an element, not a set → $1 \in \{1,2,3\}$.
- (c) $\varnothing$ is a subset of every set → $\varnothing \subset \{1,2\}$.
Answer: (a) $\subset$, (b) $\in$, (c) $\subset$.
- $A$ has two elements: the number $1$ and the set $\{2\}$, so $n(A) = 2$ and $P(A)$ has $2^2 = 4$ members.
- List them: $\varnothing$, $\{1\}$, $\{\{2\}\}$, $\{1, \{2\}\}$.
Answer: $P(A) = \big\{\varnothing,\ \{1\},\ \{\{2\}\},\ \{1, \{2\}\}\big\}$.
- $A \subseteq B$ means every element of $A$ lies in $B$; a proper subset $A \subset B$ also has $A \ne B$.
- $\varnothing \subseteq A$ and $A \subseteq A$ for every set $A$.
- Square bracket $=$ endpoint included; round bracket $=$ endpoint excluded; $\infty$ is always open.
- Power set $P(A)$ collects all subsets; if $n(A) = m$ then $n(P(A)) = 2^m$ and there are $2^m - 1$ proper subsets.
Operations and Venn Diagrams
Four operations combine sets, all visualised cleanly with Venn diagrams (a rectangle for the universal set $U$, overlapping circles for the sets).
Union $A \cup B$ collects everything in either set (the inclusive "or"). Intersection $A \cap B$ keeps only what is common to both. When $A \cap B = \varnothing$ the sets share nothing and are called disjoint.
Difference $A - B$ keeps the part of $A$ outside $B$ (note $A - B \ne B - A$ in general). Complement $A'$ is everything in the universal set that is not in $A$.
These operations obey algebraic laws that mirror ordinary arithmetic:
| Law | Statement |
|---|---|
| Commutative | $A \cup B = B \cup A$, $A \cap B = B \cap A$ |
| Associative | $(A \cup B) \cup C = A \cup (B \cup C)$ |
| Distributive | $A \cap (B \cup C) = (A \cap B) \cup (A \cap C)$ |
| De Morgan | $(A \cup B)' = A' \cap B'$, $(A \cap B)' = A' \cup B'$ |
Counting with the inclusion–exclusion formula: the size of a union is not simply $n(A) + n(B)$, because elements in both are counted twice. Subtract the overlap once:
For three sets the same logic gives $n(A \cup B \cup C) = n(A)+n(B)+n(C) - n(A\cap B) - n(B\cap C) - n(A\cap C) + n(A\cap B\cap C)$.
Deeper Insight — De Morgan and inclusion–exclusion are the two ideas worth real understanding: Most set-operation questions reduce to one of two things. First, De Morgan's laws capture how "not" interacts with "and"/"or": the complement of a union is the intersection of complements, and vice versa — the operation flips when negation passes through. This is not a quirk of sets; it is the same logic that governs negating compound statements ("not (rich and famous)" $=$ "not rich or not famous") and is reused directly in Probability and in digital logic. Second, the inclusion–exclusion formula exists for one reason: naive addition double-counts the overlap. Picture the Venn diagram and the correction term $-\,n(A\cap B)$ becomes self-evident — you are simply refusing to pay for the shared region twice. Almost every "how many students study at least one of …" word problem is this single formula in disguise, so understanding why the overlap is subtracted, rather than memorising the symbols, is what lets you extend it confidently to three sets and beyond.
- $A \cup B$: everything in either $= \{1,2,3,4,5,6,8\}$.
- $A \cap B$: common elements $= \{2,4\}$.
- $A - B$: in $A$ but not $B = \{1,3,5\}$.
Answer: $A \cup B = \{1,2,3,4,5,6,8\}$, $A \cap B = \{2,4\}$, $A - B = \{1,3,5\}$.
- Use inclusion–exclusion: $n(C \cup F) = n(C) + n(F) - n(C \cap F)$.
- $= 24 + 18 - 10 = 32$.
Answer: $32$ students play at least one game (so $8$ play neither).
- $A'$ is everything in $U$ but not in $A$.
- Remove the evens, leaving the odds.
Answer: $A' = \{1,3,5,7,9\}$.
- $A \cup B = \{1,2,3\}$, so $(A \cup B)' = \{4,5\}$.
- $A' = \{3,4,5\}$, $B' = \{1,4,5\}$.
- $A' \cap B' = \{4,5\}$.
- Both sides equal $\{4,5\}$. ✓
Answer: Verified: $(A \cup B)' = A' \cap B' = \{4,5\}$.
- Three-set inclusion–exclusion: $n(H\cup T\cup I) = n(H)+n(T)+n(I) - n(H\cap T) - n(T\cap I) - n(H\cap I) + n(H\cap T\cap I)$.
- $= 25 + 26 + 26 - 11 - 8 - 9 + 3$.
- $= 77 - 28 + 3 = 52$.
Answer: $52$ people read at least one newspaper.
- Rearrange inclusion–exclusion: $n(A \cap B) = n(A) + n(B) - n(A \cup B)$.
- $= 20 + 28 - 36 = 12$.
Answer: $n(A \cap B) = 12$.
- Union $\cup$ = "or" (everything in either); intersection $\cap$ = "and" (only common). Disjoint sets have $A \cap B = \varnothing$.
- Difference $A - B$ keeps $A$ outside $B$; complement $A' = U - A$. Generally $A - B \ne B - A$.
- De Morgan: $(A \cup B)' = A' \cap B'$ and $(A \cap B)' = A' \cup B'$ — negation flips the operation.
- Inclusion–exclusion: $n(A \cup B) = n(A) + n(B) - n(A \cap B)$; subtract the overlap so it is not double-counted.