My Cart
Your Cart 0

    Your cart is empty.

  • Total (Amount) ₹0.00
Kerala SCERT · Class 12 · Maths · 2018-19

Chapter 1: Relations and Functions

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

Miscellaneous Exercise on Chapter 1

Textbook page 29 · 19 questions
Q1Written answer

Let \(f : \mathbf{R} \to \mathbf{R}\) be defined as \(f(x) = 10x + 7\). Find the function \(g : \mathbf{R} \to \mathbf{R}\) such that \(g \circ f = f \circ g = 1_{\mathbf{R}}\).

Show solutionHide solution
Worked solution

We need the inverse of \(f\), because the condition \(g\circ f=f\circ g=1_{\mathbf R}\) says exactly that \(g\) is the inverse of \(f\).

Let \(y=f(x)=10x+7\). Solve for \(x\) in terms of \(y\):

\[y=10x+7\quad\Longrightarrow\quad 10x=y-7\quad\Longrightarrow\quad x=\frac{y-7}{10}.\]

Thus define

\[g(y)=\frac{y-7}{10},\qquad y\in\mathbf R.\]

Now verify both compositions.

First, \(g\circ f\): for every \(x\in\mathbf R\),

\[(g\circ f)(x)=g(f(x))=g(10x+7)=\frac{(10x+7)-7}{10}=\frac{10x}{10}=x.\]

Next, \(f\circ g\): for every \(y\in\mathbf R\),

\[(f\circ g)(y)=f(g(y))=f\!\left(\frac{y-7}{10}\right)=10\cdot\frac{y-7}{10}+7=(y-7)+7=y.\]

Hence \(g\circ f=1_{\mathbf R}\) and \(f\circ g=1_{\mathbf R}\).

Therefore the required function is

\[\boxed{\,g(x)=\frac{x-7}{10},\quad x\in\mathbf R\,}.\]

Q2Written answer

Let \(f : \mathbf{W} \to \mathbf{W}\) be defined as \(f(n) = n - 1\), if \(n\) is odd and \(f(n) = n + 1\), if \(n\) is even. Show that \(f\) is invertible. Find the inverse of \(f\). Here, \(\mathbf{W}\) is the set of all whole numbers.

Show solutionHide solution
Worked solution

Let \(\mathbf{W}=\{0,1,2,3,\dots\}\). The function \(f:\mathbf{W}\to\mathbf{W}\) is defined by

\[f(n)=\begin{cases}n-1, & n \text{ odd},\\ n+1, & n \text{ even}.\end{cases}\]

Step 1: Check that \(f\) maps \(\mathbf{W}\) into \(\mathbf{W}\).

If \(n\) is odd, then \(n\ge 1\), so \(n-1\ge 0\) and \(n-1\) is even; hence \(f(n)=n-1\in\mathbf{W}\). If \(n\) is even, then \(n+1\) is odd and positive, so \(f(n)=n+1\in\mathbf{W}\). Thus \(f\) is a well-defined function from \(\mathbf{W}\) to \(\mathbf{W}\).

Step 2: Show that \(f\) is one-one.

Suppose \(f(m)=f(n)\). We consider cases.

  • If both \(m,n\) are odd, then \(m-1=n-1\), so \(m=n\).
  • If both \(m,n\) are even, then \(m+1=n+1\), so \(m=n\).
  • If \(m\) is odd and \(n\) is even, then \(f(m)=m-1\) is even while \(f(n)=n+1\) is odd. An even number cannot equal an odd number, so this case is impossible.
  • If \(m\) is even and \(n\) is odd, the same parity argument shows \(f(m)\ne f(n)\).

Hence \(f(m)=f(n)\Rightarrow m=n\), so \(f\) is injective.

Step 3: Show that \(f\) is onto.

