Relations — The Three Properties and Equivalence

A relation RR from a set AA to itself is any subset of A×AA \times A; (a,b)R(a, b) \in R is written aRbaRb. On a set with nn elements there are 2n22^{n^2} possible relations — the two extremes being the empty relation (no pair related) and the universal relation (every pair related). Everything the board asks about relations comes down to three properties, each with a precise test:

  1. Reflexive: (a,a)R(a, a) \in R for every aAa \in A. One missing diagonal pair breaks it.
  2. Symmetric: whenever (a,b)R(a, b) \in R, also (b,a)R(b, a) \in R. Test every pair; one one-way pair breaks it.
  3. Transitive: whenever (a,b)R(a, b) \in R and (b,c)R(b, c) \in R, also (a,c)R(a, c) \in R. The chains must close.

A relation with all three properties is an equivalence relation — the chapter's central definition, and the single most-asked proof in board papers.

Reflexive, symmetric and transitive properties illustrated with arrow diagrams

How to write the proof for full marks: take arbitrary elements, verify each property from the defining condition (never from a few examples), and state the conclusion. For "divisible by" conditions the three checks almost write themselves: aa=0a - a = 0 is divisible by anything (reflexive); if kk divides aba - b it divides ba=(ab)b - a = -(a-b) (symmetric); if kk divides aba - b and bcb - c it divides their sum aca - c (transitive).

Equivalence classes

An equivalence relation slices AA into disjoint equivalence classes: [a]={xA:xRa}[a] = \{x \in A : xRa\}, the set of everything related to aa. Two facts carry the marks:

  1. Classes are either identical or disjoint — they partition the set.
  2. [a]=[b][a] = [b] exactly when aRbaRb.

Standard specimen: on Z\mathbb{Z}, aRbaRb iff 33 divides aba - b gives exactly three classes [0],[1],[2][0], [1], [2] — the possible remainders. With "ab\vert a - b \vert is even", the two classes are the odds and the evens: all odd numbers are related to each other, all evens to each other, and never across.

Frequent one-mark traps: symmetric-and-transitive does not force reflexive (the element might relate to nothing at all); the smallest equivalence relation containing a given pair (1,2)(1, 2) on {1,2,3}\{1, 2, 3\} needs exactly the diagonal plus (1,2)(1,2) and (2,1)(2,1) — five pairs; and a relation can be reflexive and transitive without being symmetric (aba \leq b is the standing example).

Worked Examples — Relations

Example 1 — A relation with none of the properties

Check the three properties for R={(a,b):b=a+1}R = \{(a, b) : b = a + 1\} on A={1,2,3,4,5,6}A = \{1, 2, 3, 4, 5, 6\}.

Step 1 — reflexive? (1,1)(1, 1) would need 1=1+11 = 1 + 1 — false. Not reflexive.

Step 2 — symmetric? (1,2)R(1, 2) \in R but (2,1)(2, 1) would need 1=31 = 3 — false. Not symmetric.

Step 3 — transitive? (1,2)(1, 2) and (2,3)(2, 3) are in RR, but (1,3)(1, 3) would need 3=23 = 2 — false. Not transitive.

Answer: neither reflexive, nor symmetric, nor transitive — one concrete failing pair is a complete disproof for each property.

Example 2 — The divisibility template, in full

Show that RR on Z\mathbb{Z}, defined by aRbaRb iff 22 divides aba - b, is an equivalence relation, and find its equivalence classes.

Step 1 — reflexive: aa=0=20a - a = 0 = 2 \cdot 0, divisible by 22. ✓

Step 2 — symmetric: if ab=2ka - b = 2k then ba=2(k)b - a = 2(-k), still divisible. ✓

Step 3 — transitive: if ab=2ka - b = 2k and bc=2mb - c = 2m, then ac=(ab)+(bc)=2(k+m)a - c = (a-b) + (b-c) = 2(k+m). ✓

Step 4 — the classes: [0]={,4,2,0,2,4,}[0] = \{\ldots, -4, -2, 0, 2, 4, \ldots\} (evens) and [1]={,3,1,1,3,}[1] = \{\ldots, -3, -1, 1, 3, \ldots\} (odds).

Answer: an equivalence relation with exactly two classes — evens and odds. This add-the-differences trick is the whole transitivity proof for every divisibility relation.

Example 3 — Counting classes for mod 3

For RR on Z\mathbb{Z} with aRbaRb iff 33 divides aba - b, list the equivalence classes.

Step 1 — the proof pattern: identical to Example 2 with 33 in place of 22 — equivalence confirmed.

Step 2 — classes by remainder: every integer leaves remainder 00, 11 or 22 on division by 33, and two integers are related exactly when their remainders match.

Answer: three classes — [0]={,3,0,3,6,}[0] = \{\ldots, -3, 0, 3, 6, \ldots\}, [1]={,2,1,4,7,}[1] = \{\ldots, -2, 1, 4, 7, \ldots\}, [2]={,1,2,5,8,}[2] = \{\ldots, -1, 2, 5, 8, \ldots\}. In general, mod nn gives exactly nn classes.

Example 4 — Reflexive and transitive but not symmetric

