Functions

RS Aggarwal Class 12 Maths Solutions Objective Questions — Types of Functions, Inverse, Composition, Domain and Range (Chapter 2)

RS Aggarwal, Class 12 Mathematics — Chapter 2, Functions, Objective Questions 1 to 39. All 39 questions solved.

Independent solutions by Shiwam’s Classes. Not affiliated with or endorsed by the author or publisher of the book.

These 39 multiple-choice questions test four skills. Questions 1 to 11 ask whether a given function is one-one, onto, both or neither. Questions 12 to 14 ask for an inverse function. Questions 15 to 23 are about composition of functions. Questions 24 to 39 ask for the domain or range of a given expression.

Key insight. Always decide one-one by asking whether two different inputs can give the same output, and onto by comparing the actual range with the stated codomain. For domains, list every restriction (denominator not zero, root argument non-negative, log argument positive, inverse-trigonometric argument in $[-1,1]$) and intersect them; for ranges, solve $y=f(x)$ for $x$ and see which $y$ give a real $x$.

Question 1

$f : N \to N : f(x) = 2x$ is

(a) one-one and onto
(b) one-one and into
(c) many-one and onto
(d) many-one and into

Solution. For $f(x)=2x$, $f(a)=f(b)$ gives $2a=2b$, so $a=b$: the map is one-one. Every image is an even number, so odd naturals such as $1$ are never reached and the range is a proper part of $\mathbb N$. Hence it is into.

(b) one-one and into

Question 2

$f : N \to N : f(x) = x^2 + x + 1$ is

(a) one-one and onto
(b) one-one and into
(c) many-one and onto
(d) many-one and into

Solution. If $a^2+a+1=b^2+b+1$ then $(a-b)(a+b+1)=0$, and $a+b+1>0$ for naturals, so $a=b$: one-one. The smallest value is $f(1)=3$, so $1$ and $2$ are not images and the function is into.

(b) one-one and into

Question 3

$f : R \to R : f(x) = x^2$ is

(a) one-one and onto
(b) one-one and into
(c) many-one and onto
(d) many-one and into

Solution. Here $f(-2)=f(2)=4$, so two different inputs share an output and $f$ is many-one. Also $x^2\ge 0$, so negative reals are never reached: into.

(d) many-one and into

Question 4

$f : R \to R : f(x) = x^3$ is

(a) one-one and onto
(b) one-one and into
(c) many-one and onto
(d) many-one and into

Solution. $a^3=b^3$ forces $a=b$ for real numbers, so $f$ is one-one. For any real $y$ the number $x=y^{1/3}$ (real cube root) satisfies $f(x)=y$, so every real is hit: onto.

(a) one-one and onto

Question 5

$f : R^+ \to R^+ : f(x) = e^x$ is

(a) many-one and into
(b) many-one and onto
(c) one-one and into
(d) one-one and onto

Solution. $e^a=e^b$ gives $a=b$, so $f$ is one-one. On $x>0$ we have $e^x>1$, so the range is $(1,\infty)$, while the codomain $\mathbb R^+=(0,\infty)$ also contains numbers such as $\tfrac12$ that are never reached. So $f$ is one-one and into.

(c) one-one and into

Question 6

$f : \left[\frac{-\pi}{2}, \frac{\pi}{2}\right] \to [-1, 1] : f(x) = \sin x$ is

(a) one-one and into
(b) one-one and onto
(c) many-one and into
(d) many-one and onto

Solution. Sine is strictly increasing on $\left[-\tfrac{\pi}{2},\tfrac{\pi}{2}\right]$, hence one-one. It runs continuously from $\sin\left(-\tfrac{\pi}{2}\right)=-1$ to $\sin\tfrac{\pi}{2}=1$, so the range is all of $[-1,1]$: onto.

(b) one-one and onto

Question 7

$f : R \to R : f(x) = \cos x$ is

(a) one-one and into
(b) one-one and onto
(c) many-one and into
(d) many-one and onto

Solution. $\cos 0=\cos 2\pi=1$, so the map is many-one. Its values lie in $[-1,1]$, so a number like $5$ in the codomain $\mathbb R$ is never reached: into.

(c) many-one and into

Question 8

$f : C \to R : f(z) = |z|$ is

(a) one-one and into
(b) one-one and onto
(c) many-one and into
(d) many-one and onto

Solution. Distinct complex numbers such as $1$ and $i$ both have modulus $1$, so $f$ is many-one. Moduli are never negative, so $-1\in\mathbb R$ has no pre-image: into.

(c) many-one and into

Question 9

