Math Lab
Home/Class XII/Ch 1/Equivalence relations and equivalence classes

Equivalence relations and equivalence classes

An equivalence relation is the mathematician's tool for declaring that certain elements should be regarded as "the same". Once you have one, the underlying set splits cleanly into bundles called equivalence classes, and you can work with bundles instead of individual elements. This is how integers split into residue classes modulo nn, how triangles split into similarity types, and how rational numbers like 12\tfrac{1}{2} and 24\tfrac{2}{4} are recognised as equal.

Definition

A relation RR on AA is an equivalence relation if it is

  1. reflexive,
  2. symmetric, and
  3. transitive.

For an equivalence relation RR we usually write a∼ba \sim b instead of (a,b)∈R(a, b) \in R.

For each a∈Aa \in A the equivalence class of aa is

[a]={x∈A:x∼a}.[a] = \{x \in A : x \sim a\}.

The set of all equivalence classes is denoted A/∼A / \sim.

The partition theorem

Theorem. If ∼\sim is an equivalence relation on AA, then the equivalence classes {[a]:a∈A}\{[a] : a \in A\} form a partition of AA. That is

  1. each [a][a] is non-empty,
  2. distinct equivalence classes are disjoint,
  3. the union of all classes equals AA.

Conversely, every partition of AA arises from a unique equivalence relation.

Proof. Non-emptiness is immediate because a∈[a]a \in [a] by reflexivity. For (3), each a∈Aa \in A lies in its own class, so the union covers AA.

For (2), suppose [a]∩[b]≠∅[a] \cap [b] \neq \varnothing and let xx be common. Then x∼ax \sim a and x∼bx \sim b. By symmetry a∼xa \sim x, and by transitivity a∼ba \sim b. We now show [a]=[b][a] = [b]. Take y∈[a]y \in [a], so y∼ay \sim a; by transitivity with a∼ba \sim b we get y∼by \sim b, hence y∈[b]y \in [b]. The reverse inclusion is identical, so [a]=[b][a] = [b].

For the converse, given a partition P\mathcal{P} of AA, define a∼ba \sim b iff aa and bb belong to the same block. This is plainly reflexive, symmetric and transitive, and its equivalence classes are the blocks of P\mathcal{P}. ■\blacksquare

The partition theorem is the single most useful fact in this chapter. It lets you reason at the level of classes rather than individual elements.

The classical example: integers modulo nn

Fix a positive integer nn. Define a∼ba \sim b on Z\mathbb{Z} iff n∣(a−b)n \mid (a - b). We have already verified, in the previous subtopic for n=2n = 2, that this is an equivalence relation.

The equivalence classes are

[0],[1],[2],…,[n−1][0], [1], [2], \dots, [n - 1]

and they correspond to the possible remainders on dividing by nn. The set of classes is denoted Zn\mathbb{Z}_n or Z/nZ\mathbb{Z} / n\mathbb{Z}.

For n=3n = 3 the classes are {…,−6,−3,0,3,6,… }\{\dots, -6, -3, 0, 3, 6, \dots\}, {…,−5,−2,1,4,7,… }\{\dots, -5, -2, 1, 4, 7, \dots\}, {…,−4,−1,2,5,8,… }\{\dots, -4, -1, 2, 5, 8, \dots\}. Each integer belongs to exactly one of these three sets, and the union is all of Z\mathbb{Z}.

Why the proof matters

Students often skim the partition theorem and rush to compute classes. But the idea in the proof , that overlapping classes are forced to coincide , is the trick used in nearly every JEE problem on this topic. If you can sketch the argument from memory, you can solve any problem of the form "show that the following sets are either equal or disjoint".

Worked examples

Example 1. On R\mathbb{R}, let a∼b  ⟺  a−b∈Za \sim b \iff a - b \in \mathbb{Z}. Show ∼\sim is an equivalence relation and describe the class of 13\tfrac{1}{3}.

  • Reflexive: a−a=0∈Za - a = 0 \in \mathbb{Z}.
  • Symmetric: if a−b∈Za - b \in \mathbb{Z} then b−a=−(a−b)∈Zb - a = -(a - b) \in \mathbb{Z}.
  • Transitive: (a−b)+(b−c)=a−c(a - b) + (b - c) = a - c is a sum of integers, hence an integer.

The class [13][\tfrac{1}{3}] consists of all xx with x−13∈Zx - \tfrac{1}{3} \in \mathbb{Z}, i.e., x=13+nx = \tfrac{1}{3} + n for some n∈Zn \in \mathbb{Z}. The quotient R/Z\mathbb{R} / \mathbb{Z} can be thought of as the circle.

Example 2. On A={1,2,3,4,5}A = \{1, 2, 3, 4, 5\}, R={(a,b):a,b∈A,∣a−b∣ is even}R = \{(a, b) : a, b \in A, |a - b| \text{ is even}\}. List the equivalence classes.

∣a−b∣|a - b| even means aa and bb have the same parity. The classes are

[1]={1,3,5},[2]={2,4}.[1] = \{1, 3, 5\}, \quad [2] = \{2, 4\}.

