Class 12 Maths, Worked in Full Past papersGet updates
Chapter 1 · Relations and Functions

Example 5: 2∣(a−b)2 \mid (a-b) is an equivalence relation on Z\Z

ExamplesEquivalence relations · Section 1.2
The question

Show that the relation RR in the set Z\Z of integers given by R={(a,b):2 divides a−b}R = \{(a, b) : 2 \text{ divides } a - b\} is an equivalence relation.

Exam answer

Reflexive: Let a∈Za \in \Z⁠. Then a−a=0=2×0a - a = 0 = 2 \times 0⁠, so 2 divides a−aa - a and (a,a)∈R(a, a) \in R⁠. Thus RR is reflexive.

Symmetric: Let (a,b)∈R(a, b) \in R⁠. Then a−b=2ka - b = 2k for some k∈Zk \in \Z⁠. So

b−a=−(a−b)=2(−k)b - a = -(a - b) = 2(-k)

and −k∈Z-k \in \Z⁠, so 2 divides b−ab - a and (b,a)∈R(b, a) \in R⁠. Thus RR is symmetric.

Transitive: Let (a,b),(b,c)∈R(a, b), (b, c) \in R⁠. Then a−b=2ka - b = 2k and b−c=2mb - c = 2m for some k,m∈Zk, m \in \Z⁠. So

a−c=(a−b)+(b−c)=2k+2m=2(k+m)\begin{aligned} a - c &= (a - b) + (b - c) \\ &= 2k + 2m = 2(k + m) \end{aligned}

and k+m∈Zk + m \in \Z⁠, so 2 divides a−ca - c and (a,c)∈R(a, c) \in R⁠. Thus RR is transitive.

Hence RR is an equivalence relation.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

"2 divides a−ba-b" is a precise way of saying aa and bb are both even or both odd: the gap between them is an even number. To call RR 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, to show, and the plan
Given
The set Z={…,−2,−1,0,1,2,… }\Z = \{\dots,-2,-1,0,1,2,\dots\} and the rule: (a,b)∈R(a,b)\in R exactly when 2 divides a−ba-b⁠.
To show
RR is reflexive, symmetric and transitive. (An equivalence relation is, by definition, one that has all three properties.)
Plan
First turn the words "2 divides a−ba-b" 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

1What "2 divides n" means

2 divides an integer nn (written 2∣n2 \mid n⁠) when n=2kn = 2k for some integer kk⁠. So 2∣62 \mid 6 because 6=2⋅36 = 2\cdot 3⁠, and 2∣02 \mid 0 because 0=2⋅00 = 2\cdot 0⁠, but 2∤52 \nmid 5 because 5=2⋅2.55 = 2\cdot 2.5 and 2.52.5 is not an integer. Basics: integers, even and odd

2What a relation is

A relation RR in a set AA is a collection of ordered pairs (a,b)(a,b) with a,b∈Aa, b \in A⁠. We read (a,b)∈R(a,b)\in R as "aa is related to bb". Basics: what a relation is

3The three properties

Reflexive: (a,a)∈R(a,a)\in R for every aa⁠. Symmetric: (a,b)∈R⇒(b,a)∈R(a,b)\in R \Rightarrow (b,a)\in R⁠. Transitive: (a,b)∈R(a,b)\in R and (b,c)∈R⇒(a,c)∈R(b,c)\in R \Rightarrow (a,c)\in R⁠. Basics: reflexive, symmetric, transitive

4How to prove a "for every" statement

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

5Integers are "closed" under ++⁠, −- and ×\times

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 −k-k or k+mk+m still counts as "an integer kk" in the definition of divisibility.