Let $A = R – \{3\}$ and $B = R – \{1\}$. Then, $f : A \to B : f(x) = \frac{(x-2)}{(x-3)}$ is

(a) one-one and into
(b) one-one and onto
(c) many-one and into
(d) many-one and onto

Solution. Write $f(x)=\dfrac{x-2}{x-3}=1+\dfrac{1}{x-3}$. If $f(a)=f(b)$ then $\dfrac1{a-3}=\dfrac1{b-3}$, so $a=b$: one-one. For $y\ne1$, solving $y=\dfrac{x-2}{x-3}$ gives $x=\dfrac{3y-2}{y-1}$, which is defined and different from $3$ whenever $y\ne1$. So every element of $B=\mathbb R-\{1\}$ is reached: onto.

(b) one-one and onto

Question 10

Let $f : N \to N : f(n) = \begin{cases} \frac{1}{2}(n+1), & \text{when } n \text{ is odd} \\ \frac{n}{2}, & \text{when } n \text{ is even.} \end{cases}$ Then, $f$ is

(a) one-one and into
(b) one-one and onto
(c) many-one and into
(d) many-one and onto

Solution. Compute a few values: $f(1)=1$ and $f(2)=1$, so two inputs have the same image and $f$ is many-one. For any natural $m$, the even number $n=2m$ gives $f(2m)=m$, so every natural number is an image: onto.

(d) many-one and onto

Question 11

Let $A$ and $B$ be two non-empty sets and let $f : (A \times B) \to (B \times A) : f(a, b) = (b, a)$. Then, $f$ is

(a) one-one and onto
(b) one-one and into
(c) many-one and onto
(d) many-one and into

Solution. If $f(a,b)=f(a’,b’)$ then $(b,a)=(b’,a’)$, so $a=a’$ and $b=b’$: one-one. Any $(p,q)\in B\times A$ is the image of $(q,p)\in A\times B$: onto.

(a) one-one and onto

Question 12

Let $f : Q \to Q : f(x) = (2x + 3)$. Then, $f^{-1}(y) = ?$

(a) $(2y – 3)$
(b) $\frac{1}{(2y – 3)}$
(c) $\frac{1}{2}(y – 3)$
(d) none of these

Solution. Let $y=2x+3$. Then $x=\dfrac{y-3}{2}$, so $f^{-1}(y)=\tfrac12(y-3)$.

(c) $\frac{1}{2}(y – 3)$

Question 13

Let $f : R – \left\{\frac{-4}{3}\right\} \to R – \left\{\frac{4}{3}\right\} : f(x) = \frac{4x}{3x+4}$. Then, $f^{-1}(y) = ?$

(a) $\frac{4y}{4-3y}$
(b) $\frac{4y}{4y+3}$
(c) $\frac{4y}{3y-4}$
(d) none of these

Solution. Put $y=\dfrac{4x}{3x+4}$, so $3xy+4y=4x$, i.e. $x(4-3y)=4y$. Hence $f^{-1}(y)=\dfrac{4y}{4-3y}$. Substituting back into $f$ returns $y$, which confirms it.

(a) $\frac{4y}{4-3y}$

Question 14

Let $f : N \to X : f(x) = 4x^2 + 12x + 15$. Then, $f^{-1}(y) = ?$

(a) $\frac{1}{2}(\sqrt{y-4}+3)$
(b) $\frac{1}{2}(\sqrt{y-6}-3)$
(c) $\frac{1}{2}(\sqrt{y-4}+5)$
(d) none of these

Solution. Complete the square: $4x^2+12x+15=(2x+3)^2+6$. Setting this equal to $y$ gives $(2x+3)^2=y-6$, and since $x\in\mathbb N$ makes $2x+3>0$ we take the positive root: $2x+3=\sqrt{y-6}$, so $x=\tfrac12\left(\sqrt{y-6}-3\right)$.

(b) $\frac{1}{2}(\sqrt{y-6}-3)$

Question 15

If $f(x) = \frac{4x+3}{6x-4}$, $x \neq \frac{2}{3}$ then $(f \circ f)(x) = ?$

(a) $x$
(b) $(2x-3)$
(c) $\frac{4x-6}{3x+4}$
(d) none of these

Solution. Substitute $f$ into itself: numerator $4\cdot\dfrac{4x+3}{6x-4}+3=\dfrac{16x+12+18x-12}{6x-4}=\dfrac{34x}{6x-4}$; denominator $6\cdot\dfrac{4x+3}{6x-4}-4=\dfrac{24x+18-24x+16}{6x-4}=\dfrac{34}{6x-4}$. The ratio is $x$.

