Class 12 Maths, Worked in Full Past papersGet updates
Chapter 5 · Continuity and Differentiability

Example 3: Continuity of f(x)=∣x∣f(x)=|x| at x=0x=0

ExamplesContinuity at a point · Section 5.2
The question

Discuss the continuity of the function ff given by f(x)=∣x∣f(x) = |x| at x=0x = 0⁠.

Exam answer f(x)=∣x∣={−x,if x<0x,if x≥0f(x) = |x| = \begin{cases} -x, & \text{if } x < 0 \\ x, & \text{if } x \ge 0 \end{cases} f(0)=∣0∣=0f(0) = |0| = 0 LHL=lim⁡x→0−f(x)=lim⁡x→0−(−x)=0\begin{aligned} \text{LHL} &= \lim_{x\to 0^-} f(x) \\ &= \lim_{x\to 0^-}(-x) = 0 \end{aligned} RHL=lim⁡x→0+f(x)=lim⁡x→0+x=0\begin{aligned} \text{RHL} &= \lim_{x\to 0^+} f(x) \\ &= \lim_{x\to 0^+} x = 0 \end{aligned}

Since LHL=RHL=f(0)\text{LHL} = \text{RHL} = f(0)⁠, ff is continuous at x=0x = 0⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

∣x∣|x| is really two formulas glued together at 0: −x-x on the left and xx on the right. Whenever the formula changes at the point being tested, the left-hand limit and the right-hand limit must be computed separately, each with its own formula. Here both pieces arrive at height 0, which is also f(0)f(0)⁠, so the two arms of the graph meet with no gap.

Given, to find, and the plan
Given
f(x)=∣x∣f(x) = |x|⁠, the absolute value (modulus) of xx⁠.
To find
Whether ff is continuous at x=0x = 0⁠.
Plan
Rewrite ∣x∣|x| piece by piece. Find f(0)f(0)⁠. Compute the left-hand limit using the formula for x<0x < 0 and the right-hand limit using the formula for x>0x > 0⁠. Compare (Definition 1).

Basics you need

1The absolute value as a piecewise function

∣x∣|x| is the distance of xx from 0, so it is never negative: ∣x∣=x|x| = x if x≥0x \ge 0 and ∣x∣=−x|x| = -x if x<0x < 0⁠. For example ∣−3∣=−(−3)=3|-3| = -(-3) = 3⁠. Basics: piecewise functions

2One-sided limits

The left-hand limit at 0 only looks at x<0x < 0⁠; the right-hand limit only at x>0x > 0⁠. So each one uses only the formula valid on its own side. Basics: left-hand and right-hand limits

3Limits of simple expressions (Class XI)

lim⁡x→cx=c\lim_{x\to c} x = c⁠, and the limit of −x-x is −c-c (constant multiple −1-1⁠). Basics: what a limit is

4Definition 1: continuity at a point

For cc in the domain, ff is continuous at cc when the left-hand limit, the right-hand limit and f(c)f(c) exist and are equal. Lesson: continuity at a point

Solution

  1. Write ∣x∣|x| piece by piece

    By the definition of absolute value (Basic 1),

    f(x)=∣x∣={−x,if x<0x,if x≥0f(x) = |x| = \begin{cases} -x, & \text{if } x < 0 \\ x, & \text{if } x \ge 0 \end{cases}
    Limits are computed from formulas, and ∣x∣|x| is not a single formula: what it does to xx depends on the sign of xx⁠. Splitting it shows exactly which formula applies on each side of 0, the point we are testing.
    Check the left formula on a number: for x=−2x = -2⁠, −x=2=∣−2∣-x = 2 = |-2|⁠. Basics: piecewise functions
  2. Is 0 in the domain? Find f(0)f(0)

    ∣x∣|x| is defined for every real number, so 0 is in the domain. The value at 0 comes from the line "x≥0x \ge 0" (because 0≥00 \ge 0⁠):

    f(0)=0.f(0) = 0.
    At the junction point we must use the piece whose condition includes the point itself. Here both formulas would give 0 at x=0x = 0⁠, but in other problems (Example 10) choosing the wrong piece gives a wrong value.
    ∣0∣=0|0| = 0⁠: the distance from 0 to itself is 0.
  3. Left-hand limit: use the formula −x-x

    As x→0−x \to 0^-⁠, every xx used is negative, so f(x)=−xf(x) = -x⁠:

    lim⁡x→0−f(x)=lim⁡x→0−(−x)=−0=0.\lim_{x\to 0^-} f(x) = \lim_{x\to 0^-} (-x) = -0 = 0.
    xxf(x)f(x)side of 0
    −0.1-0.10.10.1left
    −0.01-0.010.010.01left
    −0.001-0.0010.0010.001left
    The left-hand limit never looks at x≥0x \ge 0⁠, so the formula xx plays no part here. With −x-x⁠: as xx climbs to 0 through negative numbers, −x-x falls to 0 through positive numbers.
    Constant-multiple rule with the constant −1-1⁠: lim⁡x→0−(−x)=−lim⁡x→0−x\lim_{x\to0^-}(-x) = -\lim_{x\to0^-} x⁠, which is −0=0-0 = 0⁠. Basics: one-sided limits
  4. Right-hand limit: use the formula xx

    As x→0+x \to 0^+⁠, every xx used is positive, so f(x)=xf(x) = x⁠:

    lim⁡x→0+f(x)=lim⁡x→0+x=0.\lim_{x\to 0^+} f(x) = \lim_{x\to 0^+} x = 0.
    xxf(x)f(x)side of 0
    0.10.10.10.1right
    0.010.010.010.01right
    0.0010.0010.0010.001right
    Now only x>0x > 0 matters, so only the formula xx is used. On both sides the distance of f(x)f(x) from 0 is ∣x∣|x| itself, which is as small as we like when xx is close to 0.
  5. Compare the three numbers

    lim⁡x→0−f(x)=0,lim⁡x→0+f(x)=0,f(0)=0.\begin{aligned} \lim_{x\to 0^-} f(x) &= 0, \\ \lim_{x\to 0^+} f(x) &= 0, \\ f(0) &= 0. \end{aligned}

    The left-hand limit, the right-hand limit and the value coincide, so by Definition 1 f(x)=∣x∣f(x) = |x| is continuous at x=0x = 0.

    Two different formulas met at 0, yet they arrived at the same height, and that height is f(0)f(0)⁠. Continuity needs nothing more. The graph has a sharp corner at 0, but a corner is not a break.
    A corner matters for differentiability (Section 5.3), not for continuity: ∣x∣|x| is continuous at 0 but has no derivative there. Lesson: differentiability
x y −3 −2 −1 1 2 3 1 2 3 y = −x, used for x < 0 y = x, used for x ≥ 0 the value f(0) = 0
The graph of y=∣x∣y = |x| (same scale on both axes): the gold arm is y=−xy = -x⁠, used for x<0x < 0⁠, and the blue arm is y=xy = x⁠, used for x≥0x \ge 0⁠. Both arms end at the origin, which is the point (0,f(0))(0, f(0))⁠.
Result

lim⁡x→0−∣x∣=0\lim_{x\to0^-}|x| = 0⁠, lim⁡x→0+∣x∣=0\lim_{x\to0^+}|x| = 0 and f(0)=0f(0) = 0⁠. Since all three coincide, f(x)=∣x∣f(x) = |x| is continuous at x=0x = 0, as the textbook concludes.

Check it with numbers

f(−0.0004)=0.0004f(-0.0004) = 0.0004 and f(0.0004)=0.0004f(0.0004) = 0.0004⁠: both are 0.00040.0004 from f(0)=0f(0) = 0⁠, the same as the distance of xx from 0. In general ∣f(x)−f(0)∣=∣x∣|f(x) - f(0)| = |x|⁠, on either side.

Common mistakes
  1. Using one formula for both sides. Computing the left-hand limit with xx instead of −x-x happens to give 0 here, but the same habit gives wrong answers whenever the pieces differ at the junction (Example 10).
  2. Thinking −x-x is negative. For x<0x < 0⁠, −x-x is positive: −(−0.1)=0.1-(-0.1) = 0.1⁠. The modulus is never negative.
  3. Confusing a corner with a break. A sharp turn in the graph does not make a function discontinuous; only a gap, jump or misplaced point does.
What to take away
  1. At a point where the formula changes, compute the left-hand limit with the left formula and the right-hand limit with the right formula, separately.
  2. Take f(c)f(c) from the piece whose condition contains cc (here x≥0x \ge 0⁠).
  3. Example 7 extends this to every point: ∣x∣|x| is continuous on all of R\R⁠.

Every fact used, and where it comes from

FactUsed inSource
∣x∣=−x|x| = -x for x<0x < 0⁠, ∣x∣=x|x| = x for x≥0x \ge 0Steps 1–4Definition of absolute value (Basics: piecewise functions)
lim⁡x→cx=c\lim_{x\to c} x = c⁠; constant-multiple ruleSteps 3, 4Algebra of limits, Class XI (Limits and Derivatives)
One-sided limits use only one side of the pointSteps 3, 4Left and right hand limits, Class XI (Basics: one-sided limits)
Continuous at cc iff LHL = RHL = f(c)f(c)Step 5Definition 1, Section 5.2 (Lesson: continuity at a point)
∣x∣|x| is not differentiable at 0Step 5 (note)Section 5.3, the remark after Theorem 3 and Corollary 1 (Lesson: differentiability)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →