Question
Question: If \(f:R\to \left( -1,1 \right)\) be a function defined by \(f\left( x \right)=\dfrac{x}{1+\left| x ...
If f:R→(−1,1) be a function defined by f(x)=1+∣x∣x, then f is:
A. One-one but not onto.
B. Onto but not one-one.
C. Neither one-one nor onto.
D. Both one-one and onto.
Solution
For solving this question you should know about the general solution of a function and the terms one-one and onto for a function. In this problem we will check that the function is one-one or not and that is onto or not. We will check both these and come to the final decision.
Complete step by step answer:
According to our question it is asked to check if the function f(x)=1+∣x∣x is one-one or onto or not. So,
f(x)=1+∣x∣x
We know that: \left| x \right|=\left\\{ \begin{aligned}
& x,x\ge 0 \\\
& -x,x<0 \\\
\end{aligned} \right.
So,
f\left( x \right)=\left\\{ \begin{aligned}
& \dfrac{x}{1+x},x\ge 0 \\\
& \dfrac{x}{1-x},x<0 \\\
\end{aligned} \right.
Now, checking for one-one for x≥0,
f(x1)=1+x1x1,f(x2)=1+x2x2
Putting f(x1)=f(x2) , we get,
1+x1x1=1+x2x2⇒x1(1+x2)=x2(1+x1)⇒x1+x1x2=x2+x2x1⇒x1=x2
And for x<0, we have,
f(x1)=1−x1x1,f(x2)=1−x2x2
Putting f(x1)=f(x2) , we get,
1−x1x1=1−x2x2⇒x1(1−x2)=x2(1−x1)⇒x1−x1x2=x2−x2x1⇒x1=x2
Hence if f(x1)=f(x2) , therefore f is one-one.
Let us now check for onto. So,
f\left( x \right)=\left\\{ \begin{aligned}
& \dfrac{x}{1+x},x\ge 0 \\\
& \dfrac{x}{1-x},x<0 \\\
\end{aligned} \right.
For x≥0,f(x)=1+xx
Let f(x)=y,
⇒y=1+xx⇒y(1+x)=x⇒y+xy=x⇒x=1−xy
Let f(x)=y,
⇒y=1−xx⇒y(1−x)=x⇒y−xy=x⇒x+xy=y⇒x(1+y)=y⇒x=1+yy
Thus, x=1−yy for x≥0 and x=1+yy for x<0.
Here y\in \left\\{ x\in R:-1< x < 1 \right\\}
That is, the value of y is from -1 to 1, −1<y<1.
If y=1, then x=1−yy will not be defined.
If y=−1, then x=1+yy will not be defined.
But here −1<y<1, so x is defined for all values of y and x∈R.
Therefore f is onto.
So, the correct answer is “Option D”.
Note: While solving this type of questions you should be careful about checking the function f(x) for one-one and for onto conditions. If both are satisfied, then both the options will be right otherwise the one that is valid will be right.