(a) $x$

Question 16

If $f(x) = (x^2-1)$ and $g(x) = (2x+3)$ then $(g \circ f)(x) = ?$

(a) $(2x^2+3)$
(b) $(3x^2+2)$
(c) $(2x^2+1)$
(d) none of these

Solution. $(g\circ f)(x)=g(f(x))=2(x^2-1)+3=2x^2+1$.

(c) $(2x^2+1)$

Question 17

If $f\left(x+\frac{1}{x}\right) = x^2 + \frac{1}{x^2}$ then $f(x) = ?$

(a) $x^2$
(b) $(x^2-1)$
(c) $(x^2-2)$
(d) none of these

Solution. Since $x^2+\dfrac1{x^2}=\left(x+\dfrac1x\right)^2-2$, writing $t=x+\dfrac1x$ gives $f(t)=t^2-2$. So $f(x)=x^2-2$.

(c) $(x^2-2)$

Question 18

If $f(x) = \frac{1}{(1-x)}$ then $(f \circ f \circ f)(x) = ?$

(a) $\frac{1}{(1-3x)}$
(b) $\frac{x}{(1+3x)}$
(c) $x$
(d) none of these

Solution. First $f(f(x))=\dfrac{1}{1-\frac1{1-x}}=\dfrac{1-x}{-x}=\dfrac{x-1}{x}$. Then $f\left(\dfrac{x-1}{x}\right)=\dfrac{1}{1-\frac{x-1}{x}}=\dfrac{1}{\frac1x}=x$. So $f$ applied three times is the identity.

(c) $x$

Question 19

If $f(x) = \sqrt[3]{3-x^3}$ then $(f \circ f)(x) = ?$

(a) $x^{1/3}$
(b) $x$
(c) $(1-x^{1/3})$
(d) none of these

Solution. $(f\circ f)(x)=\sqrt[3]{3-\left(\sqrt[3]{3-x^3}\right)^3}=\sqrt[3]{3-(3-x^3)}=\sqrt[3]{x^3}=x$.

(b) $x$

Question 20

If $f(x) = x^2 – 3x + 2$ then $(f \circ f)(x) = ?$

(a) $x^4$
(b) $x^4 – 6x^3$
(c) $x^4 – 6x^3 + 10x^2$
(d) none of these

Solution. Let $u=x^2-3x+2$. Then $f(u)=u^2-3u+2$. Here $u^2=x^4-6x^3+13x^2-12x+4$ and $-3u=-3x^2+9x-6$, so the sum with $+2$ is $x^4-6x^3+10x^2-3x$. The extra term $-3x$ means it matches none of the three listed expressions.

(d) none of these

Question 21

If $f(x) = 8x^3$ and $g(x) = x^{1/3}$ then $(g \circ f)(x) = ?$

(a) $x$
(b) $2x$
(c) $\frac{x}{2}$
(d) $3x^2$

Solution. $(g\circ f)(x)=g(8x^3)=(8x^3)^{1/3}=2x$.

(b) $2x$

Question 22

If $f(x) = x^2$, $g(x) = \tan x$ and $h(x) = \log x$ then $\{h \circ (g \circ f)\}\left(\sqrt{\frac{\pi}{4}}\right) = ?$

(a) $0$
(b) $1$
(c) $\frac{1}{x}$
(d) $\frac{1}{2}\log\frac{\pi}{4}$

Solution. Work from the inside: $f\left(\sqrt{\pi/4}\right)=\dfrac{\pi}{4}$, then $g\left(\dfrac\pi4\right)=\tan\dfrac\pi4=1$, then $h(1)=\log1=0$.

(a) $0$

Question 23

If $f = \{(1,2), (3,5), (4,1)\}$ and $g = \{(2,3), (5,1), (1,3)\}$ then $(g \circ f) = ?$

(a) $\{(3,1), (1,3), (3,4)\}$
(b) $\{(1,3), (3,1), (4,3)\}$
(c) $\{(3,4), (4,3), (1,3)\}$
(d) $\{(2,5), (5,2), (1,5)\}$

Solution. Follow each element of $f$ through $g$: $1\to2\to3$, $3\to5\to1$, $4\to1\to3$. So $g\circ f=\{(1,3),(3,1),(4,3)\}$.

(b) $\{(1,3), (3,1), (4,3)\}$

Question 24

Let $f(x) = \sqrt{9-x^2}$. Then, dom $(f) = ?$

(a) $[-3, 3]$
(b) $(-\infty, -3]$
(c) $[3, \infty)$
(d) $(-\infty, -3] \cup (4, \infty)$

