A2ZLY
Class 12 Maths Relations and Functions Questions with Solutions

Class 12 Maths Relations and Functions Questions with Solutions

Class: 12 | Subject: Mathematics

Chapter: Relations and Functions

Academic Session: 2026–27

Source Category: NCERT (NCERT Textbook Examples)

Welcome to the comprehensive collection of solved examples for Class 12 Mathematics Chapter 1: Relations and Functions. This resource has been structured to aid students in mastering core mathematical concepts such as empty, universal, and equivalence relations, as well as one-one (injective), onto (surjective), bijective functions, and composite/inverse functions. Utilize these step-by-step examples provided by PYQLY.com to strengthen your analytical problem-solving skills for board examinations.

For standard curriculum guidelines and official textbooks, students can always cross-refer to the resources hosted on NCERT and academic updates provided by CBSE.

Chapter 1: Solved Examples

Example 1 NCERT Textbook Example
Let A be the set of all students of a boys school. Show that the relation R in A given by $R=\{(a,b): a \text{ is sister of } b\}$ is the empty relation and $R^{\prime}=\{(a,b): \text{the difference between heights of } a \text{ and } b \text{ is less than } 3 \text{ meters}\}$ is the universal relation.
Detailed Solution:
Since the school is a boys school, no student of the school can be sister of any student of the school. Hence, $R=\phi$, showing that R is the empty relation. It is also obvious that the difference between heights of any two students of the school has to be less than 3 meters. This shows that $R^{\prime}=A\times A$ is the universal relation.
Example 2 NCERT Textbook Example
Let T be the set of all triangles in a plane with R a relation in T given by $R=\{(T_1, T_2): T_1 \text{ is congruent to } T_2\}$. Show that R is an equivalence relation.
Detailed Solution:
R is reflexive, since every triangle is congruent to itself. Further, $(T_1, T_2)\in R \Rightarrow T_1$ is congruent to $T_2 \Rightarrow T_2$ is congruent to $T_1 \Rightarrow (T_2, T_1)\in R$. Hence, R is symmetric. Moreover, $(T_1, T_2), (T_2, T_3)\in R \Rightarrow T_1$ is congruent to $T_2$ and $T_2$ is congruent to $T_3 \Rightarrow T_1$ is congruent to $T_3 \Rightarrow (T_1, T_3)\in R$. Therefore, R is an equivalence relation.
Example 3 NCERT Textbook Example
Let L be the set of all lines in a plane and R be the relation in L defined as $R=\{(L_1, L_2): L_1 \text{ is perpendicular to } L_2\}$. Show that R is symmetric but neither reflexive nor transitive.
Detailed Solution:
R is not reflexive, as a line $L_1$ can not be perpendicular to itself, i.e., $(L_1, L_1)\notin R$. R is symmetric as $(L_1, L_2)\in R \Rightarrow L_1$ is perpendicular to $L_2 \Rightarrow L_2$ is perpendicular to $L_1 \Rightarrow (L_2, L_1)\in R$. R is not transitive. Indeed, if $L_1$ is perpendicular to $L_2$ and $L_2$ is perpendicular to $L_3$, then $L_1$ can never be perpendicular to $L_3$. In fact, $L_1$ is parallel to $L_3$, i.e., $(L_1, L_2)\in R$, $(L_2, L_3)\in R$ but $(L_1, L_3)\notin R$.
Example 4 NCERT Textbook Example
Show that the relation R in the set {1, 2, 3} given by $R=\{(1, 1), (2, 2), (3, 3), (1, 2), (2, 3)\}$ is reflexive but neither symmetric nor transitive.
Detailed Solution:
R is reflexive, since (1, 1), (2, 2) and (3, 3) lie in R. Also, R is not symmetric, as $(1, 2)\in R$ but $(2, 1)\notin R$. Similarly, R is not transitive, as $(1, 2)\in R$ and $(2, 3)\in R$ but $(1, 3)\notin R$.
Example 5 NCERT Textbook Example
Show that the relation R in the set Z of integers given by $R=\{(a, b): 2 \text{ divides } a-b\}$ is an equivalence relation.
Detailed Solution:
R is reflexive, as 2 divides $(a-a)$ for all $a\in Z$. Further, if $(a, b)\in R$, then 2 divides $a-b$. Therefore, 2 divides $b-a$. Hence, $(b, a)\in R$, which shows that R is symmetric. Similarly, if $(a, b)\in R$ and $(b, c)\in R$, then $a-b$ and $b-c$ are divisible by 2. Now, $a-c=(a-b)+(b-c)$ is even, so $(a-c)$ is divisible by 2. This shows that R is transitive. Thus, R is an equivalence relation in Z.
Example 6 NCERT Textbook Example
Let R be the relation defined in the set $A=\{1, 2, 3, 4, 5, 6, 7\}$ by $R=\{(a, b): \text{both } a \text{ and } b \text{ are either odd or even}\}$. Show that R is an equivalence relation. Further, show that all the elements of the subset {1, 3, 5, 7} are related to each other and all the elements of the subset {2, 4, 6} are related to each other, but no element of the subset {1, 3, 5, 7} is related to any element of the subset {2, 4, 6}.
Detailed Solution:
Given any element a in A, both a and a must be either odd or even, so that $(a, a)\in R$. Further, $(a, b)\in R \Rightarrow$ both a and b must be either odd or even $\Rightarrow (b, a)\in R$. Similarly, $(a, b)\in R$ and $(b, c)\in R \Rightarrow$ all elements a, b, c must be either even or odd simultaneously $\Rightarrow (a, c)\in R$. Hence, R is an equivalence relation. Further, all the elements of {1, 3, 5, 7} are related to each other, as all the elements of this subset are odd. Similarly, all the elements of the subset {2, 4, 6} are related to each other, as all of them are even. Also, no element of the subset {1, 3, 5, 7} can be related to any element of {2, 4, 6}, as elements of {1, 3, 5, 7} are odd, while elements of {2, 4, 6} are even.
Example 7 NCERT Textbook Example
Let A be the set of all 50 students of Class X in a school. Let $f: A \rightarrow N$ be a function defined by $f(x) = \text{roll number of the student } x$. Show that f is one-one but not onto.
Detailed Solution:
No two different students of the class can have the same roll number. Therefore, f must be one-one. We can assume without any loss of generality that roll numbers of students are from 1 to 50. This implies that 51 in N is not the roll number of any student of the class, so 51 cannot be the image of any element of X under f. Hence, f is not onto.
Example 8 NCERT Textbook Example
Show that the function $f:N\rightarrow N$, given by $f(x)=2x$, is one-one but not onto.
Detailed Solution:
The function f is one-one, for $f(x_1)=f(x_2) \Rightarrow 2x_1=2x_2 \Rightarrow x_1=x_2$. Further, f is not onto, as for $1\in N$, there does not exist any x in N such that $f(x)=2x=1$.
Example 9 NCERT Textbook Example
Prove that the function $f:R\rightarrow R$ given by $f(x)=2x$ is one-one and onto.
Detailed Solution:
f is one-one, as $f(x_1)=f(x_2) \Rightarrow 2x_1=2x_2 \Rightarrow x_1=x_2$. Also, given any real number y in R, there exists $\frac{y}{2}$ in R such that $f(\frac{y}{2})=2(\frac{y}{2})=y$. Hence, f is onto.
Example 10 NCERT Textbook Example
Show that the function $N\rightarrow N$, given by $f(1)=f(2)=1$ and $f(x)=x-1$, for every $x>2$ is onto but not one-one.
Detailed Solution:
f is not one-one, as $f(1)=f(2)=1$. But f is onto, as given any $y\in N$, $y\ne 1$, we can choose x as $y+1$ such that $f(y+1)=y+1-1=y$. Also for $1\in N$, we have $f(1)=1$.
Example 11 NCERT Textbook Example
Show that the function $f:R\rightarrow R$ defined as $f(x)=x^2$ is neither one-one nor onto.
Detailed Solution:
Since $f(-1)=1=f(1)$, f is not one-one. Also, the element -2 in the co-domain R is not the image of any element x in the domain R. Therefore, f is not onto.
Example 12 NCERT Textbook Example
Show that $f:N\rightarrow N$ given by
$$f(x) = \begin{cases} x-1, & \text{if } x \text{ is even} \\ x+1, & \text{if } x \text{ is odd} \end{cases}$$
is both one-one and onto.
Detailed Solution:
Suppose $f(x_1)=f(x_2)$. Note that if $x_1$ is odd and $x_2$ is even, then we will have $x_1+1=x_2-1$, i.e., $x_2-x_1=2$ which is impossible. Similarly, the possibility of $x_1$ being even and $x_2$ being odd can also be ruled out using similar arguments. Therefore, both $x_1$ and $x_2$ must be either odd or even. Suppose both $x_1$ and $x_2$ are odd, then $f(x_1)=f(x_2) \Rightarrow x_1+1=x_2+1 \Rightarrow x_1=x_2$. Similarly, if both are even, $f(x_1)=f(x_2) \Rightarrow x_1-1=x_2-1 \Rightarrow x_1=x_2$. Thus, f is one-one. Also, any odd number $2r+1$ in the co-domain N is the image of $2r+2$ in the domain N, and any even number 2r in the co-domain N is the image of $2r-1$ in the domain N. Thus, f is onto.
Example 13 NCERT Textbook Example
Show that an onto function $f:\{1, 2, 3\}\rightarrow\{1, 2, 3\}$ is always one-one.
Detailed Solution:
Suppose f is not one-one. Then there exist two elements, say 1 and 2 in the domain whose image in the co-domain is the same. Also, the image of 3 under f can be only one element. Therefore, the range set can have at most two elements of the co-domain {1, 2, 3}, showing that f is not onto, which is a contradiction. Hence, f must be one-one.
Example 14 NCERT Textbook Example
Show that a one-one function $f:\{1, 2, 3\}\rightarrow\{1, 2, 3\}$ must be onto.
Detailed Solution:
Since f is one-one, three elements of $\{1, 2, 3\}$ must be mapped to 3 different elements of the co-domain {1, 2, 3} under f. Hence, f has to be onto.
Example 15 NCERT Textbook Example
Let $f:\{2, 3, 4, 5\}\rightarrow\{3, 4, 5, 9\}$ and $g:\{3, 4, 5, 9\}\rightarrow\{7, 11, 15\}$ be functions defined as $f(2)=3$, $f(3)=4$, $f(4)=f(5)=5$ and $g(3)=g(4)=7$, $g(5)=g(9)=11$. Find gof.
Detailed Solution:
  • $gof(2) = g(f(2)) = g(3) = 7$
  • $gof(3) = g(f(3)) = g(4) = 7$
  • $gof(4) = g(f(4)) = g(5) = 11$
  • $gof(5) = g(f(5)) = g(5) = 11$