There are exactly two classes, {1,3,5}\{1, 3, 5\} and {2,4}\{2, 4\}.

Example 3. On the set of integers, let aRb  ⟺  a+ba R b \iff a + b is even. Show RR is an equivalence relation. Find the classes.

a+ba + b even means aa and bb have the same parity. Reflexive: 2a2a is even. Symmetric: obvious. Transitive: if a+ba + b and b+cb + c are both even, (a+b)+(b+c)=a+c+2b(a + b) + (b + c) = a + c + 2b is even, so a+ca + c is even.

Classes: evens and odds.

Example 4. On R2∖{(0,0)}\mathbb{R}^2 \setminus \{(0, 0)\}, define (x1,y1)∼(x2,y2)(x_1, y_1) \sim (x_2, y_2) iff there is λ>0\lambda > 0 with (x2,y2)=λ(x1,y1)(x_2, y_2) = \lambda (x_1, y_1). Show this is an equivalence relation.

Reflexive (λ=1\lambda = 1), symmetric (λ↦1/λ\lambda \mapsto 1/\lambda), transitive (product of positives is positive). The equivalence classes are open half-lines through the origin.

Example 5. On the set of all triangles, T1∼T2T_1 \sim T_2 iff T1T_1 is congruent to T2T_2. Equivalence relation? What is an equivalence class?

Yes, by reflexivity of identity, symmetry of swapping, and transitivity of composing congruences. A class consists of all triangles with the same three side lengths (and orientation if you choose).

Example 6. Let A=R×A = \mathbb{R}^\times (nonzero reals) and define a∼b  ⟺  a/b>0a \sim b \iff a/b > 0. Show this is an equivalence relation. Find the classes.

a/a=1>0a / a = 1 > 0, reflexive. If a/b>0a/b > 0 then b/a>0b/a > 0, symmetric. If a/b>0a/b > 0 and b/c>0b/c > 0, then a/c=(a/b)(b/c)>0a/c = (a/b)(b/c) > 0, transitive.

The classes are the positive reals and the negative reals. So R×/∼\mathbb{R}^\times / \sim has two elements.

Try it yourself

  1. On Z\mathbb{Z}, a∼b  ⟺  5∣(a2−b2)a \sim b \iff 5 \mid (a^2 - b^2). Is this an equivalence relation? If so, list classes.
  2. On R\mathbb{R}, a∼b  ⟺  cos⁡a=cos⁡ba \sim b \iff \cos a = \cos b. Show it is an equivalence relation. Describe [0][0].
  3. On Z\mathbb{Z}, aRb  ⟺  a+ba R b \iff a + b is divisible by 33. Is RR transitive? (Check carefully.)
  4. List all equivalence relations on {a,b,c}\{a, b, c\}.
  5. On the set of straight lines in the plane, ℓ1∼ℓ2  ⟺  ℓ1∥ℓ2\ell_1 \sim \ell_2 \iff \ell_1 \parallel \ell_2 (including equal). Is this an equivalence relation? Describe a class.
  6. Show: on N\mathbb{N}, a∼b  ⟺  a+ba \sim b \iff a + b is even is an equivalence relation. How many classes are there?
  7. On Z\mathbb{Z}, define a∼b  ⟺  a−ba \sim b \iff a - b is a multiple of 44. Find the class of 55.
  8. On R∖{0}\mathbb{R} \setminus \{0\}, define a∼b  ⟺  a⋅b>0a \sim b \iff a \cdot b > 0. Equivalence relation? Classes?
  9. Construct an equivalence relation on {1,2,3,4,5}\{1, 2, 3, 4, 5\} with exactly two classes of size 33 and 22.
  10. Prove: every equivalence class is non-empty.
  11. Show that two equivalence classes are either disjoint or equal.
  12. How many equivalence relations are there on a set of size 44? (Hint: this is the Bell number B4=15B_4 = 15.)
  13. On Z+\mathbb{Z}_+, a∼b  ⟺  a \sim b \iff the number of prime factors of aa counted with multiplicity equals that of bb. Verify ∼\sim is an equivalence relation.
  14. Show: every partition of AA gives rise to an equivalence relation by setting a∼ba \sim b iff a,ba, b lie in the same block.

Pitfalls / Tricks

  • The biggest trap: forgetting reflexivity. A symmetric and transitive relation may appear equivalence-like but can fail at elements with no incident pair.
  • When listing classes, always check the union equals AA and the classes are pairwise disjoint , that is your sanity check.
  • Two classes [a][a] and [b][b] are equal iff a∼ba \sim b; they are disjoint iff a≁ba \not\sim b. There is no middle ground.
  • The number of equivalence relations on an nn-element set equals the Bell number BnB_n: B1=1,B2=2,B3=5,B4=15,B5=52B_1 = 1, B_2 = 2, B_3 = 5, B_4 = 15, B_5 = 52. Useful for fast counting in objective questions.

Carry the partition theorem with you everywhere in this chapter: it is the cleanest way to organise messy verification problems.

Test Your Knowledge

Quick MCQ check on this chapter

Start Quiz →

AI Summary

Summarize this page in your favorite LLM