Example 5: is an equivalence relation on
Show that the relation in the set of integers given by is an equivalence relation.
Reflexive: Let . Then , so 2 divides and . Thus is reflexive.
Symmetric: Let . Then for some . So
and , so 2 divides and . Thus is symmetric.
Transitive: Let . Then and for some . So
and , so 2 divides and . Thus is transitive.
Hence is an equivalence relation.
Want the reason behind every step, the basics and the checks?
"2 divides " is a precise way of saying and are both even or both odd: the gap between them is an even number. To call an equivalence relation we must check three separate properties (reflexive, symmetric, transitive), and each one turns out to rest on a single fact about even numbers: 0 is even, the negative of an even number is even, and the sum of two even numbers is even. The whole proof is those three facts, written carefully.
- Given
- The set and the rule: exactly when 2 divides .
- To show
- is reflexive, symmetric and transitive. (An equivalence relation is, by definition, one that has all three properties.)
- Plan
- First turn the words "2 divides " into an equation we can calculate with. Then test each property in turn for arbitrary integers, never for a few chosen ones.
Basics you need
2 divides an integer (written ) when for some integer . So because , and because , but because and is not an integer. Basics: integers, even and odd
A relation in a set is a collection of ordered pairs with . We read as " is related to ". Basics: what a relation is
Reflexive: for every . Symmetric: . Transitive: and . Basics: reflexive, symmetric, transitive
Checking a few cases is never a proof, because the next case might fail. Instead, take an arbitrary element (a letter that could stand for any integer) and argue using only facts true of every integer. Basics: proving and disproving
Add, subtract or multiply two integers and the answer is again an integer. Steps 3 and 4 depend on this: it is the reason a quantity like or still counts as "an integer " in the definition of divisibility.
Solution
Translate the rule into an equation
By the definition of divisibility (Basic 1),
It helps to test the rule on a few pairs before proving anything, just to see what it says:
Pair Written as ? In ? , yes , yes , yes , but no Words like "divides" cannot be added or rearranged; equations can. Writing turns every question about into a question about integers that we can calculate with. The table shows the pattern: the pairs that belong are exactly the ones where and have the same parity (both odd or both even). In one is even and one is odd, and the gap is odd.An integer is even when it equals for an integer . So "" and " is even" mean exactly the same thing, and we will use both phrasings.Reflexive: is every integer related to itself?
We must show for every . Take any integer . Then
Here , which is an integer. So divides , that is . Since was arbitrary, this holds for every integer, and is reflexive.
Reflexivity is a statement about all integers, so we use a letter that could be any of them. The calculation never depends on which integer is, which is what makes the argument valid for all of them at once.Zero is even: , and 0 is an integer. Many students hesitate here, but 0 satisfies the definition of "even" exactly like 2, 4 or −6 do.Symmetric: if is related to , is related to ?
Suppose . By Step 1 this means for some integer . We must show , that is, that is also a multiple of 2. Reverse the subtraction:
Because is an integer, is an integer too. So , which means and . Hence is symmetric.
Symmetry is an "if … then" statement, so the proof must start from the "if" part, , and use it. Reversing the order of a subtraction only changes its sign: is always . The gap from 5 to −1 is 6 and the gap from −1 to 5 is −6, so both are even.Closure under negation (Basic 5): if is an integer, so is . That is what lets us call "the integer" in the definition (integer).Transitive: does a chain of two links give a direct link?
Suppose and . Then there are integers and with
We need information about . Adding the two equations makes cancel:
Since and are integers, is an integer. So , that is . Hence is transitive.
This answers the textbook's "(Why?)": is even because it is the sum of two even numbers, and . We add the equations, rather than subtract or multiply them, because adding is the operation that removes the middle element : . Getting rid of is the goal, since the statement we want, , does not mention .Closure under addition (Basic 5): the sum of two integers is an integer. Use two different letters, and . The two gaps need not be the same even number (for example but ), so writing for both would wrongly assume they are equal.Conclude
is reflexive (Step 2), symmetric (Step 3) and transitive (Step 4). A relation with all three properties is, by definition, an equivalence relation. So is an equivalence relation in .
The definition of an equivalence relation is just the list of these three properties. Once each has been proved for arbitrary elements, nothing more is needed.What the relation sorts the integers into
The textbook continues with an important observation. Every even integer is related to 0, since is even. No odd integer is related to 0. Likewise every odd integer is related to 1 and no even integer is. So splits into exactly two groups, called equivalence classes:
The two classes do not overlap () and together they make up all of (). Also and for every : any even number is a valid "name" for the even class.
Every blue number is related to every other blue number, and every gold number to every other gold number. No blue number is related to a gold one: an even minus an odd is always odd. This is the real meaning of an equivalence relation: it sorts a set into non-overlapping groups of "equivalent" elements. Here the property being shared is parity. The textbook uses this example to introduce equivalence classes for exactly that reason.For any equivalence relation, the equivalence classes partition the set: they are disjoint and their union is the whole set. Basics: equivalence classes
is reflexive ( is even), symmetric ( is even when is) and transitive ( is a sum of two even numbers). It is therefore an equivalence relation on , with two equivalence classes: the even integers and the odd integers .
Class Catcher, in the chapter’s Games tab. Level 3 is this example: sort integers, negatives and 0 included, by 2 | (a − b). Play Class Catcher ↗
Take , , . Then and are both even, so and are in . Transitivity predicts . Indeed , which is even. A check like this does not prove anything, but it confirms the algebra in Step 4 behaves as claimed.
- Proving by examples. Showing that , and work proves nothing about the infinitely many other pairs. Use letters for arbitrary integers.
- Reading the rule backwards. "2 divides " means is a multiple of 2, not that is a factor of 2.
- Using one letter for two different multiples. In Step 4, writing and quietly assumes the two gaps are equal. Use and .
- Assuming what you want to prove. In the symmetric step, start from and derive , not the other way round.
- Turn the defining rule into an equation first. Every property then becomes a short calculation.
- Reflexive, symmetric and transitive each reduce to one closure fact: 0 is even, is even, and is even.
- Replacing 2 by any natural number gives the same proof word for word: " divides " is an equivalence relation on with classes . The textbook does right after this example.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| Steps 1–4 | Definition of divisibility | |
| Reflexive, symmetric, transitive, equivalence | Steps 2–5 | Definitions 3 and 4, Section 1.2 (Lesson: types of relations) |
| Step 2 | 0 is an integer, so 0 is even | |
| ; | Step 3 | Arithmetic; integers closed under negation |
| ; | Step 4 | Arithmetic; integers closed under addition |
| Classes , | Step 6 | Section 1.2, note after Example 5 (Lesson: equivalence relations) |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →