IN REVIEW

In review — free for everyone. While a book is in review you are one of its reviewers: read it, use it, and tell us what is wrong. When the reports settle, the Class 12 pass is ₹999 for the year and this book’s PDF is ₹299.

Which pairs are related

FRAME

Class 11 introduced sets, and with them the idea that elements of one set can be paired with elements of another. This chapter makes that pairing precise and studies exactly what patterns such a pairing can carry.

A relation $R$ on a set $A$ is any collection of ordered pairs $(a, b)$ with $a, b \in A$ — formally, any subset of $A \times A$. Nothing in that definition forces the pairs to follow a pattern; an arbitrary, scattered subset of $A \times A$ already counts as a relation.

Three patterns recur often enough to earn names: reflexive, symmetric, and transitive. A relation carrying all three at once is an equivalence relation. An equivalence relation does something a generic relation cannot: it splits $A$ into non-overlapping classes, each holding everything related to a common member. A narrower pattern matters just as much: the case where every element of one set is related to exactly one element of another. That pattern is a function, already familiar from Class 11, now placed inside the wider family of relations it belongs to.

This chapter studies both patterns in turn. First come the three properties and the equivalence relations they build; then a function’s own properties — one-one, onto, invertible — and how functions combine under composition.

↑ Back to top

Reflexive, symmetric, transitive

KEY-TERM

A relation $R$ on $A$ can carry three properties, and none of the three implies another: reflexive, symmetric, and transitive.

$R$ is reflexive when $(a, a) \in R$ for every $a \in A$ — every element is related to itself. $R$ is symmetric when $(a, b) \in R$ always forces $(b, a) \in R$ — the relation never runs one way without also running the other. $R$ is transitive when $(a, b) \in R$ and $(b, c) \in R$ together force $(a, c) \in R$ — a chain of two related pairs always closes into a third.

Two extreme relations test the definitions cleanly. The empty relation, $R = \emptyset$, is symmetric and transitive vacuously. There are no pairs in $R$ at all, so neither condition has anything to violate. It is reflexive only when $A$ itself is empty; if $A$ has any element $a$, the pair $(a, a)$ is simply absent from $R$, and reflexivity fails outright.

The universal relation, $R = A \times A$, contains every possible ordered pair. It satisfies all three properties at once — reflexivity, symmetry, and transitivity impose no restriction it could ever fail to meet.

Worked example

Check reflexive, symmetric, transitive for a relation on $\{1, 2, 3\}$

  1. $R = {(1,1), (2,2), (3,3), (1,2), (2,1)}$ on $A = {1, 2, 3}$
    Given relation; test each of the three properties in turn.
  2. Reflexive — $(1,1), (2,2), (3,3) \in R$
    All three elements of $A$ pair with themselves, so reflexivity holds.
  3. Symmetric — $(1,2) \in R$ and $(2,1) \in R$
    The one non-diagonal pair present has its reverse present too; every other pair is already its own reverse.
  4. Transitive — check $(1,2)$ and $(2,1)$ together
    $(1,2)$ and $(2,1)$ are the only non-diagonal pairs in $R$, so they are the only pairs that can chain into a non-trivial transitivity test in either order; any chain starting or ending on a diagonal pair like $(1,1)$ forces nothing beyond a pair already in $R$.
  5. $(1,2) \in R$ and $(2,1) \in R$ force $(1,1) \in R$; $(2,1) \in R$ and $(1,2) \in R$ force $(2,2) \in R$
    Both chains the non-diagonal pairs can form are already present in $R$, so the test passes both ways.
  6. *$R$ is reflexive, symmetric, and transitive*
    All three properties hold, so $R$ is an equivalence relation on $A$.

↑ Back to top

Equivalence relations and equivalence classes

CONCEPT

A relation that is reflexive, symmetric, and transitive all at once is called an equivalence relation. The three properties together do something none of them does alone: they let $A$ be organised into groups of mutually related elements.

For an equivalence relation $R$ on $A$ and any element $a \in A$, the equivalence class of $a$ is $[a] = {x \in A : (x, a) \in R}$ — everything in $A$ related to $a$. Because $R$ is reflexive, $a$ itself always belongs to $[a]$. No class is ever empty.

