Equivalence classes: group objects without making the rule ambiguous
Derive partitions from equivalence relations and test whether a rule on classes is well-defined.
On this page
The question for today
What you’ll understand
- Check reflexivity, symmetry, and transitivity separately.
- Explain why equivalence classes form disjoint covering blocks.
- Test a proposed operation for dependence on its chosen representative.
Fractions such as one half and two quarters are different written pairs but represent the same rational number. Modular arithmetic similarly groups integers by remainder. In both cases, mathematics keeps distinctions relevant to a question and deliberately forgets others. An equivalence relation makes this forgetting consistent: every original object lands in one block, and choosing a different name for the same block must not change any quantity claimed to belong to the block itself.
Three conditions create coherent sameness
Reflexivity says every object is related to itself. Symmetry says that relatedness can be reversed. Transitivity says that two compatible links can be joined. None of these conditions follows automatically from the everyday word similar. Being within one meter is reflexive and symmetric for positions on a line, but not transitive: a chain of short gaps can connect endpoints farther than a meter apart. Such a relation cannot define consistent classes of nearby points.
For a genuine equivalence relation, the class of an object consists of everything related to it. Reflexivity ensures the object belongs to its own class. If two classes share an element, symmetry and transitivity imply that every member of either class belongs to the other, so the classes are equal. Therefore two equivalence classes are either identical or disjoint; they never partially overlap. This is a consequence to prove, not an extra axiom to memorize.
Partitions and equivalence relations describe each other
A partition is a family of nonempty, pairwise disjoint subsets whose union is the whole set. Starting from a partition, define two objects to be related exactly when they lie in the same block. Every object has a block, so reflexivity holds; sharing a block is symmetric; and disjointness makes a shared middle object's block unique, giving transitivity. Thus partitions and equivalence relations are two descriptions of the same organizing information.
The quotient set is the set of classes, not the union of their elements. For integers modulo three, it has three elements: the zero-remainder class, the one-remainder class, and the two-remainder class. Each of those elements is itself an infinite set of integers. Choosing the representatives zero, one, and two is convenient, but choosing three, four, and five would name the same three classes. Representatives are labels, not the underlying class objects.
A class-level formula must ignore the representative
To define a function on classes, start with a rule on representatives and prove equivalent representatives give the same result. The map taking an integer's class modulo three to its remainder is well-defined. The proposed map taking that class to the integer's square is not: zero and three represent the same class but have different squares. The notation using brackets cannot repair this dependence; a proof of independence is required.
Some operations become well-defined when their outputs are also classes. Sending a class to the class of the representative's square works modulo three: if a minus b is divisible by three, then a squared minus b squared equals their difference times their sum and is also divisible by three. The output integers may differ, but their classes agree. Always identify whether equality is being demanded for original objects or for quotient objects; those are different standards.
Work it through
Build a finite quotient by parity
On A = {0,1,2,3,4,5}, relate a and b when a − b is even. Find the classes and decide whether class-to-parity is well-defined.
Check the relation: a − a = 0 is even; negating an even difference preserves evenness; adding two even differences proves transitivity.
The class of 0 is {0,2,4}, and the class of 1 is {1,3,5}. Every element of A lies in exactly one of these two nonempty blocks.
Assign output 0 to an even representative and 1 to an odd representative. Equivalent inputs differ by an even number, so their parity agrees and the assigned output does not depend on the representative.
The quotient has two elements, each a three-element class. The parity function on this quotient is well-defined and bijective to {0,1}.
The living notebook
Explore the model
Interactive lab · function
Fibers of a function form classes
Fix a nonzero coefficient a in . Declare x equivalent to y when their displayed outputs agree. Compare opposite positions and predict their shared class. This gives classes except the singleton at zero; with a=0 every input joins one class. The lab shows selected outputs rather than a complete quotient diagram.
- y at chosen x
- 0.608
- Tangent slope · 2ax
- 1.35
- Signed area · ax³/3
- 0.182
This lab uses only y = ax². Playback traces the curve within the fixed integration interval from 0 to x; it does not estimate numerical error or change the chosen point. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forEquality of outputs always defines an equivalence relation on a function's domain.
Pause & reason
Check your understanding
Your turn
Try it yourself
On integers modulo four, test the proposed rule F([a]) = [2a + 1]. Then test G([a]) = a as an integer-valued rule.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Replace a with b where a − b is a multiple of four and compare the two proposed outputs.
Compare with the solution
F is well-defined because (2a + 1) − (2b + 1) = 2(a − b), still a multiple of four. Thus equivalent representatives give equal output classes. G fails: 0 and 4 lie in the same input class but give different integer outputs. Choosing a preferred representative could define another function, but the unrestricted formula G([a]) = a does not do so.
Keep the idea
Take it with you
- Equivalence relations require reflexivity, symmetry, and transitivity.
- Their classes are nonempty disjoint blocks covering the original set.
- A formula on classes needs a proof that replacing representatives changes no output class.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.