RS Aggarwal Class 12 Maths Solutions Exercise 2C — Functions
RS Aggarwal, Class 12 Mathematics — Functions, Exercise 2C. All 20 questions solved.
Independent solutions by Shiwam’s Classes. Not affiliated with or endorsed by the author or publisher of the book.
Exercise 2C has three kinds of question. Questions 1 to 8 and 11 classify a given function as one-one or many-one, onto or into. Questions 9, 10 and 19 find an inverse function. Questions 12 to 18 and 20 compose functions or test them on a small set of ordered pairs.
Key insight. To show a function is one-one, assume $f(a) = f(b)$ and deduce $a = b$. To show it is many-one, exhibit two different inputs with the same output. To show it is onto, take any $y$ in the codomain and solve $f(x) = y$ for an $x$ that lies in the domain; to show it is into, name one element of the codomain that is never reached. The domain and codomain matter as much as the formula.
Question 1
Prove that the function $f : R \to R$ given by $f(x) = 2x$ is one-one and onto.
Solution. One-one: suppose $f(a) = f(b)$. Then $2a = 2b$, so $a = b$. Hence distinct inputs give distinct outputs.
Onto: let $y$ be any real number. We need $x$ with $2x = y$, and $x = \dfrac{y}{2}$ works. It is a real number, so it lies in the domain, and $f\!\left(\dfrac y2\right) = y$. Every element of the codomain is therefore reached.
$f$ is one-one and onto.
Question 2
Prove that the function $f : N \to N$ given by $f(x) = 3x$ is one-one and into.
(The domain is taken as $N$, so that $3x$ is a natural number.)
Solution. One-one: if $f(a) = f(b)$ then $3a = 3b$, so $a = b$.
Into: every output $3x$ with $x \in N$ is a multiple of $3$. The natural number $1$ in the codomain is not a multiple of $3$, so no $x \in N$ has $f(x) = 1$. The codomain is not completely covered.
$f$ is one-one and into (for example, $1$ is never an output).
Question 3
Show that the function $f : R \to R$ given by $f(x) = x^2$ is neither one-one nor onto.
Solution. Not one-one: $f(2) = 4$ and $f(-2) = 4$, yet $2 \neq -2$. Two different inputs share an output.
Not onto: a square of a real number is never negative, so the value $-1$ in the codomain $R$ is never taken. The range is only $[0, \infty)$, which is smaller than $R$.
$f$ is many-one and into, so neither one-one nor onto.
Question 4
Show that the function $f : N \to N$ given by $f(x) = x^2$ is one-one and into.
Solution. One-one: if $a^2 = b^2$ with $a, b$ natural numbers, then $(a-b)(a+b) = 0$. Since $a + b > 0$, we get $a = b$. (The negative root that spoiled Question 3 is not available in $N$.)
Into: the outputs are the perfect squares $1, 4, 9, \dots$. The natural number $2$ is not a perfect square, so it is never reached.
$f$ is one-one and into (for example, $2$ has no pre-image).
Question 5
Show that the function $f : R \to R$ given by $f(x) = x^4$ is neither one-one nor onto.
Solution. Not one-one: $f(1) = 1 = f(-1)$ although $1 \neq -1$.
Not onto: $x^4 = (x^2)^2 \ge 0$ for every real $x$, so a negative number such as $-5$ is never an output.
$f$ is many-one and into, so neither one-one nor onto.
Question 6
Show that the function $f : Z \to Z$ given by $f(x) = x^3$ is one-one and into.
Solution. One-one: if $a^3 = b^3$ for integers $a, b$, then $(a – b)(a^2 + ab + b^2) = 0$. The second factor equals $\left(a + \tfrac b2\right)^2 + \tfrac{3b^2}{4}$, which is zero only when $a = b = 0$. So in every case $a = b$.
Into: the outputs are the perfect cubes $\dots, -8, -1, 0, 1, 8, \dots$. The integer $2$ is not the cube of any integer (as $1^3 = 1$ and $2^3 = 8$), so it is never reached.
$f$ is one-one and into (for example, $2$ has no pre-image in $Z$).
Question 7
Let $R_0$ be the set of all non-zero real numbers. Show that the function $f : R_0 \to R_0$ given by $f(x) = \dfrac{1}{x}$ is one-one and onto.
Solution. One-one: if $\dfrac1a = \dfrac1b$ then, taking reciprocals, $a = b$.
Onto: let $y \in R_0$, so $y \neq 0$. Then $x = \dfrac1y$ is a non-zero real number, hence in the domain, and $f\!\left(\dfrac1y\right) = y$. Every element of the codomain is reached.
$f$ is one-one and onto.
Question 8
Show that the function $f : R \to R$ given by $f(x) = 1 + x^2$ is many-one and into.
Solution. Many-one: $f(3) = 10 = f(-3)$, but $3 \neq -3$.
Into: since $x^2 \ge 0$, we have $f(x) \ge 1$ for all real $x$. The value $0$ in the codomain is never taken, since $1 + x^2 = 0$ has no real solution. The range is $[1, \infty)$, not all of $R$.
$f$ is many-one and into.
Question 9
The function $f : R \to R$ given by $f(x) = \dfrac{2x – 7}{4}$ is invertible. Find $f^{-1}$.
Solution. Put $y = f(x)$ and solve for $x$ in terms of $y$:
$$y = \frac{2x – 7}{4} \;\Rightarrow\; 4y = 2x – 7 \;\Rightarrow\; x = \frac{4y + 7}{2}.$$
Since $x = f^{-1}(y)$, the inverse sends each $y$ back to the $x$ that produced it.
$f^{-1}(y) = \dfrac{4y + 7}{2}$ for all $y \in R$.
Question 10
Let $f : R \to R$ be given by $f(x) = 10x + 3$. Find $f^{-1}$.
Solution. Set $y = 10x + 3$. Then $10x = y – 3$, so $x = \dfrac{y – 3}{10}$. Check: $f\!\left(\dfrac{y-3}{10}\right) = (y – 3) + 3 = y$.
$f^{-1}(y) = \dfrac{y – 3}{10}$ for all $y \in R$.
Question 11
Let $f : R \to R$ be defined by $f(x) = 1$ when $x$ is rational and $f(x) = -1$ when $x$ is irrational. Show that $f$ is many-one and into.
Solution. Many-one: $f(1) = 1$ and $f(2) = 1$, two different inputs with the same output. (Indeed every rational number goes to $1$.)
Into: the only values $f$ ever takes are $1$ and $-1$, so a number such as $0$ in the codomain $R$ has no pre-image. The range $\{1, -1\}$ is far smaller than $R$.
$f$ is many-one and into.
Question 12
Let $f(x) = x + 7$ and $g(x) = x – 7$ for $x \in R$. Find $(f \circ g)(7)$.
Solution. $(f \circ g)(7) = f(g(7))$. First $g(7) = 7 – 7 = 0$, then $f(0) = 0 + 7 = 7$.
$(f \circ g)(7) = 7$
Question 13
Let $f, g : R \to R$ be defined by $f(x) = x^2$ and $g(x) = x + 1$. Show that $g \circ f \neq f \circ g$.
Solution. Compute both compositions:
$$(g \circ f)(x) = g(x^2) = x^2 + 1, \qquad (f \circ g)(x) = f(x + 1) = (x + 1)^2.$$
These differ: at $x = 1$ the first gives $2$ and the second gives $4$. Since they disagree at even one point, the functions are not equal.
$(g \circ f)(x) = x^2 + 1$ and $(f \circ g)(x) = (x+1)^2$, so $g \circ f \neq f \circ g$.
Question 14
Let $f : R \to R$ be given by $f(x) = (3 – x^3)^{1/3}$. Find $f \circ f$.
Solution. Substitute $f(x)$ into $f$:
$$(f \circ f)(x) = \left(3 – \big[(3 – x^3)^{1/3}\big]^3\right)^{1/3} = \big(3 – (3 – x^3)\big)^{1/3} = (x^3)^{1/3} = x.$$
The real cube root is defined for negative numbers too, so this holds for every real $x$.
$(f \circ f)(x) = x$, i.e. $f \circ f$ is the identity function on $R$.
Question 15
Let $f : R \to R$ be given by $f(x) = 3x + 2$. Find $f\{f(x)\}$.
Solution. Replace the input of $f$ by $3x + 2$:
$$f(3x + 2) = 3(3x + 2) + 2 = 9x + 6 + 2 = 9x + 8.$$
$f\{f(x)\} = 9x + 8$
Question 16
Let $f = \{(1, 2), (3, 5), (4, 1)\}$ and $g = \{(1, 3), (2, 3), (5, 1)\}$. Write down $g \circ f$.
Solution. For $g \circ f$ we apply $f$ first and then $g$, input by input.
- $1 \xrightarrow{f} 2 \xrightarrow{g} 3$, giving $(1, 3)$.
- $3 \xrightarrow{f} 5 \xrightarrow{g} 1$, giving $(3, 1)$.
- $4 \xrightarrow{f} 1 \xrightarrow{g} 3$, giving $(4, 3)$.
$g \circ f = \{(1, 3), (3, 1), (4, 3)\}$
Question 17
Let $A = \{1, 2, 3, 4\}$ and $f = \{(1, 4), (2, 1), (3, 3), (4, 2)\}$. Write down $f \circ f$.
Solution. Apply $f$ twice to each element of $A$.
- $1 \to 4 \to 2$, giving $(1, 2)$.
- $2 \to 1 \to 4$, giving $(2, 4)$.
- $3 \to 3 \to 3$, giving $(3, 3)$.
- $4 \to 2 \to 1$, giving $(4, 1)$.
$f \circ f = \{(1, 2), (2, 4), (3, 3), (4, 1)\}$
Question 18
Let $f(x) = 8x^3$ and $g(x) = x^{1/3}$. Find $g \circ f$ and $f \circ g$.
Solution. For $g \circ f$, put $8x^3$ into $g$: $(8x^3)^{1/3} = 2x$.
For $f \circ g$, put $x^{1/3}$ into $f$: $8\,(x^{1/3})^3 = 8x$.
The two answers differ, which shows again that composition is not commutative.
$(g \circ f)(x) = 2x$ and $(f \circ g)(x) = 8x$
Question 19
Let $f : R \to R$ be given by $f(x) = 10x + 7$. Find the function $g : R \to R$ such that $g \circ f = f \circ g = I$, the identity function on $R$.
Solution. The conditions say that $g$ is the inverse of $f$. Put $y = 10x + 7$, so $x = \dfrac{y – 7}{10}$. Hence $g(x) = \dfrac{x – 7}{10}$.
Check both orders: $g(f(x)) = \dfrac{(10x + 7) – 7}{10} = x$ and $f(g(x)) = 10\cdot\dfrac{x – 7}{10} + 7 = x$.
$g(x) = \dfrac{x – 7}{10}$ for all $x \in R$.
Question 20
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$. State whether $f$ is one-one.
Solution. The images of $1, 2, 3$ are $4, 5, 6$, which are all different. No two inputs share an output, so $f$ is one-one. (It is not onto, because $7$ is not reached, but that is not asked.)
Yes, $f$ is one-one.
Common mistakes
- Calling $x^2$ one-one without checking the domain. On $R$ it fails since $f(2) = f(-2)$, but on $N$ (Question 4) it is one-one. Always read the domain before deciding.
- Confusing “into” with “not one-one”. Many-one is about two inputs sharing an output; into is about a codomain element never reached. They are independent, as $f(x) = x^3$ on $Z$ is one-one and into (Question 6).
- Proving onto by exhibiting an $x$ outside the domain. In Question 7, $x = 1/y$ works only because $y \neq 0$; in Question 2, $x = y/3$ is not a natural number for most $y$.
- Composing in the wrong order. $(g \circ f)(x)$ means $g(f(x))$: apply $f$ first. In Question 16 reversing the order gives a different set of pairs.
- Dropping the cube in Question 14. $\big[(3 – x^3)^{1/3}\big]^3$ is $3 – x^3$, so the inner brackets cancel and $3 – (3 – x^3) = x^3$; forgetting the minus sign gives $6 – x^3$.
Practise next
- Find $f^{-1}$ for $f : R \to R$, $f(x) = 4x – 9$.
Show answer
$f^{-1}(y) = \dfrac{y + 9}{4}$. Solve $y = 4x – 9$ for $x$; check: $4\cdot\dfrac{y+9}{4} – 9 = y$.
- Continue with Exercise 2D for the next set of function problems.
Shiwam's Classes: IIT JEEJEE Main and Advanced, worked in full
Subscribe