NEETJEE.guru
MathematicsJEE

Modulus Function — Definition, Domain and Range

By Admin 13 November 2026 Updated 27 November 2026 10 min read 14 views
On this page· 13 sections
Overview

Source & scope. Class 11 Mathematics, Chapter 2 Relations and Functions, Section 2.4.1(v) The Modulus function. Builds on: Linear Function and Rational Function (earlier special functions in the same section). Next: the Signum function and the Greatest Integer function (Section 2.4.1(vi) and (vii)),...

Source & scope. Class 11 Mathematics, Chapter 2 Relations and Functions, Section 2.4.1(v) The Modulus function. Builds on: Linear Function and Rational Function (earlier special functions in the same section). Next: the Signum function and the Greatest Integer function (Section 2.4.1(vi) and (vii)), which are not covered in this article.

The modulus function is the function f : R → R defined by f(x) = |x| for each x ∈ R, where |x| equals x when x is non-negative and equals −x when x is negative. Because it always returns a non-negative value regardless of the sign of its input, the modulus function's output can be read as the "distance of x from 0 on the number line."

At a glance

  • Definition: for each x ∈ R.
  • Piecewise form: , and .
  • Domain of f is R; range of f is [0, ∞) — the set of all non-negative real numbers.
  • The graph is V-shaped, made of two straight-line rays meeting at the origin.
  • f(x) is never negative: |x| ≥ 0 for every real x, with equality only at x = 0.

Learning objectives

  • State NCERT's piecewise definition of the modulus function and apply it to evaluate f(x) for both positive and negative x.
  • Justify why the domain of f(x) = |x| is R and the range is [0, ∞).
  • Describe the shape of the graph of the modulus function.
  • Distinguish the modulus function from the identity and linear functions covered earlier in the same section.

Prerequisite knowledge

The reader should already know the general idea of a real function f : R → R (covered earlier in Section 2.4) and be comfortable evaluating expressions at both positive and negative values of x.

Core explanation

The piecewise definition

NCERT defines the modulus function as: "The function f : R → R defined by f(x) = |x| for each x ∈ R is called modulus function. For each non-negative value of x, f(x) is equal to x. But for negative values of x, the value of f(x) is the negative of the value of x." Written as a piecewise rule:

f(x) = x, if x ≥ 0 f(x) = −x, if x < 0

The second branch is what makes |x| always non-negative even for negative inputs: if x is negative (say x = −5), then −x is positive (−(−5) = 5), so f(−5) = 5, not −5.

Why the output is never negative

For any x ≥ 0, f(x) = x ≥ 0 directly. For any x < 0, f(x) = −x; since x is negative, −x is positive, so f(x) > 0 in this branch too. Combining both branches, f(x) ≥ 0 for every real x, with f(x) = 0 occurring only at x = 0 (from either branch, since 0 ≥ 0 gives f(0) = 0, and 0 is not < 0 so the second branch does not apply at x = 0). This is exactly why |x| is read as "the distance of x from 0" — distance is never negative.

Domain and range

Since |x| is defined by a simple piecewise rule that assigns some real value to every real x (no division, root, or other restriction is involved), the domain of f is all of R. Since the output is always ≥ 0, and every non-negative real number k is attained (because f(k) = k for k ≥ 0), the range of f is [0, ∞), the set of non-negative real numbers — never any negative value.

The graph

Plotting f(x) = |x|: for x ≥ 0, the graph follows the line y = x (a 45° ray starting at the origin, going up and to the right through (1,1), (2,2), etc.); for x < 0, the graph follows the line y = −x (a mirror-image ray going up and to the left through (−1,1), (−2,2), etc.). The two rays meet exactly at the origin (0, 0), producing the characteristic V-shape symmetric about the y-axis.

Key terms

  • Modulus function (absolute value function) — f : R → R, f(x) = |x|, defined piecewise as x for x ≥ 0 and −x for x < 0.
  • Absolute value / modulus, |x| — the non-negative magnitude of a real number x, read as its distance from 0.
  • Piecewise function — a function defined by different formulas on different parts (pieces) of its domain, such as the two branches of |x|.
  • V-shaped graph — the characteristic graph shape of the modulus function, formed by two rays meeting at the origin.

Diagram / figure guidance

Draw a V-shaped graph on an x-y grid: the right ray through (0,0), (1,1), (2,2), (3,3) going up-right at 45°, and the left ray through (0,0), (−1,1), (−2,2), (−3,3) going up-left at 45°, meeting exactly at the origin. Shade or note that the entire graph lies on or above the x-axis (y ≥ 0 everywhere), visually confirming the range [0, ∞).

Worked example

Evaluate f(x) = |x| at x = 7, x = −7, x = 0, and x = −2.5, and state which branch of the piecewise definition applies each time.

At x = 7: since 7 ≥ 0, use f(x) = x, so f(7) = 7.

