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

Example 19: (x,y) R (u,v)  ⟺  xv=yu(x,y)\,R\,(u,v) \iff xv=yu

ExamplesEquivalence relations · Miscellaneous Examples
The question

Let RR be a relation on the set AA of ordered pairs of positive integers defined by (x,y) R (u,v)(x, y)\,R\,(u, v) if and only if xv=yuxv = yu⁠. Show that RR is an equivalence relation.

Exam answer

Reflexive: Let (x,y)∈A(x, y) \in A⁠. Since xy=yxxy = yx⁠, (x,y) R (x,y)(x, y)\,R\,(x, y)⁠. Thus RR is reflexive.

Symmetric: Let (x,y) R (u,v)(x, y)\,R\,(u, v)⁠. Then xv=yu⇒uy=vxxv = yu \Rightarrow uy = vx⁠, so (u,v) R (x,y)(u, v)\,R\,(x, y)⁠. Thus RR is symmetric.

Transitive: Let (x,y) R (u,v)(x, y)\,R\,(u, v) and (u,v) R (a,b)(u, v)\,R\,(a, b)⁠. Then xv=yuxv = yu and ub=vaub = va⁠. Multiplying,

xv⋅ub=yu⋅va⇒ xb⋅uv=ya⋅uv⇒ xb=ya[as uv≠0]\begin{aligned} xv \cdot ub &= yu \cdot va \\ \Rightarrow\ xb \cdot uv &= ya \cdot uv \\ \Rightarrow\ xb &= ya \quad [\text{as } uv \ne 0] \end{aligned}

So (x,y) R (a,b)(x, y)\,R\,(a, b)⁠. 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

Because yy and vv are positive, we may divide by them: xv=yu  ⟺  xy=uvxv = yu \iff \dfrac{x}{y} = \dfrac{u}{v}⁠. So two pairs are related exactly when they give the same fraction: (1,2)(1,2)⁠, (2,4)(2,4) and (3,6)(3,6) are all "one half". "Has the same value as" is obviously reflexive, symmetric and transitive. The proof below writes this out using only multiplication of integers, and the one place where care is needed is the transitive step, where we cancel a non-zero factor. That is where "positive integers" is used.

Given, to show, and the plan
Given
The set AA of all ordered pairs (x,y)(x,y) with xx and yy positive integers, and the rule (x,y) R (u,v)  ⟺  xv=yu(x,y)\,R\,(u,v) \iff xv = yu⁠.
To show
RR is reflexive, symmetric and transitive on AA⁠.
Plan
(1) Get a feel for the rule with a few pairs. (2) Reflexive: compare (x,y)(x,y) with itself. (3) Symmetric: rewrite xv=yuxv=yu the other way round. (4) Transitive: combine two equations and cancel a positive factor. (5) Conclude and describe the classes.

Basics you need

1The elements here are pairs

The set AA consists of ordered pairs such as (2,3)(2,3)⁠. The relation RR relates one pair to another pair. So a typical element of RR is a "pair of pairs", ((x,y),(u,v))\big((x,y),(u,v)\big)⁠. Basics: sets and ordered pairs

2The three properties

Reflexive: every element is related to itself. Symmetric: P R Q⇒Q R PP\,R\,Q \Rightarrow Q\,R\,P⁠. Transitive: P R QP\,R\,Q and Q R S⇒P R SQ\,R\,S \Rightarrow P\,R\,S⁠. Here P,Q,SP, Q, S are pairs. Basics: reflexive, symmetric, transitive

3Multiplication of integers

It is commutative (xy=yxxy = yx⁠) and associative, and we may multiply both sides of an equation by the same number. If pk=qkpk = qk and k≠0k \ne 0⁠, then p=qp = q (cancellation). Basics: integers

4Equal fractions

For non-zero y,vy, v⁠: xy=uv  ⟺  xv=yu\dfrac{x}{y} = \dfrac{u}{v} \iff xv = yu (cross-multiplication).

5Arbitrary elements

Each property is a "for all" statement, so it must be proved for arbitrary pairs written with letters, never just for examples. Basics: proving and disproving

