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

Exercise 5.1 · Q34: Points of discontinuity of ∣x∣−∣x+1∣|x|-|x+1|

Exercise 5.1Algebra of continuous functions · Section 5.2.1
The question

34. Find all the points of discontinuity of ff defined by f(x)=∣x∣−∣x+1∣f(x) = |x| - |x + 1|⁠.

Exam answer

Let g(x)=∣x∣g(x) = |x| and p(x)=x+1p(x) = x + 1⁠. Then ∣x+1∣=(g∘p)(x)|x + 1| = (g\circ p)(x)⁠.

The modulus function gg and the polynomial pp are continuous at every real number, so their composite ∣x+1∣|x + 1| is continuous at every real number.

So ∣x∣|x| and ∣x+1∣|x + 1| are both continuous, and their difference ff is continuous at every real cc⁠:

lim⁡x→cf(x)=∣c∣−∣c+1∣=f(c)\begin{aligned} \lim_{x\to c}f(x) &= |c| - |c + 1| \\ &= f(c) \end{aligned}

∴ f\therefore\ f is continuous at every real number: there is no point of discontinuity.

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

The one idea this problem is built on

Both ∣x∣|x| and ∣x+1∣|x + 1| are continuous at every real number, and the difference of two continuous functions is continuous (Theorem 1). So ff has no point of discontinuity. Writing ff without modulus signs (it is 1, then −2x−1-2x - 1⁠, then −1-1⁠) shows the same thing directly: the pieces meet at x=−1x = -1 and x=0x = 0 without gaps.

Given, to find, and the plan
Given
f(x)=∣x∣−∣x+1∣f(x) = |x| - |x + 1| for real xx⁠.
To find
Every point of the domain where ff is not continuous.
Plan
(1) Domain. (2) ∣x∣|x| is continuous. (3) ∣x+1∣|x + 1| is continuous (a composite). (4) Theorem 1: the difference is continuous. (5) Cross-check by removing the modulus signs and testing the joints −1-1 and 00⁠.

Basics you need

1The modulus function

∣u∣=u|u| = u if u≥0u \ge 0 and ∣u∣=−u|u| = -u if u<0u < 0⁠. It is continuous at every real number (Examples 3 and 7). Basics: piecewise functions

2Theorem 1 (algebra of continuous functions)

If ff and gg are continuous at cc⁠, so are f+gf + g⁠, f−gf - g⁠, f⋅gf\cdot g⁠, and fg\frac{f}{g} (where g(c)≠0g(c) \ne 0⁠) (Section 5.2.1). Lesson: algebra of continuous functions

3Theorem 2 (composites)

If hh is continuous at cc and gg is continuous at h(c)h(c)⁠, then g∘hg \circ h is continuous at cc⁠. Basics: composite functions

4Continuity at a point

Left-hand limit = right-hand limit = value (Definition 1). Basics: left-hand and right-hand limits

