Skip to main content

MATH 308 — Lec 14 — Equivalence Relations

Math 308 · October 23, 2026

Lecture 14 — Equivalence Relations and Equivalence Classes
MATH 308  Bridge to Advanced Mathematics  Chartrand §9.3–9.4

Goals for today. By the end of this lecture you should be able to:

  • check whether a relation is reflexive, symmetric, and transitive, and so decide whether it is an equivalence relation;

  • compute the equivalence class [a][a][a] of an element and list the distinct classes;

  • state and prove the Fundamental Theorem: the equivalence classes of an equivalence relation on SSS form a partition of SSS, and conversely every partition arises this way;

  • recognize equivalence as “sameness up to something” across the rest of mathematics.

Equivalence relations (§9.2)

Recall from Lecture 13 that a relation RRR on a set SSS is just a subset R⊆S×SR \subseteq S \times SR⊆S×S; we write a R ba\, R\, baRb to mean (a,b)∈R(a,b) \in R(a,b)∈R. Three properties of a relation will matter today.

Definition 1. A relation RRR on a set SSS is

  1. reflexive if a R aa\, R\, aaRa for every a∈Sa \in Sa∈S;

  2. symmetric if a R b⇒b R aa\, R\, b \Rightarrow b\, R\, aaRb⇒bRa for all a,b∈Sa,b \in Sa,b∈S;

  3. transitive if (a R b and b R c)⇒a R c\bigl(a\, R\, b \text{ and } b\, R\, c\bigr) \Rightarrow a\, R\, c(aRb and bRc)⇒aRc for all a,b,c∈Sa,b,c \in Sa,b,c∈S.

An equivalence relation is a relation that is reflexive, symmetric, and transitive. When RRR is an equivalence relation we usually write a∼ba \sim ba∼b in place of a R ba\, R\, baRb, read “aaa is equivalent to bbb.”

The three axioms are exactly the properties of the most familiar relation of all — equality. “a=aa=aa=a” (reflexive), “a=ba=ba=b forces b=ab=ab=a” (symmetric), “a=ba=ba=b and b=cb=cb=c force a=ca=ca=c” (transitive). An equivalence relation is what you get when you keep these three rules but relax “identical” to “the same in some chosen respect.”

Example 1 (The seed from Lecture 2: same parity). Define a∼ba \sim ba∼b on Z\mathbb{Z}Z to mean aaa and bbb have the same parity (both even or both odd). This is an equivalence relation:

  • Reflexive: aaa has the same parity as itself.

  • Symmetric: if aaa and bbb have the same parity, so do bbb and aaa.

  • Transitive: if a,ba,ba,b agree in parity and b,cb,cb,c agree in parity, then a,ca,ca,c agree.

There turn out to be exactly two “kinds” of integer under ∼\sim∼: the evens and the odds — precisely the partition {E,O}\{E,O\}{E,O} of Z\mathbb{Z}Z we met in Lecture 2. Hold onto this; §3 explains why it is no coincidence.

Example 2 (Congruence modulo nnn). Fix n∈Nn \in \mathbb{N}n∈N. For a,b∈Za,b \in \mathbb{Z}a,b∈Z define

a≡b(modn)⟺n∣(a−b),a \equiv b \pmod{n} \quad\Longleftrightarrow\quad n \mid (a-b),a≡b(modn)⟺n∣(a−b),

read “aaa is congruent to bbb modulo nnn” (recall n∣mn \mid mn∣m from Lecture 7 means m=nkm = nkm=nk for some k∈Zk \in \mathbb{Z}k∈Z). This is an equivalence relation on Z\mathbb{Z}Z:

  • Reflexive: n∣(a−a)=0n \mid (a-a) = 0n∣(a−a)=0 since 0=n⋅00 = n\cdot 00=n⋅0.

  • Symmetric: if a−b=nka-b = nka−b=nk then b−a=n(−k)b-a = n(-k)b−a=n(−k), so n∣(b−a)n \mid (b-a)n∣(b−a).

  • Transitive: if a−b=nka-b = nka−b=nk and b−c=nℓb-c = n\ellb−c=nℓ, then a−c=(a−b)+(b−c)=n(k+ℓ)a-c = (a-b)+(b-c) = n(k+\ell)a−c=(a−b)+(b−c)=n(k+ℓ), so n∣(a−c)n \mid (a-c)n∣(a−c).