Example 16 NCERT Textbook Example
Find gof and fog, if $f:R\rightarrow R$ and $g:R\rightarrow R$ are given by $f(x)=\cos x$ and $g(x)=3x^2$. Show that $gof\ne fog$.
Detailed Solution:
We have $gof(x) = g(f(x)) = g(\cos x) = 3(\cos x)^2 = 3\cos^2 x$. Similarly, $fog(x) = f(g(x)) = f(3x^2) = \cos(3x^2)$. Note that $3\cos^2 x \ne \cos 3x^2$ for $x=0$. Hence, $gof\ne fog$.
Example 17 NCERT Textbook Example
Let $f:N\rightarrow Y$ be a function defined as $f(x)=4x+3$, where $Y=\{y\in N: y=4x+3 \text{ for some } x\in N\}$. Show that f is invertible. Find the inverse.
Detailed Solution:
Consider an arbitrary element y of Y. By the definition of Y, $y=4x+3$ for some x in the domain N. This shows that $x=\frac{y-3}{4}$. Define $g:Y\rightarrow N$ by $g(y)=\frac{y-3}{4}$. Now, $gof(x) = g(f(x)) = g(4x+3) = \frac{4x+3-3}{4} = x$ and $fog(y) = f(g(y)) = f(\frac{y-3}{4}) = \frac{4(y-3)}{4}+3 = y-3+3=y$. This shows that $gof=I_N$ and $fog=I_Y$, which implies that f is invertible and g is the inverse of f.
Example 18 NCERT Miscellaneous Example
If $R_1$ and $R_2$ are equivalence relations in a set A, show that $R_1\cap R_2$ is also an equivalence relation.
Detailed Solution:
Since $R_1$ and $R_2$ are equivalence relations, $(a, a)\in R_1$ and $(a, a)\in R_2$ for all $a\in A$. This implies that $(a, a)\in R_1\cap R_2$, showing $R_1\cap R_2$ is reflexive. Further, $(a, b)\in R_1\cap R_2 \Rightarrow (a, b)\in R_1$ and $(a, b)\in R_2 \Rightarrow (b, a)\in R_1$ and $(b, a)\in R_2 \Rightarrow (b, a)\in R_1\cap R_2$, hence $R_1\cap R_2$ is symmetric. Similarly, $(a, b)\in R_1\cap R_2$ and $(b, c)\in R_1\cap R_2 \Rightarrow (a, c)\in R_1$ and $(a, c)\in R_2 \Rightarrow (a, c)\in R_1\cap R_2$. This shows that $R_1\cap R_2$ is transitive. Thus, $R_1\cap R_2$ is an equivalence relation.
Example 19 NCERT Miscellaneous Example
Let R be a relation on the set A of ordered pairs of positive integers defined by $(x, y)R(u, v)$ if and only if $xv=yu$. Show that R is an equivalence relation.
Detailed Solution:
Clearly, $(x, y)R(x, y)$ for all $(x, y)\in A$, since $xy=yx$. This shows that R is reflexive. Further, $(x, y)R(u, v) \Rightarrow xv=yu \Rightarrow uy=vx \Rightarrow (u, v)R(x, y)$, showing R is symmetric. Similarly, $(x, y)R(u, v)$ and $(u, v)R(a, b) \Rightarrow xv=yu$ and $ub=va \Rightarrow xv\frac{b}{u}=yu\frac{b}{u} \Rightarrow xv\frac{b}{v}=yu\frac{a}{u} \Rightarrow xb=ya \Rightarrow (x, y)R(a, b)$. Thus, R is transitive, making it an equivalence relation.
Example 20 NCERT Miscellaneous Example
Let $X=\{1, 2, 3, 4, 5, 6, 7, 8, 9\}$. Let $R_1$ be a relation in X given by $R_1=\{(x, y): x-y \text{ is divisible by } 3\}$ and $R_2$ be another relation on X given by $R_2=\{\{x, y\}: \{x, y\}\subset\{1, 4, 7\} \text{ or } \{x, y\}\subset\{2, 5, 8\} \text{ or } \{x, y\}\subset\{3, 6, 9\}\}$. Show that $R_1=R_2$.
Detailed Solution:
The characteristic of sets {1, 4, 7}, {2, 5, 8} and {3, 6, 9} is that the difference between any two elements of these sets is a multiple of 3. Therefore, $(x, y)\in R_1 \Rightarrow x-y$ is a multiple of $3 \Rightarrow \{x, y\}\subset\{1, 4, 7\}$ or $\{x, y\}\subset\{2, 5, 8\}$ or $\{x, y\}\subset\{3, 6, 9\} \Rightarrow (x, y)\in R_2$. Hence, $R_1\subset R_2$. Similarly, $\{x, y\}\in R_2 \Rightarrow x-y$ is divisible by $3 \Rightarrow (x, y)\in R_1$, showing $R_2\subset R_1$. Thus, $R_1=R_2$.
Example 21 NCERT Miscellaneous Example
Let $f:X\rightarrow Y$ be a function. Define a relation R in X given by $R=\{(a, b): f(a)=f(b)\}$. Examine whether R is an equivalence relation or not.
Detailed Solution:
For every $a\in X$, $(a, a)\in R$ since $f(a)=f(a)$, showing R is reflexive. Similarly, $(a, b)\in R \Rightarrow f(a)=f(b) \Rightarrow f(b)=f(a) \Rightarrow (b, a)\in R$, showing R is symmetric. Further, $(a, b)\in R$ and $(b, c)\in R \Rightarrow f(a)=f(b)$ and $f(b)=f(c) \Rightarrow f(a)=f(c) \Rightarrow (a, c)\in R$, showing R is transitive. Hence, R is an equivalence relation.
Example 22 NCERT Miscellaneous Example
Find the number of all one-one functions from set $A=\{1, 2, 3\}$ to itself.
Detailed Solution:
One-one functions from {1, 2, 3} to itself are simply permutations of the three symbols 1, 2, 3. Therefore, the total number of one-one maps is equal to the total number of permutations, which is $3! = 6$.
Example 23 NCERT Miscellaneous Example
Let $A=\{1, 2, 3\}$. Then show that the number of relations containing (1, 2) and (2, 3) which are reflexive and transitive but not symmetric is three.
Detailed Solution:
The smallest relation $R_1$ containing (1, 2) and (2, 3) which is reflexive and transitive but not symmetric is $\{(1, 1), (2, 2), (3, 3), (1, 2), (2, 3), (1, 3)\}$. Adding (2, 1) to $R_1$ gives $R_2$, which is reflexive and transitive but not symmetric. Similarly, $R_3$ is obtained by adding (3, 2) to $R_1$. We cannot add both pairs or (3, 1) directly because doing so forces symmetry. Thus, the total number of desired relations is three.
Example 24 NCERT Miscellaneous Example
Show that the number of equivalence relations in the set {1, 2, 3} containing (1, 2) and (2, 1) is two.
Detailed Solution:
The smallest equivalence relation $R_1$ containing (1, 2) and (2, 1) is $\{(1, 1), (2, 2), (3, 3), (1, 2), (2, 1)\}$. The remaining pairs are (2, 3), (3, 2), (1, 3), and (3, 1). Adding any one of these requires adding its symmetric counterpart and transitively closing it, which immediately expands the relation to the universal relation. Thus, the total number of equivalence relations containing (1, 2) and (2, 1) is two.
Example 25 NCERT Miscellaneous Example
Consider the identity function $I_N:N\rightarrow N$ defined as $I_N(x)=x \;\forall x\in N$. Show that although $I_N$ is onto, $I_N+I_N:N\rightarrow N$ defined as $(I_N+I_N)(x)=I_N(x)+I_N(x)=x+x=2x$ is not onto.
Detailed Solution:
Clearly $I_N$ is onto. But $I_N+I_N$ is not onto, because we can find an element (like 3) in the co-domain N such that there does not exist any x in the domain N where $(I_N+I_N)(x)=2x=3$.
Example 26 NCERT Miscellaneous Example
Consider a function $f:[0,\frac{\pi}{2}]\rightarrow R$ given by $f(x)=\sin x$ and $g:[0,\frac{\pi}{2}]\rightarrow R$ given by $g(x)=\cos x$. Show that both f and g are one-one, but $f+g$ is not one-one.
Detailed Solution:
For any two distinct elements $x_1$ and $x_2$ in $[0,\frac{\pi}{2}]$, $\sin x_1\ne \sin x_2$ and $\cos x_1\ne \cos x_2$, so both f and g are one-one. However, $(f+g)(0)=\sin 0+\cos 0=1$ and $(f+g)(\frac{\pi}{2})=\sin\frac{\pi}{2}+\cos\frac{\pi}{2}=1$. Since distinct inputs yield the same output, $f+g$ is not one-one.

Frequently Asked Questions (FAQs)

1. What topics are covered in Class 12 Maths Chapter 1 Relations and Functions?
This chapter covers types of relations (reflexive, symmetric, transitive, and equivalence relations), types of functions (one-one, onto, and bijective), composition of functions, and invertible functions.
2. Are these solutions officially verified?
Yes, these solutions correspond directly to the standard solved examples provided in the official NCERT Class 12 Mathematics textbook.
3. How can students use PYQLY.com for exam preparation?
Students can explore structured question banks, view hidden solutions iteratively to test their understanding, and practice previous year board questions.

Conclusion

Mastering Relations and Functions is essential for scoring high marks in Class 12 Mathematics. By working through these textbook and miscellaneous examples step-by-step, students can build a rock-solid foundation for advanced calculus and algebra. Explore more resources, question banks, and study tools on PYQLY.com.

error: Content is protected !!