Two equivalence classes are either identical or completely disjoint; partial overlap is impossible. If $[a]$ and $[b]$ share even one element, symmetry and transitivity chain that shared element back to both $a$ and $b$. That forces $(a, b) \in R$ and, from there, every member of one class into the other. The classes therefore either coincide exactly or share nothing at all.

Every $a \in A$ belongs to its own class $[a]$, and classes never partially overlap. Together, the classes partition $A$ into non-overlapping groups whose union is all of $A$. The relation and the partition carry exactly the same information, read two different ways. Given the relation, the classes are built as above. Given the partition instead, the relation is recovered: declare two elements related exactly when they share a class.

Worked example

Show that congruence of triangles is an equivalence relation

  1. $R$ relates two triangles when they are congruent
    Given relation on the set of all triangles in a plane; test reflexive, symmetric, transitive in turn.
  2. Reflexive — every triangle is congruent to itself
    A triangle matches its own sides and angles exactly, so $(T, T) \in R$ for every triangle $T$.
  3. Symmetric — if $T_1$ is congruent to $T_2$, then $T_2$ is congruent to $T_1$
    Congruence is a matching of sides and angles; the match reads the same way in either direction.
  4. Transitive — if $T_1$ is congruent to $T_2$ and $T_2$ is congruent to $T_3$
    Test whether the matching carries through a third triangle.
  5. Every side and angle of $T_1$ matches $T_2$, and every side and angle of $T_2$ matches $T_3$
    Two congruences chained together match $T_1$ directly to $T_3$, side for side and angle for angle.
  6. $R$ is reflexive, symmetric, and transitive
    Congruence is an equivalence relation on the set of all triangles in a plane; its classes group triangles by shape and size, ignoring position.

↑ Back to top

Two properties do not buy the third

MISCONCEPTION

Symmetric and transitive both talk about pairs already in $R$ closing up into further pairs, which invites treating reflexivity as something the other two properties deliver automatically. If every pair reverses and every chain closes, it can look as though every element must eventually pair with itself too.

That reasoning has a genuine gap: symmetric and transitive statements only ever talk about elements that already appear in some pair of $R$. Neither property says anything about an element $R$ never mentions at all — and an element outside every pair of $R$ is exactly where reflexivity can fail.

$R = {(1,1), (2,2), (1,2), (2,1)}$ on $A = {1, 2, 3}$ makes the gap concrete. $R$ is symmetric — the reverse of every pair present is present too. $R$ is transitive — $(1,2)$ and $(2,1)$ force $(1,1)$, and $(2,1)$ and $(1,2)$ force $(2,2)$, both already there; every other combination involves a diagonal pair and forces nothing new. Yet $R$ is not reflexive: $(3,3)$ is missing, because $3$ never appears in any pair of $R$ at all.

*Symmetric and transitive together force reflexivity only on the elements $R$ actually relates to something*. An element $R$ never mentions is invisible to both properties, and invisible to both is exactly how it dodges reflexivity.

↑ Back to top

One-one, onto, both

KEY-TERM

A function $f: A \to B$ can carry two independent properties, one-one and onto, and a function can have either without the other, both together, or neither.

$f$ is one-one, or injective, when distinct inputs always produce distinct outputs: $f(x_1) = f(x_2)$ forces $x_1 = x_2$. Equivalently, no two different elements of $A$ ever share an image in $B$.

$f$ is onto, or surjective, when every element of $B$ is actually hit: for every $b \in B$, some $a \in A$ satisfies $f(a) = b$. Nothing in $B$ is left without a preimage.

A function that is both one-one and onto is called bijective. The two properties test different things. One-one asks whether outputs ever collide; onto asks whether the codomain is fully covered. Knowing one tells nothing about the other — each has to be checked on its own terms.

The same rule, f(x) = x², is not one-one and not onto when its domain and codomain are both the real numbers — two inputs land on 4, and no input reaches -1. Cut the domain and codomain down to the non-negative numbers and the same rule becomes both one-one and onto. The collision at x = -2 is gone (there is no negative input left to collide with x = 2), and every non-negative height is reached.
Worked example

