NEETJEE.guru
MathematicsJEE

Continuity of the Modulus Function |x|

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

Source & scope. Class 12 Mathematics, Chapter 5 Continuity and Differentiability, Section 5.2, Example 3 and Example 7. Builds on: [Continuity of the Identity Function](/study-materials/math12-ch05-continuity-of-identity-function). Next: Continuity of Polynomial Functions.

Source & scope. Class 12 Mathematics, Chapter 5 Continuity and Differentiability, Section 5.2, Example 3 and Example 7. Builds on: [Continuity of the Identity Function](/study-materials/math12-ch05-continuity-of-identity-function). Next: Continuity of Polynomial Functions.

The modulus function f(x) = |x| is continuous at every real number — rewritten piecewise as f(x) = −x for x < 0 and f(x) = x for x ≥ 0, each piece matches at the junction x = 0, and each piece is continuous (being the identity function or its negative) on its own side. This makes |x| the standard first example of a continuous function that is not differentiable everywhere (a fact proved in a sibling article).

At a glance

  • |x| rewritten as a piecewise rule: f(x) = −x if x < 0, f(x) = x if x ≥ 0.
  • At x = 0: LHL = 0, RHL = 0, f(0) = 0 — all three match, so continuous at 0.
  • For any c < 0: f(c) = −c, and lim(x→c) f(x) = −c — matches, continuous.
  • For any c > 0: f(c) = c, and lim(x→c) f(x) = c — matches, continuous.
  • Combining all three cases: |x| is continuous at every real number.

Learning objectives

  • Rewrite |x| in piecewise form and identify the junction point.
  • Verify continuity of |x| at x = 0 using LHL, RHL, and f(0).
  • Verify continuity of |x| for negative and positive c separately.
  • State the overall conclusion that |x| is continuous everywhere.

Prerequisite knowledge

The reader should know Definition 1 (continuity at a point), left-hand/right-hand limits, and the piecewise definition of the modulus function: |x| = −x if x < 0, and |x| = x if x ≥ 0.

Core explanation

Rewriting |x| piecewise

By definition, f(x) = |x| can be written as:

Continuity exactly at x = 0 (Example 3)

f is defined at 0, with f(0) = 0 (using the x ≥ 0 branch). Its left-hand limit at 0 is:

Its right-hand limit at 0 is:

Since the left-hand limit, right-hand limit, and the function's value all coincide at 0, f is continuous at x = 0.

Continuity at every negative real number (Example 7, part 1)

Let c < 0. Then f(c) = −c (using the x < 0 branch). Also,

(since near a negative c, the function is still governed by the x < 0 branch). Since lim(x→c) f(x) = −c = f(c), f is continuous at every negative real number.

Continuity at every positive real number (Example 7, part 2)

Let c > 0. Then f(c) = c (using the x ≥ 0 branch). Also,

(since near a positive c, the function is governed by the x ≥ 0 branch). Since lim(x→c) f(x) = c = f(c), f is continuous at every positive real number.

Putting it together

Combining the x = 0 case with the negative-c case and the positive-c case covers every real number: f(x) = |x| is continuous at every real number, so |x| is a continuous function.

A preview worth flagging

Even though |x| is continuous everywhere, it is not differentiable at x = 0 — the sharp "corner" in its graph at the origin means its left-hand and right-hand derivatives disagree there. The full proof is covered in the sibling article The Modulus Function Is Not Differentiable at x = 0; this is the standard textbook example showing continuity does not guarantee differentiability.

Key terms

  • Modulus function — f(x) = |x|, equal to x for x ≥ 0 and −x for x < 0.
  • Junction point — the point where a piecewise function's rule switches branches (here, x = 0).
  • Piecewise verification — checking continuity separately on each branch, plus explicitly at the junction.

Diagram / figure guidance

Draw the characteristic "V-shaped" graph of y = |x|: a straight line of slope −1 for x < 0 meeting a straight line of slope 1 for x ≥ 0 exactly at the origin, with no gap or jump — label the vertex "continuous here, but with a sharp corner (not differentiable)."

Worked example

Check the continuity of f(x) = |x| at x = −3 and at x = 5.

