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 aba \sim b instead of (a,b)R(a, b) \in R.

For each aAa \in A the equivalence class of aa is

[a]={xA:xa}.[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]:aA}\{[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 aAa \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 xax \sim a and xbx \sim b. By symmetry axa \sim x, and by transitivity aba \sim b. We now show [a]=[b][a] = [b]. Take y[a]y \in [a], so yay \sim a; by transitivity with aba \sim b we get yby \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 aba \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 aba \sim b on Z\mathbb{Z} iff n(ab)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],,[n1][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 ab    abZa \sim b \iff a - b \in \mathbb{Z}. Show \sim is an equivalence relation and describe the class of 13\tfrac{1}{3}.

  • Reflexive: aa=0Za - a = 0 \in \mathbb{Z}.
  • Symmetric: if abZa - b \in \mathbb{Z} then ba=(ab)Zb - a = -(a - b) \in \mathbb{Z}.
  • Transitive: (ab)+(bc)=ac(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 x13Zx - \tfrac{1}{3} \in \mathbb{Z}, i.e., x=13+nx = \tfrac{1}{3} + n for some nZn \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,bA,ab is even}R = \{(a, b) : a, b \in A, |a - b| \text{ is even}\}. List the equivalence classes.

ab|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, T1T2T_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 ab    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}, ab    5(a2b2)a \sim b \iff 5 \mid (a^2 - b^2). Is this an equivalence relation? If so, list classes.
  2. On R\mathbb{R}, ab    cosa=cosba \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, 12    12\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}, ab    a+ba \sim b \iff a + b is even is an equivalence relation. How many classes are there?
  7. On Z\mathbb{Z}, define ab    aba \sim b \iff a - b is a multiple of 44. Find the class of 55.
  8. On R{0}\mathbb{R} \setminus \{0\}, define ab    ab>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}_+, ab    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 aba \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 aba \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.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Equivalence relations
6 questions · pick the best answer
Q1

Q2

Q3

Q4

Q5

Q6