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

Exercise 5.1 · Q8: Discontinuities of ∣x∣x\frac{|x|}{x} for x≠0,x\ne0, with f(0)=0f(0)=0

Exercise 5.1Points of discontinuity · Section 5.2
The question

Find all points of discontinuity of f,f, where ff is defined by f(x)={∣x∣x,if x≠00,if x=0f(x) = \begin{cases} \dfrac{|x|}{x}, & \text{if } x \ne 0 \\[2mm] 0, & \text{if } x = 0 \end{cases}

Exam answer

For x<0x < 0⁠, f(x)=−xx=−1f(x) = \frac{-x}{x} = -1⁠, and for x>0x > 0⁠, f(x)=xx=1f(x) = \frac{x}{x} = 1⁠. Constant functions are continuous, so ff is continuous at every x≠0x \ne 0⁠.

At x=0x = 0⁠:

LHL=lim⁡h→0f(0−h)=lim⁡h→0∣−h∣−h=lim⁡h→0h−h=−1RHL=lim⁡h→0f(0+h)=lim⁡h→0∣h∣h=lim⁡h→0hh=1\begin{aligned} \text{LHL} &= \lim_{h\to0} f(0 - h) \\ &= \lim_{h\to0}\frac{|-h|}{-h} = \lim_{h\to0}\frac{h}{-h} \\ &= -1 \\ \text{RHL} &= \lim_{h\to0} f(0 + h) \\ &= \lim_{h\to0}\frac{|h|}{h} = \lim_{h\to0}\frac{h}{h} \\ &= 1 \end{aligned}

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

Hence x=0x = 0 is the only point of discontinuity of ff⁠.

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

The one idea this problem is built on

∣x∣x\frac{|x|}{x} only records the sign of xx⁠: it is 11 for every positive xx and −1-1 for every negative x.x. So ff is constant on each side of 0, hence continuous away from 0. At 0 the values just to the left are all −1-1 and just to the right are all 11⁠; the one-sided limits differ, so ff jumps at 0, whatever its value there.

Given, to find, and the plan
Given
f(x)=∣x∣xf(x) = \frac{|x|}{x} for x≠0x \ne 0 and f(0)=0.f(0) = 0.
To find
Every point of the domain at which ff is not continuous.
Plan
(1) Domain; simplify ∣x∣x\frac{|x|}{x} for x>0x > 0 and x<0.x < 0. (2) Points c≠0.c \ne 0. (3) The point c=0.c = 0. (4) Collect the answer.

Basics you need

1Continuity at a point; point of discontinuity

ff is continuous at cc (in its domain) when the left-hand limit, the right-hand limit and f(c)f(c) are all equal; otherwise cc is a point of discontinuity (Definition 1, Section 5.2). Lesson: continuity at a point

2Absolute value

∣x∣=x|x| = x if x≥0x \ge 0 and ∣x∣=−x|x| = -x if x<0.x < 0. Basics: piecewise functions

3Constant functions are continuous; limits are local

A constant function is continuous everywhere (Example 5). If ff is constant on an open interval around c,c, then lim⁡x→cf(x)\lim_{x\to c} f(x) is that constant. Basics: what a limit is

4One-sided limits with a small step hh

With h>0h > 0⁠: LHL at cc is lim⁡h→0f(c−h)\lim_{h\to0} f(c-h) and RHL is lim⁡h→0f(c+h).\lim_{h\to0} f(c+h). Basics: left-hand and right-hand limits

Solution

  1. Domain, and what ∣x∣x\frac{|x|}{x} really is

    The first formula covers every x≠0x \ne 0 (where dividing by xx is allowed) and the second covers x=0,x = 0, so ff is defined on all of R.\R. Now simplify:

    • If x>0x > 0⁠: ∣x∣=x,|x| = x, so ∣x∣x=xx=1.\dfrac{|x|}{x} = \dfrac{x}{x} = 1.
    • If x<0x < 0⁠: ∣x∣=−x,|x| = -x, so ∣x∣x=−xx=−1.\dfrac{|x|}{x} = \dfrac{-x}{x} = -1.

    So

    f(x)={−1,if x<00,if x=01,if x>0f(x) = \begin{cases} -1, & \text{if } x < 0 \\ 0, & \text{if } x = 0 \\ 1, & \text{if } x > 0 \end{cases}
    The fraction looks complicated but takes only two values. Cancelling xx is legitimate because x≠0x \ne 0 on this piece. The second line of the definition is needed precisely because ∣x∣x\frac{|x|}{x} has no meaning at 0 (it would be 00\frac00⁠).
    ∣x∣=x|x| = x for x≥0,x \ge 0, −x-x for x<0.x < 0. Basics: piecewise functions
  2. Points c≠0c \ne 0⁠: continuous

    If c>0c > 0⁠: every xx with ∣x−c∣<c|x - c| < c is positive, so f(x)=1f(x) = 1 on that interval. Hence lim⁡x→cf(x)=1=f(c).\lim_{x\to c} f(x) = 1 = f(c).

    If c<0c < 0⁠: every xx with ∣x−c∣<−c|x - c| < -c is negative, so f(x)=−1f(x) = -1 there, and lim⁡x→cf(x)=−1=f(c).\lim_{x\to c} f(x) = -1 = f(c).

    So ff is continuous at every c≠0.c \ne 0.

    Around a non-zero point, a small enough interval never reaches 0, so ff is constant on it. A constant function is continuous (Example 5), and the limit only sees that interval.
  3. The point c=0c = 0

    Value. f(0)=0f(0) = 0 (given directly).

    Left-hand limit. For h>0,h > 0, −h<0,-h < 0, so

    lim⁡x→0−f(x)=lim⁡h→0∣−h∣−h=lim⁡h→0h−h=−1.\lim_{x\to0^-} f(x) = \lim_{h\to0} \frac{\lvert -h\rvert }{-h} = \lim_{h\to0} \frac{h}{-h} = -1.

    Right-hand limit. For h>0,h > 0,

    lim⁡x→0+f(x)=lim⁡h→0∣h∣h=lim⁡h→0hh=1.\lim_{x\to0^+} f(x) = \lim_{h\to0} \frac{|h|}{h} = \lim_{h\to0} \frac{h}{h} = 1.

    The one-sided limits −1-1 and 11 differ, so lim⁡x→0f(x)\lim_{x\to0} f(x) does not exist and ff is not continuous at x=0x = 0.

    x y −3 −2 −1 1 2 3 −2 2 O f(0) = 0 y = −1 for x < 0 y = 1 for x > 0
    The graph of ff⁠: the line y=−1y = -1 for x<0x < 0 (open circle at (0,−1)(0, -1)⁠), the line y=1y = 1 for x>0x > 0 (open circle at (0,1)(0, 1)⁠), and the single filled point (0,0).(0, 0). The graph jumps by 2 at x=0.x = 0.
    Here f(0)=0f(0) = 0 matches neither side, but that is not even the main problem: since the two one-sided limits differ, no value of f(0)f(0) could make ff continuous at 0. This is the classic jump of the sign function.
  4. Collect the answer

    ff is continuous at every c≠0c \ne 0 (Step 2) and not at c=0c = 0 (Step 3). So x=0x = 0 is the only point of discontinuity.

    Steps 2 and 3 together cover every real number.
Result

The only point of discontinuity is x=0x = 0: the left-hand limit there is −1,-1, the right-hand limit is 11 and f(0)=0.f(0) = 0. At every other real number ff is continuous. (Textbook answer: "Discontinuous at x=0x = 0".)

Check it with numbers

f(−0.001)=0.001−0.001=−1,f(-0.001) = \frac{0.001}{-0.001} = -1, f(0)=0,f(0) = 0, f(0.001)=0.0010.001=1.f(0.001) = \frac{0.001}{0.001} = 1. However small the step, the values on the two sides stay 2 apart. Away from 0, for example at c=2c = 2⁠: f(1.999)=f(2)=f(2.001)=1.f(1.999) = f(2) = f(2.001) = 1.

Common mistakes
  1. "∣x∣x=1\frac{|x|}{x} = 1 always." For negative x,x, ∣x∣=−x,|x| = -x, so the fraction is −1.-1.
  2. Thinking the discontinuity could be removed by choosing f(0)f(0) better. The one-sided limits differ, so no value at 0 works.
  3. Writing ∣−h∣=−h.\lvert -h\rvert = -h. For h>0,h > 0, ∣−h∣=h.\lvert -h\rvert = h.
What to take away
  1. Simplify a formula on each side of the critical point before testing: ∣x∣x\frac{|x|}{x} is just the sign of x.x.
  2. Locally constant means continuous: around any non-zero point ff does not change.
  3. When the one-sided limits differ, the discontinuity is a jump and cannot be fixed by redefining the single value f(c).f(c).

Every fact used, and where it comes from

FactUsed inSource
Continuity at cc⁠; point of discontinuitySteps 2–4Definition 1, Section 5.2 (Lesson: continuity at a point)
∣x∣=x|x| = x for x≥0,x \ge 0, −x-x for x<0x < 0Steps 1, 3Definition of modulus (Basics: piecewise functions)
Constant functions are continuousStep 2Example 5
A limit depends only on values near the pointStep 2Class XI Limits (Basics: what a limit is)
One-sided limits as lim⁡h→0f(c∓h),\lim_{h\to0} f(c\mp h), h>0h > 0Step 3Class XI Limits (Basics: one-sided limits)
Values in the check box and the graph coordinatesCheck; figureRecomputed in the site's verification script
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 →