NCERT Solutions for Class 12 Maths Chapter 1: Relations and Functions
12NCERT Mathematics · solved
Relations and Functions builds on Class 11: a relation links elements of sets, and a function sends each input to exactly one output. Here you learn when a relation is reflexive, symmetric and transitive (an equivalence relation, which sorts a set into separate classes), and when a function is one-one, onto or both (bijective).
Download PDFBoard questions on this chapter (6)
Try each question, open its solution, then mark yourself: 0 of 53 checked · 0 right
Exercise 1.1
Question 1. Determine whether each of the following relations are reflexive, symmetric and transitive:
(i) Relation R in the set A = {1, 2, 3, ..., 13, 14} defined as R = {(x, y) : 3x − y = 0}
Show solution
- 3x − y = 0 means y = 3x, and y must be in A (y ≤ 14), so x can be 1, 2, 3, 4
- R = {(1, 3), (2, 6), (3, 9), (4, 12)}
- Reflexive? (1, 1) ∉ R, so not reflexive
- Symmetric? (1, 3) ∈ R but (3, 1) ∉ R, so not symmetric
- Transitive? (1, 3) ∈ R and (3, 9) ∈ R but (1, 9) ∉ R, so not transitive
Answer: R is neither reflexive, nor symmetric, nor transitive.
(ii) Relation R in the set N of natural numbers defined as R = {(x, y) : y = x + 5 and x < 4}
Show solution
- x < 4 gives x = 1, 2, 3, so R = {(1, 6), (2, 7), (3, 8)}
- Reflexive? (1, 1) ∉ R, so not reflexive
- Symmetric? (1, 6) ∈ R but (6, 1) ∉ R, so not symmetric
- Transitive? For (x, y) and (y, z) both in R, y would have to be a first entry; but the second entries 6, 7, 8 are never first entries
- So the condition is never broken: R is transitive
Answer: R is transitive, but neither reflexive nor symmetric.
(iii) Relation R in the set A = {1, 2, 3, 4, 5, 6} as R = {(x, y) : y is divisible by x}
Show solution
- Reflexive: every x divides itself, so (x, x) ∈ R for all x ∈ A
- Symmetric? 2 is divisible by 1, so (1, 2) ∈ R; 1 is not divisible by 2, so (2, 1) ∉ R. Not symmetric
- Transitive: if x divides y and y divides z, then y = mx and z = ny, so z = (mn)x; x divides z, so (x, z) ∈ R
Answer: R is reflexive and transitive but not symmetric.
(iv) Relation R in the set Z of all integers defined as R = {(x, y) : x − y is an integer}
Show solution
- Reflexive: x − x = 0 is an integer, so (x, x) ∈ R
- Symmetric: if x − y is an integer, then y − x = −(x − y) is also an integer
- Transitive: if x − y and y − z are integers, then x − z = (x − y) + (y − z) is an integer
Answer: R is reflexive, symmetric and transitive (an equivalence relation).
(v)(a) Relation R in the set A of human beings in a town at a particular time: R = {(x, y) : x and y work at the same place}
Show solution
- Reflexive: x works at the same place as x
- Symmetric: if x works where y works, then y works where x works
- Transitive: if x and y work at the same place, and y and z work at the same place, then x and z work at that same place
Answer: R is reflexive, symmetric and transitive.
(v)(b) R = {(x, y) : x and y live in the same locality}
Show solution
- Reflexive: x lives in the same locality as x
- Symmetric: if x lives in y's locality, y lives in x's locality
- Transitive: x and y share a locality, y and z share a locality, so x and z live in that same locality
Answer: R is reflexive, symmetric and transitive.
(v)(c) R = {(x, y) : x is exactly 7 cm taller than y}
Show solution
- Reflexive? x cannot be 7 cm taller than himself, so not reflexive
- Symmetric? If x is 7 cm taller than y, then y is 7 cm shorter than x, not taller. Not symmetric
- Transitive? If x is 7 cm taller than y and y is 7 cm taller than z, then x is 14 cm taller than z, not 7 cm. Not transitive
Answer: R is neither reflexive, nor symmetric, nor transitive.
(v)(d) R = {(x, y) : x is wife of y}
Show solution
- Reflexive? Nobody is his or her own wife, so not reflexive
- Symmetric? If x is the wife of y, then y is the husband of x, not the wife. Not symmetric
- Transitive? (x, y) ∈ R makes y a husband (a man); a man cannot be a wife, so (y, z) ∈ R is impossible
- The condition can never fail, so R is transitive
Answer: R is transitive, but neither reflexive nor symmetric.
(v)(e) R = {(x, y) : x is father of y}
Show solution
- Reflexive? Nobody is his own father. Not reflexive
- Symmetric? If x is the father of y, y is a child of x, not the father. Not symmetric
- Transitive? If x is the father of y and y the father of z, then x is the grandfather of z, not the father. Not transitive
Answer: R is neither reflexive, nor symmetric, nor transitive.
Question 2. Show that the relation R in the set R of real numbers, defined as R = {(a, b) : a ≤ b²} is neither reflexive nor symmetric nor transitive.
Show solution
- Not reflexive: take a = 1/2. Is 1/2 ≤ (1/2)² = 1/4? No. So (1/2, 1/2) ∉ R
- Not symmetric: 1 ≤ 4² = 16, so (1, 4) ∈ R; but 4 ≤ 1² = 1 is false, so (4, 1) ∉ R
- Not transitive: 3 ≤ 2² = 4, so (3, 2) ∈ R; 2 ≤ (1.5)² = 2.25, so (2, 1.5) ∈ R
- But 3 ≤ (1.5)² = 2.25 is false, so (3, 1.5) ∉ R
- Hence R is neither reflexive nor symmetric nor transitive.
Answer: Shown with counter-examples: (1/2, 1/2) ∉ R; (1, 4) ∈ R but (4, 1) ∉ R; (3, 2), (2, 1.5) ∈ R but (3, 1.5) ∉ R.
Question 3. Check whether the relation R defined in the set {1, 2, 3, 4, 5, 6} as R = {(a, b) : b = a + 1} is reflexive, symmetric or transitive.
Show solution
- R = {(1, 2), (2, 3), (3, 4), (4, 5), (5, 6)}
- Reflexive? (1, 1) ∉ R since 1 ≠ 1 + 1. Not reflexive
- Symmetric? (1, 2) ∈ R but (2, 1) ∉ R. Not symmetric
- Transitive? (1, 2), (2, 3) ∈ R but (1, 3) ∉ R. Not transitive
Answer: R is neither reflexive, nor symmetric, nor transitive.
Question 4. Show that the relation R in R defined as R = {(a, b) : a ≤ b}, is reflexive and transitive but not symmetric.
Show solution
- Reflexive: a ≤ a for every real a, so (a, a) ∈ R
- Transitive: if a ≤ b and b ≤ c then a ≤ c, so (a, b), (b, c) ∈ R ⇒ (a, c) ∈ R
- Not symmetric: 1 ≤ 2 so (1, 2) ∈ R, but 2 ≤ 1 is false so (2, 1) ∉ R
- Hence R is reflexive and transitive but not symmetric.
Answer: R is reflexive and transitive but not symmetric.
Question 5. Check whether the relation R in R defined by R = {(a, b) : a ≤ b³} is reflexive, symmetric or transitive.
Show solution
- Reflexive? Take a = 1/2: is 1/2 ≤ (1/2)³ = 1/8? No. So (1/2, 1/2) ∉ R: not reflexive
- Symmetric? 1 ≤ 2³ = 8 so (1, 2) ∈ R; 2 ≤ 1³ = 1 is false so (2, 1) ∉ R: not symmetric
- Transitive? 3 ≤ (3/2)³ = 27/8 = 3.375, so (3, 3/2) ∈ R; 3/2 ≤ (4/3)³ = 64/27 ≈ 2.37, so (3/2, 4/3) ∈ R
- But 3 ≤ (4/3)³ ≈ 2.37 is false, so (3, 4/3) ∉ R: not transitive
Answer: R is neither reflexive, nor symmetric, nor transitive.
Question 6. Show that the relation R in the set {1, 2, 3} given by R = {(1, 2), (2, 1)} is symmetric but neither reflexive nor transitive.
Show solution
- Symmetric: (1, 2) ∈ R and (2, 1) ∈ R; these are the only pairs, so every pair has its reverse in R
- Not reflexive: (1, 1) ∉ R (also (2, 2), (3, 3) are missing)
- Not transitive: (1, 2) ∈ R and (2, 1) ∈ R, but (1, 1) ∉ R
- Hence R is symmetric but neither reflexive nor transitive.
Answer: R is symmetric but neither reflexive nor transitive.
Question 7. Show that the relation R in the set A of all the books in a library of a college, given by R = {(x, y) : x and y have same number of pages} is an equivalence relation.
Show solution
- Reflexive: a book x has the same number of pages as itself, so (x, x) ∈ R
- Symmetric: if x and y have the same number of pages, so do y and x
- Transitive: if x and y have the same number of pages, and y and z have the same number of pages, then x and z have that same number
- So R is reflexive, symmetric and transitive: an equivalence relation.
Answer: R is an equivalence relation.
Question 8. Show that the relation R in the set A = {1, 2, 3, 4, 5} given by R = {(a, b) : |a − b| is even}, is an equivalence relation. Show that all the elements of {1, 3, 5} are related to each other and all the elements of {2, 4} are related to each other. But no element of {1, 3, 5} is related to any element of {2, 4}.
Show solution
- Reflexive: |a − a| = 0, which is even, so (a, a) ∈ R
- Symmetric: |b − a| = |a − b|, so if one is even, so is the other
- Transitive: |a − b| even means a and b are both odd or both even; same for b and c; so a and c have the same parity and |a − c| is even
- So R is an equivalence relation
- In {1, 3, 5}: |1 − 3| = 2, |1 − 5| = 4, |3 − 5| = 2, all even, so all are related to each other
- In {2, 4}: |2 − 4| = 2, even, so 2 and 4 are related
- An odd number minus an even number is odd, so |a − b| is odd for a ∈ {1, 3, 5}, b ∈ {2, 4}: no such pair is related
Answer: R is an equivalence relation with classes {1, 3, 5} and {2, 4}; no element of one is related to any element of the other.
Question 9. Show that each of the relation R in the set A = {x ∈ Z : 0 ≤ x ≤ 12}, given by (i) R = {(a, b) : |a − b| is a multiple of 4} (ii) R = {(a, b) : a = b} is an equivalence relation. Find the set of all elements related to 1 in each case.
(i) R = {(a, b) : |a − b| is a multiple of 4}
Show solution
- A = {0, 1, 2, ..., 12}
- Reflexive: |a − a| = 0 = 4 × 0, a multiple of 4
- Symmetric: |b − a| = |a − b|, so it is a multiple of 4 as well
- Transitive: if a − b = 4m and b − c = 4n, then a − c = 4(m + n), a multiple of 4
- So R is an equivalence relation
- Elements related to 1: |x − 1| ∈ {0, 4, 8, 12, ...} with 0 ≤ x ≤ 12, so x = 1, 5, 9
Answer: R is an equivalence relation; the set of elements related to 1 is {1, 5, 9}.
(ii) R = {(a, b) : a = b}
Show solution
- Reflexive: a = a, so (a, a) ∈ R
- Symmetric: a = b ⇒ b = a
- Transitive: a = b and b = c ⇒ a = c
- So R is an equivalence relation
- Elements related to 1: only x = 1
Answer: R is an equivalence relation; the set of elements related to 1 is {1}.
Question 10. Give an example of a relation. Which is
(i) Symmetric but neither reflexive nor transitive.
Show solution
- Take A = {1, 2, 3} and R = {(1, 2), (2, 1)}
- Symmetric: each pair's reverse is in R
- Not reflexive: (1, 1) ∉ R
- Not transitive: (1, 2), (2, 1) ∈ R but (1, 1) ∉ R
Answer: R = {(1, 2), (2, 1)} in A = {1, 2, 3}.
(ii) Transitive but neither reflexive nor symmetric.
Show solution
- Take A = {1, 2, 3} and R = {(1, 2), (2, 3), (1, 3)}
- Transitive: the only chain is (1, 2), (2, 3), and (1, 3) ∈ R
- Not reflexive: (1, 1) ∉ R
- Not symmetric: (1, 2) ∈ R but (2, 1) ∉ R
- (Another example: R = {(a, b) : a < b} in R.)
Answer: R = {(1, 2), (2, 3), (1, 3)} in A = {1, 2, 3}.
(iii) Reflexive and symmetric but not transitive.
Show solution
- Take A = {1, 2, 3} and R = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 1), (2, 3), (3, 2)}
- Reflexive: (1, 1), (2, 2), (3, 3) ∈ R
- Symmetric: every pair's reverse is present
- Not transitive: (1, 2), (2, 3) ∈ R but (1, 3) ∉ R
Answer: R = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 1), (2, 3), (3, 2)} in A = {1, 2, 3}.
(iv) Reflexive and transitive but not symmetric.
Show solution
- Take A = {1, 2, 3} and R = {(1, 1), (2, 2), (3, 3), (1, 2)}
- Reflexive: all (a, a) are present
- Transitive: any chain uses (a, a), so it gives back a pair already in R
- Not symmetric: (1, 2) ∈ R but (2, 1) ∉ R
- (Another example: R = {(a, b) : a ≤ b} in R.)
Answer: R = {(1, 1), (2, 2), (3, 3), (1, 2)} in A = {1, 2, 3}.
(v) Symmetric and transitive but not reflexive.
Show solution
- Take A = {1, 2, 3} and R = {(1, 1), (1, 2), (2, 1), (2, 2)}
- Symmetric: (1, 2) and (2, 1) are both present
- Transitive: R contains every pair from {1, 2}, so any chain stays inside R
- Not reflexive: (3, 3) ∉ R
Answer: R = {(1, 1), (1, 2), (2, 1), (2, 2)} in A = {1, 2, 3}.
Question 11. Show that the relation R in the set A of points in a plane given by R = {(P, Q) : distance of the point P from the origin is same as the distance of the point Q from the origin}, is an equivalence relation. Further, show that the set of all points related to a point P ≠ (0, 0) is the circle passing through P with origin as centre.
Show solution
- Let O be the origin. (P, Q) ∈ R means OP = OQ
- Reflexive: OP = OP, so (P, P) ∈ R
- Symmetric: OP = OQ ⇒ OQ = OP
- Transitive: OP = OQ and OQ = OS ⇒ OP = OS
- So R is an equivalence relation
- Points related to P are all Q with OQ = OP = r (a fixed positive number, as P ≠ O)
- The set of all points at distance r from O is the circle with centre O and radius r, which passes through P
Answer: R is an equivalence relation, and the points related to P form the circle with centre O through P.
Question 12. Show that the relation R defined in the set A of all triangles as R = {(T₁, T₂) : T₁ is similar to T₂}, is equivalence relation. Consider three right angle triangles T₁ with sides 3, 4, 5, T₂ with sides 5, 12, 13 and T₃ with sides 6, 8, 10. Which triangles among T₁, T₂ and T₃ are related?
Show solution
- Reflexive: every triangle is similar to itself
- Symmetric: if T₁ is similar to T₂ then T₂ is similar to T₁
- Transitive: if T₁ ~ T₂ and T₂ ~ T₃ then T₁ ~ T₃ (equal angles carry over)
- So R is an equivalence relation
- T₁ and T₃: 3/6 = 4/8 = 5/10 = 1/2, sides proportional, so T₁ ~ T₃
- T₁ and T₂: 3/5 ≠ 4/12, not similar; so T₂ is not similar to T₃ either
Answer: R is an equivalence relation; only T₁ and T₃ are related.
Question 13. Show that the relation R defined in the set A of all polygons as R = {(P₁, P₂) : P₁ and P₂ have same number of sides}, is an equivalence relation. What is the set of all elements in A related to the right angle triangle T with sides 3, 4 and 5?
Show solution
- Reflexive: a polygon has the same number of sides as itself
- Symmetric: if P₁ and P₂ have the same number of sides, so do P₂ and P₁
- Transitive: if P₁, P₂ have the same number of sides and P₂, P₃ too, then P₁, P₃ have that same number
- So R is an equivalence relation
- T is a triangle (3 sides), so the polygons related to T are exactly the polygons with 3 sides
Answer: R is an equivalence relation; the set related to T is the set of all triangles.
Question 14. Let L be the set of all lines in XY plane and R be the relation in L defined as R = {(L₁, L₂) : L₁ is parallel to L₂}. Show that R is an equivalence relation. Find the set of all lines related to the line y = 2x + 4.
Show solution
- Reflexive: every line is taken as parallel to itself, so (L, L) ∈ R
- Symmetric: L₁ ∥ L₂ ⇒ L₂ ∥ L₁
- Transitive: L₁ ∥ L₂ and L₂ ∥ L₃ ⇒ L₁ ∥ L₃
- So R is an equivalence relation
- Lines parallel to y = 2x + 4 have the same slope 2, so they are y = 2x + c
Answer: R is an equivalence relation; the lines related to y = 2x + 4 are all lines y = 2x + c, c ∈ R.
Question 15. Let R be the relation in the set {1, 2, 3, 4} given by R = {(1, 2), (2, 2), (1, 1), (4, 4), (1, 3), (3, 3), (3, 2)}. Choose the correct answer. (A) R is reflexive and symmetric but not transitive. (B) R is reflexive and transitive but not symmetric. (C) R is symmetric and transitive but not reflexive. (D) R is an equivalence relation.
Show solution
- Reflexive: (1, 1), (2, 2), (3, 3), (4, 4) are all in R
- Not symmetric: (1, 2) ∈ R but (2, 1) ∉ R
- Transitive: check the chains: (1, 3), (3, 2) ⇒ (1, 2) ∈ R; (1, 2), (2, 2) ⇒ (1, 2) ∈ R; (3, 2), (2, 2) ⇒ (3, 2) ∈ R; (1, 3), (3, 3) ⇒ (1, 3) ∈ R
- Chains with (a, a) give back the same pair, so R is transitive
Answer: (B) R is reflexive and transitive but not symmetric.
Question 16. Let R be the relation in the set N given by R = {(a, b) : a = b − 2, b > 6}. Choose the correct answer. (A) (2, 4) ∈ R (B) (3, 8) ∈ R (C) (6, 8) ∈ R (D) (8, 7) ∈ R
Show solution
- (2, 4): b = 4 is not > 6, so no
- (3, 8): 8 − 2 = 6 ≠ 3, so no
- (6, 8): 8 > 6 and 8 − 2 = 6 = a, so yes
- (8, 7): 7 − 2 = 5 ≠ 8, so no
Answer: (C) (6, 8) ∈ R.
Exercise 1.2
Question 1. Show that the function f : R∗ → R∗ defined by f(x) = 1/x is one-one and onto, where R∗ is the set of all non-zero real numbers. Is the result true, if the domain R∗ is replaced by N with co-domain being same as R∗?
Show solution
- One-one: f(x₁) = f(x₂) ⇒ 1/x₁ = 1/x₂ ⇒ x₁ = x₂
- Onto: take any y ∈ R∗. Then x = 1/y ∈ R∗ and f(x) = 1/(1/y) = y. So every y has a pre-image
- So f : R∗ → R∗ is one-one and onto
- Now g : N → R∗, g(x) = 1/x. One-one: 1/x₁ = 1/x₂ ⇒ x₁ = x₂, still true
- Onto? Take y = 2 ∈ R∗: 1/x = 2 gives x = 1/2 ∉ N. So 2 has no pre-image; g is not onto
Answer: f is one-one and onto. With domain N the function is still one-one but not onto.
Question 2. Check the injectivity and surjectivity of the following functions:
(i) f : N → N given by f(x) = x²
Show solution
- Injective: for x₁, x₂ ∈ N, x₁² = x₂² ⇒ x₁ = x₂ (both are positive)
- Surjective? 2 ∈ N, but x² = 2 has no natural solution. Not surjective
Answer: f is injective but not surjective.
(ii) f : Z → Z given by f(x) = x²
Show solution
- Injective? f(−1) = 1 = f(1) but −1 ≠ 1. Not injective
- Surjective? −1 ∈ Z, but x² = −1 has no solution in Z. Not surjective
Answer: f is neither injective nor surjective.
(iii) f : R → R given by f(x) = x²
Show solution
- Injective? f(−1) = f(1) = 1. Not injective
- Surjective? −1 ∈ R, but x² ≥ 0 for every real x, so x² = −1 has no solution. Not surjective
Answer: f is neither injective nor surjective.
(iv) f : N → N given by f(x) = x³
Show solution
- Injective: x₁³ = x₂³ ⇒ x₁ = x₂
- Surjective? 2 ∈ N, but x³ = 2 has no natural solution. Not surjective
Answer: f is injective but not surjective.
(v) f : Z → Z given by f(x) = x³
Show solution
- Injective: x₁³ = x₂³ ⇒ x₁ = x₂ (a real number has only one real cube root)
- Surjective? 2 ∈ Z, but x³ = 2 has no integer solution. Not surjective
Answer: f is injective but not surjective.
Question 3. Prove that the Greatest Integer Function f : R → R, given by f(x) = [x], is neither one-one nor onto, where [x] denotes the greatest integer less than or equal to x.
Show solution
- Not one-one: f(1.2) = 1 and f(1.9) = 1, but 1.2 ≠ 1.9
- Not onto: [x] is always an integer, so a non-integer like 0.5 in the co-domain R has no pre-image
- Hence f is neither one-one nor onto.
Answer: Shown: f(1.2) = f(1.9) = 1, and 0.5 is not the image of any x.
Question 4. Show that the Modulus Function f : R → R, given by f(x) = |x|, is neither one-one nor onto, where |x| is x, if x is positive or 0 and |x| is −x, if x is negative.
Show solution
- Not one-one: f(−1) = 1 = f(1), but −1 ≠ 1
- Not onto: |x| ≥ 0 for every x, so −1 ∈ R (co-domain) has no pre-image
- Hence f is neither one-one nor onto.
Answer: Shown: f(−1) = f(1), and negative numbers are not images.
Question 5. Show that the Signum Function f : R → R, given by f(x) = 1 if x > 0; 0 if x = 0; −1 if x < 0, is neither one-one nor onto.
Show solution
- Not one-one: f(1) = 1 = f(2), but 1 ≠ 2
- Not onto: the range is {−1, 0, 1}; a number like 2 in the co-domain R has no pre-image
- Hence f is neither one-one nor onto.
Answer: Shown: f(1) = f(2) = 1, and the range {−1, 0, 1} is not all of R.
Question 6. Let A = {1, 2, 3}, B = {4, 5, 6, 7} and let f = {(1, 4), (2, 5), (3, 6)} be a function from A to B. Show that f is one-one.
Show solution
- f(1) = 4, f(2) = 5, f(3) = 6
- The three elements of A have three different images
- So distinct elements have distinct images: f is one-one (it is not onto, since 7 has no pre-image)
Answer: f is one-one.
Question 7. In each of the following cases, state whether the function is one-one, onto or bijective. Justify your answer.
(i) f : R → R defined by f(x) = 3 − 4x
Show solution
- One-one: 3 − 4x₁ = 3 − 4x₂ ⇒ x₁ = x₂
- Onto: for any y ∈ R, solve y = 3 − 4x: x = (3 − y)/4 ∈ R
- Check: f((3 − y)/4) = 3 − (3 − y) = y
- So f is one-one and onto
Answer: f is bijective.
(ii) f : R → R defined by f(x) = 1 + x²
Show solution
- Not one-one: f(1) = 2 = f(−1)
- Not onto: 1 + x² ≥ 1, so 0 ∈ R has no pre-image
Answer: f is neither one-one nor onto.
Question 8. Let A and B be sets. Show that f : A × B → B × A such that f(a, b) = (b, a) is bijective function.
Show solution
- One-one: f(a₁, b₁) = f(a₂, b₂) ⇒ (b₁, a₁) = (b₂, a₂) ⇒ b₁ = b₂ and a₁ = a₂ ⇒ (a₁, b₁) = (a₂, b₂)
- Onto: take any (b, a) ∈ B × A. Then (a, b) ∈ A × B and f(a, b) = (b, a)
- So f is one-one and onto: bijective.
Answer: f is bijective.
Question 9. Let f : N → N be defined by f(n) = (n + 1)/2, if n is odd; n/2, if n is even, for all n ∈ N. State whether the function f is bijective. Justify your answer.
Show solution
- f(1) = (1 + 1)/2 = 1 and f(2) = 2/2 = 1
- So f(1) = f(2) with 1 ≠ 2: f is not one-one
- Onto: for any m ∈ N, 2m is even and f(2m) = m, so every m has a pre-image; f is onto
- A bijection must be one-one, so f is not bijective
Answer: f is onto but not one-one, so it is not bijective.
Question 10. Let A = R − {3} and B = R − {1}. Consider the function f : A → B defined by f(x) = (x − 2)/(x − 3). Is f one-one and onto? Justify your answer.
Show solution
- One-one: (x₁ − 2)/(x₁ − 3) = (x₂ − 2)/(x₂ − 3)
- ⇒ (x₁ − 2)(x₂ − 3) = (x₂ − 2)(x₁ − 3) ⇒ x₁x₂ − 3x₁ − 2x₂ + 6 = x₁x₂ − 3x₂ − 2x₁ + 6
- ⇒ −3x₁ − 2x₂ = −3x₂ − 2x₁ ⇒ x₁ = x₂. So f is one-one
- Onto: take y ∈ B (y ≠ 1). Solve y = (x − 2)/(x − 3): xy − 3y = x − 2 ⇒ x(y − 1) = 3y − 2 ⇒ x = (3y − 2)/(y − 1)
- This x is defined since y ≠ 1, and x ≠ 3 (x = 3 would need 3y − 2 = 3y − 3, impossible), so x ∈ A
- Check: f(x) = [(3y − 2) − 2(y − 1)]/[(3y − 2) − 3(y − 1)] = y/1 = y. So f is onto
Answer: Yes, f is one-one and onto (bijective).
Question 11. Let f : R → R be defined as f(x) = x⁴. Choose the correct answer. (A) f is one-one onto (B) f is many-one onto (C) f is one-one but not onto (D) f is neither one-one nor onto.
Show solution
- f(1) = 1 = f(−1), so f is many-one (not one-one)
- x⁴ ≥ 0, so −1 has no pre-image: f is not onto
Answer: (D) f is neither one-one nor onto.
Question 12. Let f : R → R be defined as f(x) = 3x. Choose the correct answer. (A) f is one-one onto (B) f is many-one onto (C) f is one-one but not onto (D) f is neither one-one nor onto.
Show solution
- One-one: 3x₁ = 3x₂ ⇒ x₁ = x₂
- Onto: for any y ∈ R, x = y/3 ∈ R and f(y/3) = y
Answer: (A) f is one-one onto.
Miscellaneous Exercise on Chapter 1
Question 1. Show that the function f : R → {x ∈ R : −1 < x < 1} defined by f(x) = x/(1 + |x|), x ∈ R is one one and onto function.
Show solution
- For x ≥ 0: f(x) = x/(1 + x), which lies in [0, 1). For x < 0: f(x) = x/(1 − x), which lies in (−1, 0)
- So f(x) has the same sign as x, and f(x) always lies in (−1, 1)
- One-one: if f(x₁) = f(x₂), then x₁, x₂ have the same sign (or are both 0)
- Both ≥ 0: x₁/(1 + x₁) = x₂/(1 + x₂) ⇒ x₁ + x₁x₂ = x₂ + x₁x₂ ⇒ x₁ = x₂
- Both < 0: x₁/(1 − x₁) = x₂/(1 − x₂) ⇒ x₁ − x₁x₂ = x₂ − x₁x₂ ⇒ x₁ = x₂. So f is one-one
- Onto: let −1 < y < 1. If 0 ≤ y < 1, take x = y/(1 − y) ≥ 0: f(x) = [y/(1 − y)]/[1/(1 − y)] = y
- If −1 < y < 0, take x = y/(1 + y) < 0: f(x) = x/(1 − x) = [y/(1 + y)]/[1/(1 + y)] = y
- Every y in the co-domain has a pre-image, so f is onto
Answer: f is one-one and onto.
Question 2. Show that the function f : R → R given by f(x) = x³ is injective.
Show solution
- Let f(x₁) = f(x₂): x₁³ = x₂³ ⇒ x₁³ − x₂³ = 0 ⇒ (x₁ − x₂)(x₁² + x₁x₂ + x₂²) = 0
- x₁² + x₁x₂ + x₂² = (x₁ + x₂/2)² + 3x₂²/4, which is 0 only when x₁ = x₂ = 0
- So in every case x₁ = x₂: f is injective.
Answer: f(x) = x³ is injective.
Question 3. Given a non empty set X, consider P(X) which is the set of all subsets of X. Define the relation R in P(X) as follows: For subsets A, B in P(X), ARB if and only if A ⊂ B. Is R an equivalence relation on P(X)? Justify your answer.
Show solution
- Reflexive: every set is a subset of itself, A ⊂ A
- Transitive: A ⊂ B and B ⊂ C ⇒ A ⊂ C
- Symmetric? φ ⊂ X, but X ⊄ φ because X is non-empty. So φ R X but not X R φ
- R is not symmetric, so it is not an equivalence relation
Answer: No. R is reflexive and transitive but not symmetric, so it is not an equivalence relation.
Question 4. Find the number of all onto functions from the set {1, 2, 3, ......, n} to itself.
Show solution
- For a finite set, a function from the set to itself is onto exactly when it is one-one, i.e. a bijection
- Image of 1: n choices; image of 2: (n − 1) choices (must differ); ...; image of n: 1 choice
- Number = n(n − 1)(n − 2) ... 1 = n!
Answer: n!
Question 5. Let A = {−1, 0, 1, 2}, B = {−4, −2, 0, 2} and f, g : A → B be functions defined by f(x) = x² − x, x ∈ A and g(x) = 2|x − 1/2| − 1, x ∈ A. Are f and g equal? Justify your answer. (Hint: One may note that two functions f : A → B and g : A → B such that f(a) = g(a) ∀ a ∈ A, are called equal functions).
Show solution
- f(−1) = 1 + 1 = 2, g(−1) = 2|−3/2| − 1 = 3 − 1 = 2
- f(0) = 0, g(0) = 2|−1/2| − 1 = 1 − 1 = 0
- f(1) = 1 − 1 = 0, g(1) = 2|1/2| − 1 = 0
- f(2) = 4 − 2 = 2, g(2) = 2|3/2| − 1 = 3 − 1 = 2
- f(a) = g(a) for every a ∈ A, and both have the same domain and co-domain
Answer: Yes, f and g are equal.
Question 6. Let A = {1, 2, 3}. Then number of relations containing (1, 2) and (1, 3) which are reflexive and symmetric but not transitive is (A) 1 (B) 2 (C) 3 (D) 4
Show solution
- Reflexive needs (1, 1), (2, 2), (3, 3); symmetric needs (2, 1), (3, 1) as well
- R = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 1), (1, 3), (3, 1)} is reflexive and symmetric
- It is not transitive: (2, 1), (1, 3) ∈ R but (2, 3) ∉ R
- The only pairs left to add are (2, 3) and (3, 2) (both together, for symmetry); adding them gives A × A, which is transitive
- So exactly one such relation exists
Answer: (A) 1
Question 7. Let A = {1, 2, 3}. Then number of equivalence relations containing (1, 2) is (A) 1 (B) 2 (C) 3 (D) 4
Show solution
- An equivalence relation containing (1, 2) must put 1 and 2 in the same class
- Either 3 is in a class by itself: R₁ = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 1)}
- Or 3 joins them: R₂ = A × A (the universal relation)
- No other choice is possible
Answer: (B) 2
Key points of Relations and Functions (quick revision)
- A relation R in a set A is a subset of A × A. Empty relation: R = φ. Universal relation: R = A × A.
- Reflexive: (a, a) ∈ R for every a ∈ A. Symmetric: (a, b) ∈ R ⇒ (b, a) ∈ R. Transitive: (a, b) ∈ R and (b, c) ∈ R ⇒ (a, c) ∈ R.
- An equivalence relation is reflexive, symmetric and transitive. It splits A into disjoint equivalence classes; [a] is the set of all elements related to a.
- To show a property fails, one counter-example (a specific pair) is enough.
- One-one (injective): f(x₁) = f(x₂) ⇒ x₁ = x₂, i.e. different inputs give different outputs.
- Onto (surjective): every y in the co-domain has some x with f(x) = y, i.e. range = co-domain.
- Bijective = one-one and onto. For a finite set X, a function f : X → X is one-one if and only if it is onto.
- To prove onto: start from any y in the co-domain, solve y = f(x) for x, and check that this x lies in the domain.
- The number of bijections (one-one onto maps) from a set of n elements to itself is n!.
How these solutions were checked
- Every question of the NCERT Mathematics reprint for 2026-27 is here, in the book's order and numbering.
- Every answer is worked out in full, then checked by substituting it back or recomputing it (algebra and calculus answers are verified by differentiation or computer algebra).
- Where the book has a misprint, or its printed answer differs from the correct one, the solution says so and shows why, so you can trust what you write in the exam.
- Found something that looks wrong? Tell us about it, and we correct it and update this page and its PDF.
Questions
How many exercises are there in Class 12 Maths Chapter 1 Relations and Functions?
3 (Exercise 1.1, Exercise 1.2, Miscellaneous Exercise on Chapter 1), with 53 questions and parts in all. Every one is solved on this page.
Can I download the Class 12 Maths Chapter 1 Relations and Functions NCERT solutions as a PDF?
Yes. The PDF has every question and its solution, free to download and print, with no sign-in.
Are questions from Relations and Functions asked in the CBSE board exam?
Yes: 6 board questions from 3 papers (2023–2025), 16 marks in all. They are solved on our chapter-wise page.
Questions are from the NCERT textbook Mathematics for Class 12; the solutions are written by beMahan.All Class 12 NCERT solutions