Discrete Mathematics and Graphs · BE5B01DMG · Topic 4 of 12
Relations, equivalence and partitions
A relation is a subset of a Cartesian product; equivalence packages elements into disjoint classes.
Key ideas
Test each axiom
Reflexive means xRx for every x. Symmetric means xRy implies yRx; transitive joins xRy and yRz. Use universal statements, not a few examples.
Classes
For an equivalence relation, [x] contains exactly the elements equivalent to x. Two classes are either equal or disjoint.
Fibres of a map
The relation x∼y iff f(x)=f(y) is reflexive, symmetric and transitive by equality of outputs. Its classes are nonempty fibres.
Partitions
A partition consists of nonempty, pairwise disjoint subsets whose union is the whole set. For a surjection f:A→B, all fibres indexed by b∈B are nonempty.
In one line: To prove a partition, verify nonemptiness, disjointness and coverage.
Formulas
- Test each axiom
- Classes
- Fibres of a map
- Partitions
Practice with worked solutions
Question 1
How many ordered pairs belong to the relation ≤ on {1,2,3,4}?
Worked solution
Answer: 10
The four rows have 4, 3, 2 and 1 admissible partners.
Question 2
For f(x)=x mod 3 on {0,…,11}, how many equivalence classes does f(x)=f(y) produce?
Worked solution
Answer: 3
The three possible remainders are the three nonempty fibres.
Question 3
How many ordered pairs (x, y) with x, y ∈ {1,2,…,6} satisfy x | y?
Worked solution
Answer: 14
For each x count the multiples of x that are at most 6 and add them up.
More Discrete Mathematics and Graphs practice in Ucenly
Sources
Written by Ucenly. Based on the BE5B01DMG course materials:
- 2 Sets and Relations, p. 23, 24, 26, 27
- Midterm 2025 (with solutions), p. 2
- Sample Exam, p. 1
- Midterm 2024, p. 3
- 2 Sets and Relations - tutorial 2026, p. 27