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 , how triangles split into similarity types, and how rational numbers like and are recognised as equal.
Definition
A relation on is an equivalence relation if it is
- reflexive,
- symmetric, and
- transitive.
For an equivalence relation we usually write instead of .
For each the equivalence class of is
The set of all equivalence classes is denoted .
The partition theorem
Theorem. If is an equivalence relation on , then the equivalence classes form a partition of . That is
- each is non-empty,
- distinct equivalence classes are disjoint,
- the union of all classes equals .
Conversely, every partition of arises from a unique equivalence relation.
Proof. Non-emptiness is immediate because by reflexivity. For (3), each lies in its own class, so the union covers .
For (2), suppose and let be common. Then and . By symmetry , and by transitivity . We now show . Take , so ; by transitivity with we get , hence . The reverse inclusion is identical, so .
For the converse, given a partition of , define iff and belong to the same block. This is plainly reflexive, symmetric and transitive, and its equivalence classes are the blocks of .
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
Fix a positive integer . Define on iff . We have already verified, in the previous subtopic for , that this is an equivalence relation.
The equivalence classes are
and they correspond to the possible remainders on dividing by . The set of classes is denoted or .
For the classes are , , . Each integer belongs to exactly one of these three sets, and the union is all of .
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 , let . Show is an equivalence relation and describe the class of .
- Reflexive: .
- Symmetric: if then .
- Transitive: is a sum of integers, hence an integer.
The class consists of all with , i.e., for some . The quotient can be thought of as the circle.
Example 2. On , . List the equivalence classes.
even means and have the same parity. The classes are
There are exactly two classes, and .
Example 3. On the set of integers, let is even. Show is an equivalence relation. Find the classes.
even means and have the same parity. Reflexive: is even. Symmetric: obvious. Transitive: if and are both even, is even, so is even.
Classes: evens and odds.
Example 4. On , define iff there is with . Show this is an equivalence relation.
Reflexive (), symmetric (), transitive (product of positives is positive). The equivalence classes are open half-lines through the origin.
Example 5. On the set of all triangles, iff is congruent to . 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 (nonzero reals) and define . Show this is an equivalence relation. Find the classes.
, reflexive. If then , symmetric. If and , then , transitive.
The classes are the positive reals and the negative reals. So has two elements.
Try it yourself
- On , . Is this an equivalence relation? If so, list classes.
- On , . Show it is an equivalence relation. Describe .
- On , is divisible by . Is transitive? (Check carefully.)
- List all equivalence relations on .
- On the set of straight lines in the plane, (including equal). Is this an equivalence relation? Describe a class.
- Show: on , is even is an equivalence relation. How many classes are there?
- On , define is a multiple of . Find the class of .
- On , define . Equivalence relation? Classes?
- Construct an equivalence relation on with exactly two classes of size and .
- Prove: every equivalence class is non-empty.
- Show that two equivalence classes are either disjoint or equal.
- How many equivalence relations are there on a set of size ? (Hint: this is the Bell number .)
- On , the number of prime factors of counted with multiplicity equals that of . Verify is an equivalence relation.
- Show: every partition of gives rise to an equivalence relation by setting iff 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 and the classes are pairwise disjoint , that is your sanity check.
- Two classes and are equal iff ; they are disjoint iff . There is no middle ground.
- The number of equivalence relations on an -element set equals the Bell number : . 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.