IMOClass 11 › Sets

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:

$$\textbf{Roster form: } A = \{2, 3, 5, 7\} \qquad \textbf{Set-builder form: } A = \{x : x \text{ is a prime} < 10\}$$

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:

SymbolSetExamples
$\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 numbersall 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.

Same set written in roster and set-builder form One Set, Two Representations ROSTER FORM{ 2, 3, 5, 7 }list every element SET-BUILDER FORM{ x : x is a prime < 10 }state the shared property Nested number systems N ⊆ W ⊆ Z ⊆ Q ⊆ R RQZWN
Example 1: Write the set $A = \{x : x \in \mathbb{Z},\ -3 < x \le 2\}$ in roster form.
  1. We need integers strictly greater than $-3$ and at most $2$.
  2. List them in order: $-2, -1, 0, 1, 2$.

Answer: $A = \{-2, -1, 0, 1, 2\}$, and $n(A) = 5$.

Example 2: Write $B = \{1, 4, 9, 16, 25\}$ in set-builder form.
  1. Spot the pattern: each element is a perfect square — $1^2, 2^2, 3^2, 4^2, 5^2$.
  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\}$.

Example 3: Classify as finite or infinite: (a) the set of all even integers, (b) $\{x : x \in \mathbb{N},\ x < 10^6\}$.
  1. (a) Even integers $\dots,-4,-2,0,2,4,\dots$ never end in either direction.
  2. (b) Natural numbers below a million can be counted and the count stops at $999999$.

Answer: (a) infinite; (b) finite ($n = 999999$).

Example 4: Are the sets $P = \{x : x \text{ is a letter in the word "FOLLOW"}\}$ and $Q = \{x : x \text{ is a letter in "WOLF"}\}$ equal?
  1. Letters of FOLLOW, taken as distinct: $\{F, O, L, W\}$ (repeats dropped).
  2. Letters of WOLF: $\{W, O, L, F\}$.
  3. Both contain exactly the same four letters.

Answer: Yes, $P = Q$ — order and repetition do not matter in a set.

Example 5: Which of these are empty sets? (a) $\{x : x \in \mathbb{N},\ 1 < x < 2\}$, (b) $\{x : x^2 = 4,\ x \text{ is odd}\}$, (c) $\{0\}$.
  1. (a) No natural number lies strictly between $1$ and $2$ — empty.
  2. (b) $x^2 = 4$ gives $x = \pm 2$, neither of which is odd — empty.
  3. (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.

Example 6: If $A = \{x : x \text{ is a solution of } x^2 - 5x + 6 = 0\}$, write $A$ in roster form.
  1. Factorise: $x^2 - 5x + 6 = (x-2)(x-3) = 0$.
  2. Roots: $x = 2$ and $x = 3$.

Answer: $A = \{2, 3\}$.

Quick recap
  • 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)$.
✓ Quick check
Which of the following pairs of sets are equal?
In set B = {c, b, a, a}, repeating elements does not change the set. It reduces to {a, b, c}, which is exactly set A.
If A = [−2, 5] and B = (2, 7], then A ∩ B is the interval:
The intersection looks for overlapping real numbers. The overlap between −2 ≤ x ≤ 5 and 2 < x ≤ 7 is 2 < x ≤ 5, which is written as (2, 5].

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:

$$A \subseteq B \iff (x \in A \Rightarrow x \in B)$$

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:

IntervalSet-builderEndpoints
$[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$:

$$\text{If } n(A) = m, \text{ then } n\big(P(A)\big) = 2^{m}$$

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.

A as a subset of B inside the universal set Subset: A ⊆ B ⊆ U U B A Closed and open intervals on the number line Closed [a, b] vs Open (a, b) ab[a, b] includedab(a, b) excluded
Example 1: List all subsets of $A = \{a, b, c\}$ and verify the count.
  1. Size $0$: $\varnothing$.
  2. Size $1$: $\{a\}, \{b\}, \{c\}$.
  3. Size $2$: $\{a,b\}, \{a,c\}, \{b,c\}$.
  4. Size $3$: $\{a,b,c\}$.
  5. Total $= 1+3+3+1 = 8 = 2^3$. ✓

Answer: $P(A)$ has $8$ elements; $7$ of them are proper subsets.

Example 2: If $n(A) = 5$, how many subsets and how many proper subsets does $A$ have?
  1. Subsets: $2^5 = 32$.
  2. Proper subsets exclude $A$ itself: $32 - 1 = 31$.

Answer: $32$ subsets, $31$ proper subsets.

Example 3: Write $\{x : x \in \mathbb{R},\ -2 \le x < 5\}$ as an interval, and state whether $-2$ and $5$ belong to it.
  1. Left endpoint $-2$ uses $\le$ → included → square bracket.
  2. Right endpoint $5$ uses $<$ → excluded → round bracket.

Answer: $[-2, 5)$. Here $-2 \in$ the set but $5 \notin$ the set.

Example 4: A set has $63$ proper subsets. How many elements does it have?
  1. Proper subsets $= 2^m - 1$.
  2. $2^m - 1 = 63 \Rightarrow 2^m = 64 = 2^6$.
  3. So $m = 6$.

Answer: $6$ elements.

Example 5: Insert $\subset$, $\subseteq$ or $\in$ between: (a) $\{1\}\ \_\ \{1,2,3\}$, (b) $1\ \_\ \{1,2,3\}$, (c) $\varnothing\ \_\ \{1,2\}$.
  1. (a) $\{1\}$ is a set contained in the bigger set, and it is not equal to it → $\{1\} \subset \{1,2,3\}$.
  2. (b) $1$ is an element, not a set → $1 \in \{1,2,3\}$.
  3. (c) $\varnothing$ is a subset of every set → $\varnothing \subset \{1,2\}$.

Answer: (a) $\subset$, (b) $\in$, (c) $\subset$.

Example 6: Write the power set of $A = \{1, \{2\}\}$.
  1. $A$ has two elements: the number $1$ and the set $\{2\}$, so $n(A) = 2$ and $P(A)$ has $2^2 = 4$ members.
  2. List them: $\varnothing$, $\{1\}$, $\{\{2\}\}$, $\{1, \{2\}\}$.

Answer: $P(A) = \big\{\varnothing,\ \{1\},\ \{\{2\}\},\ \{1, \{2\}\}\big\}$.

Quick recap
  • $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.
✓ Quick check
If A = {1,2}, then P(A) contains:
Power set has 2² = 4 subsets.
Let A = {1, 2, 3, 4, 5, 6} and B = {2, 4, 6, 8}. Find A − B.
The difference A − B is the set of elements which belong to A but not to B. Removing {2, 4, 6} from A leaves {1, 3, 5}.

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).