Solution

  1. Try the rule on a few pairs

    (x,y)(x,y) and (u,v)(u,v)xvxvyuyuRelated?
    (1,2)(1,2) and (3,6)(3,6)1⋅6=61\cdot 6 = 62⋅3=62\cdot 3 = 6yes
    (3,6)(3,6) and (5,10)(5,10)3⋅10=303\cdot 10 = 306⋅5=306\cdot 5 = 30yes
    (2,3)(2,3) and (4,6)(4,6)2⋅6=122\cdot 6 = 123⋅4=123\cdot 4 = 12yes
    (1,2)(1,2) and (2,1)(2,1)1⋅1=11\cdot 1 = 12⋅2=42\cdot 2 = 4no

    The related pairs are those with the same ratio: 12=36=510\frac12 = \frac36 = \frac{5}{10}⁠, 23=46\frac23 = \frac46⁠, but 12≠21\frac12 \ne \frac21⁠.

    The condition xv=yuxv = yu is the cross-multiplied form of xy=uv\frac{x}{y} = \frac{u}{v} (Basic 4). Seeing this first tells us what to expect, an equivalence relation, and what the classes will look like. The proof itself will use only the integer equation xv=yuxv = yu⁠.
    Cross-multiplication: xy=uv  ⟺  xv=yu\frac{x}{y} = \frac{u}{v} \iff xv = yu⁠, valid when y≠0y \ne 0 and v≠0v \ne 0⁠.
  2. Reflexive: (x,y) R (x,y)(x,y)\,R\,(x,y)

    Take any (x,y)∈A(x,y)\in A⁠. To compare it with itself, put u=xu = x and v=yv = y in the rule. The condition becomes

    xy=yx,xy = yx,

    which is true because multiplication of integers is commutative. So (x,y) R (x,y)(x,y)\,R\,(x,y) for every (x,y)∈A(x,y)\in A⁠, and RR is reflexive.

    The rule compares two pairs, (x,y)(x,y) and (u,v)(u,v)⁠. Reflexivity compares a pair with itself, so the second pair is the same as the first: u=xu = x⁠, v=yv = y⁠. The resulting equation xy=yxxy = yx holds for all integers, so no particular pair is needed.
    Commutativity: xy=yxxy = yx for all integers x,yx, y (Basic 3).
  3. Symmetric: swap the two pairs

    Suppose (x,y) R (u,v)(x,y)\,R\,(u,v)⁠, so xv=yuxv = yu⁠. We must show (u,v) R (x,y)(u,v)\,R\,(x,y)⁠. By the rule (with the roles of the pairs swapped), that means uy=vxuy = vx⁠. Now

    xv=yu ⟹ yu=xv ⟹ uy=vx,xv = yu \ \Longrightarrow\ yu = xv \ \Longrightarrow\ uy = vx,

    reading the equation from right to left, then using commutativity on each side. So (u,v) R (x,y)(u,v)\,R\,(x,y)⁠, and RR is symmetric.

    The main care here is getting the target right. "(u,v) R (x,y)(u,v)\,R\,(x,y)" puts (u,v)(u,v) first, so in the rule "first-entry of the first pair times second-entry of the second pair equals second-entry of the first pair times first-entry of the second pair" we get u⋅y=v⋅xu\cdot y = v\cdot x⁠. Once that is written down, it is the given equation rearranged.
    An equation can be read in either direction (p=q⇒q=pp = q \Rightarrow q = p⁠), and yu=uyyu = uy⁠, xv=vxxv = vx⁠.
  4. Transitive: combine and cancel

    Suppose (x,y) R (u,v)(x,y)\,R\,(u,v) and (u,v) R (a,b)(u,v)\,R\,(a,b)⁠. Then

    xv=yuandub=va.xv = yu \qquad\text{and}\qquad ub = va.

    We want (x,y) R (a,b)(x,y)\,R\,(a,b)⁠, that is xb=yaxb = ya⁠. Multiply the two equations side by side (left times left, right times right):

    (xv)(ub)=(yu)(va).(xv)(ub) = (yu)(va).

    Rearrange each side, using commutativity and associativity, so that the factor uvuv stands out:

    (xb)(uv)=(ya)(uv).(xb)(uv) = (ya)(uv).

    Since uu and vv are positive integers, uv>0uv > 0⁠, so uv≠0uv \ne 0 and we may cancel it:

    xb=ya.xb = ya.

    Hence (x,y) R (a,b)(x,y)\,R\,(a,b)⁠, and RR is transitive.

    We need a relation between x,yx, y and a,ba, b only, so the middle pair's entries u,vu, v must be removed. Multiplying the two equations makes both uu and vv appear on each side, as the common factor uvuv⁠; cancelling it removes them. Cancelling is only allowed for a non-zero factor, and this is exactly where the question's word positive is used. The textbook does the same thing in another way: from ub=vaub = va it gets au=bv\frac{a}{u} = \frac{b}{v}⁠, multiplies xv=yuxv = yu by au\frac{a}{u}⁠, replaces au\frac{a}{u} on the left by bv\frac{b}{v}⁠, and simplifies xv⋅bv=yu⋅auxv\cdot\frac{b}{v} = yu\cdot\frac{a}{u} to xb=yaxb = ya⁠. Both routes divide by uu and vv⁠.
    Cancellation: if pk=qkpk = qk and k≠0k \ne 0⁠, then p=qp = q (Basic 3). Multiplying equal quantities by equal quantities gives equal results.
  5. Conclude, and describe the classes

    RR is reflexive, symmetric and transitive, so RR is an equivalence relation on AA.

    By Step 1, (x,y) R (u,v)(x,y)\,R\,(u,v) means xy=uv\frac{x}{y} = \frac{u}{v}⁠. So each equivalence class is the set of all pairs that represent one positive fraction. For example

    [(1,2)]={(1,2),(2,4),(3,6),… }={(k,2k):k∈N}.[(1,2)] = \{(1,2), (2,4), (3,6), \dots\} = \{(k, 2k) : k \in \N\}.
    112233445566xy0class of (1, 2): y = 2xclass of (1, 1): y = xclass of (2, 3): 3x = 2yclass of (2, 1): x = 2yother pairs (other classes)
    Each dot is a pair (x,y)(x,y) with 1≤x,y≤61 \le x, y \le 6⁠. Pairs in the same class have the same ratio, so they lie on one straight line through the origin: for example (1,2),(2,4),(3,6)(1,2), (2,4), (3,6) on the blue line y=2xy = 2x⁠. Different lines through the origin never share a dot, so the classes do not overlap.
    This is the real meaning of the relation: it treats (1,2)(1,2) and (2,4)(2,4) as "the same" because they describe the same fraction 12\frac12⁠. In fact, this is one standard way of constructing the positive rational numbers from pairs of integers. The picture also shows the partition: every dot lies on exactly one line through the origin.
    An equivalence relation splits the set into disjoint classes. Basics: equivalence classes