At x = −7: since −7 < 0, use f(x) = −x, so f(−7) = −(−7) = 7.

At x = 0: since 0 ≥ 0, use f(x) = x, so f(0) = 0.

At x = −2.5: since −2.5 < 0, use f(x) = −x, so f(−2.5) = −(−2.5) = 2.5.

Conclusion. f(7) = 7, f(−7) = 7, f(0) = 0 and f(−2.5) = 2.5 — note that f(7) = f(−7) = 7, illustrating that the modulus function treats a number and its negative as having the same "size," and every output is non-negative, consistent with the range [0, ∞).

Common misconceptions

  • "|x| always just equals x." This is true only when x ≥ 0; for negative x, |x| equals −x (which is a positive number), not x itself — e.g., |−3| = 3, not −3.
  • "The range of f(x) = |x| is all of R, since the domain is R." The domain being R does not force the range to be R; because the piecewise rule always produces a non-negative value, the range is strictly [0, ∞), excluding every negative number.
  • "f(x) = |x| is the same as f(x) = x for all practical purposes." They agree only for x ≥ 0; for any negative input the two functions give different (in fact, opposite-signed) outputs, and their graphs look completely different (a single line versus a V-shape).
  • "The modulus function's graph has a smooth turning point at the origin." The two rays meet at the origin at a sharp corner (the function is continuous there but not smooth/differentiable), not a rounded curve.

Exam application (JEE)

JEE frequently tests the modulus function by asking students to correctly split a piecewise expression at the point(s) where the quantity inside the modulus changes sign — for |x|, that point is x = 0, but for a more general expression like |x − 3|, the split point shifts to x = 3. Questions also test the range ([0, ∞), never negative) and basic properties such as |x| = |−x| and |x|² = x², which are useful shortcuts in simplifying expressions and solving modulus equations/inequalities.

Frequently asked questions

  • What is the modulus function? The modulus function is f : R → R defined by f(x) = |x|, which equals x when x ≥ 0 and equals −x when x < 0, so its output is always the non-negative magnitude of x.
  • What is the domain and range of the modulus function? The domain of f(x) = |x| is all of R, while its range is [0, ∞), the set of non-negative real numbers, since |x| can never be negative.
  • Why does |x| equal −x when x is negative? Because multiplying a negative number by −1 makes it positive — so for x < 0, the expression −x is itself a positive number equal in magnitude to x, which is exactly the non-negative value the modulus function must return.
  • What does the graph of the modulus function look like? It is V-shaped: two straight-line rays, y = x for x ≥ 0 and y = −x for x < 0, meeting at a sharp corner at the origin.
  • Is the modulus function the same as the identity function? No — they agree only for x ≥ 0; the identity function f(x) = x can return negative values for negative x, while the modulus function f(x) = |x| never returns a negative value.

Practice questions (original practice questions)

  1. What is f(−9) for the modulus function f(x) = |x|?
    • (a) −9
    • (b) 9
    • (c) 0
    • (d) 81
    • Answer: (b) — Since −9 < 0, f(−9) = −(−9) = 9.
  2. What is the range of the modulus function f(x) = |x|, x ∈ R?
    • (a) R
    • (b) (−∞, 0]
    • (c) [0, ∞)
    • (d) (0, ∞)
    • Answer: (c) — |x| is always non-negative, and every non-negative value is attained, so the range is [0, ∞), including 0.
  3. For which value of x does f(x) = |x| equal 0?
    • (a) x = 1
    • (b) x = −1
    • (c) x = 0
    • (d) No such x exists
    • Answer: (c) — |0| = 0, and this is the only x for which |x| = 0.
  4. Which pair of inputs gives the same output under the modulus function?
    • (a) x = 5 and x = −5
    • (b) x = 5 and x = 10
    • (c) x = −5 and x = −10
    • (d) x = 0 and x = 1
    • Answer: (a) — f(5) = 5 and f(−5) = −(−5) = 5, so both give output 5.
  5. The graph of the modulus function f(x) = |x| is best described as:
    • (a) a single straight line through the origin
    • (b) a parabola opening upward
    • (c) two rays meeting at the origin, forming a V-shape
    • (d) a hyperbola with two branches
    • Answer: (c) — The two branches y = x (x ≥ 0) and y = −x (x < 0) meet at the origin, forming a V-shape.

Quick revision

  • Modulus function: f(x) = |x|, x ∈ R — equals x if x ≥ 0, equals −x if x < 0.
  • Domain = R; Range = [0, ∞) — never negative.
  • Graph is V-shaped: two rays meeting at the origin, symmetric about the y-axis.
  • |x| = |−x| for every real x; |x| = 0 only at x = 0.
  • Differs from the identity function f(x) = x precisely for negative inputs.

Related articles

NCERTMathematicsClass 11
Rate this article
No ratings yetSign in to rate

0 Comments

Sign in to join the discussion.