Let \(y\in\mathbf{W}\). We must find \(n\in\mathbf{W}\) with \(f(n)=y\).

  • If \(y\) is even, take \(n=y+1\). Then \(n\) is odd and \(n\ge 1\), so \(f(n)=n-1=y\).
  • If \(y\) is odd, then \(y\ge 1\), so \(y-1\ge 0\) is even. Take \(n=y-1\). Then \(n\) is even and \(f(n)=n+1=y\).

Thus every \(y\in\mathbf{W}\) has a preimage, so \(f\) is surjective.

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

Step 4: Find the inverse \(f^{-1}\).

From the preimages found above,

\[f^{-1}(y)=\begin{cases}y+1, & y \text{ even},\\ y-1, & y \text{ odd}.\end{cases}\]

Equivalently, writing the variable as \(n\),

\[f^{-1}(n)=\begin{cases}n+1, & n \text{ even},\\ n-1, & n \text{ odd}.\end{cases}\]

Notice that \(f^{-1}=f\), so \(f\) is its own inverse.

Verification:

  • If \(n\) is odd, \(f(n)=n-1\) is even, so \(f^{-1}(f(n))=f^{-1}(n-1)=(n-1)+1=n\).
  • If \(n\) is even, \(f(n)=n+1\) is odd, so \(f^{-1}(f(n))=f^{-1}(n+1)=(n+1)-1=n\).

Thus \(f^{-1}\circ f\) is the identity on \(\mathbf{W}\). Similarly, for any \(y\in\mathbf{W}\), checking the even and odd cases gives \(f(f^{-1}(y))=y\), so \(f\circ f^{-1}\) is also the identity. Hence the inverse is correct.

Q3Written answer

If \(f : \mathbf{R} \to \mathbf{R}\) is defined by \(f(x) = x^2 - 3x + 2\), find \(f(f(x))\).

Show solutionHide solution
Worked solution

Given \(f(x)=x^2-3x+2\). To find \(f(f(x))\), substitute \(f(x)\) in place of \(x\) in the formula for \(f\):

\[f(f(x))=\bigl(f(x)\bigr)^2-3f(x)+2.\]

Now put \(f(x)=x^2-3x+2\):

\[f(f(x))=(x^2-3x+2)^2-3(x^2-3x+2)+2.\]

Expand the square:

\[(x^2-3x+2)^2=x^4+9x^2+4-6x^3+4x^2-12x=x^4-6x^3+13x^2-12x+4.\]

Next,

\[-3(x^2-3x+2)=-3x^2+9x-6.\]

Adding these together with the final \(+2\):

\[f(f(x))=x^4-6x^3+13x^2-12x+4-3x^2+9x-6+2.\]

Combine like terms:

\[f(f(x))=x^4-6x^3+10x^2-3x+0.\]

Therefore,

\[\boxed{f(f(x))=x^4-6x^3+10x^2-3x}.\]

Check. At \(x=0\): \(f(0)=2\), so \(f(f(0))=f(2)=4-6+2=0\), and the formula gives \(0\). At \(x=1\): \(f(1)=0\), so \(f(f(1))=f(0)=2\), and the formula gives \(1-6+10-3=2\). Both checks agree.

Q4Written answer

Show that function \[\text{f: R }\to \text{  }\!\!\{\!\!\text{ x}\in \text{R:-1  x  1 }\!\!\}\!\!\text{ }\] defined by \[\text{f}\left( \text{x} \right)\text{=}\dfrac{\text{x}}{\text{1+ }\!\!|\!\!\text{ x }\!\!|\!\!\text{ }}\text{,x}\in \text{R}\] is one – one and onto function.

Show solutionHide solution
Worked solution

We must show that \(f:\mathbb{R}\to(-1,1)\), defined by \[ f(x)=\frac{x}{1+|x|},\qquad x\in\mathbb{R}, \] is both one-one and onto.

Step 1: The range lies in \((-1,1)\).

For every real \(x\), \(|x|\ge 0\), so \(1+|x|\ge 1>0\). Also \(|x|<1+|x|\), hence \[ -1<\frac{x}{1+|x|}<1. \] Thus \(f(x)\in(-1,1)\) for all \(x\in\mathbb{R}\).

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

