Question:

If \(\mathrm{R}\) denotes the set of all real numbers then the function \(\mathrm{f}:\mathrm{R}\rightarrow \mathrm{R}\) defined by \(f(x)=|x|\) is

Show Hint

Find two inputs with the same output, and a value in the codomain that is never obtained.
Updated On: Nov 17, 2026
  • injective and surjective.
  • neither injective nor surjective.
  • injective.
  • surjective.
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Step 1: Understanding the Concept
A function is injective if different inputs give different outputs and surjective if range equals codomain.

Step 2: Injective test
\(f(2) = |2| = 2\) and \(f(-2) = |-2| = 2\), so two different inputs give the same output.
Hence f is not injective.

Step 3: Surjective test
\(|x| \geq 0\) for all x, so negative real numbers such as \(-1\) are never obtained.
Range \(= [0, \infty) \neq \mathbb{R}\), so f is not surjective.

Final Answer:
The function is neither injective nor surjective. \[ \boxed{\text{(B) }\text{neither injective nor surjective.}} \]
Was this answer helpful?
0
0