Check one-one and onto for $f(x) = x^2$ under two domain choices

  1. $f: \mathbb{R} \to \mathbb{R}$, $f(x) = x^2$
    Given function; test one-one and onto on its stated domain and codomain.
  2. $f(-2) = 4$ and $f(2) = 4$
    Two distinct inputs, $-2$ and $2$, produce the same output.
  3. $f$ is not one-one
    Distinct inputs gave the same output, which the one-one condition forbids.
  4. No real $x$ satisfies $f(x) = -1$
    $x^2$ is never negative, so $-1$ has no preimage in $\mathbb{R}$.
  5. $f$ is not onto
    Every negative number in the codomain $\mathbb{R}$ is left without a preimage.
  6. $g: [0, \infty) \to [0, \infty)$, $g(x) = x^2$
    Same formula, restricted domain and codomain; test one-one and onto again.
  7. $x_1^2 = x_2^2$ with $x_1, x_2 \geq 0$ forces $x_1 = x_2$
    Both inputs are non-negative, so equal squares mean equal inputs; $g$ is one-one.
  8. Every $y \geq 0$ has preimage $\sqrt{y} \geq 0$
    $\sqrt{y}$ lies in the restricted domain and satisfies $g(\sqrt{y}) = y$; $g$ is onto.
  9. *$g$ is bijective, though $f$ was neither*
    The same formula answers both questions oppositely once the domain and codomain are restricted.

↑ Back to top

Composing functions

CONCEPT

Given two functions $f: A \to B$ and $g: B \to C$, their composition builds a new function that sends $x$ to $g(f(x))$. Apply $f$ first, then apply $g$ to whatever $f$ produced. The composition is written $g compose f$. It is defined precisely because $f$’s output lands in $B$, exactly where $g$ expects its input.

Composition is associative. Composing $f$, then $g$, then $h$ gives the same function no matter which two are grouped and applied first. $(h compose g) compose f$ and $h compose (g compose f)$ are the same function. Parentheses in a chain of compositions can therefore be dropped without ambiguity.

Composition is not generally commutative. $g(f(x))$ and $f(g(x))$ can disagree even when both are defined. One of the two can even fail to be defined, if the domains and codomains do not line up the other way round: $g$’s output may not land inside $f$’s domain at all. Order matters, and it has to be tracked explicitly rather than assumed.

The two curves meet at x = 0 and nowhere else. Setting (x+1)² equal to x²+1 leaves 2x = 0, so this is the only agreement there is, not merely the only one inside the drawn window.
Worked example

Compute $g(f(x))$ and $f(g(x))$ for $f(x) = x+1$, $g(x) = x^2$

  1. $f(x) = x + 1$, $g(x) = x^2$, both $\mathbb{R} \to \mathbb{R}$
    Given two functions; compute both orders of composition.
  2. $g(f(x)) = g(x+1) = (x+1)^2$
    Apply $f$ first, then substitute its output into $g$.
  3. $g(f(x)) = x^2 + 2x + 1$
    Expand the square.
  4. $f(g(x)) = f(x^2) = x^2 + 1$
    Apply $g$ first, then substitute its output into $f$.
  5. $g(f(x)) = x^2 + 2x + 1 \neq x^2 + 1 = f(g(x))$
    The two compositions are genuinely different functions, confirming composition order matters here.

↑ Back to top

Invertible functions

CONCEPT

A function $f: A \to B$ is invertible when some function $g: B \to A$ undoes it completely in both directions. $g(f(a)) = a$ for every $a \in A$, and $f(g(b)) = b$ for every $b \in B$. Undoing it in only one direction is not enough — both conditions have to hold.

*Such a $g$ exists if and only if $f$ is bijective*. One-one guarantees that $g$ can send each $b \in B$ back to a single well-defined $a$, without ambiguity. Onto guarantees that every $b \in B$ actually has some $a$ to send back to — so $g$ is defined on the whole of $B$. When it exists, the inverse $g$ is unique, and it is written $f^{-1}$.