$$A \cup B = \{x : x \in A \text{ or } x \in B\} \qquad A \cap B = \{x : x \in A \text{ and } x \in B\}$$

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.

$$A - B = \{x : x \in A \text{ and } x \notin B\} \qquad A' = U - A = \{x : x \in U \text{ and } x \notin A\}$$

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:

LawStatement
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:

$$n(A \cup B) = n(A) + n(B) - n(A \cap B)$$

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.

Union and intersection shaded A ∪ B (union)AB A ∩ B (intersection)AB Difference and complement shaded A − B (difference)AB A' (complement)AU
Example 1: Let $A = \{1,2,3,4,5\}$ and $B = \{2,4,6,8\}$. Find $A \cup B$, $A \cap B$ and $A - B$.
  1. $A \cup B$: everything in either $= \{1,2,3,4,5,6,8\}$.
  2. $A \cap B$: common elements $= \{2,4\}$.
  3. $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\}$.

Example 2: In a class of $40$, $24$ play cricket, $18$ play football and $10$ play both. How many play at least one game?
  1. Use inclusion–exclusion: $n(C \cup F) = n(C) + n(F) - n(C \cap F)$.
  2. $= 24 + 18 - 10 = 32$.

Answer: $32$ students play at least one game (so $8$ play neither).

Example 3: With $U = \{1,2,\dots,10\}$ and $A = \{2,4,6,8,10\}$, find $A'$.
  1. $A'$ is everything in $U$ but not in $A$.
  2. Remove the evens, leaving the odds.

Answer: $A' = \{1,3,5,7,9\}$.

Example 4: Verify De Morgan's law $(A \cup B)' = A' \cap B'$ for $U=\{1,2,3,4,5\}$, $A=\{1,2\}$, $B=\{2,3\}$.
  1. $A \cup B = \{1,2,3\}$, so $(A \cup B)' = \{4,5\}$.
  2. $A' = \{3,4,5\}$, $B' = \{1,4,5\}$.
  3. $A' \cap B' = \{4,5\}$.
  4. Both sides equal $\{4,5\}$. ✓

Answer: Verified: $(A \cup B)' = A' \cap B' = \{4,5\}$.

Example 5: In a survey of $60$ people, $25$ read newspaper $H$, $26$ read $T$, $26$ read $I$, $9$ read both $H$ and $I$, $11$ read $H$ and $T$, $8$ read $T$ and $I$, and $3$ read all three. How many read at least one paper?
  1. 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)$.
  2. $= 25 + 26 + 26 - 11 - 8 - 9 + 3$.
  3. $= 77 - 28 + 3 = 52$.

Answer: $52$ people read at least one newspaper.

Example 6: If $n(A) = 20$, $n(B) = 28$ and $n(A \cup B) = 36$, find $n(A \cap B)$.
  1. Rearrange inclusion–exclusion: $n(A \cap B) = n(A) + n(B) - n(A \cup B)$.
  2. $= 20 + 28 - 36 = 12$.

Answer: $n(A \cap B) = 12$.

Quick recap
  • 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.
✓ Quick check
A survey of 100 people found 60 use UPI, 45 use cards and 20 use both. How many use at least one payment method?
60+45−20=85.
In a class, 25 students like Maths, 18 like Physics and 10 like both. How many like at least one subject?
25 + 18 − 10 = 33.
Ready to test this chapter?
Take the Chapter Test →