Check the properties of R={(a,b):ab}R = \{(a, b) : a \leq b\} on R\mathbb{R}.

Step 1 — reflexive: aaa \leq a always. ✓

Step 2 — symmetric? 232 \leq 3 but 323 \leq 2 is false. ✗

Step 3 — transitive: aba \leq b and bcb \leq c chain to aca \leq c. ✓

Answer: reflexive and transitive, not symmetric — the standard counterexample showing the three properties are genuinely independent.

Example 5 — The smallest equivalence relation containing a pair

Find the smallest equivalence relation on {1,2,3}\{1, 2, 3\} containing (1,2)(1, 2).

Step 1 — what is forced: reflexivity demands (1,1),(2,2),(3,3)(1,1), (2,2), (3,3); symmetry demands (2,1)(2,1) to partner the given (1,2)(1,2).

Step 2 — check nothing more is forced: transitivity on {(1,2),(2,1)}\{(1,2), (2,1)\} requires (1,1)(1,1) and (2,2)(2,2) — already present. The element 33 stays in its own class.

Answer: R={(1,1),(2,2),(3,3),(1,2),(2,1)}R = \{(1,1), (2,2), (3,3), (1,2), (2,1)\} — exactly 55 pairs. Adding any pair involving 33 would be a larger equivalence relation, not the smallest.

Functions — One-One, Onto, Bijective

A function f:ABf : A \to B assigns exactly one output in BB to each input in AA. The chapter classifies functions by two independent questions:

One-one (injective): different inputs give different outputs. Working test: assume f(x1)=f(x2)f(x_1) = f(x_2) and derive x1=x2x_1 = x_2 by algebra. Disproof: exhibit two distinct inputs with equal outputs — one pair is enough.

Onto (surjective): every element of the codomain BB is hit. Working test: take an arbitrary yBy \in B, solve f(x)=yf(x) = y for xx, and check the solution lies in AA. Disproof: name one element of BB with no preimage.

Bijective = one-one and onto — the gold standard, because bijective is exactly what makes a function invertible.

One-one versus many-one and onto versus into arrow diagrams

The domain matters as much as the formula. f(x)=x2f(x) = x^2 is not one-one on R\mathbb{R} (since f(1)=f(1)f(-1) = f(1)) but is one-one on N\mathbb{N}; it is not onto R\mathbb{R} (no negative value is hit) but is onto [0,)[0, \infty) if the codomain says so. Every injectivity/surjectivity verdict must quote the domain and codomain — answers that ignore them lose marks even when the algebra is right.

Composition and Invertibility

Composition: (gf)(x)=g(f(x))(g \circ f)(x) = g(f(x)) — apply ff first, then gg. Order matters: in general gffgg \circ f \neq f \circ g, and showing this with a concrete pair is itself a board question. Composition is associative, and composing with the identity function changes nothing.

Invertible function: f:ABf : A \to B is invertible if there is a g:BAg : B \to A with gf=IAg \circ f = I_A and fg=IBf \circ g = I_B; then g=f1g = f^{-1}, and it is unique.

  f is invertible    f is bijective  \boxed{\;f \text{ is invertible} \iff f \text{ is bijective}\;}

Finding f1f^{-1}, the three-line routine: set y=f(x)y = f(x), solve for xx in terms of yy, and declare f1(y)f^{-1}(y) to be that expression. Always finish by verifying one compositionf1(f(x))=xf^{-1}(f(x)) = x — because the verification line is where the presentation mark lives.

Useful closing facts: the composition of two bijections is a bijection, (gf)1=f1g1(g \circ f)^{-1} = f^{-1} \circ g^{-1} (order reverses, exactly like matrix inverses), and if ff=If \circ f = I the function is its own inverse — a pattern the board likes to hide inside rational functions.

Worked Examples — Functions

Example 6 — A full bijectivity proof

Show that f:RRf : \mathbb{R} \to \mathbb{R}, f(x)=4x+3f(x) = 4x + 3, is bijective.

Step 1 — one-one: suppose f(x1)=f(x2)f(x_1) = f(x_2): then 4x1+3=4x2+34x_1 + 3 = 4x_2 + 3, so 4x1=4x24x_1 = 4x_2 and x1=x2x_1 = x_2. ✓

Step 2 — onto: take any yRy \in \mathbb{R} and solve 4x+3=y4x + 3 = y: x=y34x = \frac{y - 3}{4}, which is a real number, and f(y34)=yf\left(\frac{y-3}{4}\right) = y. ✓

Answer: bijective. Every non-constant linear function ax+bax + b (a0a \neq 0) passes both tests by exactly this algebra.

Example 7 — When the domain changes the verdict

Discuss whether f(x)=x2f(x) = x^2 is one-one and onto (i) as f:RRf : \mathbb{R} \to \mathbb{R}, (ii) as f:NNf : \mathbb{N} \to \mathbb{N}.

Step 1 — case (i), one-one? f(1)=1=f(1)f(-1) = 1 = f(1) with 11-1 \neq 1 — not one-one.

Step 2 — case (i), onto? 1-1 has no preimage (squares are never negative) — not onto.