Finding $f^{-1}$ in practice follows a fixed procedure. Write $y = f(x)$, solve that equation for $x$ in terms of $y$, then swap the names $x$ and $y$, so the result reads as a function of $x$ again. The solved expression is $f^{-1}(x)$.

Solving y = 3x - 2 for x and then swapping the names x and y is exactly reflecting the line in y = x. The point (0, -2) on f becomes the point (-2, 0) on f⁻¹, the two coordinates swapped. This is what solve-and-swap does to every point on the curve, not just this one.
Worked example

Find the inverse of $f(x) = 3x - 2$

  1. $f: \mathbb{R} \to \mathbb{R}$, $f(x) = 3x - 2$
    Given function; confirm it is bijective before finding an inverse.
  2. $f$ is strictly increasing, so one-one; every real $y$ equals $3x-2$ for some real $x$, so onto
    $f$ is bijective, so an inverse exists.
  3. $y = 3x - 2$
    Write the function as $y$ in terms of $x$.
  4. $x = (y+2)/3$
    Solve for $x$ in terms of $y$.
  5. $f^{-1}(x) = (x+2)/3$
    Swap the names $x$ and $y$ so the inverse reads as a function of $x$.
  6. $f(f^{-1}(x)) = 3 \cdot (x+2)/3 - 2 = x + 2 - 2 = x$
    *Substituting the inverse back into $f$ recovers $x$, confirming the inverse is correct*.
MISCONCEPTION
y = 4 is not a special case — every positive y has exactly two preimages here, and only y = 0 has one. Restricting the domain to x ≥ 0 deletes the left branch and the same rule becomes invertible, so the repair is always to the domain and never to the formula.

Onto guarantees that nothing in $B$ is left without a preimage. That invites a shortcut: onto alone should be enough to build a reverse function, since every output already has something to send back to.

That shortcut ignores what a function actually requires: a single, unambiguous output for every input. Onto only guarantees that a preimage exists; it says nothing about whether that preimage is the only one.

$f: \mathbb{R} \to [0, \infty)$, $f(x) = x^2$ makes the gap concrete. $f$ is onto: every non-negative number is hit by some real $x$. But $f$ is not one-one — $f(-2) = f(2) = 4$, so $4$ has two preimages, not one. A candidate reverse rule sending $4$ back to $x$ has no way to choose between $-2$ and $2$. Both are equally valid preimages, and a function permits only one output per input. The candidate reverse is not a well-defined function at all.

Invertibility needs both properties together, not onto alone. One-one guarantees the reverse rule has no ambiguous choice to make; onto guarantees it has an output to assign for every element of $B$. Bijective is the name for carrying both at once, and nothing weaker suffices.

↑ Back to top

Sameness, and reversibility

RECAP

Two ideas run through this chapter, both concerned with turning an informal notion into something checkable: sameness and reversibility.

A relation that is reflexive, symmetric, and transitive at once — an equivalence relation — turns “related to” into a rigorous version of “the same as”. It partitions a set into non-overlapping classes, each holding everything that counts as the same under that relation, from congruent triangles to any other pattern satisfying the three properties.

A function that is bijective turns “maps to” into a rigorous version of “reversible”. One-one rules out ambiguity in the reverse direction; onto guarantees the reverse direction has something to send back everywhere; together they guarantee a unique inverse function exists.

Both ideas share the same discipline: check whether a relation or function actually has the property in question, rather than assuming it from the shape of the definition. Symmetric and transitive together do not guarantee reflexive; onto alone does not guarantee invertible. Composition extends the same checking discipline to combining functions: it is associative, but not generally commutative, and each property is verified in turn, never assumed.

↑ Back to top

Practice set

