Solveeit Logo

Question

Question: Show that the function \(f:R\to R:f(x)=\left| x \right|\) is neither one-one nor onto....

Show that the function f:RR:f(x)=xf:R\to R:f(x)=\left| x \right| is neither one-one nor onto.

Explanation

Solution

Hint: To check whether the given function is one-one or not, assume two elements x1 and x2{{x}_{1}}\text{ and }{{x}_{2}} in the set of the domain of the given function and substitute f(x1)=f(x2)f({{x}_{1}})=f({{x}_{2}}). If x1=x2{{x}_{1}}={{x}_{2}}, then f(x)f(x) is one-one and if there is any more relation between x1 and x2{{x}_{1}}\text{ and }{{x}_{2}} other than x1=x2{{x}_{1}}={{x}_{2}} then f(x)f(x) is not one-one. To check whether the given function is onto or not, check if the range of f(x)f(x) is equal to co-domain or not. Here, co-domain is the set of all values of f(x)f(x) in which the range of the function is constrained.

Complete step-by-step solution -
It is given that function is defined for all real numbers and over all real numbers. Therefore, both domain and co-domain of the given function consists of the set of all real numbers.
First let us show that the function is not one-one.
Assume two elements x1 and x2{{x}_{1}}\text{ and }{{x}_{2}} in the set of the domain of the given function. Therefore,
f(x1)=f(x2)f({{x}_{1}})=f({{x}_{2}})
Substituting, x1 and x2{{x}_{1}}\text{ and }{{x}_{2}} in the function, we get,
x1=x2\left| {{x}_{1}} \right|=\left| {{x}_{2}} \right|
On squaring both sides, we get,

& {{\left| {{x}_{1}} \right|}^{2}}={{\left| {{x}_{2}} \right|}^{2}} \\\ & \Rightarrow \left| {{x}_{1}}^{2} \right|=\left| {{x}_{2}}^{2} \right| \\\ \end{aligned}$$ Removing modulus from both sides, we get, $$\begin{aligned} & {{x}_{1}}^{2}={{x}_{2}}^{2} \\\ & \Rightarrow {{x}_{1}}^{2}-{{x}_{2}}^{2}=0 \\\ & \Rightarrow {{x}_{1}}^{2}-{{x}_{2}}^{2}=0 \\\ & \Rightarrow ({{x}_{1}}-{{x}_{2}})({{x}_{1}}+{{x}_{2}})=0 \\\ & \Rightarrow ({{x}_{1}}-{{x}_{2}})=0\text{ or }({{x}_{1}}+{{x}_{2}})=0 \\\ & \Rightarrow {{x}_{1}}={{x}_{2}}\text{ or }{{x}_{1}}=-{{x}_{2}} \\\ \end{aligned}$$ Clearly, we can see that, when $$f({{x}_{1}})=f({{x}_{2}})$$ then, there is more than one relation between ${{x}_{1}}\text{ and }{{x}_{2}}$. Therefore, $f(x)$ is not one-one. Now, let us show that the given function is not onto. ![](https://www.vedantu.com/question-sets/15decfba-15e4-40ab-a8c5-22d457cb520e7631272837358643843.png) Clearly, we can see that the co-domain of the function contains the set of real numbers. Since, $f(x)=\left| x \right|$, therefore, the range of $f(x)$ will be only positive real numbers because the modulus of any real number will always be positive. So, here range and co-domain are not equal. Therefore, it is proved that $f(x)$ is not onto. Note: One may note that we do not have to cancel the common terms while checking whether the function is one-one. Consider all the possible relations between ${{x}_{1}}\text{ and }{{x}_{2}}$ and then only come to the conclusion just as we did in the above solution. Also, there is another method to check whether the given function is onto or not. We have to draw the graph of $f(x)=\left| x \right|$ for all real values of ‘x’. If the graph of $f(x)=\left| x \right|$ extends from $-\infty \text{ to }\infty $, that is it extends over all real numbers, then the function is onto otherwise not.