Suppose \(f(x_1)=f(x_2)\). Then \[ \frac{x_1}{1+|x_1|}=\frac{x_2}{1+|x_2|}. \]

Case (i): \(x_1,x_2\ge 0\). Then \(|x_1|=x_1\), \(|x_2|=x_2\), so \[ \frac{x_1}{1+x_1}=\frac{x_2}{1+x_2}. \] Cross-multiplying gives \(x_1(1+x_2)=x_2(1+x_1)\), that is \(x_1+x_1x_2=x_2+x_1x_2\), hence \(x_1=x_2\).

Case (ii): \(x_1,x_2<0\). Then \(|x_1|=-x_1\), \(|x_2|=-x_2\), so \[ \frac{x_1}{1-x_1}=\frac{x_2}{1-x_2}. \] Cross-multiplying gives \(x_1(1-x_2)=x_2(1-x_1)\), that is \(x_1-x_1x_2=x_2-x_1x_2\), hence \(x_1=x_2\).

Case (iii): \(x_1\) and \(x_2\) have opposite signs. If \(x_1\ge 0>x_2\), then \(f(x_1)\ge 0\) while \(f(x_2)<0\), so \(f(x_1)\ne f(x_2)\), a contradiction. The other ordering is similar.

Therefore \(f(x_1)=f(x_2)\) forces \(x_1=x_2\), so \(f\) is one-one.

Step 3: \(f\) is onto \((-1,1)\).

Let \(y\in(-1,1)\). We seek \(x\in\mathbb{R}\) with \(f(x)=y\).

If \(y\ge 0\), take \(x=\dfrac{y}{1-y}\ge 0\). Then \[ f(x)=\frac{\frac{y}{1-y}}{1+\frac{y}{1-y}}=\frac{\frac{y}{1-y}}{\frac{1}{1-y}}=y. \]

If \(y<0\), take \(x=\dfrac{y}{1+y}<0\). Then \(|x|=-x=\dfrac{-y}{1+y}\), and \[ f(x)=\frac{\frac{y}{1+y}}{1+\frac{-y}{1+y}}=\frac{\frac{y}{1+y}}{\frac{1}{1+y}}=y. \]

Thus every \(y\in(-1,1)\) has a preimage \(x\in\mathbb{R}\), so \(f\) is onto.

Hence \(f\) is both one-one and onto.

Q5Written answer

Show that the function \[\text{f: R }\to \text{ R}\] given by \[\text{f}\left( \text{x} \right)\text{ = }{{\text{x}}^{\text{3}}}\] is injective.

Show solutionHide solution
Worked solution

We are given \(f:\mathbb{R}\to\mathbb{R}\) defined by

\[f(x)=x^{3}.\]

To show that \(f\) is injective, we must prove that whenever \(f(x_1)=f(x_2)\), it follows that \(x_1=x_2\).

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

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

Then

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

Bringing all terms to one side,

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

Using the identity \(a^{3}-b^{3}=(a-b)(a^{2}+ab+b^{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.\]

Now consider 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}.\]

This is a sum of two squares, so it is non-negative. It equals \(0\) only when both squares are \(0\), that is, when

\[x_1+\frac{x_2}{2}=0\quad\text{and}\quad x_2=0.\]

This gives \(x_2=0\) and then \(x_1=0\), so \(x_1=x_2\).

Therefore, in every case, \(f(x_1)=f(x_2)\) implies \(x_1=x_2\).

Hence \(f(x)=x^{3}\) is injective.

Q6Written answer

Give examples of two functions \(f : \mathbf{N} \to \mathbf{Z}\) and \(g : \mathbf{Z} \to \mathbf{Z}\) such that \(g \circ f\) is injective but \(g\) is not injective.

(Hint : Consider \(f(x) = x\) and \(g(x) = |x|\).)

