My Cart
Your Cart 0

    Your cart is empty.

  • Total (Amount) ₹0.00
NCERT · Class 12 · Maths · 2025-26

Chapter 1: Relations and Functions

Practice each question, then open the answer or worked solution.

EXERCISE 1.2

Textbook page 10 · 12 questions
Q1Written answer
Show that the function \(f : \mathbf{R}^* \to \mathbf{R}^*\) defined by \(f(x) = \frac{1}{x}\) is one-one and onto, where \(\mathbf{R}^*\) is the set of all non-zero real numbers. Is the result true, if the domain \(\mathbf{R}^*\) is replaced by \(\mathbf{N}\) with co-domain being same as \(\mathbf{R}^*\)?
Show solutionHide solution
Worked solution

Part 1: Show that \(f:\mathbf{R}^*\to\mathbf{R}^*\), \(f(x)=\dfrac1x\), is one-one and onto.

One-one. Let \(x_1,x_2\in\mathbf{R}^*\) with \(f(x_1)=f(x_2)\). Then \(\dfrac{1}{x_1}=\dfrac{1}{x_2}\). Since \(x_1,x_2\neq 0\), cross-multiplication gives \(x_2=x_1\). Hence \(f\) is one-one.

Onto. Let \(y\in\mathbf{R}^*\). Take \(x=\dfrac1y\). Since \(y\neq 0\), we have \(x\in\mathbf{R}^*\) and \(f(x)=\dfrac{1}{1/y}=y\). Thus every element of the codomain has a preimage, so \(f\) is onto.

Therefore \(f\) is one-one and onto.

Part 2: Replace the domain \(\mathbf{R}^*\) by \(\mathbf{N}\), keeping the codomain \(\mathbf{R}^*\).

Now consider \(g:\mathbf{N}\to\mathbf{R}^*\), \(g(x)=\dfrac1x\).

One-one. If \(g(x_1)=g(x_2)\), then \(\dfrac{1}{x_1}=\dfrac{1}{x_2}\), so \(x_1=x_2\). Hence \(g\) is one-one.

Not onto. For example, \(2\in\mathbf{R}^*\), but there is no \(x\in\mathbf{N}\) with \(\dfrac1x=2\), since that would require \(x=\dfrac12\notin\mathbf{N}\). Thus \(g\) is not onto.

So the result is not true when the domain is replaced by \(\mathbf{N}\) with the same codomain \(\mathbf{R}^*\): the function remains one-one but is no longer onto.

Q2Written answer
Check the injectivity and surjectivity of the following functions: (i) \(f : \mathbf{N} \to \mathbf{N}\) given by \(f(x) = x^2\) (ii) \(f : \mathbf{Z} \to \mathbf{Z}\) given by \(f(x) = x^2\) (iii) \(f : \mathbf{R} \to \mathbf{R}\) given by \(f(x) = x^2\) (iv) \(f : \mathbf{N} \to \mathbf{N}\) given by \(f(x) = x^3\) (v) \(f : \mathbf{Z} \to \mathbf{Z}\) given by \(f(x) = x^3\)
Show solutionHide solution
Worked solution

We test injectivity (distinct inputs must give distinct outputs) and surjectivity (every element of the codomain must be attained).

(i) \(f:\mathbf{N}\to\mathbf{N}\), \(f(x)=x^2\).

Injective: If \(f(x)=f(y)\), then \(x^2=y^2\), so \(x=y\) or \(x=-y\). Since \(x,y\in\mathbf{N}\), both are non-negative, so \(x=y\). Hence \(f\) is injective.

Surjective: The value \(2\) lies in the codomain \(\mathbf{N}\), but \(x^2=2\) has no solution in \(\mathbf{N}\) (since \(1^2=1\) and \(2^2=4\)). Hence \(f\) is not surjective.

(ii) \(f:\mathbf{Z}\to\mathbf{Z}\), \(f(x)=x^2\).

Injective: \(f(1)=1=f(-1)\) while \(1\neq -1\). Hence \(f\) is not injective.

Surjective: The value \(2\in\mathbf{Z}\) is not of the form \(x^2\) for any integer \(x\). Hence \(f\) is not surjective.

(iii) \(f:\mathbf{R}\to\mathbf{R}\), \(f(x)=x^2\).

Injective: \(f(1)=f(-1)=1\) with \(1\neq -1\), so \(f\) is not injective.

Surjective: The value \(-1\in\mathbf{R}\) is not attained, since \(x^2\ge 0\) for all real \(x\). Hence \(f\) is not surjective.

(iv) \(f:\mathbf{N}\to\mathbf{N}\), \(f(x)=x^3\).

