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:R→R:f(x)=∣x∣ is neither one-one nor onto.
Solution
Hint: To check whether the given function is one-one or not, assume two elements x1 and x2 in the set of the domain of the given function and substitute f(x1)=f(x2). If x1=x2, then f(x) is one-one and if there is any more relation between x1 and x2 other than x1=x2 then f(x) is not one-one. To check whether the given function is onto or not, check if the range of f(x) is equal to co-domain or not. Here, co-domain is the set of all values of 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 in the set of the domain of the given function. Therefore,
f(x1)=f(x2)
Substituting, x1 and x2 in the function, we get,
∣x1∣=∣x2∣
On squaring both sides, we get,