25 Solved Examples Across the Chapter
The problems below run in rough order of difficulty and cover every tool of the chapter: equivalence-relation proofs and equivalence classes (Examples 1 to 9), one-one and onto verifications on the standard functions (10 to 17), and the composition, sum-of-functions and counting classics that the Miscellaneous material is built on (18 to 25).
For every problem, try covering the solution and attempting it first. In this chapter the marks live in the setup line — stating the property to be checked, taking arbitrary elements, and closing with a clean counterexample where a property fails.
Examples 1 to 9 — Relations and Equivalence Classes
Example 1 — Same number of pages
Show that the relation in the set of all books in a library, given by and have the same number of pages, is an equivalence relation.
Step 1 — reflexive: every book has the same number of pages as itself.
Step 2 — symmetric: if and have the same page count, so do and .
Step 3 — transitive: if share a page count and share one, then share it.
Answer: is an equivalence relation — like every "shares the same attribute" relation. Its classes group the books by page count.
Example 2 — Multiples of 4
Show that is a multiple of in is an equivalence relation, and find the set of elements related to 1.
Step 1 — reflexive: .
Step 2 — symmetric: , so the property transfers.
Step 3 — transitive: if and , then is again a multiple of 4.
Step 4 — the class of 1: elements of differing from 1 by or : only lie in range.
Answer: equivalence relation; .
Example 3 — Equidistant from the origin
Show that and are at the same distance from the origin, in the set of points of a plane, is an equivalence relation, and describe the class of a point .
Step 1 — the three properties all follow instantly from properties of equality of distances: ; ; .
Step 2 — the class of : all points whose distance from the origin equals — that is precisely the circle through centred at the origin.
Answer: equivalence relation; the equivalence classes are the concentric circles about (with the origin alone forming its own class).
Example 4 — Parallel lines
Show that in the set of all lines in the XY-plane is an equivalence relation, and find the set of lines related to .
Step 1 — reflexive: a line is parallel to itself (same direction).
Step 2 — symmetric: .
Step 3 — transitive: two lines parallel to the same line are parallel to each other.
Step 4 — the class: lines parallel to are exactly those of slope 2.
Answer: equivalence relation; the class of is the family , . (Contrast with perpendicularity, which is only symmetric.)
Example 5 — Intersection of equivalence relations
If and are equivalence relations in a set , show that is also an equivalence relation.
Step 1 — reflexive: lies in both and , hence in their intersection.
Step 2 — symmetric: means it lies in both; each is symmetric, so lies in both, hence in the intersection.
Step 3 — transitive: puts both pairs in each ; transitivity of each gives for both .
Answer: is an equivalence relation. (The union has no such guarantee — transitivity can break, as the quiz will ask.)
Example 6 — Cross-multiplication
Let be a relation on the set of ordered pairs of positive integers defined by if and only if . Show that is an equivalence relation.
Step 1 — reflexive: since .
Step 2 — symmetric: , which is the condition for .
Step 3 — transitive: from and , multiply the first by appropriately: , and using (i.e. ) this collapses to , the condition for .
Answer: equivalence relation. (Behind the algebra: says — the relation "represents the same fraction", whose classes are the rational numbers.)
Example 7 — Two descriptions, one relation
Let , divisible by and or or . Show that .
Step 1 — the key observation: within each block , any two elements differ by a multiple of 3, and elements of different blocks never do.
Step 2 — : if is divisible by 3, both belong to the same block.
Step 3 — : if share a block, their difference is a multiple of 3.
Answer: — a rule-based description and a partition-based description of the same equivalence relation. Every equivalence relation admits both descriptions.
Example 8 — The relation induced by a function
Let be a function and define in . Examine whether is an equivalence relation.
Step 1 — reflexive: always.
Step 2 — symmetric: .
Step 3 — transitive: and give .
Answer: is always an equivalence relation, whatever is — its classes are the sets of inputs sharing an output (the "fibres" of ). Examples 1 and 3 are special cases (the function being "page count" and "distance from origin").
Example 9 — Subset relation on a power set
Given a nonempty set , let be its power set and define if and only if , for subsets . Is an equivalence relation on ?
Step 1 — reflexive: every set is a subset of itself ✓.
Step 2 — symmetric? Take and : then but (as is nonempty) ✗.
Step 3 — transitive: ✓.
Answer: not an equivalence relation — reflexive and transitive but not symmetric. (Like on numbers and divisibility on naturals, inclusion is an ordering, not an equivalence.)
Examples 10 to 17 — One-One and Onto Verifications
Example 10 — The reciprocal map, on two domains
Show that , , is one-one and onto. Does the conclusion survive if the domain is replaced by (co-domain still )?
Step 1 — one-one: .
Step 2 — onto: given , is a nonzero real with .
Step 3 — restrict to : still one-one (the same algebra), but no longer onto — would need .
Answer: bijective on ; merely injective from . The domain is part of the verdict.
Example 11 — across three domains
Check the injectivity and surjectivity of as a function (i) , (ii) , (iii) .
Step 1 — (i): injective (distinct naturals have distinct squares); not surjective (2 is not a square).
Step 2 — (ii): not injective (); not surjective ( is unhit).
Step 3 — (iii): same two failures as (ii), with the same witnesses.
Answer: (i) injective only; (ii), (iii) neither. Enlarging the domain to include negatives is what breaks injectivity.
Example 12 — The greatest integer function
Prove that , , is neither one-one nor onto.
Step 1 — not one-one: with .
Step 2 — not onto: is always an integer, so the co-domain element has no preimage.
Answer: neither — the floor function flattens each interval to the single value .
Example 13 — The signum function
Show that the Signum Function , taking value for , for and for , is neither one-one nor onto.
Step 1 — not one-one: .
Step 2 — not onto: the range is , so any other real — say 2 — is never attained.
Answer: neither. A function with a three-element range can never map onto .
Example 14 — A line and a shifted parabola
State whether (i) and (ii) , both , are one-one, onto or bijective.
Step 1 — (i) one-one: ; onto: solves for every . Bijective.
Step 2 — (ii) not one-one: ; not onto: , so is unattained.
Answer: (i) bijective; (ii) neither — slope beats symmetry.
Example 15 — Swapping coordinates
Show that defined by is bijective.
Step 1 — one-one: forces and , i.e. the original pairs coincide.
Step 2 — onto: any is the image of .
Answer: bijective — with inverse given by swapping back (the map is essentially self-inverse).
Example 16 — The halving map
For with ( odd) and ( even), state whether is bijective.
Step 1 — not one-one: .
Step 2 — onto: every equals .
Answer: onto but not one-one, hence not bijective — each output is claimed by exactly two inputs.
Example 17 — Squashing into an interval
Show that defined by is one-one and onto.
Step 1 — one-one: preserves sign, so a collision needs of the same sign; for , cross-multiplies to (and similarly for negatives with in the denominator).
Step 2 — onto: given , solve : works; for , works; is .
Answer: bijective — the whole real line is compressed one-one onto the open interval , large approaching (never reaching) .
Examples 18 to 25 — Sums, Compositions and Counting
Example 18 — Cubing is injective
Show that given by is injective.
Step 1 — take : then , so .
Step 2 — factor: . The quadratic factor equals , which vanishes only when .
Answer: in every case , so is injective — odd powers never collide. (This is in fact bijective on ; on it would be injective but not surjective.)
Example 19 — A sum of onto functions need not be onto
The identity is onto. Show that , , is not onto.
Step 1 — the sum: .
Step 2 — find an unhit element: in the co-domain would need , impossible in .
Answer: not onto — surjectivity is not preserved by addition of functions, even when both summands are onto.
Example 20 — A sum of one-one functions need not be one-one
On , both and are one-one. Show that is not one-one.
Step 1 — each is one-one on this interval: strictly increases, strictly decreases, and strictly monotonic functions never collide.
Step 2 — but the sum collides at the endpoints:
Answer: with , so is not one-one. Injectivity, like surjectivity, is not preserved by sums.
Example 21 — Counting one-one self-maps
Find the number of all one-one functions from to itself.
Step 1 — a one-one self-map of a finite set is a permutation: three distinct images must fill the three slots.
Step 2 — count permutations: .
Answer: . (By the finite-set collapse, these are also exactly the onto self-maps and the bijections.)
Example 22 — Counting onto self-maps of
Find the number of onto functions from to itself.
Step 1 — onto forces one-one on a finite set mapping to itself (the collapse of Section 2), so onto self-maps are exactly the permutations.
Step 2 — count: .
Answer: — for maps between different-sized sets the count is harder (inclusion-exclusion, in the JEE Corner), but self-maps collapse to permutations.
Example 23 — Reflexive and transitive but not symmetric, containing two pairs
Let . Show that the number of relations containing and that are reflexive and transitive but not symmetric is three.
Step 1 — build the smallest one: reflexivity demands the three diagonal pairs, and transitivity applied to demands : It is not symmetric ( missing) ✓ — relation one.
Step 2 — try enlarging: adding keeps transitivity (check the new chains) and still lacks — relation two. Adding instead works the same way — relation three.
Step 3 — why nothing else: adding , or two of the reverse pairs at once, forces (via transitivity) the remaining reverse pairs, tipping the relation into full symmetry — no longer allowed.
Answer: exactly 3 such relations.
Example 24 — Equivalence relations containing
Show that the number of equivalence relations in containing and is two.
Step 1 — the smallest: — the partition .
Step 2 — enlarge: adding any further pair, say , forces by symmetry, then and by transitivity — the universal relation (partition ).
Answer: exactly 2 — think in partitions: the block containing either excludes 3 or swallows it; there is no third option.
Example 25 — Equal functions
Let , , and be and . Are and equal?
Step 1 — the test for equality: two functions with the same domain and co-domain are equal exactly when for every in the domain.
Step 2 — tabulate both on all four points:
Answer: the values agree at every point of , so — different formulas, identical functions. A function is its value-table, not its formula.