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.

Miscellaneous Exercise on Chapter 1

Textbook page 15 · 7 questions
Q1Written answer
Show that the function \(f:\mathbf{R}\to\{x\in\mathbf{R}:-1
Show solutionHide solution
Worked solution

Let \(A=\{x\in\mathbf{R}:-1<x<1\}\) and define \(f:\mathbf{R}\to A\) by \(f(x)=\dfrac{x}{1+|x|}\).

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

We use the definition of \(|x|\).

If \(x\ge 0\), then \(|x|=x\), so \(f(x)=\dfrac{x}{1+x}\).

If \(x<0\), then \(|x|=-x\), so \(f(x)=\dfrac{x}{1-x}\).

Suppose \(f(x_1)=f(x_2)\). We consider cases according to the signs of \(x_1,x_2\).

Case 1: \(x_1\ge 0\) and \(x_2\ge 0\). Then \(\dfrac{x_1}{1+x_1}=\dfrac{x_2}{1+x_2}\). Cross-multiplying gives \(x_1(1+x_2)=x_2(1+x_1)\), i.e. \(x_1+x_1x_2=x_2+x_1x_2\), hence \(x_1=x_2\).

Case 2: \(x_1<0\) and \(x_2<0\). Then \(\dfrac{x_1}{1-x_1}=\dfrac{x_2}{1-x_2}\). Cross-multiplying gives \(x_1(1-x_2)=x_2(1-x_1)\), i.e. \(x_1-x_1x_2=x_2-x_1x_2\), hence \(x_1=x_2\).

Case 3: \(x_1\ge 0\) and \(x_2<0\). Then \(f(x_1)=\dfrac{x_1}{1+x_1}\ge 0\), while \(f(x_2)=\dfrac{x_2}{1-x_2}<0\) (since \(x_2<0\) and \(1-x_2>0\)). Thus \(f(x_1)\ne f(x_2)\), so this case cannot occur when \(f(x_1)=f(x_2)\). The case \(x_1<0,\ x_2\ge 0\) is similar.

In every possible case, \(f(x_1)=f(x_2)\) forces \(x_1=x_2\). Hence \(f\) is one-one.

Step 2: \(f\) is onto.

Let \(y\in A\), so \(-1<y<1\). We must find \(x\in\mathbf{R}\) with \(f(x)=y\).

If \(y\ge 0\), take \(x=\dfrac{y}{1-y}\). Since \(0\le y<1\), we have \(1-y>0\), so \(x\ge 0\). Then \(|x|=x\) and

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

If \(y<0\), take \(x=\dfrac{y}{1+y}\). Since \(-1<y<0\), we have \(1+y>0\), so \(x<0\). Then \(|x|=-x\) and

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

Thus every \(y\in A\) has a pre-image \(x\in\mathbf{R}\). Hence \(f\) is onto.

Since \(f\) is both one-one and onto, it is a bijection from \(\mathbf{R}\) onto \(A\).

Remark. The same conclusion follows from the inverse formula \(f^{-1}(y)=\dfrac{y}{1-|y|}\) for \(y\in A\), which is exactly the piecewise expression found above.

Q2Written answer
Show that the function \(f:\mathbf{R}\to\mathbf{R}\) given by \(f(x)=x^{3}\) is injective.
Show solutionHide solution
Worked solution

We must show that \(f:\mathbf{R}\to\mathbf{R}\), \(f(x)=x^{3}\), is injective, i.e. that distinct inputs always give distinct outputs.

Let \(x_1,x_2\in\mathbf{R}\) and suppose that

\[f(x_1)=f(x_2).\]

Then

\[x_1^{3}=x_2^{3}.\]

Bringing everything to one side,

\[x_1^{3}-x_2^{3}=0.\]

Using the identity \(a^{3}-b^{3}=(a-b)(a^{2}+ab+b^{2})\) with \(a=x_1\) and \(b=x_2\), we get

\[(x_1-x_2)\left(x_1^{2}+x_1x_2+x_2^{2}\right)=0.\]

Hence either \(x_1-x_2=0\), or

\[x_1^{2}+x_1x_2+x_2^{2}=0.\]

We now examine the second factor. Completing the square,

\[x_1^{2}+x_1x_2+x_2^{2}=\left(x_1+\frac{x_2}{2}\right)^{2}+\frac{3}{4}x_2^{2}.\]

Both terms on the right are squares, so this expression is always non-negative. It equals \(0\) only when both squares vanish, that is, when \(x_2=0\) and then \(x_1=0\). In that case \(x_1=x_2\) anyway.

Therefore the product \((x_1-x_2)\left(x_1^{2}+x_1x_2+x_2^{2}\right)\) can be zero only if \(x_1-x_2=0\), i.e.

\[x_1=x_2.\]

Thus \(f(x_1)=f(x_2)\) forces \(x_1=x_2\), which proves that \(f(x)=x^{3}\) is injective.

Alternative view: the cube function is strictly increasing on \(\mathbf{R}\): if \(x_1<x_2\), then \(x_1^{3}<x_2^{3}\). A strictly increasing function is injective, since different inputs cannot produce the same output.

Q3Written answer
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 \(\mathrm{A}\subset\mathrm{B}\). Is R an equivalence relation on P(X)? Justify your answer.
Show solutionHide solution
Worked solution

We are given a non-empty set \(X\) and the power set \(P(X)\), the set of all subsets of \(X\). The relation \(R\) on \(P(X)\) is defined by

\[ A\,R\,B \iff A\subset B. \]

Recall that \(A\subset B\) means \(A\) is a subset of \(B\) (possibly equal to \(B\)). For \(R\) to be an equivalence relation it must be reflexive, symmetric and transitive. We test each property.

1. Reflexivity. For every subset \(A\in P(X)\), every element of \(A\) is an element of \(A\), so \(A\subset A\). Hence \(A\,R\,A\) for all \(A\). Thus \(R\) is reflexive.

2. Symmetry. We need: if \(A\,R\,B\) then \(B\,R\,A\). Take \(A\,R\,B\), i.e. \(A\subset B\). For symmetry we would need \(B\subset A\). This is not always true. Since \(X\) is non-empty, choose an element \(x\in X\). Let

\[ A=\varnothing,\qquad B=\{x\}. \]

Then \(A\subset B\), so \(A\,R\,B\). But \(B\not\subset A\), because \(x\in B\) while \(x\notin A\). Hence \(B\,R\,A\) is false. Therefore \(R\) is not symmetric.

3. Transitivity. If \(A\subset B\) and \(B\subset C\), then every element of \(A\) lies in \(B\), hence in \(C\), so \(A\subset C\). Thus \(R\) is transitive.

Conclusion. The relation \(R\) is reflexive and transitive, but it is not symmetric. Since an equivalence relation must be symmetric as well, \(R\) is not an equivalence relation on \(P(X)\).

Q4Written answer
Find the number of all onto functions from the set \(\{1,2,3,\ldots,n\}\) to itself.
Show solutionHide solution
Worked solution

We need the number of onto (surjective) functions \(f:\{1,2,3,\ldots,n\}\to\{1,2,3,\ldots,n\}\).

Let \(A=\{1,2,3,\ldots,n\}\). A function \(f:A\to A\) is onto exactly when every element of \(A\) is the image of at least one element of \(A\).

Since \(A\) has \(n\) elements, an onto function from \(A\) to \(A\) must map the \(n\) elements of the domain onto \(n\) distinct values. Hence it must be one-to-one as well, i.e. a bijection (permutation) of \(A\).

Conversely, every bijection of \(A\) is onto. Therefore the onto functions from \(A\) to itself are precisely the permutations of \(A\).

The number of permutations of \(n\) distinct elements is

\[n!=n(n-1)(n-2)\cdots 2\cdot 1.\]

Thus the number of all onto functions from \(\{1,2,3,\ldots,n\}\) to itself is \(n!\).

For example, when \(n=2\) the answer is \(2!=2\), and when \(n=3\) the answer is \(3!=6\), matching the direct count of bijections.

Q5Written answer
Let \(\mathrm{A}=\{-1,0,1,2\}\), \(\mathrm{B}=\{-4,-2,0,2\}\) and \(f,g:\mathrm{A}\to\mathrm{B}\) be functions defined by \(f(x)=x^{2}-x\), \(x\in\mathrm{A}\) and \(g(x)=2\left|x-\frac{1}{2}\right|-1\), \(x\in\mathrm{A}\). Are \(f\) and \(g\) equal? Justify your answer. (Hint: One may note that two functions \(f:\mathrm{A}\to\mathrm{B}\) and \(g:\mathrm{A}\to\mathrm{B}\) such that \(f(a)=g(a)\ \forall\ a\in\mathrm{A}\), are called equal functions).
Show solutionHide solution
Worked solution

Two functions with the same domain and codomain are equal exactly when they give the same value at every point of the domain. So we compute both functions at each element of \(\mathrm{A}=\{-1,0,1,2\}\).

Values of \(f(x)=x^{2}-x\):

\[f(-1)=(-1)^2-(-1)=1+1=2,\]

\[f(0)=0^2-0=0,\]

\[f(1)=1^2-1=1-1=0,\]

\[f(2)=2^2-2=4-2=2.\]

Thus \(f\) maps \(-1\mapsto 2,\;0\mapsto 0,\;1\mapsto 0,\;2\mapsto 2\).

Values of \(g(x)=2\left|x-\tfrac12\right|-1\):

\[g(-1)=2\left|-1-\tfrac12\right|-1=2\cdot\tfrac32-1=3-1=2,\]

\[g(0)=2\left|0-\tfrac12\right|-1=2\cdot\tfrac12-1=1-1=0,\]

\[g(1)=2\left|1-\tfrac12\right|-1=2\cdot\tfrac12-1=1-1=0,\]

\[g(2)=2\left|2-\tfrac12\right|-1=2\cdot\tfrac32-1=3-1=2.\]

Thus \(g\) maps \(-1\mapsto 2,\;0\mapsto 0,\;1\mapsto 0,\;2\mapsto 2\).

Comparing the two tables, for every \(a\in\mathrm{A}\),

\[f(a)=g(a).\]

Also both functions have the same domain \(\mathrm{A}\) and the same codomain \(\mathrm{B}\), and all the values obtained (\(0\) and \(2\)) lie in \(\mathrm{B}=\{-4,-2,0,2\}\). Therefore, by the definition of equality of functions, \(f\) and \(g\) are equal functions.

Answer: Yes, \(f=g\), since \(f(a)=g(a)\) for every \(a\in\mathrm{A}\).

Q6Multiple choice
Let A = {1, 2, 3}. Then number of relations containing (1, 2) and (1, 3) which are reflexive and symmetric but not transitive is
Show answerHide answer
Correct option: A
Show solutionHide solution
Worked solution

Let \(A=\{1,2,3\}\). A relation \(R\) on \(A\) is a subset of \(A\times A\). We need \(R\) to contain \((1,2)\) and \((1,3)\), be reflexive and symmetric, and not be transitive.

Step 1: Reflexivity. Since \(R\) is reflexive, it must contain \((1,1),(2,2),(3,3)\).

Step 2: Given pairs and symmetry. We are given \((1,2),(1,3)\in R\). By symmetry, \((2,1),(3,1)\in R\) as well.

Thus every admissible relation must contain the six pairs

\[\{(1,1),(2,2),(3,3),(1,2),(2,1),(1,3),(3,1)\}.\]

Wait—counting carefully, these are seven pairs: the three diagonal pairs, plus \((1,2),(2,1)\), plus \((1,3),(3,1)\). So the forced part is

\[S=\{(1,1),(2,2),(3,3),(1,2),(2,1),(1,3),(3,1)\}.\]

The only pairs of \(A\times A\) not yet decided are \((2,3)\) and \((3,2)\). Because \(R\) must be symmetric, either both are in \(R\) or neither is. Hence there are exactly two candidates:

\[R_1=S,\qquad R_2=S\cup\{(2,3),(3,2)\}.\]

Step 3: Check transitivity.

For \(R_1=S\): we have \((2,1),(1,3)\in S\), so transitivity would require \((2,3)\in S\), but \((2,3)\notin S\). Hence \(R_1\) is not transitive. So \(R_1\) is admissible.

For \(R_2=S\cup\{(2,3),(3,2)\}\): check all possible compositions. The relation \(R_2\) contains all of \(A\times A\) except \((2,3)\)? No—it contains \((2,3)\) and \((3,2)\), and also all diagonal pairs and all pairs involving \(1\). In fact \(R_2=A\times A\), the universal relation, which is transitive. Hence \(R_2\) is not admissible because it is transitive.

Therefore exactly one relation satisfies all the conditions: \(R_1\).

So the number of such relations is \(1\).

Answer: Option 1.

Q7Multiple choice
Let A = {1, 2, 3}. Then number of equivalence relations containing (1, 2) is
Show answerHide answer
Correct option: B
Show solutionHide solution
Worked solution

An equivalence relation on \(A=\{1,2,3\}\) corresponds to a partition of \(A\) into equivalence classes. The condition \((1,2)\) belongs to the relation means that \(1\) and \(2\) must lie in the same equivalence class.

So we need the number of partitions of \(A\) in which \(1\) and \(2\) are together. The element \(3\) can either:

  • join the class containing \(1\) and \(2\), giving the partition \(\{\{1,2,3\}\}\); or
  • form its own class, giving the partition \(\{\{1,2\},\{3\}\}\).

These are the only two possibilities. Hence there are exactly \(2\) equivalence relations containing \((1,2)\).

Therefore the correct option is 2.