Show solutionHide solution
Worked solution

We need functions \(f:\mathbf N\to\mathbf Z\) and \(g:\mathbf Z\to\mathbf Z\) such that \(g\circ f\) is injective, while \(g\) itself is not injective.

Choice of functions. Take \[f(x)=x \quad\text{for } x\in\mathbf N,\] and \[g(x)=|x| \quad\text{for } x\in\mathbf Z.\]

Check the domains and codomains. For every natural number \(x\), the value \(f(x)=x\) is an integer, so \(f:\mathbf N\to\mathbf Z\) is well defined. For every integer \(x\), the value \(g(x)=|x|\) is a non-negative integer, hence an integer, so \(g:\mathbf Z\to\mathbf Z\) is well defined.

\(g\) is not injective. We have \[g(-1)=|-1|=1,\qquad g(1)=|1|=1.\] Thus \(g(-1)=g(1)\) although \(-1\neq 1\). Therefore \(g\) is not injective.

\(g\circ f\) is injective. For \(x\in\mathbf N\), \[(g\circ f)(x)=g(f(x))=g(x)=|x|=x,\] since \(x\ge 0\). Hence \(g\circ f\) is the identity map on \(\mathbf N\). If \[(g\circ f)(x_1)=(g\circ f)(x_2),\] then \(x_1=x_2\). So \(g\circ f\) is injective.

Therefore the required example is \[f(x)=x,\quad x\in\mathbf N;\qquad g(x)=|x|,\quad x\in\mathbf Z.\]

Q7Written answer

Give examples of two functions \(f : \mathbf{N} \to \mathbf{N}\) and \(g : \mathbf{N} \to \mathbf{N}\) such that \(g \circ f\) is onto but \(f\) is not onto.

(Hint : Consider \(f(x) = x + 1\) and \(g(x) = \begin{cases} x - 1 & \text{if } x > 1 \\ 1 & \text{if } x = 1 \end{cases}\))

Show solutionHide solution
Worked solution

We need two functions \(f:\mathbf{N}\to\mathbf{N}\) and \(g:\mathbf{N}\to\mathbf{N}\) such that \(g\circ f\) is onto, but \(f\) is not onto.

Choice of functions. Take

\[f(x)=x+1\quad\text{for all }x\in\mathbf{N},\]

and

\[g(x)=\begin{cases}x-1,& x>1,\\ 1,& x=1.\end{cases}\]

Both are functions from \(\mathbf{N}\) to \(\mathbf{N}\): \(f(x)=x+1\in\mathbf{N}\), and for \(g\), when \(x>1\) we have \(x-1\in\mathbf{N}\), while \(g(1)=1\in\mathbf{N}\).

\(f\) is not onto. The value \(1\in\mathbf{N}\) is never attained by \(f\), because \(f(x)=x+1\ge 2\) for every \(x\in\mathbf{N}\). Hence \(1\) has no preimage under \(f\), so \(f\) is not onto.

\(g\circ f\) is onto. For any \(x\in\mathbf{N}\),

\[(g\circ f)(x)=g(f(x))=g(x+1).\]

Since \(x\ge 1\), we have \(x+1>1\), so by the second case of the definition of \(g\),

\[g(x+1)=(x+1)-1=x.\]

Thus \((g\circ f)(x)=x\) for every \(x\in\mathbf{N}\), i.e. \(g\circ f\) is the identity function on \(\mathbf{N}\).

Now let \(y\in\mathbf{N}\) be arbitrary. Choosing \(x=y\) gives \((g\circ f)(y)=y\). So every element of the codomain \(\mathbf{N}\) is the image of some element, and therefore \(g\circ f\) is onto.

Conclusion. The functions \(f(x)=x+1\) and \(g(x)=\begin{cases}x-1,&x>1,\\1,&x=1\end{cases}\) satisfy the requirement: \(g\circ f\) is onto, while \(f\) is not onto.

