Defence PYQWritten Exam 2023MathematicsFunctions

NDA · Question 94

What is the range of the function f(x) = x + |x| if the domain is the set of real numbers?

  1. (0, ∞)

  2. [0, ∞)

  3. (-∞, ∞)

  4. [1, ∞)

Show answer & explanationShow explanation

Answer: (B) [0, ∞)

Explanation

For x < 0, |x| = -x, so f(x) = x - x = 0. For x ≥ 0, |x| = x, so f(x) = 2x, which takes all values in [0, ∞). Combining both cases, the range of f(x) is [0, ∞).