Skip to content
Skip to page content
soylai.com

Sets — chapter notes

7 sections 5 min readBeta

1. Sets and their representations

A set is a well-defined collection of objects; the objects are its elements. a∈Aa \in A means aa belongs to AA.

  • Roster form: list the elements once each, e.g. {7,14,21,28,35}\{7, 14, 21, 28, 35\}.
  • Set-builder form: give a rule, e.g. {x∈N:x is a multiple of 7, x<40}\{x \in \mathbb{N} : x \text{ is a multiple of } 7,\ x < 40\}.

Standard sets: N\mathbb{N}, W\mathbb{W}, Z\mathbb{Z}, Q\mathbb{Q}, R\mathbb{R}, each inside the next. For a set-builder rule, solve the condition inside the stated universe (negative integers count in Z\mathbb{Z}).

Same set, two ways of writing it.
Set-builder formRoster formElements
{x∈N:x is a multiple of 7, x<40}\{x \in \mathbb{N} : x \text{ is a multiple of } 7,\ x < 40\}{7,14,21,28,35}\{7, 14, 21, 28, 35\}55
{x∈Z:x2≤10}\{x \in \mathbb{Z} : x^2 \le 10\}{−3,−2,−1,0,1,2,3}\{-3, -2, -1, 0, 1, 2, 3\}77
{x∈N:x divides 18}\{x \in \mathbb{N} : x \text{ divides } 18\}{1,2,3,6,9,18}\{1, 2, 3, 6, 9, 18\}66
{n2:n∈N, n≤4}\{n^2 : n \in \mathbb{N},\ n \le 4\}{1,4,9,16}\{1, 4, 9, 16\}44

Formulas

  • Rule to roster
    {x∈N:x<5}={1,2,3,4}\{x \in \mathbb{N} : x < 5\} = \{1, 2, 3, 4\}

Key terms

Set

A well-defined collection: a clear rule settles membership.

Element

An object in a set; a∈Aa \in A.

Roster form

The set written by listing its elements.

Set-builder form

The set written by a rule its elements satisfy.

2. Types of sets and equal sets

  • Empty set ∅\varnothing: no element. {∅}\{\varnothing\} is not empty; it has one element.
  • Singleton: exactly one element.
  • Finite: counting ends; n(A)n(A) is the number of elements.
  • Infinite: counting never ends.
  • Equal sets: exactly the same elements. Order and repeats do not matter. Equal counts do not make equal sets.

To show A=BA = B, show A⊆BA \subseteq B and B⊆AB \subseteq A.

Count the elements to decide the type.
TypeExampleNumber of elements
Empty{x∈N:x<1}\{x \in \mathbb{N} : x < 1\}00
Singleton{x∈Z:x+4=4}\{x \in \mathbb{Z} : x + 4 = 4\}11
Finite{x∈N:x is a prime below 12}\{x \in \mathbb{N} : x \text{ is a prime below } 12\}55
Infinite{x∈N:x is even}\{x \in \mathbb{N} : x \text{ is even}\}never ends
Order and repeats do not matter; the elements do.
DescriptionRoster form (each element once)Equal to {1,2,3}\{1, 2, 3\}?
{3,1,2}\{3, 1, 2\}{1,2,3}\{1, 2, 3\}✓
{1,2,2,3,3}\{1, 2, 2, 3, 3\}{1,2,3}\{1, 2, 3\}✓
{x∈N:x<4}\{x \in \mathbb{N} : x < 4\}{1,2,3}\{1, 2, 3\}✓
{x∈N:x≤4}\{x \in \mathbb{N} : x \le 4\}{1,2,3,4}\{1, 2, 3, 4\}✗

Formulas

  • Equality
    A=B  ⟺  A⊆B and B⊆AA = B \iff A \subseteq B \text{ and } B \subseteq A

Key terms

Empty set

The set with no elements, ∅\varnothing.

Finite set

A set whose elements can be counted to the end.

Equal sets

Sets with exactly the same elements.

3. Subsets, power set and universal set

B⊆AB \subseteq A if every element of BB is in AA; B⊂AB \subset A if also B≠AB \ne A (proper subset). ∅⊆A\varnothing \subseteq A and A⊆AA \subseteq A always.

The power set P(A)P(A) is the set of all subsets. If n(A)=nn(A) = n: subsets 2n2^n; proper subsets 2n−12^n - 1; non-empty proper subsets 2n−22^n - 2. Fixing kk elements inside leaves 2n−k2^{n-k} subsets.

The universal set UU contains every set of the discussion; it is the rectangle of a Venn diagram.

