RS Aggarwal Class 12 Maths Solutions Exercise 2D — Functions
RS Aggarwal, Class 12 Mathematics — Functions, Exercise 2D. All 11 questions solved.
Independent solutions by Shiwam’s Classes. Not affiliated with or endorsed by the author or publisher of the book.
Exercise 2D is about inverse functions. Questions 1 to 10 ask you to show that a function is invertible, that is, one-one and onto, and then to write down $f^{-1}$. Question 11 is different: it asks for the two compositions $f\circ g$ and $g\circ f$ of a pair of modulus functions.
Key insight. A function has an inverse exactly when it is both one-one and onto. To find the inverse, put $y = f(x)$, solve for $x$ in terms of $y$, and rename: that expression is $f^{-1}(y)$. Solving for $x$ doubles as the proof of “onto”, because it shows which $y$ values can be reached and that each one has a preimage in the domain.
Question 1
The sets are $A = \{2, 3, 4, 5\}$ and $B = \{7, 9, 11, 13\}$, and the function $f$ is given as the list of pairs $\{(2,7), (3,9), (4,11), (5,13)\}$. Show that $f$ is invertible and write down $f^{-1}$.
Solution. The four pairs send the four elements of $A$ to four different elements of $B$ ($7, 9, 11, 13$ are all distinct), so $f$ is one-one. Every element of $B$ appears as a second entry of some pair, so $f$ is onto. Being one-one and onto, $f$ is invertible.
To get $f^{-1}$ we simply reverse each pair, because $f(a) = b$ means $f^{-1}(b) = a$.
$$f^{-1} = \{(7,2), (9,3), (11,4), (13,5)\}$$
Question 2
Show that $f : R \to R$ given by $f(x) = 2x + 3$ is invertible, and find $f^{-1}$.
Solution. One-one: if $f(x_1) = f(x_2)$ then $2x_1 + 3 = 2x_2 + 3$, so $x_1 = x_2$.
Onto: let $y \in R$ be any real number. Solving $y = 2x + 3$ gives $x = \dfrac{y-3}{2}$, which is a real number, and $f\!\left(\dfrac{y-3}{2}\right) = (y – 3) + 3 = y$. So every $y$ has a preimage.
Hence $f$ is a bijection, so it is invertible, and the value of $x$ we found is the inverse.
$$f^{-1}(y) = \frac{1}{2}(y – 3)$$
Question 3
The function $f : Q \to Q$ is defined by $f(x) = 3x – 4$, where $Q$ is the set of rational numbers. Prove it is invertible and find $f^{-1}$.
Solution. One-one: $f(x_1) = f(x_2)$ gives $3x_1 – 4 = 3x_2 – 4$, hence $x_1 = x_2$.
Onto: take any rational $y$. From $y = 3x – 4$ we get $x = \dfrac{y+4}{3}$. This is again rational, since sums and quotients of rationals are rational, so it lies in the domain $Q$, and $f$ of it equals $(y + 4) – 4 = y$.
Thus $f$ is one-one and onto, hence invertible.
$$f^{-1}(y) = \frac{1}{3}(y + 4)$$
Question 4
Let $f : R \to R$ be given by $f(x) = \dfrac{1}{2}(3x + 1)$. Show that $f$ is invertible and find $f^{-1}$.
Solution. One-one: $f(x_1) = f(x_2)$ means $\tfrac12(3x_1 + 1) = \tfrac12(3x_2 + 1)$, so $3x_1 = 3x_2$ and $x_1 = x_2$.
Onto: for real $y$, solve $y = \tfrac12(3x+1)$. Then $2y = 3x + 1$, so $x = \dfrac{2y – 1}{3}$, a real number for every real $y$. Substituting back, $f\!\left(\dfrac{2y-1}{3}\right) = \tfrac12\bigl((2y – 1) + 1\bigr) = y$.
So $f$ is a bijection and is invertible.
$$f^{-1}(y) = \frac{2y – 1}{3}$$
Question 5
For $f(x) = \dfrac{4x + 3}{6x – 4}$ with $x \neq \dfrac{2}{3}$, prove that $(f\circ f)(x) = x$ for every $x \neq \dfrac23$, and use this to write down $f^{-1}$.
Solution. Put the expression $f(x)$ into $f$ again:
$$(f\circ f)(x) = \frac{4f(x) + 3}{6f(x) – 4} = \frac{4\cdot\dfrac{4x+3}{6x-4} + 3}{6\cdot\dfrac{4x+3}{6x-4} – 4}.$$
Multiply the top and bottom by $6x – 4$ (non-zero because $x \ne \tfrac23$):
- numerator: $4(4x + 3) + 3(6x – 4) = 16x + 12 + 18x – 12 = 34x$,
- denominator: $6(4x + 3) – 4(6x – 4) = 24x + 18 – 24x + 16 = 34$.
So $(f\circ f)(x) = \dfrac{34x}{34} = x$.
Since $f\circ f$ is the identity, applying $f$ twice returns us to where we started, which says that $f$ is its own inverse: $f^{-1} = f$. (This also shows $f$ is invertible.) Renaming the variable gives the formula below.
$$f^{-1}(y) = \frac{4y + 3}{6y – 4}$$
Question 6
The function $f$ is defined on $A = R – \left\{\dfrac23\right\}$ by $f(x) = \dfrac{4x+3}{6x-4}$. Show that $f$ is one-one and onto, and hence find $f^{-1}$.
Solution. One-one: suppose $f(x_1) = f(x_2)$. Then
$$(4x_1 + 3)(6x_2 – 4) = (4x_2 + 3)(6x_1 – 4).$$
Expanding, the left side is $24x_1x_2 – 16x_1 + 18x_2 – 12$ and the right side is $24x_1x_2 – 16x_2 + 18x_1 – 12$. Cancelling the common terms leaves $-34x_1 + 34x_2 = 0$, so $x_1 = x_2$.
Onto: let $y \in A$. From $y = \dfrac{4x+3}{6x-4}$ we get $y(6x – 4) = 4x + 3$, that is $x(6y – 4) = 4y + 3$, so
$$x = \frac{4y + 3}{6y – 4}.$$
This is defined because $y \neq \tfrac23$. It also differs from $\tfrac23$: if $\dfrac{4y+3}{6y-4} = \tfrac23$ then $3(4y+3) = 2(6y-4)$, i.e. $9 = -8$, which is impossible. So $x \in A$ and $f(x) = y$.
Hence $f$ is one-one and onto, with the inverse found above.
$$f^{-1}(y) = \frac{4y + 3}{6y – 4}$$
Question 7
The function $f$ maps $A = R – \left\{-\dfrac43\right\}$ into itself by $f(x) = \dfrac{4x}{3x + 4}$. Show that $f$ is one-one and onto, and find $f^{-1}$.
Solution. One-one: from $f(x_1) = f(x_2)$ we get $4x_1(3x_2 + 4) = 4x_2(3x_1 + 4)$. The terms $12x_1x_2$ cancel, leaving $16x_1 = 16x_2$, so $x_1 = x_2$.
Onto: write $y = \dfrac{4x}{3x+4}$. Then $y(3x + 4) = 4x$, so $x(3y – 4) = -4y$ and
$$x = \frac{4y}{4 – 3y}.$$
This exists for every $y$ except $y = \tfrac43$, and $\tfrac43$ is exactly the one value that $f$ never takes (as $x$ grows large, $f(x)$ approaches $\tfrac43$ but never reaches it). For every other $y$ the number $x = \dfrac{4y}{4-3y}$ is not $-\tfrac43$ (setting $\dfrac{4y}{4-3y} = -\tfrac43$ gives $12y = -16 + 12y$, which is false), and it satisfies $f(x) = y$. So $f$ is onto the set of values it actually attains, $R – \left\{\tfrac43\right\}$, and the function is invertible.
A remark on the question as printed. It names $A = R – \{-\tfrac43\}$ as both domain and codomain, but $f(-\tfrac23) = -\tfrac43$ lies outside $A$ and $\tfrac43$ is never reached, so the codomain should really be $R – \{\tfrac43\}$. The inverse formula is unaffected.
$$f^{-1}(y) = \frac{4y}{4 – 3y}$$
Question 8
Let $R_+$ be the set of positive real numbers and let $f : R_+ \to [-5, \infty)$ be defined by $f(x) = 9x^2 + 6x – 5$. Show that $f$ is invertible and find $f^{-1}$.
Solution. Complete the square: $9x^2 + 6x – 5 = (3x + 1)^2 – 6$.
One-one: if $f(x_1) = f(x_2)$ then $(3x_1+1)^2 = (3x_2+1)^2$. For positive $x$ both $3x_1 + 1$ and $3x_2 + 1$ are positive, so we may take positive square roots: $3x_1 + 1 = 3x_2 + 1$ and $x_1 = x_2$. (This is where the restriction to positive $x$ matters; on all of $R$ the function would not be one-one.)
Onto: set $y = (3x+1)^2 – 6$. Then $(3x+1)^2 = y + 6$ and, taking the positive root because $3x + 1 > 0$,
$$x = \frac{\sqrt{y + 6} – 1}{3}.$$
For this to be positive we need $\sqrt{y+6} > 1$, i.e. $y > -5$. So the range of $f$ is exactly $(-5, \infty)$, and every $y$ in it comes from exactly one positive $x$. Strictly the value $-5$ in the printed codomain $[-5,\infty)$ is not reached (it would need $x=0$), so $f$ is invertible as a map onto its range $(-5,\infty)$; the inverse formula is the same.
$$f^{-1}(y) = \frac{\sqrt{y + 6} – 1}{3}$$
Question 9
Let $f : N \to R$ be given by $f(x) = 4x^2 + 12x + 15$, where $N$ is the set of natural numbers. Show that $f : N \to \text{range}(f)$ is invertible and find $f^{-1}$.
Solution. Completing the square, $4x^2 + 12x + 15 = (2x + 3)^2 + 6$.
One-one: if $f(x_1) = f(x_2)$ then $(2x_1 + 3)^2 = (2x_2 + 3)^2$. Both $2x_1+3$ and $2x_2+3$ are positive (natural $x$), so $2x_1 + 3 = 2x_2 + 3$ and $x_1 = x_2$.
Onto its range: by the choice of codomain, every element of the range is $y = f(x)$ for some natural $x$, so $f$ is onto the range automatically. For such a $y$, $(2x+3)^2 = y – 6$, and taking the positive root,
$$x = \frac{\sqrt{y – 6} – 3}{2}.$$
So $f : N \to \text{range}(f)$ is one-one and onto, hence invertible. For example $f(1) = 31$, and the formula gives $\dfrac{\sqrt{25} – 3}{2} = 1$.
$$f^{-1}(y) = \frac{\sqrt{y – 6} – 3}{2}$$
Question 10
Let $A = R – \{2\}$ and $B = R – \{1\}$, and let $f : A \to B$ be $f(x) = \dfrac{x – 1}{x – 2}$. Show that $f$ is one-one and onto, and hence find $f^{-1}$.
Solution. One-one: $f(x_1) = f(x_2)$ gives $(x_1 – 1)(x_2 – 2) = (x_2 – 1)(x_1 – 2)$. Expanding, $x_1x_2 – 2x_1 – x_2 + 2 = x_1x_2 – 2x_2 – x_1 + 2$, which simplifies to $-x_1 + x_2 = 0$, so $x_1 = x_2$.
Onto: take $y \in B$, so $y \neq 1$. From $y = \dfrac{x-1}{x-2}$ we get $y(x – 2) = x – 1$, so $x(y – 1) = 2y – 1$ and
$$x = \frac{2y – 1}{y – 1}.$$
This is defined because $y \neq 1$. It is not $2$: $\dfrac{2y-1}{y-1} = 2$ would give $2y – 1 = 2y – 2$, which is false. So $x \in A$ and $f(x) = y$.
Therefore $f$ is a bijection from $A$ to $B$.
$$f^{-1}(y) = \frac{2y – 1}{y – 1}$$
Question 11
Two functions $f$ and $g$ from $R$ to $R$ are defined by $f(x) = |x| + x$ and $g(x) = |x| – x$. Find $f\circ g$ and $g\circ f$.
Solution. First see what each function does.
- $f(x) = |x| + x$ equals $2x$ when $x \ge 0$ and $0$ when $x < 0$. So $f(x) \ge 0$ always.
- $g(x) = |x| – x$ equals $0$ when $x \ge 0$ and $-2x$ when $x < 0$. So $g(x) \ge 0$ always.
For $f\circ g$: $(f\circ g)(x) = f(g(x))$. Because $g(x) \ge 0$, we have $|g(x)| = g(x)$ and so $f(g(x)) = g(x) + g(x) = 2g(x) = 2(|x| – x)$. Check: for $x < 0$, $g(x) = -2x > 0$ and $f(-2x) = -4x$, which is $2(|x| – x) = 2(-x – x) = -4x$. For $x \ge 0$ both sides are $0$.
For $g\circ f$: $(g\circ f)(x) = g(f(x))$. Because $f(x) \ge 0$, we have $|f(x)| = f(x)$, so $g(f(x)) = f(x) – f(x) = 0$. Check: for $x = 2$, $f(2) = 4$ and $g(4) = 4 – 4 = 0$; for $x = -3$, $f(-3) = 0$ and $g(0) = 0$.
The book prints $|x| – x$ as the answer to both parts, which is a misprint: at $x = -3$ we get $g(-3) = 6$ and $f(6) = 12$, so $(f\circ g)(-3) = 12$, not $|{-3}| – (-3) = 6$; and $(g\circ f)(-3) = g(0) = 0$, again not $6$.
$$(f\circ g)(x) = 2\bigl(|x| – x\bigr)\ \ (= 0 \text{ for } x \ge 0,\ -4x \text{ for } x < 0),\qquad (g\circ f)(x) = 0 \text{ for all } x.$$
Common mistakes
- Forgetting to prove both halves. Writing the formula for $f^{-1}$ without first showing the function is one-one (and onto) proves nothing; an inverse exists only for a bijection.
- Not checking the solved $x$ lies in the domain. In Questions 6 and 10 the expression $\dfrac{4y+3}{6y-4}$ or $\dfrac{2y-1}{y-1}$ must be shown to avoid the excluded point of the domain, or “onto” is not established.
- Dropping the sign restriction in Questions 8 and 9. Taking $\pm\sqrt{\;}$ gives two inverses. The domain being positive (or natural) forces $3x+1$ or $2x+3$ to be positive, so only the positive root is used.
- Treating $|g(x)|$ as $g(x)$ without a reason in Question 11. It works only because $g(x) \ge 0$ for every $x$; likewise for $f$. Without that observation the compositions look much harder than they are.
- Mixing up the order of composition. $(f\circ g)(x)$ means $f$ of $g(x)$, with $g$ applied first, and the two answers in Question 11 are not the same.
Practise next
- Show that $f : R \to R$, $f(x) = 5x – 7$ is invertible and find $f^{-1}$.
Show answer
$f^{-1}(y) = \dfrac{y + 7}{5}$. Solving $y = 5x – 7$ gives $x = \dfrac{y+7}{5}$ for every real $y$, and $f(x_1) = f(x_2)$ forces $x_1 = x_2$.
- Let $f : R – \{3\} \to R – \{2\}$ be $f(x) = \dfrac{2x + 1}{x – 3}$. Find $f^{-1}$.
Show answer
$f^{-1}(y) = \dfrac{3y + 1}{y – 2}$. From $y(x-3) = 2x+1$ we get $x(y-2) = 3y+1$, and $y \ne 2$ is exactly the codomain.
Shiwam's Classes: IIT JEEJEE Main and Advanced, worked in full
Subscribe