Equivalence Classes Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Equivalence Classes.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

An equivalence class is the set of all elements that are related to a given element under an equivalence relation — it groups objects that are considered 'the same' in some specified sense.

Treating different things as equal because they share what matters.

Read the full concept explanation →

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: An equivalence class collects every element related to a given one, treating them all as a single object.

Common stuck point: The procedure for equivalence classes is the easy part; the trap is grouping by a relation that is not reflexive, symmetric, and transitive. Asking "Am I grouping all elements 'the same' under a reflexive, symmetric, and transitive relation?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Sense of Study hint: Ask: Am I grouping all elements 'the same' under a reflexive, symmetric, and transitive relation?

Worked Examples

Example 1

medium
Define the relation aba \sim b on Z\mathbb{Z} by 'aba \sim b iff ab(mod3)a \equiv b \pmod{3}'. Verify this is an equivalence relation and list the equivalence classes.

Answer

Z/3Z={[0],[1],[2]}\mathbb{Z}/3\mathbb{Z} = \{[0],[1],[2]\}

First step

1
Reflexive: aa(mod3)a \equiv a \pmod{3} (since 303 \mid 0). True.

See the full worked solution + why-it-works coaching

SetupKey insightWhy it worksCommon pitfallConnection

Unlock answer keys One Family plan — every worked solution, all subjects

Example 2

medium
On the set of triangles, define T1T2T_1 \sim T_2 if T1T_1 is congruent to T2T_2. Show this is an equivalence relation.

Example 3

medium
Define aba \sim b on Z\mathbb{Z} by aba \sim b iff 5(ab)5 \mid (a - b). List the equivalence class [7][7] in roster form (first few positive and negative members).

Example 4

medium
Show that 'same first letter' on the set of English words is an equivalence relation, and count the classes.

Example 5

medium
On R\mathbb{R}, define xyx \sim y iff xyZx - y \in \mathbb{Z}. Describe the equivalence class of 1/31/3.

Example 6

hard
Show that congruence of triangles is an equivalence relation, and explain why the set of all triangles modulo congruence is a useful quotient.

Example 7

hard
Prove that if \sim is an equivalence relation on SS, then any two equivalence classes are either equal or disjoint.

Example 8

hard
Verify whether aba \sim b defined on Z\mathbb{Z} by aba \sim b iff a+ba + b is even is an equivalence relation. If yes, describe the classes.

Example 9

challenge
How many equivalence relations are there on a 44-element set {a,b,c,d}\{a, b, c, d\}?

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

easy
List the equivalence classes of Z\mathbb{Z} under aba \sim b iff ab(mod2)a \equiv b \pmod{2}.

Example 2

medium
Define fgf \sim g on functions from R\mathbb{R} to R\mathbb{R} by fgf \sim g iff f(0)=g(0)f(0) = g(0). Verify this is an equivalence relation and describe the equivalence class of f(x)=x2f(x) = x^2.

Example 3

easy
How many equivalence classes mod 33 partition the integers?

Example 4

easy
Are 12\frac{1}{2} and 24\frac{2}{4} in the same equivalence class of fractions?

Example 5

easy
To which class mod 44 does 1313 belong?

Example 6

easy
How many equivalence classes does the relation 'same parity' create on the integers?

Example 7

easy
Is 'has the same number of letters' an equivalence relation on words?

Example 8

easy
How many equivalence classes mod 22 are there, and name them.

Example 9

easy
Is the relation a<ba < b an equivalence relation on integers?

Example 10

easy
Which fraction is the simplest representative of the class of 69\frac{6}{9}?

Example 11

medium
Under congruence mod 55, what single class does 7+97+9 belong to?

Example 12

medium
How many equivalence classes does congruence mod nn create, and why exactly that many?

Example 13

medium
Vectors are 'equivalent' if they have the same direction and length (free vectors). Are 1,2\langle1,2\rangle based at the origin and 1,2\langle1,2\rangle based at (3,3)(3,3) in the same class?

Example 14

medium
Triangles are equivalent under congruence. Are a 33-44-55 triangle and a 55-44-33 triangle in the same class?

Example 15

medium
On the rationals, define aba\sim b if aba-b is an integer. Which class contains 72\frac{7}{2}?

Example 16

medium
Is 'is a friend of' (assume non-reflexive, can be one-directional) an equivalence relation? Identify which property may fail.

Example 17

challenge
Under rotation, two colorings of a bracelet of 33 beads (each black or white) are equivalent. How many equivalence classes are there?

Example 18

challenge
Define aba\sim b on integers if a2b2(mod8)a^2\equiv b^2\pmod{8}. How many equivalence classes of residues are there?

Example 19

challenge
Slopes define equivalence: two nonvertical lines are equivalent if parallel (equal slope). Lines y=2x+1y=2x+1, y=2x3y=2x-3, y=3xy=3x give how many classes among these three?

Example 20

medium
Under congruence mod 77, which class does 100100 belong to?

Example 21

medium
Clock positions are equivalent mod 1212. What hour is 2525 o'clock equivalent to?

Example 22

medium
How many equivalence classes does 'congruent triangles' create among all triangles with sides from {3,4,5}\{3,4,5\} used once each?

Example 23

easy
How many equivalence classes mod 55 partition the integers?

Example 24

easy
To which class mod 77 does the integer 3030 belong?

Example 25

easy
Is the relation 'has the same birthday' on people an equivalence relation?

Example 26

easy
Is the relation aba \le b on R\mathbb{R} an equivalence relation?

Example 27

easy
Which of 34\frac{3}{4} and 912\frac{9}{12} are in the same equivalence class of fractions?

Example 28

medium
On the set of nonzero integers, define aba \sim b iff ab>0ab > 0. How many equivalence classes are there?

Example 29

medium
On R2\mathbb{R}^2, define (x1,y1)(x2,y2)(x_1, y_1) \sim (x_2, y_2) iff x12+y12=x22+y22x_1^2 + y_1^2 = x_2^2 + y_2^2. Describe the equivalence class containing (3,4)(3, 4).

Example 30

medium
How many distinct equivalence classes of integers mod 1212 does the relation 'ab(mod12)a \equiv b \pmod{12}' produce?

Example 31

medium
Is the relation 'is a sibling of' (with the convention that a person is their own sibling) an equivalence relation on a set of children sharing parents?

Example 32

medium
On the set of integers, define aba \sim b iff aa and bb have the same number of digits (in base 10). Is this an equivalence relation on positive integers?

Example 33

medium
How many equivalence classes does 'ab(mod8)a \equiv b \pmod{8}' have on the set {0,1,2,,23}\{0, 1, 2, \dots, 23\}?

Example 34

hard
On Z\mathbb{Z}, define aba \sim b iff a2b2(mod5)a^2 \equiv b^2 \pmod 5. How many equivalence classes does this produce on {0,1,2,3,4}\{0, 1, 2, 3, 4\}?

Example 35

hard
How many equivalence relations are there on a 33-element set {a,b,c}\{a, b, c\}?

Example 36

hard
On the set of 2×22 \times 2 real matrices, define ABA \sim B iff detA=detB\det A = \det B. Describe the equivalence class of the identity matrix II.

Example 37

challenge
Let \sim on Z2\mathbb{Z}^2 be defined by (a,b)(c,d)(a, b) \sim (c, d) iff a+d=b+ca + d = b + c. Describe the equivalence class of (0,0)(0, 0).

Related Concepts

Background Knowledge

These ideas may be useful before you work through the harder examples.

setequivalence