Prepizo
Learn › JEE Main · Maths PYQ › Functions › Types of Functions

Types of Functions — JEE Main Maths PYQ MCQs with Solutions

Free JEE Main Maths PYQ Types of Functions MCQs with step-by-step solutions (12 questions). Part of Functions. Practise online on Prepizo — no login needed.

▶ Practise Types of Functions online (free)

Questions with solutions

Q1 — Types of Functions · medium · theory
If the function $f:\mathbf{R}-\{1,-1\}\to A$ defined by $f(x)=\dfrac{x^2}{1-x^2}$, is surjective, then $A$ is equal to
A. $\mathbf{R}-\{-1\}$
B. $[0,\infty)$
C. $\mathbf{R}-[-1,0)$  ✓ Correct
D. $\mathbf{R}-(-1,0)$
Solution: Let $y=f(x)=\dfrac{x^2}{1-x^2}$. Then $x^2=y(1-x^2)\Rightarrow x^2(1+y)=y\Rightarrow x^2=\dfrac{y}{1+y}$ (provided $y\neq -1$). Since $x^2\ge 0$, we need $\dfrac{y}{1+y}\ge 0$, which gives $y\in(-\infty,-1)\cup[0,\infty)=\mathbf{R}-[-1,0)$. For $f$ to be surjective, the range must equal the codomain, so $A=\mathbf{R}-[-1,0)$.
Q2 — Types of Functions · medium · theory
Let a function $f:(0,\infty)\to(0,\infty)$ be defined by $f(x)=\left|1-\dfrac{1}{x}\right|$. Then, $f$ is
A. injective only
B. both injective as well as surjective
C. not injective but it is surjective
D. neither injective nor surjective  ✓ Correct
Solution: As $x\to 0^{+}$, $f(x)\to\infty$; at $x=1$, $f(x)=0$; and as $x\to\infty$, $f(x)\to 1$. So $f$ first decreases from $\infty$ to $0$ on $(0,1]$ and then increases from $0$ towards $1$ on $[1,\infty)$, so it is many-one (not injective). Also the actual range of $f$ works out to $[0,\infty)$, but the stated codomain is $(0,\infty)$, so range $\neq$ codomain and $f$ is not surjective either. Hence $f$ is neither injective nor surjective.
Q3 — Types of Functions · hard · numerical
The number of functions $f$ from $\{1,2,3,\ldots,20\}$ onto $\{1,2,3,\ldots,20\}$ such that $f(k)$ is a multiple of $3$, whenever $k$ is a multiple of $4$, is
A. $(15)!\times 6!$  ✓ Correct
B. $5^{6}\times 15$
C. $5!\times 6!$
D. $6^{5}\times(15)!$
Solution: The multiples of $4$ in $\{1,\ldots,20\}$ are $\{4,8,12,16,20\}$ (5 elements), and the multiples of $3$ in the codomain are $\{3,6,9,12,15,18\}$ (6 elements). Since $f$ is an onto function between two sets of equal (finite) size, it must be a bijection. So the 5 elements $\{4,8,12,16,20\}$ must map injectively into the 6 available multiples of 3, which can be done in $^{6}C_{5}\times 5!=6!$ ways. The remaining 15 elements of the domain then map bijectively onto the remaining 15 elements of the codomain in $15!$ ways. Total number of onto functions $=15!\times 6!$.
Q4 — Types of Functions · medium · numerical
Let $f:\mathbf{R}\to\mathbf{R}$ be defined by $f(x)=\dfrac{x}{1+x^2}$, $x\in\mathbf{R}$. Then, the range of $f$ is
A. $\left[-\dfrac{1}{2},\dfrac{1}{2}\right]$  ✓ Correct
B. $(-1,1)-\{0\}$
C. $R-\left[-\dfrac{1}{2},\dfrac{1}{2}\right]$
D. $R-[-1,1]$
Solution: Let $y=\dfrac{x}{1+x^2}$. Then $yx^2-x+y=0$; since $x\in\mathbf{R}$, the discriminant must be non-negative: $1-4y^2\ge 0\Rightarrow -\dfrac{1}{2}\le y\le \dfrac{1}{2}$. So the range of $f$ is $\left[-\dfrac{1}{2},\dfrac{1}{2}\right]$ (consistent with $f$ being an odd function attaining maximum $\dfrac12$ at $x=1$ and minimum $-\dfrac12$ at $x=-1$).
Q5 — Types of Functions · hard · theory
Let $N$ be the set of natural numbers and two functions $f$ and $g$ be defined as $f,g:N\to N$ such that $f(n)=\begin{cases}\dfrac{n+1}{2}, & \text{if } n \text{ is odd}\\ \dfrac{n}{2}, & \text{if } n \text{ is even}\end{cases}$ and $g(n)=n-(-1)^{n}$. Then, $fog$ is
A. one-one but not onto
B. onto but not one-one  ✓ Correct
C. both one-one and onto
D. neither one-one nor onto
Solution: $g(n)=n+1$ if $n$ is odd and $g(n)=n-1$ if $n$ is even. Computing $f(g(n))$: if $n$ is odd, $g(n)=n+1$ is even and $f(n+1)=\dfrac{n+1}{2}$; if $n$ is even, $g(n)=n-1$ is odd and $f(n-1)=\dfrac{(n-1)+1}{2}=\dfrac{n}{2}$. In both cases $f(g(n))=f(n)$, i.e. $fog=f$. Since $f(2)=f(1)=1$, $fog$ is not one-one. But $f$ is onto: for any $m\in N$, if $m$ is even then $f(2m)=m$, and if $m$ is odd then $f(2m-1)=m$. Hence $fog$ is onto but not one-one.
Q6 — Types of Functions · medium · theory
Let $A=\{x\in \mathbf{R}: x \text{ is not a positive integer}\}$. Define a function $f:A\to \mathbf{R}$ as $f(x)=\dfrac{2x}{x-1}$, then $f$ is
A. injective but not surjective  ✓ Correct
B. not injective
C. surjective but not injective
D. neither injective nor surjective
Solution: One-one: if $f(x_1)=f(x_2)$ then $\dfrac{2x_1}{x_1-1}=\dfrac{2x_2}{x_2-1}\Rightarrow 2x_1x_2-2x_1=2x_1x_2-2x_2\Rightarrow x_1=x_2$, so $f$ is injective. Onto: solving $f(x)=4$ gives $x=2$, but $2$ is a positive integer and hence excluded from the domain $A$, so $f(x)$ can never equal $4$ (similarly other values are missed). Hence $f$ is into, not surjective. So $f$ is injective but not surjective.
Q7 — Types of Functions · medium · numerical
The function $f:R\to\left[-\dfrac{1}{2},\dfrac{1}{2}\right]$ defined as $f(x)=\dfrac{x}{1+x^2}$ is
A. invertible
B. injective but not surjective
C. surjective but not injective  ✓ Correct
D. neither injective nor surjective
Solution: Since $f\left(\dfrac{1}{x}\right)=f(x)$ for $x\neq 0$ (e.g. $f(1/2)=f(2)$), two different inputs give the same output, so $f$ is many-one (not injective). Solving $y=\dfrac{x}{1+x^2}$ gives $yx^2-x+y=0$; as $x\in\mathbf{R}$, the discriminant $1-4y^2\ge 0\Rightarrow y\in\left[-\dfrac12,\dfrac12\right]$, so the range equals the codomain and $f$ is surjective. Hence $f$ is surjective but not injective.
Q8 — Types of Functions · hard · numerical
The function $f:[0,3]\to[1,29]$, defined by $f(x)=2x^3-15x^2+36x+1$, is
A. one-one and onto
B. onto but not one-one  ✓ Correct
C. one-one but not onto
D. neither one-one nor onto
Solution: $f'(x)=6x^2-30x+36=6(x-2)(x-3)$, which is positive on $[0,2)$, negative on $(2,3)$ and positive again just after $3$ — so $f$ increases, then decreases, then increases on $[0,3]$, making it many-one. Evaluating $f(0)=1$, $f(2)=29$, $f(3)=28$, the range of $f$ over $[0,3]$ is $[1,29]$, which equals the codomain. Hence $f$ is onto but not one-one.
Q9 — Types of Functions · medium · theory
$f(x)=\begin{cases}x, & x \text{ rational}\\ 0, & x \text{ irrational}\end{cases}$ and $g(x)=\begin{cases}0, & x \text{ rational}\\ x, & x \text{ irrational}\end{cases}$. Then, $f-g$ is
A. one-one and into
B. neither one-one nor onto
C. many one and onto
D. one-one and onto  ✓ Correct
Solution: $(f-g)(x)=x$ if $x$ is rational and $-x$ if $x$ is irrational. For any real $y$: if $y$ is rational, take $x=y$; if $y$ is irrational, take $x=-y$. Each real value is attained by exactly one $x$, so $f-g$ is one-one and onto.
Q10 — Types of Functions · medium · theory
If $f:[0,\infty)\to[0,\infty)$ and $f(x)=\dfrac{x}{1+x}$, then $f$ is
A. one-one and onto
B. one-one but not onto  ✓ Correct
C. onto but not one-one
D. neither one-one nor onto
Solution: $f'(x)=\dfrac{1}{(1+x)^2}>0$ for all $x\ge 0$, so $f$ is strictly increasing, hence one-one. Setting $y=\dfrac{x}{1+x}$ gives $x=\dfrac{y}{1-y}\ge 0\Rightarrow 0\le y<1$, so the range is $[0,1)$, a proper subset of the codomain $[0,\infty)$. Hence $f$ is one-one but not onto.
Q11 — Types of Functions · easy · theory
Let function $f:R\to R$ be defined by $f(x)=2x+\sin x$ for $x\in R$. Then, $f$ is
A. one-to-one and onto  ✓ Correct
B. one-to-one but not onto
C. onto but not one-to-one
D. neither one-to-one nor onto
Solution: $f'(x)=2+\cos x\ge 1>0$ for all $x\in R$, so $f$ is strictly increasing, hence one-one. Being continuous and strictly increasing with $f(x)\to\pm\infty$ as $x\to\pm\infty$, $f$ attains every real value, so it is also onto. Hence $f$ is one-to-one and onto.
Q12 — Types of Functions · easy · numerical
Let $E=\{1,2,3,4\}$ and $F=\{1,2\}$. Then, the number of onto functions from $E$ to $F$ is
A. 14  ✓ Correct
B. 16
C. 12
D. 8
Solution: Total number of functions from $E$ to $F$ is $2^4=16$. Of these, the two constant functions ($f(x)=1$ for all $x\in E$, and $f(x)=2$ for all $x\in E$) are not onto. So the number of onto functions $=16-2=14$.