This chapter studies relations between sets and special relations called functions. We classify relations as reflexive, symmetric, transitive and equivalence, and classify functions as one-one, onto and bijective. We also learn composition of functions and invertible functions. These ideas underpin calculus, algebra and the way mathematical models map inputs to outputs.
17 solved questions Step-by-step solutions JEE / NEET practice
Key points
A relation R from A to B is a subset of A × B; a relation on A is a subset of A × A.
Reflexive: (a, a) ∈ R for all a ∈ A. Symmetric: (a, b) ∈ R ⇒ (b, a) ∈ R. Transitive: (a, b), (b, c) ∈ R ⇒ (a, c) ∈ R.
An equivalence relation is reflexive, symmetric and transitive; it partitions the set into disjoint equivalence classes.
A function f: A → B assigns exactly one element of B to each element of A.
Bijective = one-one and onto. If |A| = n, number of bijections A → A is n!.
Composition: (g∘f)(x) = g(f(x)); composition is associative but generally not commutative.
f is invertible if and only if it is bijective; then f⁻¹(f(x)) = x and f(f⁻¹(y)) = y.
If |A| = m and |B| = n, the number of functions A → B is nᵐ.
If f: A → B and g: B → C are one-one (onto), then g∘f is one-one (onto).
Board exam practice
Q1MCQ1 mark
The number of reflexive relations on the set A = {1, 2, 3} is
Show answer & solution
Answer: (B) 64A reflexive relation must contain all 3 pairs (1,1), (2,2), (3,3). The other 9 − 3 = 6 pairs may be present or absent freely. Number = 2⁶ = 64.
Q2MCQ1 mark
The function f: Z → Z defined by f(x) = 2x + 1 is
Show answer & solution
Answer: (B) one-one but not ontoIf 2x₁ + 1 = 2x₂ + 1 then x₁ = x₂, so f is one-one. But 2x + 1 is always odd, so even integers like 0 have no pre-image; f is not onto.
Q3MCQ1 mark
The number of onto functions from a set with 3 elements to a set with 2 elements is
Show answer & solution
Answer: (C) 6Total functions = 2³ = 8. Functions that are not onto are the two constant functions (all elements to one fixed element). Onto functions = 8 − 2 = 6.
Q4MCQ1 mark
If f(x) = 2x + 3 and g(x) = x², then (g∘f)(1) equals
Show answer & solution
Answer: (D) 25f(1) = 2(1) + 3 = 5. Then g(5) = 5² = 25. So (g∘f)(1) = 25.
Q5Assertion-Reason1 mark
Assertion (A): The function f: R → R defined by f(x) = x² is not one-one. Reason (R): f(1) = f(−1) = 1 although 1 ≠ −1.
Show answer & solution
Answer: (A) Both A and R are true and R is the correct explanation of AR is true: f(1) = 1 and f(−1) = 1. Two different inputs having the same image is exactly the failure of one-one, so R correctly explains A.
Q6Short2 marks
Show that the relation R = {(a, b): a ≤ b²} on the set of real numbers is not reflexive.
Show answer & solution
Answer: R is not reflexive (counter-example a = 1/2)1. For reflexivity we need a ≤ a² for every real a.
2. Take a = 1/2. Then a² = 1/4.
3. 1/2 ≤ 1/4 is false, so (1/2, 1/2) ∉ R.
4. Hence R is not reflexive.
Q7Short2 marks
Show that f: R − {3} → R − {1} defined by f(x) = (x − 2)/(x − 3) is one-one.
Show answer & solution
Answer: f is one-one1. Let f(x) = f(y), i.e. (x − 2)/(x − 3) = (y − 2)/(y − 3).
2. Cross-multiply: (x − 2)(y − 3) = (y − 2)(x − 3).
3. xy − 3x − 2y + 6 = xy − 3y − 2x + 6.
4. −3x − 2y = −3y − 2x ⇒ y = x.
Hence f is one-one.
Q8Short2 marks
Let f: R → R be given by f(x) = 5x − 7. Show that f is invertible and find f⁻¹.
Show answer & solution
Answer: f⁻¹(x) = (x + 7)/51. f is one-one: 5x − 7 = 5y − 7 ⇒ x = y.
2. f is onto: for any y ∈ R, x = (y + 7)/5 ∈ R satisfies f(x) = y.
3. So f is bijective, hence invertible.
4. Solving y = 5x − 7 for x gives x = (y + 7)/5, so f⁻¹(x) = (x + 7)/5.
Q9Short3 marks
Prove that the relation R on the set Z of integers defined by R = {(a, b): 3 divides (a − b)} is an equivalence relation.
Show answer & solution
Answer: R is reflexive, symmetric and transitive, hence an equivalence relation1. Reflexive: a − a = 0 = 3 × 0, divisible by 3, so (a, a) ∈ R.
2. Symmetric: if 3 | (a − b), say a − b = 3k, then b − a = 3(−k), so 3 | (b − a). Thus (b, a) ∈ R.
3. Transitive: if a − b = 3k and b − c = 3m, adding gives a − c = 3(k + m), so (a, c) ∈ R.
4. R satisfies all three properties, so it is an equivalence relation.
Q10Short3 marks
Let f: N → N be defined by f(n) = n + 1 if n is odd and f(n) = n − 1 if n is even. Show that f is a bijection.
Show answer & solution
Answer: f(f(n)) = n for all n, so f is bijective1. If n is odd, f(n) = n + 1 is even, so f(f(n)) = (n + 1) − 1 = n.
2. If n is even, f(n) = n − 1 is odd, so f(f(n)) = (n − 1) + 1 = n.
3. Thus f∘f = identity on N.
4. One-one: f(a) = f(b) ⇒ f(f(a)) = f(f(b)) ⇒ a = b.
5. Onto: any m ∈ N equals f(f(m)), so m has the pre-image f(m).
Hence f is bijective (and is its own inverse).
Q11Long5 marks
Let A = R − {2} and B = R − {1}. Show that f: A → B defined by f(x) = (x − 1)/(x − 2) is bijective. Also find f⁻¹ and evaluate f⁻¹(3).
Show answer & solution
Answer: f is bijective; f⁻¹(y) = (2y − 1)/(y − 1); f⁻¹(3) = 5/21. One-one: f(x) = f(y) ⇒ (x − 1)(y − 2) = (y − 1)(x − 2) ⇒ xy − 2x − y + 2 = xy − 2y − x + 2 ⇒ −2x − y = −2y − x ⇒ x = y.
2. Onto: let y ∈ B, y ≠ 1. Solve y = (x − 1)/(x − 2): yx − 2y = x − 1 ⇒ x(y − 1) = 2y − 1 ⇒ x = (2y − 1)/(y − 1).
3. This x is defined since y ≠ 1. Is x ≠ 2? If (2y − 1) = 2(y − 1) then −1 = −2, impossible. So x ∈ A and f(x) = y. Hence f is onto.
4. f is bijective, and f⁻¹(y) = (2y − 1)/(y − 1).
5. f⁻¹(3) = (6 − 1)/(3 − 1) = 5/2. Check: f(5/2) = (3/2)/(1/2) = 3. ✓
Q12Case4 marks
A coach divides four players numbered 1, 2, 3, 4 into two practice teams: players 1 and 2 train together, and players 3 and 4 train together. Let A = {1, 2, 3, 4} and R be the relation 'x trains with y', where every player trains with himself. So R = {(1,1), (2,2), (3,3), (4,4), (1,2), (2,1), (3,4), (4,3)}. (i) Is R reflexive? (ii) How many ordered pairs does R have, and is R symmetric? (iii) Is R transitive, and what is the equivalence class of 3?
Show answer & solution
Answer: (i) Yes (ii) 8 pairs; yes, symmetric (iii) Yes, transitive; [3] = {3, 4}(i) R contains (1,1), (2,2), (3,3), (4,4), so it is reflexive.
(ii) Counting: 4 pairs of the form (a, a) plus (1,2), (2,1), (3,4), (4,3) gives 8 pairs. Each pair (a, b) has (b, a) also in R, so R is symmetric.
(iii) Check chains: (1,2), (2,1) give (1,1) ∈ R; (2,1), (1,2) give (2,2) ∈ R; similarly for 3 and 4. No chain leads to a missing pair, so R is transitive. R is an equivalence relation, and the class of 3 is all elements related to 3: [3] = {3, 4}.
JEE Main level
Q1JEE Main
The number of relations on A = {1, 2, 3} that are both reflexive and symmetric is
Show answer & solution
Answer: (C) 8The 3 diagonal pairs are forced. The off-diagonal pairs form 3 unordered pairs {1,2}, {1,3}, {2,3}; symmetry means each unordered pair is included (both orders) or excluded. That gives 2³ = 8 relations.
Q2JEE Main
The number of onto functions from {1, 2, 3, 4} to {a, b, c} is