Result

RR is reflexive (xy=yxxy = yx⁠), symmetric (xv=yu⇒uy=vxxv = yu \Rightarrow uy = vx⁠) and transitive (multiply xv=yuxv = yu by ub=vaub = va and cancel the positive factor uvuv to get xb=yaxb = ya⁠). Therefore RR is an equivalence relation on AA⁠, as the textbook shows. Its classes are the sets of pairs with a common ratio xy\frac{x}{y}⁠.

Check it with numbers

From the table: (1,2) R (3,6)(1,2)\,R\,(3,6) and (3,6) R (5,10)(3,6)\,R\,(5,10)⁠. Transitivity predicts (1,2) R (5,10)(1,2)\,R\,(5,10)⁠: 1⋅10=101\cdot 10 = 10 and 2⋅5=102\cdot 5 = 10⁠. ✓ In the cancellation step, x=1x=1⁠, y=2y=2⁠, u=3u=3⁠, v=6v=6⁠, a=5a=5⁠, b=10b=10⁠: (xv)(ub)=6⋅30=180(xv)(ub) = 6\cdot 30 = 180 and (yu)(va)=6⋅30=180(yu)(va) = 6 \cdot 30 = 180⁠, uv=18uv = 18⁠, and 180/18=10=xb=ya180/18 = 10 = xb = ya⁠. ✓ The verification script also tests all three properties by brute force on every pair with entries from 1 to 12 (144 pairs, and for transitivity every chain P R QP\,R\,Q⁠, Q R SQ\,R\,S among them).

Common mistakes
  1. Cancelling without checking the factor is non-zero. If 0 were allowed as an entry, transitivity would fail: (1,0) R (0,0)(1,0)\,R\,(0,0) since 1⋅0=0⋅01\cdot 0 = 0\cdot 0⁠, and (0,0) R (0,1)(0,0)\,R\,(0,1) since 0⋅1=0⋅00\cdot 1 = 0\cdot 0⁠, but (1,0)(1,0) is not related to (0,1)(0,1) since 1⋅1≠0⋅01\cdot 1 \ne 0\cdot 0⁠. Positivity is essential.
  2. Getting the target of the symmetric step wrong. (u,v) R (x,y)(u,v)\,R\,(x,y) means uy=vxuy = vx⁠, not ux=vyux = vy⁠.
  3. Proving transitivity with fractions without saying why division is allowed. Writing xy=uv=ab\frac{x}{y} = \frac{u}{v} = \frac{a}{b} is fine, but only because y,v,b≠0y, v, b \ne 0⁠; say so.
  4. Treating AA as a set of numbers. Its elements are pairs, and RR relates pair to pair.
What to take away
  1. xv=yuxv = yu is "equal ratios" in disguise. Recognising the hidden meaning tells you what to expect before you prove it.
  2. To eliminate the middle element in a transitivity proof, combine the two equations so that its entries appear as a common factor, then cancel, after checking the factor is non-zero.
  3. Conditions such as "positive" in a question are there for a reason. Find the step that uses them.

Every fact used, and where it comes from

FactUsed inSource
Reflexive, symmetric, transitive; equivalence relationSteps 2–5Definitions 3 and 4, Section 1.2 (Lesson: types of relations)
Commutativity and associativity of multiplicationSteps 2–4Properties of integers
Cancellation of a non-zero factorStep 4Properties of integers (uv≠0uv \ne 0 since u,v>0u, v > 0⁠)
xy=uv  ⟺  xv=yu\frac{x}{y} = \frac{u}{v} \iff xv = yu for y,v≠0y, v \ne 0Steps 1, 5Equality of fractions
Equivalence classes partition the setStep 5Section 1.2, after Example 5 (Lesson: equivalence relations)
Table values, the zero counterexample, brute-force checksStep 1, Check, MistakesRecomputed in the site's verification script
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 →