Step 3 — case (ii), one-one? for natural numbers, x12=x22x_1^2 = x_2^2 forces x1=x2x_1 = x_2 (both positive) — one-one. ✓

Step 4 — case (ii), onto? 22 is not a perfect square, so no natural xx has x2=2x^2 = 2 — not onto.

Answer: (i) neither; (ii) one-one but not onto. Same formula, different verdicts — the domain and codomain are part of the function.

Example 8 — One-one but not onto

Show that f:NNf : \mathbb{N} \to \mathbb{N}, f(n)=n+1f(n) = n + 1, is one-one but not onto.

Step 1 — one-one: n1+1=n2+1n_1 + 1 = n_2 + 1 gives n1=n2n_1 = n_2. ✓

Step 2 — onto? the element 11 of the codomain would need n+1=1n + 1 = 1, i.e. n=0n = 0 — not a natural number. ✗

Answer: one-one, not onto — the shift leaves 11 uncovered. (The same map on Z\mathbb{Z} is onto: infinite sets behave differently from finite ones.)

Example 9 — A cubic bijection

Show that f:RRf : \mathbb{R} \to \mathbb{R}, f(x)=x3f(x) = x^3, is bijective.

Step 1 — one-one: x13=x23x_1^3 = x_2^3 gives x13x23=(x1x2)(x12+x1x2+x22)=0x_1^3 - x_2^3 = (x_1 - x_2)(x_1^2 + x_1x_2 + x_2^2) = 0; the second factor is positive unless both are zero, so x1=x2x_1 = x_2. ✓

Step 2 — onto: for any real yy, x=y1/3x = y^{1/3} is real and f(x)=yf(x) = y. ✓

Answer: bijective, with f1(y)=y1/3f^{-1}(y) = y^{1/3} — contrast with x2x^2, where the even power destroys injectivity.

Worked Examples — Composition and Inverse

Example 10 — Order matters in composition

For f(x)=cosxf(x) = \cos x and g(x)=3x2g(x) = 3x^2, find gfg \circ f and fgf \circ g and show they differ.

Step 1 — gfg \circ f: g(f(x))=3cos2xg(f(x)) = 3\cos^2 x.

Step 2 — fgf \circ g: f(g(x))=cos(3x2)f(g(x)) = \cos(3x^2).

Step 3 — one test value: at x=0x = 0: g(f(0))=3g(f(0)) = 3 while f(g(0))=cos0=1f(g(0)) = \cos 0 = 1.

Answer: gffgg \circ f \neq f \circ g — a single differing value is a complete proof.

Example 11 — Find the inverse and verify

Show that f:RRf : \mathbb{R} \to \mathbb{R}, f(x)=2x+3f(x) = 2x + 3, is invertible and find f1f^{-1}.

Step 1 — bijective: linear with nonzero slope — one-one and onto by the Example 6 algebra.

Step 2 — solve y=2x+3y = 2x + 3: x=y32x = \frac{y - 3}{2}, so f1(y)=y32f^{-1}(y) = \frac{y - 3}{2}.

Step 3 — verify: f1(f(x))=(2x+3)32=xf^{-1}(f(x)) = \frac{(2x + 3) - 3}{2} = x ✓ and f(f1(y))=2y32+3=yf(f^{-1}(y)) = 2\cdot\frac{y-3}{2} + 3 = y ✓.

Answer: f1(x)=x32f^{-1}(x) = \frac{x - 3}{2} — always close with the verification line.

Example 12 — A function that is its own inverse

Let f(x)=4x+36x4f(x) = \dfrac{4x + 3}{6x - 4}, x23x \neq \dfrac{2}{3}. Show that (ff)(x)=x(f \circ f)(x) = x. What is f1f^{-1}?

Step 1 — compute f(f(x))f(f(x)): f(f(x))=44x+36x4+364x+36x44=4(4x+3)+3(6x4)6(4x+3)4(6x4)=16x+12+18x1224x+1824x+16=34x34=xf(f(x)) = \frac{4\cdot\frac{4x+3}{6x-4} + 3}{6\cdot\frac{4x+3}{6x-4} - 4} = \frac{4(4x+3) + 3(6x-4)}{6(4x+3) - 4(6x-4)} = \frac{16x + 12 + 18x - 12}{24x + 18 - 24x + 16} = \frac{34x}{34} = x

Step 2 — conclude: fff \circ f is the identity, so ff is invertible with f1=ff^{-1} = f

Answer: the function is its own inverse — multiply through by the common denominator and the collapse is three lines.

Example 13 — Composition, numerically

For f(x)=x2f(x) = x^2 and g(x)=x+1g(x) = x + 1, evaluate (fg)(2)(f \circ g)(2) and (gf)(2)(g \circ f)(2).

Step 1 — (fg)(2)(f \circ g)(2): g(2)=3g(2) = 3, then f(3)=9f(3) = 9.

Step 2 — (gf)(2)(g \circ f)(2): f(2)=4f(2) = 4, then g(4)=5g(4) = 5.

Answer: 99 and 55 — read compositions inside-out, always applying the nearer function to the input first.