Q.
Let $f,g:\mathbb R\to\mathbb R$ be defined as : $f(x)=|x-1|$ and $g(x)=\begin{cases}e^x,&x\ge0\\x+1,&x\le0\end{cases}$. Then the function $f(g(x))$ is
A) neither one-one nor onto
B) one-one but not onto
C) onto but not one-one
D) both one-one and onto
Explanation
[Solution by Dr. Abubacker] For $x\ge0$: $f(g(x))=|e^x-1|=e^x-1\in[0,\infty)$. For $x\le0$: $f(g(x))=|x|=-x\in[0,\infty)$. The range is $[0,\infty)\ne\mathbb R$ (not onto), and e.g. $x=-1$ and $x=\ln2$ both give 1 (not one-one). Answer (1).
Reviewed by Dr. Abubacker
Physics Educator & NEET/JEE Specialist
Ph.D. in Physics with 19+ years of teaching experience.