Step 1 — at x = −3 (negative case). f(−3) = −(−3) = 3. lim(x→−3) f(x) = lim(x→−3) (−x) = 3. Since both equal 3, f is continuous at x = −3.

Step 2 — at x = 5 (positive case). f(5) = 5. lim(x→5) f(x) = lim(x→5) x = 5. Since both equal 5, f is continuous at x = 5.

Conclusion. f(x) = |x| is continuous at both x = −3 and x = 5, consistent with it being continuous at every real number.

Common misconceptions

  • "|x| is discontinuous at 0 because its formula changes there." A change of formula at a junction point does not automatically cause discontinuity — continuity depends only on whether the LHL, RHL, and function value match at that point, and for |x| they do (all equal 0).
  • "Since |x| has a sharp corner, it can't be continuous." A sharp corner affects differentiability, not continuity — |x| is continuous everywhere despite the corner.
  • "Proving continuity for negative c and positive c is the same calculation." They use different branches of the piecewise definition (−x versus x), so the limit expressions differ even though both ultimately match f(c).
  • "|x| is only continuous for x ≥ 0 since that's the 'main' branch." It is continuous on the entire real line — both branches, plus the junction, must be (and are) checked.

Exam application (JEE)

JEE often uses |x| (and modulus-based piecewise functions more generally) as a template for testing a student's ability to correctly split a continuity check into left-case, right-case, and junction-case analysis — and to separately recognise that this same function then fails differentiability at the corner, a frequently tested contrast.

Frequently asked questions

  • Is |x| continuous at x = 0? Yes — its LHL, RHL, and value at 0 are all equal to 0.
  • Is |x| continuous everywhere, not just at 0? Yes — for every negative c and every positive c, the one-sided limit on the relevant branch matches f(c), and together with the x = 0 case this covers all real numbers.
  • Is |x| differentiable at x = 0? No — its left-hand and right-hand derivatives disagree there, even though it is continuous (see the sibling article on this).
  • How is |x| written as a piecewise function? f(x) = −x if x < 0, and f(x) = x if x ≥ 0.
  • Why does a change in formula at x = 0 not break continuity? Because both branches produce the same limiting value (0) as x approaches 0 from either side, and that matches f(0) = 0 exactly.

Practice questions (original practice questions)

  1. f(x) = |x| at x = −7 equals:
    • (a) −7
    • (b) 7
    • (c) 0
    • (d) undefined
    • Answer: (b) — For x < 0, |x| = −x = −(−7) = 7.
  2. The left-hand limit of |x| as x → 0 is:
    • (a) 1
    • (b) −1
    • (c) 0
    • (d) does not exist
    • Answer: (c) — lim(x→0⁻)(−x) = 0.
  3. |x| fails to be continuous at:
    • (a) x = 0
    • (b) no real number — it is continuous everywhere
    • (c) all negative numbers
    • (d) all positive numbers
    • Answer: (b) — |x| is continuous at every real number.
  4. For c > 0, lim(x→c) |x| equals:
    • (a) −c
    • (b) c
    • (c) 0
    • (d) undefined
    • Answer: (b) — Near a positive c, |x| behaves as the identity function x.
  5. Which statement about |x| is true?
    • (a) It is continuous everywhere but not differentiable at x = 0
    • (b) It is differentiable everywhere
    • (c) It is discontinuous at x = 0
    • (d) It is continuous only for x > 0
    • Answer: (a) — The standard continuity-without-differentiability example.

Quick revision

  • |x| = −x for x<0, x for x≥0.
  • At x=0: LHL=RHL=f(0)=0 — continuous there.
  • For c<0: f(c)=−c=lim; for c>0: f(c)=c=lim — continuous at every nonzero real too.
  • Conclusion: |x| is continuous at every real number.
  • Despite this, |x| is NOT differentiable at x=0 (sharp corner) — covered in a sibling article.

Related articles

NCERTMathematicsClass 12
Rate this article
No ratings yetSign in to rate

0 Comments

Sign in to join the discussion.

Continuity of the Modulus Function — JEE Notes | NEETJEE.guru