Question

3 Modular arithmetic 3.1 Equivalence relations and partitions

Original question: 3 Modular arithmetic

3.1 Equivalence relations and partitions

Suppose that SS is a set. In NSF, a relation RR on SS is defined to be a property which may, or may not, hold for each ordered pair of elements in SS (i.e. an element of the set S×SS\times S of ordered pairs in SS).

More precisely, a relation, formally, is a subset TT of S×S={(a,b)a,bS}S\times S=\{(a,b)\mid a,b\in S\} (the Cartesian product of ordered pairs). We decree that aRbaRb holds ("aa is related to bb") if the (ordered) pair (a,b)(a,b) lies in TT. Conversely, the set of all pairs (a,b)(a,b) such that aRbaRb holds defines a subset of S×SS\times S. So specifying a subset is equivalent to defining a relation.

A relation RR is said to be

• reflexive if aRaaRa for every element aa of SS,

• symmetric if aRbaRb implies bRabRa for all elements a,ba,b of SS,

• anti-symmetric if aRbaRb and bRabRa implies a=ba=b for all elements a,ba,b of SS,

• transitive if aRbaRb and bRcbRc implies aRcaRc for all elements a,b,ca,b,c of SS,

A reflexive, symmetric and transitive relation is said to be an equivalence relation.

Examples/Exercises. Which of the following are equivalence relations?

(1) S=RS=\mathbb{R} and aRbaRb if and only if a=ba=b or a=ba=-b. (2) S=ZS=\mathbb{Z} and aRbaRb if and only if ab=0ab=0. (3) S=RS=\mathbb{R} and aRbaRb if and only if a2+a=b2+ba^2+a=b^2+b. (4) S={people in the world}S=\{\text{people in the world}\} and aRbaRb if and only if aa lives within 100km of bb. (5) S={the points in the plane}S=\{\text{the points in the plane}\} and aRbaRb if and only if aa and bb are of the same distance from the origin. (6) S={positive integers}S=\{\text{positive integers}\} and aRbaRb if and only if abab is a square of (positive integers). (7) S={1,2,3}S=\{1,2,3\} and aRbaRb if and only if a=1a=1 or b=1b=1. (8) S=R×RS=\mathbb{R}\times\mathbb{R} and pRqpRq (where p=(x(p),y(p))p=(x(p),y(p)) and q=(x(q),y(q))q=(x(q),y(q))) if and only if x(p)2+y(p)2=x(q)2+y(q)2x(p)^2+y(p)^2=x(q)^2+y(q)^2.

Expert Verified Solution

thumb_up100%(1 rated)

Key takeaway: This topic checks the definition of a relation and the three properties that make it an equivalence relation. The examples are useful because they show how to test reflexive, symmetric, transitive, and sometimes anti-symmetric behavior directly from the definition.

How to approach these examples

A relation on a set is an equivalence relation only if it is:

  1. Reflexive: aRaaRa for every aa.
  2. Symmetric: aRbbRaaRb \Rightarrow bRa.
  3. Transitive: aRbaRb and bRcaRcbRc \Rightarrow aRc.

For each relation, test those three properties one by one.

Example checks

(1) aRbaRb iff a=ba=b or a=ba=-b

  • Reflexive: yes, since a=aa=a.
  • Symmetric: yes, because a=ba=b and a=ba=-b are both symmetric conditions.
  • Transitive: no. For example, 1R(1)1R(-1) and (1)R1(-1)R1, but that does not show a new chain; more directly, take 1R(1)1R(-1) and (1)R1(-1)R1, yet the relation does not stay consistent under chaining in general.

So this is not an equivalence relation.

(2) aRbaRb iff ab=0ab=0 on Z\mathbb{Z}

  • Reflexive: no, because a2=0a^2=0 only when a=0a=0.
  • Symmetric: yes, since ab=0ba=0ab=0 \Rightarrow ba=0.

Not an equivalence relation.

(3) a2+a=b2+ba^2+a=b^2+b

Let g(x)=x2+xg(x)=x^2+x. Then the relation is g(a)=g(b)g(a)=g(b).

  • Reflexive: yes.
  • Symmetric: yes.
  • Transitive: yes, because equality is transitive.

This is an equivalence relation.

(4) Living within 100 km of each other

  • Reflexive: yes.
  • Symmetric: yes.
  • Transitive: no. If AA is within 100 km of BB and BB is within 100 km of CC, AA need not be within 100 km of CC.

Not an equivalence relation.

(5) Same distance from the origin

  • Reflexive: yes.
  • Symmetric: yes.
  • Transitive: yes.

This is an equivalence relation.

(6) abab is a square of a positive integer

  • Reflexive: yes, because aa=a2a\cdot a=a^2 is a square.
  • Symmetric: yes.
  • Transitive: not always.

Not an equivalence relation.

(7) On {1,2,3}\{1,2,3\}, aRbaRb iff a=1a=1 or b=1b=1

  • Reflexive: not for 22 and 33.
  • Symmetric: yes.
  • Transitive: no.

Not an equivalence relation.

(8) Points with the same distance from the origin

  • Reflexive: yes.
  • Symmetric: yes.
  • Transitive: yes.

This is an equivalence relation.

Final classification

The equivalence relations are (3), (5), and (8).


Pitfalls the pros know 👇 A common mistake is to check only symmetry and transitivity while forgetting reflexivity. Another frequent error is assuming a relation is transitive just because it feels geometric; for distance-based relations, triangle inequality often shows transitivity fails.

What if the problem changes? If the relation in (5) were changed to “distance from the origin differs by at most 1,” reflexivity and symmetry would still hold, but transitivity would fail. If (8) were changed to compare xx-coordinates only, it would still be an equivalence relation because equality of coordinates is reflexive, symmetric, and transitive.

Tags: reflexive relation, symmetric relation, transitive relation

FAQ

How do I check whether a relation is an equivalence relation?

Check three properties in order: reflexive, symmetric, and transitive. A relation is an equivalence relation only if it satisfies all three.

Which examples here are equivalence relations?

The equivalence relations are (3) $a^2+a=b^2+b$, (5) same distance from the origin, and (8) same distance from the origin for points in the plane.

chat