Exercise 1.1 — Relations, practice set
  1. practice Let $R = {(a,b): a,b \in ZZ, a-b \text{ is even}}$ on the set of integers. Check whether $R$ is reflexive, symmetric, and transitive.
  2. practice On the set $A = {1,2,3,4}$, let $R = {(1,2),(2,1),(1,1),(2,2)}$. Is $R$ transitive? Justify.
  3. practice Which of these relations on ${1,2,3}$ is reflexive but NOT symmetric?
    1. ${(1,1),(2,2),(3,3),(1,2)}$
    2. ${(1,1),(2,2),(3,3),(1,2),(2,1)}$
    3. ${(1,2),(2,1)}$
    4. ${(1,1),(2,2)}$
  4. practice Let $R$ be the relation on the set of all triangles in a plane defined by $R = {(T_1,T_2): T_1 \text{ is similar to } T_2}$. Is $R$ an equivalence relation?
  5. practice On $ZZ$, define $R = {(a,b): a \leq b}$. Which property fails, and why?
Answers
  1. Equivalence relation — all three hold.
  2. Yes, transitive.
  3. A — ${(1,1),(2,2),(3,3),(1,2)}$.
  4. Yes — equivalence relation.
  5. Symmetry fails.

Exercise 1.1 practises testing a given relation on a set for reflexivity, symmetry, and transitivity, checking each property directly against the definition. It also classifies each relation as an equivalence relation outright, or names the specific property that fails.

Exercise 1.1 — Relations, further practice
  1. practice Let $R$ be the relation on $ZZ$ defined by $R = \{(a,b): a b > 0\}$. Check whether $R$ is reflexive, symmetric, and transitive.
  2. practice On $A = \{1,2,3,4\}$, let $R = \{(1,1),(2,2),(3,3),(4,4),(1,2),(2,3)\}$. Is $R$ transitive? Justify.
  3. practice Which of these relations on $\{1,2,3\}$ is symmetric but NOT reflexive?
    1. $\{(1,1),(2,2),(3,3)\}$
    2. $\{(1,2),(2,1)\}$
    3. $\{(1,1),(2,2),(3,3),(1,2),(2,1)\}$
    4. $\{(1,2),(2,3)\}$
  4. practice Let $R$ be the relation on the set of all people defined by $R = \{(x,y): x \text{ has the same age as } y\}$. Is $R$ an equivalence relation?
  5. practice On $ZZ$, define $R = \{(a,b): a + b \text{ is odd}\}$. Which property fails, and why?
Answers
  1. Not reflexive ($0 \cdot 0 = 0$ is not $> 0$); symmetric and transitive.
  2. No — $(1,2)$ and $(2,3)$ force $(1,3)$, which is missing.
  3. B — $\{(1,2),(2,1)\}$.
  4. Yes — equivalence relation.
  5. Reflexive and transitive both fail; only symmetric holds. $a + a = 2 a$ is always even, and $a$, $c$ each share $b$’s opposite parity, so $a + c$ is even too.
Exercise 1.2 — Functions, practice set
  1. practice $f: \mathbb{R} \to \mathbb{R}$, $f(x) = x^2$. Is $f$ one-one? Is it onto?
  2. practice $f: [0, \infty) \to [0, \infty)$, $f(x) = x^2$. Is $f$ one-one and onto?
  3. practice $f: \mathbb{R} \to \mathbb{R}$, $f(x) = 2x+1$. Is $f$ one-one? Is it onto?
  4. practice $f: ZZ \to ZZ$, $f(x) = x^2$. Which of these is true?
    1. one-one and onto
    2. one-one but not onto
    3. onto but not one-one
    4. neither one-one nor onto
Answers
  1. Neither.
  2. Both — bijective.
  3. Both — bijective.
  4. D — neither one-one nor onto.

Exercise 1.2 practises testing whether a given function is one-one, onto, both, or neither. Several problems reuse the same formula across different domain and codomain choices, so the same rule can answer differently depending on where it is applied.

Exercise 1.2 — Functions, further practice
  1. practice $f: \mathbb{R} \to \mathbb{R}$, $f(x) = 5 - 2 x$. Is $f$ one-one? Is it onto?
  2. practice $f: \mathbb{N} \to \mathbb{N}$, $f(x) = x + 2$. Is $f$ one-one? Is it onto?
  3. practice Let $f: \{1,2,3,4\} \to \{1,2,3,4\}$ be a bijection. How many such functions are there?
  4. practice $f: \mathbb{R} \to \mathbb{R}$, $f(x) = x^5$. Which of these is true?
    1. one-one and onto
    2. one-one but not onto
    3. onto but not one-one
    4. neither one-one nor onto
