My Cart
Your Cart 0

    Your cart is empty.

  • Total (Amount) ₹0.00
Karnataka Board · Class 12 · Maths

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) = \dfrac{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: \(f:\mathbf{R}^*\to\mathbf{R}^*\) defined by \(f(x)=\dfrac1x\) is one-one and onto.

One-one (injective): Let \(x_1,x_2\in\mathbf{R}^*\) with \(f(x_1)=f(x_2)\). Then

\[\frac{1}{x_1}=\frac{1}{x_2}.\]

Since \(x_1,x_2\neq 0\), taking reciprocals gives \(x_1=x_2\). Hence \(f\) is one-one.

Onto (surjective): Let \(y\in\mathbf{R}^*\) be arbitrary. Since \(y\neq 0\), the number \(x=\dfrac1y\) is a non-zero real number, so \(x\in\mathbf{R}^*\). Then

\[f(x)=f\!\left(\frac1y\right)=\frac{1}{1/y}=y.\]

Thus every element of the co-domain has a pre-image, so \(f\) is onto. Therefore \(f\) is one-one and onto.

Part 2: If the domain is replaced by \(\mathbf{N}\) while the co-domain remains \(\mathbf{R}^*\).

Consider \(g:\mathbf{N}\to\mathbf{R}^*\) defined by \(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 still one-one.

Onto: This fails. For example, take \(y=2\in\mathbf{R}^*\). If \(g(x)=2\), then \(\dfrac1x=2\), giving \(x=\dfrac12\), which is not a natural number. So \(2\) has no pre-image in \(\mathbf{N}\). Hence \(g\) is not onto.

Conclusion: The result is not true when the domain \(\mathbf{R}^*\) is replaced by \(\mathbf{N}\) with the same co-domain \(\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

Recall that a function \(f:A\to B\) is injective (one-one) if \(f(x_1)=f(x_2)\Rightarrow x_1=x_2\), and surjective (onto) if every element of \(B\) is the image of some element of \(A\).

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

If \(f(x_1)=f(x_2)\), then \(x_1^2=x_2^2\), so \(x_1=x_2\) (both are positive). Hence \(f\) is injective.

But \(2\in\mathbf{N}\) is not a perfect square, so no natural number maps to \(2\). Hence \(f\) is not surjective.

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

Here \(f(1)=1=f(-1)\) while \(1\neq -1\), so \(f\) is not injective.

Also \(2\) has no integer square root, so \(f\) is not surjective.

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

As in (ii), \(f(1)=f(-1)\), so \(f\) is not injective. And \(-1\in\mathbf{R}\) is never attained since \(x^2\ge 0\), so \(f\) is not surjective.

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

If \(x_1^3=x_2^3\), then \(x_1=x_2\) (the cube function is strictly increasing on positive numbers). Hence \(f\) is injective.

But \(2\in\mathbf{N}\) is not a perfect cube, so \(f\) is not surjective.

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

If \(x_1^3=x_2^3\), then \(x_1=x_2\) (the cube function is strictly increasing on \(\mathbf{R}\)). Hence \(f\) is injective.

However \(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]\), the greatest integer less than or equal to \(x\).

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

Recall that \([x]=n\) exactly when \(n\le x<n+1\), where \(n\) is an integer. Choose two distinct real numbers in the same such interval, for example

\[x_1=1.2,\qquad x_2=1.7.\]

Since \(1\le 1.2<2\) and \(1\le 1.7<2\), we get

\[f(x_1)=[1.2]=1,\qquad f(x_2)=[1.7]=1.\]

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

2. \(f\) is not onto.

The range of \(f\) consists only of integers, because \([x]\) is always an integer. For instance, take the real number \(\tfrac12\) in the codomain \(\mathbf{R}\). If there were some \(x\in\mathbf{R}\) with \(f(x)=\tfrac12\), then \([x]=\tfrac12\), which is impossible since \([x]\) must be an integer. Therefore \(\tfrac12\) has no preimage, so \(f\) is not onto.

Since \(f\) is neither one-one nor onto, the greatest integer function is neither injective nor surjective.

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 that have the same modulus, for example \(1\) and \(-1\). Then

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

Thus \(f(1)=f(-1)\) although \(1\ne -1\). A one-one function must give different values to different inputs, so \(f\) is not one-one.

2. \(f\) is not onto.

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

\[ f(x)=|x|\ge 0. \]

Hence no negative real number can be an image. For instance, take \(-1\in\mathbf{R}\). If there were some \(x\in\mathbf{R}\) with \(f(x)=-1\), then \(|x|=-1\), which is impossible because a modulus is never negative. Therefore \(-1\) has no preimage in \(\mathbf{R}\).

Since the codomain is \(\mathbf{R}\) but the range of \(f\) is only \([0,\infty)\), the function does not cover its codomain. So \(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

Given: The signum function \(f:\mathbf{R}\to\mathbf{R}\) defined by

\[f(x)=\begin{cases}1,&x>0\\0,&x=0\\-1,&x<0\end{cases}\]

To show: \(f\) is neither one-one nor onto.

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

A function is one-one (injective) if distinct inputs always give distinct outputs. We show this fails by finding two different inputs with the same output.

Take \(x_1=1\) and \(x_2=2\). Both are positive, so

\[f(1)=1,\qquad f(2)=1.\]\[\text{Thus } f(1)=f(2) \text{ although } 1\neq 2.\]

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

Step 2: \(f\) is not onto.

A function \(f:\mathbf{R}\to\mathbf{R}\) is onto (surjective) if every real number in the codomain is the image of some real number. The range of \(f\) consists only of the three values \(-1,\,0,\,1\), since these are the only possible outputs.

For example, the real number \(2\) lies in the codomain \(\mathbf{R}\), but there is no \(x\in\mathbf{R}\) with \(f(x)=2\), because \(f(x)\in\{-1,0,1\}\) for every \(x\).

Hence \(f\) is not onto.

Conclusion: The signum function \(f\) 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 images are \(4,5,6\), which are all different from one another. Indeed, \(4\neq 5\), \(4\neq 6\), and \(5\neq 6\).

Thus the three distinct elements \(1,2,3\) of \(A\) are mapped to three distinct elements \(4,5,6\) of \(B\). Therefore no two different 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}\), \(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\) with \(3-4x=y\), i.e. \(x=\dfrac{3-y}{4}\). Since \(y\) is real, \(x=\dfrac{3-y}{4}\in\mathbf{R}\), and \(f(x)=3-4\cdot\dfrac{3-y}{4}=3-(3-y)=y\). Thus every \(y\) has a preimage, so \(f\) is onto.

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

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

One-one: Take \(x_1=1\) and \(x_2=-1\). Then \(f(1)=1+1=2\) and \(f(-1)=1+1=2\). So \(f(1)=f(-1)\) but \(1\neq -1\). Hence \(f\) is not one-one.

Onto: Since \(x^2\ge 0\) for all real \(x\), we have \(f(x)=1+x^2\ge 1\). Thus no negative real number (for example \(y=0\)) is in the range: there is no \(x\in\mathbf{R}\) with \(1+x^2=0\). Hence \(f\) is not onto.

Therefore \(f\) is neither one-one nor onto, and so is 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

We must show that \(f\) is both one-one (injective) and onto (surjective).

1. One-one (injective): Let \((a_1,b_1),(a_2,b_2)\in A\times B\) and suppose

\[f(a_1,b_1)=f(a_2,b_2).\]

By the definition of \(f\), this gives

\[(b_1,a_1)=(b_2,a_2).\]

Two ordered pairs are equal exactly when their corresponding coordinates are equal, so \(b_1=b_2\) and \(a_1=a_2\). Hence \((a_1,b_1)=(a_2,b_2)\). Therefore \(f\) is one-one.

2. Onto (surjective): Let \((b,a)\) be any element of \(B\times A\). Since \(a\in A\) and \(b\in B\), the pair \((a,b)\) belongs to \(A\times B\), and

\[f(a,b)=(b,a).\]

Thus every element of the codomain \(B\times A\) is the image of some element of the domain \(A\times B\). Hence \(f\) is onto.

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

Remark: The map \(f\) simply swaps the coordinates of each ordered pair; its inverse is the map \(g:B\times A\to A\times B\) given by \(g(b,a)=(a,b)\), which confirms bijectivity.

Q9Written answer
Let \(f : \mathbf{N} \to \mathbf{N}\) be defined by \[f(n) = \begin{cases} \dfrac{n+1}{2}, & \text{if } n \text{ is odd} \\ \dfrac{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\) with

\[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 parities 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 \(f(m)=\dfrac{m+1}{2}\) and \(f(n)=\dfrac{n}{2}\). The equality \(\dfrac{m+1}{2}=\dfrac{n}{2}\) gives \(m+1=n\). But \(m\) is odd, so \(m+1\) is even, which is consistent with \(n\) being even; this does not immediately give a contradiction, so we test directly.

Take \(m=1\) (odd) and \(n=2\) (even). Then

\[f(1)=\frac{1+1}{2}=1,\qquad f(2)=\frac{2}{2}=1.\]

Thus \(f(1)=f(2)\) although \(1\ne 2\). Hence \(f\) is not one-one.

Step 2: Conclusion.

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

Therefore, \(f\) is not bijective.

Remark. The function is, however, onto: every \(k\in\mathbf N\) is the image of \(2k\) (even), since \(f(2k)=k\). So \(f\) is onto but not one-one, which again shows it 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(\dfrac{x-2}{x-3}\right)\). Is \(f\) one-one and onto? Justify your answer.
Show solutionHide solution
Worked solution

Let \(A=\mathbf{R}-\{3\}\) and \(B=\mathbf{R}-\{1\}\), and let \(f:A\to B\) be defined by

\[f(x)=\frac{x-2}{x-3}.\]

1. Is \(f\) one-one?

Suppose \(f(x_1)=f(x_2)\) for some \(x_1,x_2\in A\). Then

\[\frac{x_1-2}{x_1-3}=\frac{x_2-2}{x_2-3}.\]

Cross-multiplying (both denominators are nonzero because \(x_1,x_2\neq 3\)),

\[(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.\]

Cancelling \(x_1x_2\) and \(6\) from both sides gives

\[-3x_1-2x_2=-3x_2-2x_1,\]

that is,

\[-3x_1+2x_1=-3x_2+2x_2,\] \[-x_1=-x_2,\]

so \(x_1=x_2\). Hence \(f\) is one-one.

2. Is \(f\) onto?

Let \(y\in B\), so \(y\neq 1\). We look for \(x\in A\) with \(f(x)=y\):

\[\frac{x-2}{x-3}=y.\]

Since \(x\neq 3\), multiply by \(x-3\):

\[x-2=y(x-3)=yx-3y.\]

Rearranging,

\[x-yx=-3y+2,\] \[x(1-y)=2-3y.\]

Because \(y\neq 1\), we have \(1-y\neq 0\), so

\[x=\frac{2-3y}{1-y}.\]

This \(x\) is a real number. We must check that \(x\neq 3\): if \(x=3\), then

\[3=\frac{2-3y}{1-y}\implies 3(1-y)=2-3y\implies 3-3y=2-3y\implies 3=2,\]

which is impossible. Hence \(x\neq 3\), so \(x\in A\). Also,

\[f(x)=\frac{\frac{2-3y}{1-y}-2}{\frac{2-3y}{1-y}-3} =\frac{(2-3y)-2(1-y)}{(2-3y)-3(1-y)} =\frac{2-3y-2+2y}{2-3y-3+3y} =\frac{-y}{-1}=y.\]

Thus every \(y\in B\) has a preimage \(x\in A\). Therefore \(f\) is onto.

Conclusion. The function \(f\) is both one-one and onto, i.e. it is a bijection from \(A\) onto \(B\).