Injective: If \(x^3=y^3\), then \((x-y)(x^2+xy+y^2)=0\). For \(x,y\in\mathbf{N}\), the factor \(x^2+xy+y^2\) is positive unless \(x=y=0\); in every case \(x^3=y^3\) forces \(x=y\). Hence \(f\) is injective.

Surjective: The value \(2\in\mathbf{N}\) is not a perfect cube of a natural number, so \(f\) is not surjective.

(v) \(f:\mathbf{Z}\to\mathbf{Z}\), \(f(x)=x^3\).

Injective: As above, \(x^3=y^3\) implies \(x=y\) for integers \(x,y\). Hence \(f\) is injective.

Surjective: The value \(2\in\mathbf{Z}\) is not a perfect cube of any integer, so \(f\) is not surjective.

Summary: (i) injective, not surjective; (ii) neither; (iii) neither; (iv) injective, not surjective; (v) injective, not surjective.

Q3Written answer
Prove that the Greatest Integer Function \(f : \mathbf{R} \to \mathbf{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 solutionHide solution
Worked solution

Let \(f:\mathbf R\to\mathbf R\) be defined by \(f(x)=[x]\), where \([x]\) is the greatest integer less than or equal to \(x\).

1. \(f\) is not one-one.

Recall that \(f\) is one-one if \(f(x_1)=f(x_2)\) always forces \(x_1=x_2\). We exhibit two distinct inputs with the same image.

Take \(x_1=1\) and \(x_2=\tfrac32\). Then

\[f(1)=[1]=1,\qquad f\!\left(\tfrac32\right)=\left[\tfrac32\right]=1.\]

Thus \(f(x_1)=f(x_2)\) but \(x_1\ne x_2\). Hence \(f\) is not one-one.

2. \(f\) is not onto.

Recall that \(f\) is onto if every element of the codomain \(\mathbf R\) is the image of some element of the domain. We exhibit a real number that is never attained.

For every real \(x\), the greatest integer \([x]\) is an integer. Therefore

\[f(x)=[x]\in\mathbf Z\quad\text{for all }x\in\mathbf R.\]

So the range of \(f\) is contained in \(\mathbf Z\). In particular, the real number \(\tfrac12\) is not an integer, so there is no \(x\in\mathbf R\) with \(f(x)=\tfrac12\).

Hence \(f\) is not onto.

Conclusion. The greatest integer function \(f(x)=[x]\) is neither one-one nor onto.

Q4Written answer
Show that the Modulus Function \(f : \mathbf{R} \to \mathbf{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 solutionHide solution
Worked solution

Let \(f:\mathbf R\to\mathbf R\) be defined by \(f(x)=|x|\), where

\[|x|=\begin{cases}x,& x\ge 0,\\-x,& x<0.\end{cases}\]

1. \(f\) is not one-one.

Choose two different real numbers, for example \(x_1=1\) and \(x_2=-1\). Then \(x_1\ne x_2\), but

\[f(1)=|1|=1,\qquad f(-1)=|-1|=1.\]

Thus \(f(1)=f(-1)\) although \(1\ne -1\). A one-one function must send distinct inputs to distinct outputs, so \(f\) is not one-one.

2. \(f\) is not onto.

For every real number \(x\), the modulus \(|x|\) is non-negative. Hence

\[f(x)=|x|\ge 0\quad\text{for all }x\in\mathbf R.\]

Therefore no negative real number can be an output of \(f\). For instance, \(-1\in\mathbf R\) (the codomain), but there is no \(x\in\mathbf R\) with \(f(x)=-1\), since \(|x|=-1\) is impossible.

So the range of \(f\) is \([0,\infty)\), which is not equal to the codomain \(\mathbf R\). Hence \(f\) is not onto.

Conclusion. The modulus function \(f(x)=|x|\) is neither one-one nor onto.

Q5Written answer
Show that the Signum Function \(f : \mathbf{R} \to \mathbf{R}\), given by \[ f(x) = \begin{cases} 1, \text{if } x > 0 \\ 0, \text{if } x = 0 \\ -1, \text{if } x < 0 \end{cases} \] is neither one-one nor onto.
Show solutionHide solution
Worked solution

Let \(f:\mathbf R\to\mathbf R\) be the signum function: \[ f(x)=\begin{cases} 1, & x>0,\\ 0, & x=0,\\ -1, & x<0. \end{cases} \]

1. \(f\) is not one-one.

To be one-one, distinct inputs must give distinct outputs. But \[ f(1)=1 \quad\text{and}\quad f(2)=1, \] since both \(1>0\) and \(2>0\). Thus \(1\ne 2\) while \(f(1)=f(2)\). Hence \(f\) is not one-one.

2. \(f\) is not onto.

The codomain of \(f\) is \(\mathbf R\). For \(f\) to be onto, every real number must occur as an output. But the definition shows that the only possible outputs are \[ 1,\ 0,\ -1. \] For example, the real number \(2\) is in the codomain, yet there is no \(x\in\mathbf R\) with \(f(x)=2\), because \(f(x)\in\{-1,0,1\}\) for every \(x\). Therefore \(f\) is not onto.

Since \(f\) is neither one-one nor onto, the signum function \(f:\mathbf R\to\mathbf R\) is neither one-one nor onto.

Q6Written answer
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 solutionHide solution
Worked solution

We are given \(A=\{1,2,3\}\), \(B=\{4,5,6,7\}\), and the function \(f=\{(1,4),(2,5),(3,6)\}\) from \(A\) to \(B\).

A function is one-one (injective) if distinct elements of the domain have distinct images. Equivalently, if \(f(x_1)=f(x_2)\), then \(x_1=x_2\).

From the definition of \(f\):

  • \(f(1)=4\)
  • \(f(2)=5\)
  • \(f(3)=6\)

The three images are \(4,5,6\), which are all different. Therefore no two distinct elements of \(A\) have the same image under \(f\).

Hence \(f\) is one-one.

Q7Written answer
In each of the following cases, state whether the function is one-one, onto or bijective. Justify your answer. (i) \(f : \mathbf{R} \to \mathbf{R}\) defined by \(f(x) = 3 - 4x\) (ii) \(f : \mathbf{R} \to \mathbf{R}\) defined by \(f(x) = 1 + x^2\)
Show solutionHide solution
Worked solution

(i) Let \(f:\mathbf{R}\to\mathbf{R}\) be defined by \(f(x)=3-4x\).

One-one: Suppose \(f(x_1)=f(x_2)\). Then \(3-4x_1=3-4x_2\), so \(-4x_1=-4x_2\), hence \(x_1=x_2\). Therefore \(f\) is one-one.

Onto: Let \(y\in\mathbf{R}\) be arbitrary. We need \(x\in\mathbf{R}\) with \(f(x)=y\). Solving \(3-4x=y\) gives \(x=\dfrac{3-y}{4}\), which is a real number for every real \(y\). Also \(f\!\left(\dfrac{3-y}{4}\right)=3-4\cdot\dfrac{3-y}{4}=3-(3-y)=y\). Thus every \(y\in\mathbf{R}\) has a preimage, so \(f\) is onto.

Since \(f\) is both one-one and onto, it is bijective.

(ii) Let \(f:\mathbf{R}\to\mathbf{R}\) be defined by \(f(x)=1+x^2\).

One-one: Take \(x_1=1\) and \(x_2=-1\). Then \(x_1\ne x_2\), but \(f(1)=1+1^2=2\) and \(f(-1)=1+(-1)^2=2\). Thus \(f(1)=f(-1)\) with \(1\ne -1\), so \(f\) is not one-one.

Onto: Since \(x^2\ge 0\) for every real \(x\), we have \(f(x)=1+x^2\ge 1\). Hence no negative real number, for example \(-1\), lies in the range of \(f\). So \(f\) is not onto.

Therefore \(f\) is neither one-one nor onto, and hence not bijective.

Q8Written answer
Let A and B be sets. Show that \(f : A \times B \to B \times A\) such that \(f(a, b) = (b, a)\) is bijective function.
Show solutionHide solution
Worked solution

Define \(f:A\times B\to B\times A\) by \(f(a,b)=(b,a)\).

Injectivity. Suppose \(f(a_1,b_1)=f(a_2,b_2)\). Then \((b_1,a_1)=(b_2,a_2)\), so \(b_1=b_2\) and \(a_1=a_2\). Hence \((a_1,b_1)=(a_2,b_2)\), so \(f\) is injective.

Surjectivity. Let \((b,a)\in B\times A\) be arbitrary. Then \((a,b)\in A\times B\) and \(f(a,b)=(b,a)\). Thus every element of the codomain is an image, so \(f\) is surjective.

Since \(f\) is both injective and surjective, it is bijective.

Inverse. The inverse is \(f^{-1}:B\times A\to A\times B\) given by \(f^{-1}(b,a)=(a,b)\), which simply swaps the coordinates back.

Q9Written answer
Let \(f : \mathbf{N} \to \mathbf{N}\) be defined by \(f(n) = \begin{cases} \frac{n+1}{2}, \text{if } n \text{ is odd} \\ \frac{n}{2}, \text{if } n \text{ is even} \end{cases}\) for all \(n \in \mathbf{N}\). State whether the function \(f\) is bijective. Justify your answer.
Show solutionHide solution
Worked solution

We are given \(f:\mathbf N\to\mathbf N\) by \[ f(n)=\begin{cases} \dfrac{n+1}{2}, & n \text{ odd},\\ \dfrac{n}{2}, & n \text{ even}. \end{cases} \]

Step 1: Check whether \(f\) is one-one.

Suppose \(f(m)=f(n)\). We consider the parity of \(m\) and \(n\).

  • If both are odd, then \(\dfrac{m+1}{2}=\dfrac{n+1}{2}\), so \(m=n\).
  • If both are even, then \(\dfrac{m}{2}=\dfrac{n}{2}\), so \(m=n\).
  • If one is odd and the other even, say \(m\) odd and \(n\) even, then \[ \frac{m+1}{2}=\frac{n}{2}. \] Multiplying by \(2\) gives \(m+1=n\). But an odd number plus \(1\) is even, so this is possible in principle; however, we must check whether the two expressions can actually be equal for suitable \(m,n\). The equation \(m+1=n\) with \(m\) odd and \(n\) even is consistent, so we test a value: take \(m=1\) (odd). Then \(f(1)=\frac{1+1}{2}=1\). Take \(n=2\) (even). Then \(f(2)=\frac{2}{2}=1\). Thus \(f(1)=f(2)\) although \(1\ne 2\).

Therefore \(f\) is not one-one.

Step 2: Conclusion about bijectivity.

A bijective function must be both one-one and onto. Since \(f\) is not one-one, it cannot be bijective.

Justification: The counterexample \(f(1)=1=f(2)\) shows that two distinct natural numbers have the same image. Hence \(f\) is not injective, and therefore not bijective.

So the function \(f\) is not bijective.

Q10Written answer
Let \(A = \mathbf{R} - \{3\}\) and \(B = \mathbf{R} - \{1\}\). Consider the function \(f : A \to B\) defined by \(f(x) = \left( \frac{x-2}{x-3} \right)\). Is \(f\) one-one and onto? Justify your answer.
Show solutionHide solution
Worked solution

Let \(A=\mathbf{R}\setminus\{3\}\) and \(B=\mathbf{R}\setminus\{1\}\), and define \[ f:A\to B,\qquad f(x)=\frac{x-2}{x-3}. \] We check injectivity and surjectivity separately.

1. \(f\) is one-one.

Suppose \(x_1,x_2\in A\) and \(f(x_1)=f(x_2)\). Then \[ \frac{x_1-2}{x_1-3}=\frac{x_2-2}{x_2-3}. \] Cross-multiplying (valid because \(x_1\ne3\) and \(x_2\ne3\)) gives \[ (x_1-2)(x_2-3)=(x_2-2)(x_1-3). \] Expanding both sides, \[ x_1x_2-3x_1-2x_2+6=x_1x_2-3x_2-2x_1+6. \] Cancel \(x_1x_2\) and \(6\): \[ -3x_1-2x_2=-3x_2-2x_1. \] Bring terms together: \[ -3x_1+2x_1=-3x_2+2x_2, \] so \[ -x_1=-x_2, \] hence \(x_1=x_2\). Therefore \(f\) is one-one.

2. \(f\) is onto.

Let \(y\in B\), so \(y\ne1\). We must find \(x\in A\) with \(f(x)=y\). Solve \[ y=\frac{x-2}{x-3}. \] Since \(x\ne3\), multiply by \(x-3\): \[ y(x-3)=x-2. \] Thus \[ yx-3y=x-2. \] Collect the \(x\)-terms: \[ yx-x=3y-2, \] so \[ x(y-1)=3y-2. \] Because \(y\ne1\), we may divide by \(y-1\): \[ x=\frac{3y-2}{y-1}. \] This \(x\) is a real number. Also \(x\ne3\), because if \(x=3\) then \[ \frac{3y-2}{y-1}=3 \implies 3y-2=3y-3 \implies -2=-3, \] which is impossible. Hence \(x\in A\).

Now verify: \[ f(x)=\frac{\frac{3y-2}{y-1}-2}{\frac{3y-2}{y-1}-3} = \frac{3y-2-2(y-1)}{3y-2-3(y-1)} = \frac{3y-2-2y+2}{3y-2-3y+3} = \frac{y}{1}=y. \] So every \(y\in B\) has a preimage \(x\in A\). Therefore \(f\) is onto.

Conclusion. The function \(f\) is both one-one and onto, hence bijective. Its inverse is \[ f^{-1}(y)=\frac{3y-2}{y-1},\qquad y\ne1. \]