Solution

  1. The domain is all of R\R

    ∣x∣|x| and ∣x+1∣|x + 1| are defined for every real xx⁠, so ff is defined everywhere. Every real number is a point where ff is either continuous or discontinuous, and we must decide which.

    A "point of discontinuity" must be a point of the domain (Section 5.2). Here there are no excluded points to set aside.
  2. ∣x∣|x| is continuous at every real number

    This is Example 7 of the textbook: away from 0, ∣x∣|x| is xx or −x-x near the point, a polynomial; at 0 both one-sided limits are 0, which equals ∣0∣|0| (Example 3).

    We use this fact twice: directly for the first term, and as the outer layer of the second term.
    Modulus (Basic 1). Basics: piecewise functions
  3. ∣x+1∣|x + 1| is continuous at every real number

    Let p(x)=x+1p(x) = x + 1 (inner) and g(u)=∣u∣g(u) = |u| (outer). Then (g∘p)(x)=∣x+1∣(g\circ p)(x) = |x + 1|⁠. The polynomial pp is continuous at every cc (Example 14), and gg is continuous at every real number, in particular at p(c)=c+1p(c) = c + 1 (Step 2). By Theorem 2, ∣x+1∣|x + 1| is continuous at every cc⁠.

    ∣x+1∣|x + 1| is "the modulus of a continuous function", the same pattern as Example 20 in the textbook. Its corner is at x=−1x = -1 (where x+1=0x + 1 = 0⁠); that is not a break.
    Theorem 2 (Basic 3). Basics: composite functions
  4. The difference is continuous everywhere: no discontinuities

    Take any real cc⁠. Both ∣x∣|x| and ∣x+1∣|x + 1| are continuous at cc (Steps 2 and 3), so by Theorem 1, part (2), their difference is continuous at cc⁠:

    lim⁡x→c(∣x∣−∣x+1∣)=∣c∣−∣c+1∣=f(c).\lim_{x\to c}\big(|x| - |x + 1|\big) = |c| - |c + 1| = f(c).

    Since cc was arbitrary, ff is continuous at every real number. So ff has no point of discontinuity.

    This answers the question completely. Theorem 1 says differences of continuous functions are continuous, and both parts are continuous everywhere, so there is nowhere left for a discontinuity to hide.
    Theorem 1(2): f−gf - g is continuous where ff and gg are (Basic 2). Lesson: algebra of continuous functions
  5. Cross-check: write ff without modulus signs

    The modulus signs change formula where x=0x = 0 and where x+1=0x + 1 = 0⁠, i.e. at x=−1x = -1⁠. These two points split the line into three parts:

    x<−1:  (−x)−(−(x+1))=1,−1≤x<0:  (−x)−(x+1)=−2x−1,x≥0:  x−(x+1)=−1.\begin{aligned} x < -1&:\ \ (-x) - (-(x + 1)) = 1,\\ -1 \le x < 0&:\ \ (-x) - (x + 1) = -2x - 1,\\ x \ge 0&:\ \ x - (x + 1) = -1. \end{aligned}

    (For x<−1x < -1 both xx and x+1x + 1 are negative; for −1≤x<0-1 \le x < 0⁠, x<0x < 0 but x+1≥0x + 1 \ge 0⁠; for x≥0x \ge 0 both are ≥0\ge 0⁠.) Inside each part ff is a polynomial, hence continuous. Now test the two joints.

    At x=−1x = -1⁠: f(−1)=∣−1∣−∣0∣=1f(-1) = |-1| - |0| = 1⁠.

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

    At x=0x = 0⁠: f(0)=∣0∣−∣1∣=−1f(0) = |0| - |1| = -1⁠.

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

    At each joint the left-hand limit, right-hand limit and value agree, so ff is continuous at −1-1 and at 00 too, exactly as Step 4 said.

    x y −3 −2 −1 1 2 1 −1 (−1, 1) (0, −1) y = 1 (x < −1) y = −2x − 1 y = −1 (x ≥ 0)
    The graph of y=∣x∣−∣x+1∣y = |x| - |x + 1|⁠: level at 1 for x<−1x < -1 (gold), the falling segment y=−2x−1y = -2x - 1 from (−1,1)(-1, 1) to (0,−1)(0, -1) (blue), then level at −1-1 (green). The pieces meet at the filled dots with no gaps, so there is no point of discontinuity.
    The theorem-based argument (Steps 2 to 4) is quicker, but the explicit form shows why it works and gives a picture. Two corners appear, at −1-1 and 00⁠, and corners are not discontinuities.
    Definition 1 at each joint (Basic 4). Lesson: continuity at a point
Result

There is no point of discontinuity: f(x)=∣x∣−∣x+1∣f(x) = |x| - |x + 1| is continuous at every real number. (Textbook answer: "There is no point of discontinuity.")

Check it with numbers

Around −1-1⁠: f(−1.01)=1.01−0.01=1f(-1.01) = 1.01 - 0.01 = 1 and f(−0.99)=0.99−0.01=0.98f(-0.99) = 0.99 - 0.01 = 0.98⁠, both close to f(−1)=1f(-1) = 1⁠. Around 0: f(−0.01)=0.01−0.99=−0.98f(-0.01) = 0.01 - 0.99 = -0.98 and f(0.01)=0.01−1.01=−1f(0.01) = 0.01 - 1.01 = -1⁠, both close to f(0)=−1f(0) = -1⁠. Smaller steps bring the values closer still. ✓

Common mistakes
  1. Declaring x=0x = 0 and x=−1x = -1 points of discontinuity because the formula changes there. A change of formula is only a place to check; here the checks pass.
  2. Sign errors when removing the modulus. For −1≤x<0-1 \le x < 0⁠: ∣x∣=−x|x| = -x but ∣x+1∣=x+1|x + 1| = x + 1⁠.
  3. Thinking ∣x∣−∣x+1∣|x| - |x+1| simplifies to ∣x−(x+1)∣=1|x - (x + 1)| = 1⁠. The modulus does not distribute over subtraction.
What to take away
  1. Sums and differences of continuous functions are continuous (Theorem 1); modulus of a continuous function is continuous (Theorem 2).
  2. To remove modulus signs, split the line where each expression inside a modulus is zero.
  3. Corners (changes of slope) are not discontinuities.

Every fact used, and where it comes from

FactUsed inSource
The modulus function is continuousSteps 2, 3Examples 3 and 7, Section 5.2
Polynomials are continuousSteps 3, 5Example 14, Section 5.2
Continuity of a compositeStep 3Theorem 2, Section 5.2.1
Difference of continuous functions is continuousStep 4Theorem 1(2), Section 5.2.1 (Lesson: algebra of continuous functions)
Continuity at cc⁠: left-hand limit, right-hand limit and f(c)f(c) equalStep 5Definition 1, Section 5.2 (Lesson: continuity at a point)
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 →