Same parity is exactly the case n=2n=2n=2. We develop congruence modulo nnn in full next time (Lecture 15).

Example 3 (A non-example). On Z\mathbb{Z}Z let a R ba\, R\, baRb mean a≤ba \le ba≤b. This is reflexive (a≤aa \le aa≤a) and transitive, but not symmetric: 2≤32 \le 32≤3 yet 3≰23 \not\le 23≤2. So “≤\le≤” is not an equivalence relation. (It is an order relation — a different, equally important species.) The lesson: all three axioms must be checked; losing even one changes the whole character of the relation.

Remark 1. A common trap: some relations look reflexive but fail because a lone element has no partner. On S={1,2,3}S=\{1,2,3\}S={1,2,3} the relation R={(1,1),(1,2),(2,1),(2,2)}R=\{(1,1),(1,2),(2,1),(2,2)\}R={(1,1),(1,2),(2,1),(2,2)} is symmetric and transitive, but not reflexive, since (3,3)∉R(3,3)\notin R(3,3)∈/R. Reflexivity is a promise about every element of SSS.

Equivalence classes (§9.3)

An equivalence relation sorts SSS into groups of mutually equivalent elements. Each group is named by any one of its members.

Definition 2. Let ∼\sim∼ be an equivalence relation on SSS and let a∈Sa \in Sa∈S. The equivalence class of aaa is

[a]  =  { x∈S  :  x∼a },[a] \;=\; \left\{\, x \in S \;:\; x \sim a \,\right\},[a]={x∈S:x∼a},

the set of all elements equivalent to aaa. Any element b∈[a]b \in [a]b∈[a] is called a representative of the class. The set of all equivalence classes is written S/ ⁣∼S/\!\simS/∼ (read “SSS mod ∼\sim∼”).

Example 4. For same parity on Z\mathbb{Z}Z there are just two classes:

[0]={ x∈Z  :  x even }=E,[1]={ x∈Z  :  x odd }=O.[0] = \left\{\, x \in \mathbb{Z} \;:\; x \text{ even} \,\right\} = E, \qquad [1] = \left\{\, x \in \mathbb{Z} \;:\; x \text{ odd} \,\right\} = O.[0]={x∈Z:x even}=E,[1]={x∈Z:x odd}=O.

Note [0]=[2]=[−4]=E[0]=[2]=[-4]=E[0]=[2]=[−4]=E: different representatives can name the same class. And E∪O=ZE \cup O = \mathbb{Z}E∪O=Z with E∩O=∅E \cap O = \varnothingE∩O=∅ — the classes cover Z\mathbb{Z}Z and are disjoint.

Example 5 (Congruence mod 333). For ≡(mod3)\equiv \pmod 3≡(mod3) on Z\mathbb{Z}Z, sort integers by their remainder on division by 333:

[0]={…,−3,0,3,6,… },[1]={…,−2,1,4,7,… },[2]={…,−1,2,5,8,… }.[0]=\{\dots,-3,0,3,6,\dots\},\quad [1]=\{\dots,-2,1,4,7,\dots\},\quad [2]=\{\dots,-1,2,5,8,\dots\}.[0]={…,−3,0,3,6,…},[1]={…,−2,1,4,7,…},[2]={…,−1,2,5,8,…}.

Every integer lands in exactly one of these three classes, and [3]=[0][3]=[0][3]=[0], [4]=[1][4]=[1][4]=[1], and so on. There are exactly three distinct classes; we write Z/3Z={[0],[1],[2]}\mathbb{Z}/3\mathbb{Z}= \{[0],[1],[2]\}Z/3Z={[0],[1],[2]}.

Congruence mod 3 colors the integers with three repeating labels. Filled dots are (0), open circles (1), triangles (2): three interleaved classes that together tile Z.