Solution. We need $9-x^2\ge0$, i.e. $x^2\le9$, i.e. $-3\le x\le3$.

(a) $[-3, 3]$

Question 25

Let $f(x) = \sqrt{\frac{x-1}{x-4}}$. Then, dom $(f) = ?$

(a) $[1, 4)$
(b) $[1, 4]$
(c) $(-\infty, 4]$
(d) $(-\infty, 1] \cup (4, \infty)$

Solution. The fraction under the root must be non-negative with $x\ne4$. Sign analysis of $\dfrac{x-1}{x-4}$: it is positive for $x<1$ or $x>4$, zero at $x=1$, undefined at $4$. So the domain is $(-\infty,1]\cup(4,\infty)$.

(d) $(-\infty, 1] \cup (4, \infty)$

Question 26

Let $f(x) = e^{\sqrt{x^2-1}} \cdot \log(x-1)$. Then, dom $(f) = ?$

(a) $(-\infty, 1]$
(b) $[-1, \infty)$
(c) $(1, \infty)$
(d) $(-\infty, -1] \cup (1, \infty)$

Solution. The root needs $x^2-1\ge0$, i.e. $x\le-1$ or $x\ge1$. The logarithm needs $x-1>0$, i.e. $x>1$. Both hold only for $x>1$.

(c) $(1, \infty)$

Question 27

Let $f(x) = \frac{x}{(x^2-1)}$. Then, dom $(f) = ?$

(a) $R$
(b) $R – \{1\}$
(c) $R – \{-1\}$
(d) $R – \{-1, 1\}$

Solution. The denominator $x^2-1=(x-1)(x+1)$ vanishes at $x=\pm1$, so these two points are excluded.

(d) $R – \{-1, 1\}$

Question 28

Let $f(x) = \frac{\sin^{-1} x}{x}$. Then, dom $(f) = ?$

(a) $(-1, 1)$
(b) $[-1, 1]$
(c) $[-1, 1] – \{0\}$
(d) none of these

Solution. $\sin^{-1}x$ needs $-1\le x\le1$, and the denominator needs $x\ne0$. So the domain is $[-1,1]-\{0\}$.

(c) $[-1, 1] – \{0\}$

Question 29

Let $f(x) = \cos^{-1} 2x$. Then, dom $(f) = ?$

(a) $[-1, 1]$
(b) $\left[\frac{-1}{2}, \frac{1}{2}\right]$
(c) $\left[\frac{-\pi}{2}, \frac{\pi}{2}\right]$
(d) $\left[\frac{-\pi}{4}, \frac{\pi}{4}\right]$

Solution. $\cos^{-1}$ accepts inputs in $[-1,1]$, so $-1\le2x\le1$, giving $-\tfrac12\le x\le\tfrac12$.

(b) $\left[\frac{-1}{2}, \frac{1}{2}\right]$

Question 30

Let $f(x) = \cos^{-1}(3x-1)$. Then, dom $(f) = ?$

(a) $\left(0, \frac{2}{3}\right)$
(b) $\left[0, \frac{2}{3}\right]$
(c) $\left[\frac{-2}{3}, \frac{2}{3}\right]$
(d) none of these

Solution. We need $-1\le3x-1\le1$. Adding $1$ gives $0\le3x\le2$, so $0\le x\le\tfrac23$.

(b) $\left[0, \frac{2}{3}\right]$

Question 31

Let $f(x) = \sqrt{\cos x}$. Then, dom $(f) = ?$

(a) $\left[0, \frac{\pi}{2}\right]$
(b) $\left[\frac{3\pi}{2}, 2\pi\right]$
(c) $\left[0, \frac{\pi}{2}\right] \cup \left[\frac{3\pi}{2}, 2\pi\right]$
(d) none of these

Solution. We need $\cos x\ge0$. Over one period $[0,2\pi]$ this holds on $\left[0,\tfrac\pi2\right]$ and on $\left[\tfrac{3\pi}2,2\pi\right]$, which together are option (c); the same pattern then repeats with period $2\pi$.

(c) $\left[0, \frac{\pi}{2}\right] \cup \left[\frac{3\pi}{2}, 2\pi\right]$

Question 32

Let $f(x) = \sqrt{\log(2x-x^2)}$. Then, dom $(f) = ?$

(a) $(0, 2)$
(b) $[1, 2]$
(c) $(-\infty, 1]$
(d) none of these

Solution. Under the root we need $\log(2x-x^2)\ge0$, i.e. $2x-x^2\ge1$ (which also makes the log defined). That is $x^2-2x+1\le0$, i.e. $(x-1)^2\le0$, which is true only at $x=1$. The domain is the single point $\{1\}$, which is none of (a), (b), (c).