Answers
  1. Both — bijective.
  2. One-one, not onto.
  3. $24$
  4. A — one-one and onto.
Exercise 1.3 — Composition and invertibility, practice set
  1. practice If $f(x) = x+3$ and $g(x) = 2x$, find $g(f(x))$ and $f(g(x))$.
  2. practice Let $f: \mathbb{R} \to \mathbb{R}$, $f(x) = 3x-2$. Show $f$ is invertible and find $f^{-1}$.
  3. practice If $f(x) = x^3$ and $g(x) = x+1$, find $f(g(2))$.
  4. practice Let $f(x) = (2x-1)/3$. Verify $f$ is invertible and find $f^{-1}(x)$.
  5. practice If $f(x) = x+1$ and $g(x) = x^2$, what is $g(f(1))$?
    1. $2$
    2. $4$
    3. $1$
    4. $3$
Answers
  1. $2x+6$; $2x+3$
  2. $f^{-1}(x) = (x+2)/3$
  3. $27$
  4. $f^{-1}(x) = (3x+1)/2$
  5. B — $4$.

Exercise 1.3 practises composing two given functions in both orders, then checking whether the composite is bijective. Where it is, the exercise finds the inverse by the solve-and-swap method demonstrated earlier in the chapter.

Exercise 1.3 — Composition and invertibility, further practice
  1. practice If $f(x) = 2 x - 5$ and $g(x) = x + 4$, find $f(g(3))$.
  2. practice Let $f: \mathbb{R} \to \mathbb{R}$, $f(x) = 5 x + 7$. Show $f$ is invertible and find $f^{-1}(x)$.
  3. practice If $f(x) = x^2 + 1$ and $g(x) = x - 3$, find $g(f(2))$.
Answers
  1. $9$
  2. $f^{-1}(x) = (x-7)/5$
  3. $2$
Miscellaneous — practice set
  1. practice Show that $R = {(a,b): a,b \in ZZ, \left|a-b\right| \leq 1}$ on $ZZ$ is reflexive and symmetric but not transitive.
  2. practice Let $f: \mathbb{R} \to \mathbb{R}$, $f(x) = \left|x\right|$. Is $f$ one-one? Is it onto?
  3. practice If $f(x) = 2x+3$, find $f^{-1}(x)$.
  4. practice Which statement about $f: \mathbb{R} \to \mathbb{R}$, $f(x) = x^3$, is true?
    1. one-one and onto
    2. one-one but not onto
    3. onto but not one-one
    4. neither one-one nor onto
  5. practice On $ZZ$, define $a*b = a-b$. Is $*$ commutative? Is it associative?
  6. practice Let $g(x) = 3x$. Find $g^{-1}(x)$ and verify $g(g^{-1}(x)) = x$.
  7. practice “Is a friend of” on the students in a class is symmetric (if $A$ is a friend of $B$, $B$ is a friend of $A$) but nobody counts as their own friend. Is this relation an equivalence relation? Why or why not?
Answers
  1. Transitivity fails.
  2. Neither.
  3. $f^{-1}(x) = (x-3)/2$
  4. A — one-one and onto.
  5. Neither.
  6. $g^{-1}(x) = x/3$
  7. No — reflexivity fails.

The miscellaneous exercise mixes all three sections of the chapter — relations, functions, and composition — into a single problem set. No problem announces which technique applies, so identifying the right check is itself part of the exercise.

Miscellaneous — further practice
  1. practice Let $f: \mathbb{R} \to \mathbb{R}$, $f(x) = 4 x + 9$. Find $f^{-1}(x)$ and verify $f(f^{-1}(x)) = x$.
  2. practice On $\mathbb{N}$, define $R = \{(a,b): a \text{ divides } b\}$. Is $R$ reflexive? Is it symmetric? Is it transitive?
Answers
  1. $f^{-1}(x) = (x-9)/4$
  2. Reflexive and transitive; not symmetric — $2$ divides $4$ but $4$ does not divide $2$.

↑ Back to top