Solution

  1. Translate the rule into an equation

    By the definition of divisibility (Basic 1),

    (a,b)∈R  ⟺  a−b=2k  for some integer k.(a,b)\in R \iff a - b = 2k \ \text{ for some integer } k.

    It helps to test the rule on a few pairs before proving anything, just to see what it says:

    Pair (a,b)(a,b)a−ba-bWritten as 2k2k⁠?In RR⁠?
    (7,3)(7,3)444=2⋅24 = 2\cdot 2⁠, k=2k=2yes
    (5,−1)(5,-1)666=2⋅36 = 2\cdot 3⁠, k=3k=3yes
    (−3,11)(-3,11)−14-14−14=2⋅(−7)-14 = 2\cdot(-7)⁠, k=−7k=-7yes
    (4,9)(4,9)−5-5−5=2⋅(−2.5)-5 = 2\cdot(-2.5)⁠, but −2.5∉Z-2.5 \notin \Zno
    Words like "divides" cannot be added or rearranged; equations can. Writing a−b=2ka-b=2k turns every question about RR into a question about integers that we can calculate with. The table shows the pattern: the pairs that belong are exactly the ones where aa and bb have the same parity (both odd or both even). In (4,9)(4,9) one is even and one is odd, and the gap is odd.
    An integer is even when it equals 2k2k for an integer kk⁠. So "2∣(a−b)2 \mid (a-b)" and "a−ba-b is even" mean exactly the same thing, and we will use both phrasings.
  2. Reflexive: is every integer related to itself?

    We must show (a,a)∈R(a,a)\in R for every a∈Za\in\Z⁠. Take any integer aa⁠. Then

    a−a=0=2⋅0.a - a = 0 = 2\cdot 0.

    Here k=0k = 0⁠, which is an integer. So 22 divides a−aa-a⁠, that is (a,a)∈R(a,a)\in R⁠. Since aa was arbitrary, this holds for every integer, and RR is reflexive.

    Reflexivity is a statement about all integers, so we use a letter aa that could be any of them. The calculation a−a=0a-a=0 never depends on which integer aa is, which is what makes the argument valid for all of them at once.
    Zero is even: 0=2⋅00 = 2 \cdot 0⁠, and 0 is an integer. Many students hesitate here, but 0 satisfies the definition of "even" exactly like 2, 4 or −6 do.
  3. Symmetric: if aa is related to bb⁠, is bb related to aa⁠?

    Suppose (a,b)∈R(a,b)\in R⁠. By Step 1 this means a−b=2ka - b = 2k for some integer kk⁠. We must show (b,a)∈R(b,a)\in R⁠, that is, that b−ab-a is also a multiple of 2. Reverse the subtraction:

    b−a=−(a−b)=−(2k)=2(−k).b - a = -(a - b) = -(2k) = 2(-k).

    Because kk is an integer, −k-k is an integer too. So b−a=2×(an integer)b - a = 2\times(\text{an integer})⁠, which means 2∣(b−a)2 \mid (b-a) and (b,a)∈R(b,a)\in R⁠. Hence RR is symmetric.

    Symmetry is an "if … then" statement, so the proof must start from the "if" part, (a,b)∈R(a,b)\in R⁠, and use it. Reversing the order of a subtraction only changes its sign: b−ab-a is always −(a−b)-(a-b)⁠. 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 kk is an integer, so is −k-k⁠. That is what lets us call −k-k "the integer" in the definition b−a=2×b-a = 2\times(integer).
  4. Transitive: does a chain of two links give a direct link?

    Suppose (a,b)∈R(a,b)\in R and (b,c)∈R(b,c)\in R⁠. Then there are integers kk and mm with

    a−b=2kandb−c=2m.a - b = 2k \qquad\text{and}\qquad b - c = 2m.

    We need information about a−ca - c⁠. Adding the two equations makes bb cancel:

    (a−b)+(b−c)=a−c,soa−c=2k+2m=2(k+m).(a - b) + (b - c) = a - c, \qquad\text{so}\qquad a - c = 2k + 2m = 2(k + m).

    Since kk and mm are integers, k+mk+m is an integer. So 2∣(a−c)2 \mid (a - c)⁠, that is (a,c)∈R(a,c)\in R⁠. Hence RR is transitive.

    This answers the textbook's "(Why?)": a−ca-c is even because it is the sum of two even numbers, and 2k+2m=2(k+m)2k + 2m = 2(k+m)⁠. We add the equations, rather than subtract or multiply them, because adding is the operation that removes the middle element bb⁠: −b+b=0-b + b = 0⁠. Getting rid of bb is the goal, since the statement we want, (a,c)∈R(a,c)\in R⁠, does not mention bb⁠.
    Closure under addition (Basic 5): the sum of two integers is an integer. Use two different letters, kk and mm⁠. The two gaps need not be the same even number (for example 11−5=611-5=6 but 5−(−3)=85-(-3)=8⁠), so writing 2k2k for both would wrongly assume they are equal.
  5. Conclude

    RR is reflexive (Step 2), symmetric (Step 3) and transitive (Step 4). A relation with all three properties is, by definition, an equivalence relation. So RR is an equivalence relation in Z\Z.

    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.
  6. What the relation sorts the integers into

    The textbook continues with an important observation. Every even integer is related to 0, since e−0=ee - 0 = e is even. No odd integer is related to 0. Likewise every odd integer is related to 1 and no even integer is. So RR splits Z\Z into exactly two groups, called equivalence classes:

    [0]={…,−4,−2,0,2,4,… }=E,[1]={…,−3,−1,1,3,5,… }=O.[0] = \{\dots,-4,-2,0,2,4,\dots\} = E, \qquad [1] = \{\dots,-3,-1,1,3,5,\dots\} = O.

    The two classes do not overlap (E∩O=∅E \cap O = \varnothing⁠) and together they make up all of Z\Z (E∪O=ZE \cup O = \Z⁠). Also [0]=[2r][0] = [2r] and [1]=[2r+1][1] = [2r+1] for every r∈Zr\in\Z⁠: any even number is a valid "name" for the even class.

    −6−4−20246 −5−3−1135 0 − (−2) = 2, even 3 − 1 = 2, even blue: class [0], the even integers gold: class [1], the odd integers
    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