Total $1 + 3 + 3 + 1 = 8 = 2^3$.
SizeSubsets of {a,b,c}\{a, b, c\}Count
00∅\varnothing11
11{a}\{a\} {b}\{b\} {c}\{c\}33
22{a,b}\{a, b\} {a,c}\{a, c\} {b,c}\{b, c\}33
33{a,b,c}\{a, b, c\}11
$B = \{2, 4\}$ sits inside $A = \{1, 2, 3, 4, 5, 6\}$: $B \subset A$.
Each new element doubles the number of subsets: $2^n$.
n(A)n(A)001122334455
Subsets1122448816163232

Formulas

  • Number of subsets
    n(P(A))=2nn(P(A)) = 2^{n}

Key terms

Subset

B⊆AB \subseteq A: every element of BB is in AA.

Power set

P(A)P(A): the set of all subsets of AA.

Universal set

The set UU of which all sets under discussion are subsets.

4. Intervals

Intervals are subsets of R\mathbb{R}. (a,b)(a, b) excludes both ends; [a,b][a, b] includes both; [a,b)[a, b) and (a,b](a, b] include one. (a,∞)(a, \infty) and (−∞,b](-\infty, b] are unbounded. ∞\infty is never included.

On the number line: filled circle = included, open circle = excluded.

Integers in an interval: count the end points carefully. (−2,3)(-2, 3) has 44, [−2,3][-2, 3] has 66, [−2,3)[-2, 3) has 55.

Open circles show excluded end points and filled circles show included ones; the arrow shows that the set goes on for ever.
Round bracket: excluded. Square bracket: included.
Set-builder formIntervalEnd points
{x∈R:−2<x<3}\{x \in \mathbb{R} : -2 < x < 3\}(−2,3)(-2, 3)both excluded
{x∈R:−2≤x≤3}\{x \in \mathbb{R} : -2 \le x \le 3\}[−2,3][-2, 3]both included
{x∈R:−2≤x<3}\{x \in \mathbb{R} : -2 \le x < 3\}[−2,3)[-2, 3)left in, right out
{x∈R:x>−2}\{x \in \mathbb{R} : x > -2\}(−2,∞)(-2, \infty)infinity is never included
End points decide the count.
IntervalIntegers insideCount
(−2,3)(-2, 3)−1,0,1,2-1, 0, 1, 244
[−2,3][-2, 3]−2,−1,0,1,2,3-2, -1, 0, 1, 2, 366
[−2,3)[-2, 3)−2,−1,0,1,2-2, -1, 0, 1, 255

Formulas

  • Closed interval
    [a,b]={x∈R:a≤x≤b}[a, b] = \{x \in \mathbb{R} : a \le x \le b\}

Key terms

Open interval

(a,b)(a, b): both end points excluded.

Closed interval

[a,b][a, b]: both end points included.

Half-open interval

[a,b)[a, b) or (a,b](a, b]: one end included.

5. Venn diagrams and operations

  • Union A∪BA \cup B: in AA or BB (or both).
  • Intersection A∩BA \cap B: in both. Disjoint if A∩B=∅A \cap B = \varnothing.
  • Difference A−BA - B: in AA, not in BB. In general A−B≠B−AA - B \ne B - A.
  • Complement A′=U−AA' = U - A.

In a Venn diagram, label the regions: only AA, both, only BB, outside. For intervals, test every end point in both sets: [−3,2)∩(0,5]=(0,2)[-3, 2) \cap (0, 5] = (0, 2), [−3,2)∪(0,5]=[−3,5][-3, 2) \cup (0, 5] = [-3, 5].

Primes $P$ and odd numbers $O$ in $U = \{1, \dots, 10\}$.
Disjoint sets: $E \cap O = \varnothing$.
The complement $P' = U - P$ is everything outside the circle.
All six results, listed from the diagram.
OperationResultElements
P∪OP \cup O{1,2,3,5,7,9}\{1, 2, 3, 5, 7, 9\}66
P∩OP \cap O{3,5,7}\{3, 5, 7\}33
P−OP - O{2}\{2\}11
O−PO - P{1,9}\{1, 9\}22
P′P'{1,4,6,8,9,10}\{1, 4, 6, 8, 9, 10\}66
(P∪O)′(P \cup O)'{4,6,8,10}\{4, 6, 8, 10\}44
Filled circles mark included end points and open circles mark excluded ones.

Formulas

  • Difference as intersection
    A−B=A∩B′A - B = A \cap B'

Key terms

Union

All elements of either set, each listed once.

Intersection

The elements common to both sets.

Complement

A′=U−AA' = U - A, the elements of UU not in AA.