(d) none of these

Question 33

Let $f(x) = x^2$. Then, dom $(f)$ and range $(f)$ are respectively

(a) $R$ and $R$
(b) $R^+$ and $R^+$
(c) $R$ and $R^+$
(d) $R$ and $R – \{0\}$

Solution. Any real number can be squared, so the domain is $\mathbb R$. The values $x^2$ fill $[0,\infty)$, which is the set meant by $\mathbb R^+$ in the options, so the pair is $\mathbb R$ and $\mathbb R^+$. (Option (d) is wrong because $0=f(0)$ is in the range.)

(c) $R$ and $R^+$

Question 34

Let $f(x) = x^3$. Then, dom $(f)$ and range $(f)$ are respectively

(a) $R$ and $R$
(b) $R^+$ and $R^+$
(c) $R$ and $R^+$
(d) $R^+$ and $R$

Solution. Every real number has a cube and every real $y$ equals $\left(y^{1/3}\right)^3$, so domain and range are both $\mathbb R$.

(a) $R$ and $R$

Question 35

Let $f(x) = \log(1-x) + \sqrt{x^2-1}$. Then, dom$(f)$ = ?

(a) $(1, \infty)$
(b) $(-\infty, -1]$
(c) $[-1, 1)$
(d) $(0, 1)$

Solution. $\log(1-x)$ needs $x<1$. $\sqrt{x^2-1}$ needs $x\le-1$ or $x\ge1$. Together: $x\le-1$, i.e. $(-\infty,-1]$.

(b) $(-\infty, -1]$

Question 36

Let $f(x) = \dfrac{1}{(1-x^2)}$. Then, range$(f)$ = ?

(a) $(-\infty, 1]$
(b) $[1, \infty)$
(c) $[-1, 1]$
(d) none of these

Solution. Domain is $x\ne\pm1$. Put $y=\dfrac1{1-x^2}$, so $x^2=\dfrac{y-1}{y}$. A real $x$ needs $\dfrac{y-1}{y}\ge0$, which gives $y<0$ or $y\ge1$. Check: for $|x|<1$ the value is $\ge1$, for $|x|>1$ it is negative. So the range is $(-\infty,0)\cup[1,\infty)$, which is none of (a), (b), (c).

(d) none of these

Question 37

Let $f(x) = \dfrac{x^2}{(1+x^2)}$. Then, range$(f)$ = ?

(a) $[1, \infty)$
(b) $[0, 1)$
(c) $[-1, 1]$
(d) $(0, 1]$

Solution. Write $f(x)=1-\dfrac1{1+x^2}$. Since $1+x^2\ge1$, we have $0<\dfrac1{1+x^2}\le1$, hence $0\le f(x)<1$. Every value in $[0,1)$ is reached (solve $x^2=\dfrac{y}{1-y}$).

(b) $[0, 1)$

Question 38

The range of $f(x) = x + \dfrac{1}{x}$ is

(a) $[-2, 2]$
(b) $[2, \infty)$
(c) $(-\infty, -2]$
(d) none of these

Solution. For $x>0$, $x+\dfrac1x\ge2$ by AM-GM, with equality at $x=1$. For $x<0$ the value is $-\left(|x|+\dfrac1{|x|}\right)\le-2$. So the range is $(-\infty,-2]\cup[2,\infty)$, which is not given.

(d) none of these

Question 39

The range of $f(x) = a^x$, where $a > 0$ is

(a) $]-\infty, 0]$
(b) $]-\infty, 0)$
(c) $[0, \infty)$
(d) $(0, \infty)$

Solution. An exponential with $a>0$ is always positive and takes every positive value, so the range is $(0,\infty)$.

(d) $(0, \infty)$

Common mistakes

  • Calling a function onto without comparing the range with the codomain: $e^x$ on positive reals (Q5) and $\cos x$ into $\mathbb R$ (Q7) both miss part of the codomain.
  • Applying the functions in the wrong order in $g\circ f$: $f$ acts first (Q16, Q21, Q22).
  • Missing one of several domain conditions, for instance dropping $x\ne0$ in Q28 or the log condition in Q26 and Q35.
  • Stopping at $y\ge1$ in Q36: the part $|x|>1$ gives negative values too.

Practise next

Try the mixed questions in Exercise 2D of the same chapter, or revisit the types-of-function questions in Exercise 2B.

Shiwam's Classes: IIT JEEJEE Main and Advanced, worked in full

Subscribe