Result

R={(a,b):2∣(a−b)}R = \{(a,b) : 2 \mid (a-b)\} is reflexive (a−a=0a-a=0 is even), symmetric (b−a=−(a−b)b-a = -(a-b) is even when a−ba-b is) and transitive (a−c=(a−b)+(b−c)a-c = (a-b)+(b-c) is a sum of two even numbers). It is therefore an equivalence relation on Z\Z⁠, with two equivalence classes: the even integers [0][0] and the odd integers [1][1]⁠.

Play this problem

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 ↗

Check it with numbers

Take a=11a = 11⁠, b=5b = 5⁠, c=−3c = -3⁠. Then a−b=6a-b = 6 and b−c=8b-c = 8 are both even, so (11,5)(11,5) and (5,−3)(5,-3) are in RR⁠. Transitivity predicts (11,−3)∈R(11,-3)\in R⁠. Indeed a−c=14=6+8a - c = 14 = 6 + 8⁠, which is even. A check like this does not prove anything, but it confirms the algebra in Step 4 behaves as claimed.

Common mistakes
  1. Proving by examples. Showing that (3,7)(3,7)⁠, (4,10)(4,10) and (5,5)(5,5) work proves nothing about the infinitely many other pairs. Use letters for arbitrary integers.
  2. Reading the rule backwards. "2 divides a−ba-b" means a−ba-b is a multiple of 2, not that a−ba-b is a factor of 2.
  3. Using one letter for two different multiples. In Step 4, writing a−b=2ka-b=2k and b−c=2kb-c=2k quietly assumes the two gaps are equal. Use kk and mm⁠.
  4. Assuming what you want to prove. In the symmetric step, start from (a,b)∈R(a,b)\in R and derive (b,a)∈R(b,a)\in R⁠, not the other way round.
What to take away
  1. Turn the defining rule into an equation first. Every property then becomes a short calculation.
  2. Reflexive, symmetric and transitive each reduce to one closure fact: 0 is even, −(even)-(\text{even}) is even, and even+even\text{even} + \text{even} is even.
  3. Replacing 2 by any natural number nn gives the same proof word for word: "nn divides a−ba-b" is an equivalence relation on Z\Z with nn classes [0],[1],…,[n−1][0], [1], \dots, [n-1]⁠. The textbook does n=3n = 3 right after this example.

Every fact used, and where it comes from

FactUsed inSource
2∣n  ⟺  n=2k, k∈Z2 \mid n \iff n = 2k,\ k\in\ZSteps 1–4Definition of divisibility
Reflexive, symmetric, transitive, equivalenceSteps 2–5Definitions 3 and 4, Section 1.2 (Lesson: types of relations)
0=2⋅00 = 2\cdot 0Step 20 is an integer, so 0 is even
b−a=−(a−b)b-a = -(a-b)⁠; −k∈Z-k\in\ZStep 3Arithmetic; integers closed under negation
(a−b)+(b−c)=a−c(a-b)+(b-c) = a-c⁠; k+m∈Zk+m\in\ZStep 4Arithmetic; integers closed under addition
Classes [0]=E[0]=E⁠, [1]=O[1]=OStep 6Section 1.2, note after Example 5 (Lesson: equivalence relations)
Found an error, or want more?

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 →