Congruence mod 333 colors the integers with three repeating labels. Filled dots are [0][0][0], open circles [1][1][1], triangles [2][2][2]: three interleaved classes that together tile Z\mathbb{Z}Z.

The two examples share a striking feature: the distinct classes never overlap, and together they exhaust SSS. That is the content of §3.

The Fundamental Theorem: classes are a partition (§9.3)

Recall from Lecture 2 that a partition of a nonempty set SSS is a collection of nonempty, pairwise-disjoint subsets whose union is all of SSS — equivalently, every element of SSS lies in exactly one cell. We now show that equivalence relations and partitions are two names for the same thing. Everything rests on one lemma.

Lemma 1. Let ∼\sim∼ be an equivalence relation on SSS, and let a,b∈Sa,b \in Sa,b∈S. Then:

  1. a∈[a]a \in [a]a∈[a];

  2. a∼b⇔[a]=[b]a \sim b \Leftrightarrow [a] = [b]a∼b⇔[a]=[b];

  3. if a≁ba \not\sim ba∼b, then [a]∩[b]=∅[a] \cap [b] = \varnothing[a]∩[b]=∅.

Proof. (a) By reflexivity a∼aa \sim aa∼a, so a∈[a]a \in [a]a∈[a]. In particular every class is nonempty.

(b) (⇒\Rightarrow⇒) Suppose a∼ba \sim ba∼b. We show [a]⊆[b][a] \subseteq [b][a]⊆[b] and [b]⊆[a][b] \subseteq [a][b]⊆[a] (double containment, Lecture 1). Let x∈[a]x \in [a]x∈[a], so x∼ax \sim ax∼a. Together with a∼ba \sim ba∼b, transitivity gives x∼bx \sim bx∼b, i.e. x∈[b]x \in [b]x∈[b]; hence [a]⊆[b][a] \subseteq [b][a]⊆[b]. For the reverse, a∼ba \sim ba∼b gives b∼ab \sim ab∼a by symmetry, and the same argument with roles swapped yields [b]⊆[a][b] \subseteq [a][b]⊆[a]. Therefore [a]=[b][a]=[b][a]=[b].

(⇐\Leftarrow⇐) Suppose [a]=[b][a]=[b][a]=[b]. By part (a), a∈[a]=[b]a \in [a] = [b]a∈[a]=[b], which means a∼ba \sim ba∼b.

(c) We prove the contrapositive: if [a]∩[b]≠∅[a] \cap [b] \neq \varnothing[a]∩[b]=∅ then a∼ba \sim ba∼b. Pick x∈[a]∩[b]x \in [a] \cap [b]x∈[a]∩[b]. Then x∼ax \sim ax∼a and x∼bx \sim bx∼b. By symmetry a∼xa \sim xa∼x, and with x∼bx \sim bx∼b transitivity gives a∼ba \sim ba∼b. Contrapositively, a≁ba \not\sim ba∼b forces [a]∩[b]=∅[a] \cap [b] = \varnothing[a]∩[b]=∅. ◻

Theorem 2 (Equivalence classes partition SSS). Let ∼\sim∼ be an equivalence relation on a nonempty set SSS. Then the set of equivalence classes S/ ⁣∼S/\!\simS/∼ is a partition of SSS.

Proof. We verify the two defining properties of a partition.

The classes are nonempty and cover SSS. By Lemma 1(a), a∈[a]a \in [a]a∈[a] for every aaa, so each class is nonempty and every element of SSS lies in some class; hence ⋃a∈S[a]=S\bigcup_{a \in S}[a] = S⋃a∈S​[a]=S.

Distinct classes are disjoint. Take two classes [a][a][a] and [b][b][b]. If they are not disjoint, then by Lemma 1(c) (contrapositive) a∼ba \sim ba∼b, and then Lemma 1(b) gives [a]=[b][a]=[b][a]=[b]. So any two classes are either equal or disjoint. Thus the distinct classes are pairwise disjoint.