Q8Written answer

Given a non-empty set ${X}$, consider ${P}\left( {X} \right)$ which is the set of all subsets of ${X}$. Define the relation ${R}$ in ${P}\left( {X} \right)$ as follows:

For subsets ${A,B}$ in ${P}\left( {X} \right)$, ${ARB}$ if and only if ${A}\subset {B}$. Is ${R}$ an equivalence relation on ${P}\left( {X} \right)$? 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 relation is an equivalence relation if it is reflexive, symmetric and transitive. We test each property.

1. Reflexivity. For every subset \(A\in P(X)\), we have \(A\subset A\) (every set is a subset of itself). Hence \(A\,R\,A\) for all \(A\in P(X)\). So \(R\) is reflexive.

2. Symmetry. Take \(A,B\in P(X)\) with \(A\,R\,B\), that is, \(A\subset B\). For symmetry we would need \(B\subset A\) as well. This need not hold. For example, since \(X\) is non-empty, choose an element \(x\in X\) and let

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

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

3. Transitivity. If \(A\subset B\) and \(B\subset C\), then \(A\subset C\). So \(R\) is transitive.

Since \(R\) fails to be symmetric, it is not an equivalence relation on \(P(X)\). It is reflexive and transitive, but not symmetric.

Q9Written answer

Given a non-empty set \(X\), consider the binary operation \(* : P(X) \times P(X) \to P(X)\) given by \(A * B = A \cap B \; \forall A, B\) in \(P(X)\), where \(P(X)\) is the power set of \(X\). Show that \(X\) is the identity element for this operation and \(X\) is the only invertible element in \(P(X)\) with respect to the operation \(*\).

Show solutionHide solution
Worked solution

Let \(X\) be a non-empty set and let \(P(X)\) be its power set. The operation is defined by \[A * B = A \cap B \quad \text{for all } A, B \in P(X).\]

Step 1: \(X\) is an identity element.

For any \(A \in P(X)\), we have \(A \subseteq X\), so \(A \cap X = A\) and \(X \cap A = A\). Hence \[A * X = A \cap X = A, \qquad X * A = X \cap A = A.\] Thus \(X\) acts as an identity element for \(*\).

Step 2: \(X\) is the only invertible element.

Suppose \(A \in P(X)\) is invertible. Then there exists \(B \in P(X)\) such that \[A * B = X \quad \text{and} \quad B * A = X.\] Using the definition of \(*\), this means \[A \cap B = X.\] Now \(A \cap B \subseteq A\) and \(A \subseteq X\), so \(A \cap B = X\) forces \(X \subseteq A\). Since also \(A \subseteq X\), we get \(A = X\).

Therefore the only possible invertible element is \(X\) itself. Conversely, \(X\) is invertible because \(X * X = X \cap X = X\), so \(X\) is its own inverse.

Hence \(X\) is the identity element for \(*\), and \(X\) is the only invertible element in \(P(X)\) with respect to \(*\).

Q10Written answer

Find the number of all onto functions from the set ${ }\!\!\{\!\!{ 1, 2, 3, }...{, n }\!\!\}\!\!{ }$ to itself.

Show solutionHide solution
Worked solution

We want the number of onto (surjective) functions from the set \(A=\{1,2,3,\dots,n\}\) to itself.

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 \(A\) onto all \(n\) distinct elements of \(A\).

Thus the images \(f(1),f(2),\dots,f(n)\) must be \(n\) distinct elements of \(A\). In other words, \(f\) must be a one-to-one correspondence (a permutation) of \(A\).

Conversely, every permutation 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.\]

Hence the number of onto functions from \(\{1,2,3,\dots,n\}\) to itself is

\[\boxed{\,n!\,}.\]

For example, when \(n=2\), the onto functions are the two permutations \((1\mapsto1,\,2\mapsto2)\) and \((1\mapsto2,\,2\mapsto1)\), giving \(2!=2\), as expected.