6. Laws of set algebra

  • Commutative: A∪B=B∪AA \cup B = B \cup A, A∩B=B∩AA \cap B = B \cap A.
  • Associative: (A∪B)∪C=A∪(B∪C)(A \cup B) \cup C = A \cup (B \cup C), and the same for ∩\cap.
  • Distributive: A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C), A∪(B∩C)=(A∪B)∩(A∪C)A \cup (B \cap C) = (A \cup B) \cap (A \cup C).
  • De Morgan: (A∪B)′=A′∩B′(A \cup B)' = A' \cap B', (A∩B)′=A′∪B′(A \cap B)' = A' \cup B'.
  • Identity / complement: A∪∅=AA \cup \varnothing = A, A∩U=AA \cap U = A, A∪A′=UA \cup A' = U, A∩A′=∅A \cap A' = \varnothing.

To verify a law, compute both sides for the given sets. To prove an identity, show each side is a subset of the other using a general element xx.

Every law was verified by brute force.
LawStatementChecked on all 16316^3 triples of subsets of {1,2,3,4}\{1, 2, 3, 4\}
CommutativeA∪B=B∪AA \cup B = B \cup A✓
CommutativeA∩B=B∩AA \cap B = B \cap A✓
Associative(A∪B)∪C=A∪(B∪C)(A \cup B) \cup C = A \cup (B \cup C)✓
DistributiveA∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C)✓
DistributiveA∪(B∩C)=(A∪B)∩(A∪C)A \cup (B \cap C) = (A \cup B) \cap (A \cup C)✓
De Morgan(A∪B)′=A′∩B′(A \cup B)' = A' \cap B'✓
De Morgan(A∩B)′=A′∪B′(A \cap B)' = A' \cup B'✓
IdentityA∪∅=AA \cup \varnothing = A and A∩U=AA \cap U = A✓
ComplementA∪A′=UA \cup A' = U and A∩A′=∅A \cap A' = \varnothing✓
The last two columns agree in every row: De Morgan.
RegionIn PPIn OOIn (P∪O)′(P \cup O)'In P′∩O′P' \cap O'
Only PP✓✗✗✗
In both✓✓✗✗
Only OO✗✓✗✗
Neither✗✗✓✓

Formulas

  • De Morgan
    (A∪B)′=A′∩B′,(A∩B)′=A′∪B′(A \cup B)' = A' \cap B', \qquad (A \cap B)' = A' \cup B'

Key terms

De Morgan's laws

A complement turns a union into an intersection of complements and the reverse.

Distributive law

Each of union and intersection distributes over the other.

7. Counting with sets (formative practice)

Practical problems of this type are taught but not board assessed (formative assessment only).

n(A∪B)=n(A)+n(B)−n(A∩B)n(A \cup B) = n(A) + n(B) - n(A \cap B), n(A−B)=n(A)−n(A∩B)n(A - B) = n(A) - n(A \cap B), n(A′)=n(U)−n(A)n(A') = n(U) - n(A). For disjoint sets, n(A∪B)=n(A)+n(B)n(A \cup B) = n(A) + n(B).

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

Method: draw a Venn diagram and fill the innermost region first, then work outwards. Check that the regions add up to n(U)n(U).

Counts: $45 + 25 + 30 + 20 = 120$.
Region counts add to $50$; $n(A \cup B \cup C) = 45$.

Formulas

  • Two sets
    n(A∪B)=n(A)+n(B)−n(A∩B)n(A \cup B) = n(A) + n(B) - n(A \cap B)

Key terms

n(A)

The number of elements of the finite set AA.

Exam tips

How marks are awarded

  • Roster / set-builder (1–2 marks): solve the condition, list each element once.
  • Subset counts (1–2 marks): 2n2^n with the reason.
  • Verify a law (2–3 marks): each side computed separately 1 + 1, conclusion 1.
  • Prove an identity (3–5 marks): each inclusion with a general xx, then the conclusion.
  • Intervals (2–5 marks): one mark per correct end-point decision.
  • Word problems (2–5 marks): formula or Venn diagram 1, each region or total 1.

Common mistakes

  1. Calling {∅}\{\varnothing\} the empty set.
  2. Leaving out negative integers or 00 when the universe is Z\mathbb{Z}.
  3. Treating A−BA - B as B−AB - A.
  4. Writing a square bracket next to ∞\infty.
  5. Counting the overlap twice in n(A∪B)n(A \cup B).
  6. Taking a complement in the wrong universal set.
  7. Proving a set identity with one example instead of a general element.
  8. Mathematical Induction is formative only and Mathematical Reasoning is deleted: neither is examined here.