Both conditions hold, so S/ ⁣∼S/\!\simS/∼ is a partition of SSS. ◻

The converse is equally true and just as useful: any way of chopping SSS into cells produces an equivalence relation.

Theorem 3 (Partitions give equivalence relations). *Let P\mathcal{P}P be a partition of SSS. Define a relation on SSS by

a∼b⟺a and b lie in the same cell of P.a \sim b \quad\Longleftrightarrow\quad a \text{ and } b \text{ lie in the same cell of } \mathcal{P}.a∼b⟺a and b lie in the same cell of P.

Then ∼\sim∼ is an equivalence relation, and its equivalence classes are exactly the cells of P\mathcal{P}P.*

Proof. Because P\mathcal{P}P is a partition, each a∈Sa \in Sa∈S lies in exactly one cell; call it CaC_aCa​.

  • Reflexive: aaa lies in the same cell as itself, so a∼aa \sim aa∼a.

  • Symmetric: “aaa and bbb share a cell” is unchanged by swapping a,ba,ba,b.

  • Transitive: if a,ba,ba,b share a cell and b,cb,cb,c share a cell, both cells contain bbb; since cells are disjoint or equal, they are the same cell, so a,ca,ca,c share it.

Finally, for any aaa, its class is [a]={ x  :  x∈Ca }=Ca[a] = \left\{\, x \;:\; x \in C_a \,\right\} = C_a[a]={x:x∈Ca​}=Ca​, exactly the cell containing aaa. ◻

The Fundamental Theorem as a dictionary. On the left, links a,b,c together and d,e together; on the right, those links become the cells of a partition of S. Theorems 2 and 3 say the two pictures carry exactly the same information.

The Fundamental Theorem as a dictionary. On the left, ∼\sim∼ links a,b,ca,b,ca,b,c together and d,ed,ed,e together; on the right, those links become the cells of a partition of SSS. Theorems 2 and 3 say the two pictures carry exactly the same information.

Corollary 4. Equivalence relations on SSS and partitions of SSS are in one-to-one correspondence: passing to classes and passing to “same-cell” are inverse operations.

Proof. Theorem 2 sends each relation to a partition; Theorem 3 sends each partition to a relation and shows its classes are the original cells. Running the two constructions in either order returns the object you started with, so each is the inverse of the other. ◻

Homework

  1. For each relation on Z\mathbb{Z}Z, say which of reflexive/symmetric/transitive hold, and whether it is an equivalence relation: (a) a R b⇔a−ba\, R\, b \Leftrightarrow a-baRb⇔a−b is even;  (b) a R b⇔ab≥0a\, R\, b \Leftrightarrow ab \ge 0aRb⇔ab≥0;  (c) a R b⇔a=ba\, R\, b \Leftrightarrow a=baRb⇔a=b or a=−ba=-ba=−b.

  2. For ≡(mod5)\equiv \pmod 5≡(mod5) on Z\mathbb{Z}Z, list the equivalence class [2][2][2] (give five elements) and state how many distinct classes there are.

  3. On S={1,2,3,4,5,6}S=\{1,2,3,4,5,6\}S={1,2,3,4,5,6}, the partition {{1,4},{2,3,5},{6}}\bigl\{\{1,4\},\{2,3,5\},\{6\}\bigr\}{{1,4},{2,3,5},{6}} defines an equivalence relation by Theorem 3. Write [3][3][3] and [6][6][6], and decide: is 2∼42 \sim 42∼4?

  4. Define ∼\sim∼ on R\mathbb{R}R by x∼y⇔x−y∈Zx \sim y \Leftrightarrow x-y \in \mathbb{Z}x∼y⇔x−y∈Z. Prove ∼\sim∼ is an equivalence relation, and describe [0][0][0] and [12][\tfrac12][21​].

  5. Prove or disprove: if RRR is symmetric and transitive on SSS, then RRR is reflexive. (Where does the “proof” break?)

Suggested textbook exercises (Chartrand §9.2–9.3): 9.14, 9.16, 9.20, 9.24, 9.28, 9.32.

← Back to Math 308