SECTION 1
Historical Context & Motivation
The idea that mathematical objects can be grouped by shared properties is far older than the formal language of set theory. Ancient Greek mathematicians implicitly partitioned integers into even and odd, while Gauss's 1801 Disquisitiones Arithmeticae built the entire theory of modular arithmetic on the notion that two integers are 'alike' when they leave the same remainder upon division. Yet the abstract framework that unifies all such constructions—equivalence relations and their corresponding partitions—crystallized only in the late nineteenth and early twentieth centuries as set theory matured.
1801 • Gauss's Congruence Classes
1872 • Dedekind's Ideal Theory
1895 • Cantor's Set Theory Foundations
1927 • Formal Axiomatization
1940s • The Fundamental Theorem
The central question that equivalence relations address is deceptively simple: given a set of objects, how can we rigorously define what it means for two objects to be 'the same in some respect,' and how does such a definition automatically slice the set into non-overlapping groups? Understanding this correspondence is essential not only for algebra and number theory but also for computer science (e.g., type checking and union-find data structures), logic, and combinatorics.
SECTION 2
Core Principles & Definitions
An equivalence relation on a set S is a binary relation ∼ ⊆ S × S that satisfies three axioms, each of which mirrors a basic intuition about what 'sameness' should mean. Together, these axioms guarantee that ∼ behaves like equality in the relevant respect, even though the objects being related may differ in other ways. Meanwhile, a partition of S is a collection of non-empty, pairwise disjoint subsets whose union equals S. The deep insight is that these two notions—an algebraic property of a relation and a set-theoretic decomposition—are two perspectives on exactly the same structure.
Reflexivity
Symmetry
Transitivity
Equivalence Class [a]
Partition
KEY TAKEAWAY
SECTION 3
Visual Explanation
The following diagram illustrates the correspondence between an equivalence relation on a six-element set S = {1, 2, 3, 4, 5, 6} and the partition it induces. On the left, the relation is depicted as a directed graph (with bidirectional arrows representing symmetry and self-loops representing reflexivity). On the right, the same set is shown decomposed into three equivalence classes, visually confirming that the classes are disjoint and exhaustive.
Observe several critical features in the diagram. First, every node has a self-loop, confirming reflexivity. Second, every edge is bidirectional, reflecting symmetry. Third, within the violet cluster, the edges among 2, 5, and 6 form a complete subgraph (a clique), which is exactly the graphical signature of transitivity. In fact, the connected components of the relation graph (ignoring self-loops) correspond precisely to the blocks of the partition on the right. This is no coincidence; it is a consequence of the fundamental theorem that we will state formally in Section 4.
SECTION 4
Mathematical Framework
We now state the three axioms formally and develop the key theorem that equivalence relations and partitions are two sides of the same coin. Let S be a non-empty set and let ∼ be a binary relation on S, i.e., a subset of S × S.
REFLEXIVITY
Every element is related to itself. In the relation matrix, this means the main diagonal consists entirely of 1s.
SYMMETRY
The relation is its own inverse. In the relation matrix, M is symmetric: M[i][j] = M[j][i].
TRANSITIVITY
Relatedness propagates through chains. Combined with symmetry, this guarantees that equivalence classes are internally 'fully connected.'
The Fundamental Theorem
The Fundamental Theorem of Equivalence Relations establishes a bijection between equivalence relations on S and partitions of S. Specifically, if ∼ is an equivalence relation on S, then the set of equivalence classes S/∼ = {[a] : a ∈ S} is a partition of S. Conversely, if 𝒫 = {Ai} is a partition of S, then the relation defined by a ∼ b if and only if a and b belong to the same block Ai is an equivalence relation on S. Moreover, these two constructions are inverses of each other.
EQUIVALENCE CLASS
The class [a] is the block of the partition containing a. A critical lemma: [a] = [b] if and only if a ∼ b, and [a] ∩ [b] = ∅ otherwise.
Proof Sketch: Classes Are Disjoint or Identical
SECTION 5
Detailed Breakdown: Congruence Modulo n
The most classical example of an equivalence relation is congruence modulo n, defined on the integers ℤ. For a fixed positive integer n, we say a ≡ b (mod n) if and only if n divides (a − b). This relation satisfies all three axioms: reflexivity (n | 0), symmetry (if n | (a − b) then n | (b − a)), and transitivity (if n | (a − b) and n | (b − c), then n | (a − c) by adding). The equivalence classes are the residue classes [0], [1], …, [n − 1], and they form the partition of ℤ into n infinite subsets. Below, we visualize the partition of integers under congruence modulo 3.
This example generalizes broadly. Any time you encounter a mathematical construction that groups objects by a shared feature—triangles by similarity, matrices by rank, integers by divisibility pattern—you are almost certainly looking at an equivalence relation in disguise. The partition perspective is equally useful: it tells you that the number of distinct 'types' under a given classification equals the number of equivalence classes, a quantity often denoted |S/∼| and called the index of the equivalence relation.
| Example Relation | Set S | Equivalence Classes |
|---|---|---|
| a ≡ b (mod 4) | ℤ | [0], [1], [2], [3] (index = 4) |
| Same absolute value: |a| = |b| | ℤ | {0}, {−1, 1}, {−2, 2}, … (index = ∞) |
| Same cardinality: |A| = |B| | 𝒫(S) (power set) | Subsets grouped by size |
| Similarity of triangles | Set of all triangles | Each class = all triangles with given angle triple |
Common examples of equivalence relations and the partitions they induce.
SECTION 6
Worked Example
Let S = {a, b, c, d, e} and define the relation R = {(a,a), (b,b), (c,c), (d,d), (e,e), (a,b), (b,a), (d,e), (e,d)}. Determine whether R is an equivalence relation, and if so, find the equivalence classes and the corresponding partition.
Classifying a Relation on a Five-Element Set
- 1
Step 1 — Check Reflexivity
We need (x, x) ∈ R for every x ∈ S. Inspecting R: (a,a) ✓, (b,b) ✓, (c,c) ✓, (d,d) ✓, (e,e) ✓. All five diagonal pairs are present.Reflexivity: satisfied ✓ - 2
Step 2 — Check Symmetry
For every (x, y) ∈ R with x ≠ y, we need (y, x) ∈ R. The non-diagonal pairs are (a,b) and (b,a), and (d,e) and (e,d). Each pair has its reverse present in R.Symmetry: satisfied ✓ - 3
Step 3 — Check Transitivity
We examine all chains (x, y) and (y, z) in R. The relevant non-trivial chains are: (a,b) and (b,a) → need (a,a) ✓ (present). (b,a) and (a,b) → need (b,b) ✓. (d,e) and (e,d) → need (d,d) ✓. (e,d) and (d,e) → need (e,e) ✓. No other non-trivial chains exist because the clusters {a,b} and {d,e} are disjoint and c relates only to itself.Transitivity: satisfied ✓ - 4
Step 4 — Identify Equivalence Classes
Since R is an equivalence relation, we compute the classes: [a] = {x ∈ S : (x, a) ∈ R} = {a, b}. [b] = {a, b} (same class). [c] = {c}. [d] = {d, e}. [e] = {d, e}.Equivalence classes: {a, b}, {c}, {d, e} - 5
Step 5 — State the Partition
The partition is 𝒫 = { {a, b}, {c}, {d, e} }. Verification: the blocks are non-empty, pairwise disjoint, and their union {a,b} ∪ {c} ∪ {d,e} = {a,b,c,d,e} = S.Partition: 𝒫 = { {a, b}, {c}, {d, e} }
SECTION 7
Equivalence vs. Other Relations
Equivalence relations occupy a specific niche among binary relations. Students often confuse them with partial orders or with relations that satisfy only two of the three axioms. The following table contrasts equivalence relations with several common relation types to clarify where they differ and what structural consequences follow.
| Property | Equivalence Relation | Partial Order | Preorder |
|---|---|---|---|
| Reflexive | ✓ Required | ✓ Required | ✓ Required |
| Symmetric | ✓ Required | ✗ Not in general | ✗ Not in general |
| Antisymmetric | ✗ (only for singletons) | ✓ Required | ✗ Not in general |
| Transitive | ✓ Required | ✓ Required | ✓ Required |
| Structural result | Partition of the set | Hasse diagram / lattice | Directed acyclic structure (modulo equivalence) |
Comparison of equivalence relations with partial orders and preorders.
A crucial distinction is that partial orders use antisymmetry (if a ≤ b and b ≤ a then a = b) in place of symmetry. This makes partial orders suitable for hierarchical structures such as divisibility on the natural numbers or subset inclusion on a power set, whereas equivalence relations model flat, non-hierarchical groupings. Meanwhile, a preorder is reflexive and transitive but neither symmetric nor antisymmetric in general. Interestingly, every preorder naturally induces an equivalence relation—define a ∼ b when both a ≤ b and b ≤ a—and the quotient set under this equivalence becomes a partial order.
KEY TAKEAWAY
SECTION 8
Connections to Advanced Theory
Equivalence relations and partitions serve as the launching point for several deep ideas in abstract algebra, topology, and theoretical computer science. The quotient set S/∼ is not merely a collection of subsets; when S carries algebraic structure (group, ring, vector space), the quotient often inherits that structure, yielding quotient groups, quotient rings, and quotient spaces. This construction is formalized through the notion of a congruence relation—an equivalence relation that is also compatible with the algebraic operations.
| Concept in This Lesson | Advanced Generalization | Where It Appears |
|---|---|---|
| Equivalence class [a] | Coset aH in group theory | Quotient groups G/H, Lagrange's theorem |
| Partition of a set | Quotient topology on X/∼ | Identification spaces, CW complexes |
| Index |S/∼| | Index of a subgroup [G : H] | Lagrange's theorem, orbit-counting |
| Congruence mod n | Kernel of a ring homomorphism | First Isomorphism Theorem for rings |
| Union-find (disjoint sets) | Partition refinement algorithms | Kruskal's MST, automata minimization |
How the concepts in this lesson generalize to advanced settings.
In computer science, the union-find (disjoint-set) data structure maintains a partition of a finite set under two operations: find(x) returns the representative of the equivalence class containing x, and union(x, y) merges the classes of x and y. With path compression and union by rank, this structure supports nearly-constant-time operations, making it indispensable in algorithms for minimum spanning trees (Kruskal's algorithm), connected components in graphs, and DFA minimization. Mastering the equivalence-relation/partition duality gives you the conceptual foundation for all of these applications.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
An equivalence relation on a set S is a binary relation satisfying three axioms: reflexivity (every element relates to itself), symmetry (if a ∼ b then b ∼ a), and transitivity (if a ∼ b and b ∼ c then a ∼ c). Each equivalence relation gives rise to equivalence classes [a] = {x ∈ S : x ∼ a}, and the collection of all classes forms a partition of S—a family of non-empty, pairwise disjoint subsets whose union is S.
The Fundamental Theorem establishes a bijection between equivalence relations on S and partitions of S, meaning every partition defines exactly one equivalence relation and vice versa. The canonical example is congruence modulo n, which partitions ℤ into n residue classes. This framework extends to quotient structures in algebra (quotient groups, quotient rings), identification spaces in topology, and the union-find data structure in computer science, making it one of the most versatile constructions in all of mathematics.