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

Exercise 5.1 · Q9: Points of discontinuity: x∣x∣\frac{x}{|x|} for x<0x < 0⁠, −1-1 for x≥0x \ge 0

Exercise 5.1Continuity of piecewise functions · Section 5.2
The question

Find all points of discontinuity of ff⁠, where ff is defined by

f(x)={x∣x∣,if x<0−1,if x≥0f(x) = \begin{cases} \dfrac{x}{|x|}, & \text{if } x < 0 \\[2mm] -1, & \text{if } x \ge 0 \end{cases}
Exam answer

For x<0x < 0⁠, ∣x∣=−x|x| = -x⁠, so f(x)=x−x=−1f(x) = \frac{x}{-x} = -1⁠. For x>0x > 0⁠, f(x)=−1f(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∣=−1RHL=lim⁡h→0f(0+h)=lim⁡h→0(−1)=−1\begin{aligned} \text{LHL} &= \lim_{h\to0} f(0 - h) \\ &= \lim_{h\to0}\frac{-h}{|-h|} = -1 \\ \text{RHL} &= \lim_{h\to0} f(0 + h) \\ &= \lim_{h\to0}(-1) = -1 \end{aligned}

and f(0)=−1f(0) = -1⁠. So LHL=RHL=f(0)\text{LHL} = \text{RHL} = f(0)⁠: ff is continuous at x=0x = 0⁠.

Hence ff 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

Simplify before you test. For a negative xx⁠, the modulus is ∣x∣=−x|x| = -x⁠, so x∣x∣=x−x=−1\dfrac{x}{|x|} = \dfrac{x}{-x} = -1⁠. The first formula is just −1-1 in disguise, and the second formula is −1-1 too. So f(x)=−1f(x) = -1 for every real xx⁠: ff is a constant function, and a constant function has no breaks. The formula x∣x∣\frac{x}{|x|} is undefined at 00⁠, but that does not matter, because at x=0x = 0 the question uses the second formula, which gives f(0)=−1f(0) = -1⁠.

Given, to find, and the plan
Given
A function ff with two pieces: x∣x∣\frac{x}{|x|} for x<0x < 0 and the constant −1-1 for x≥0x \ge 0⁠.
To find
Every point of the domain at which ff is not continuous.
Plan
(1) Find the domain. (2) Simplify the first piece using the definition of ∣x∣|x|⁠. (3) Check continuity at every point other than the junction x=0x = 0⁠. (4) Test the junction x=0x = 0 with the left-hand limit, the right-hand limit and the value f(0)f(0)⁠, each separately. (5) Conclude.

Basics you need

1Reading a piecewise function

Each formula applies only on its own part of the real line. To find f(c)f(c)⁠, first decide which condition cc satisfies, then use that formula only. Basics: piecewise functions

2The modulus

∣x∣=x|x| = x when x≥0x \ge 0 and ∣x∣=−x|x| = -x when x<0x < 0⁠. For example ∣−3∣=−(−3)=3|-3| = -(-3) = 3⁠. So for a negative number, ∣x∣|x| is minus that number, which is positive.

3Left-hand and right-hand limits

lim⁡x→c−f(x)\lim_{x\to c^-} f(x) uses only xx slightly less than cc⁠; lim⁡x→c+f(x)\lim_{x\to c^+} f(x) uses only xx slightly greater than cc⁠. The limit at cc exists exactly when both exist and are equal. Basics: one-sided limits

4Continuity at a point (Definition 1)

For a point cc in the domain, ff is continuous at cc when the left-hand limit, the right-hand limit and f(c)f(c) all exist and are equal. If not, cc is a point of discontinuity. Basics: what a limit is

5Constant functions are continuous

If f(x)=kf(x) = k for all xx⁠, then lim⁡x→cf(x)=k=f(c)\lim_{x\to c} f(x) = k = f(c) at every cc (Example 5 of the chapter).

Solution

  1. Find the domain of ff

    Every real number satisfies exactly one of the two conditions x<0x < 0 and x≥0x \ge 0⁠. The second formula, −1-1⁠, is defined for every xx⁠. The first formula, x∣x∣\frac{x}{|x|}⁠, needs ∣x∣≠0|x| \ne 0⁠, that is x≠0x \ne 0⁠; it is only used for x<0x < 0⁠, where this holds. So ff is defined at every real number: its domain is R\R⁠.

    Continuity is only asked about points of the domain. If x∣x∣\frac{x}{|x|} were also used at x=0x = 0⁠, the point 00 would drop out of the domain. Checking the conditions shows that this does not happen: 00 belongs to the second piece.
    A fraction is defined only when its denominator is not zero. Basics: piecewise functions
  2. Simplify the first piece

    Take any x<0x < 0⁠. By the definition of the modulus, ∣x∣=−x|x| = -x⁠, and −x≠0-x \ne 0⁠. So

    x∣x∣=x−x=−1(x<0).\frac{x}{|x|} = \frac{x}{-x} = -1 \qquad (x < 0).

    The second piece is −1-1 already. Therefore

    f(x)=−1for every real x.f(x) = -1 \quad \text{for every real } x.
    The first formula looks as if it could take many values, but its numerator and denominator have the same size and opposite signs when xx is negative, so the quotient is always −1-1⁠. Spotting this turns the whole question into a question about a constant function.
    ∣x∣=−x|x| = -x for x<0x < 0⁠, as the chapter writes it in Example 3: ∣x∣=−x|x| = -x if x<0x < 0⁠, ∣x∣=x|x| = x if x≥0x \ge 0⁠.
  3. Points away from the junction

    Let c≠0c \ne 0⁠. Whether cc is negative or positive, every xx near cc gives f(x)=−1f(x) = -1 (Step 2), so

    lim⁡x→cf(x)=lim⁡x→c(−1)=−1=f(c).\lim_{x\to c} f(x) = \lim_{x\to c} (-1) = -1 = f(c).

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

    This is Example 5 of the chapter (a constant function is continuous at every real number). We still treat the junction x=0x = 0 on its own in the next step, because that is where the definition of ff changes formula, and where a careless reader might expect trouble from x∣x∣\frac{x}{|x|}⁠.
    The limit of a constant is that constant. Lesson: continuity at a point
  4. Test the junction x=0x = 0

    Value. 0≥00 \ge 0⁠, so the second formula applies: f(0)=−1f(0) = -1⁠.

    Left-hand limit. As x→0−x \to 0^-⁠, x<0x < 0⁠, so the first formula applies, and by Step 2 it equals −1-1⁠:

    lim⁡x→0−f(x)=lim⁡x→0−x∣x∣=lim⁡x→0−(−1)=−1.\lim_{x\to 0^-} f(x) = \lim_{x\to 0^-} \frac{x}{|x|} = \lim_{x\to 0^-} (-1) = -1.

    Right-hand limit. As x→0+x \to 0^+⁠, x>0x > 0⁠, so the second formula applies:

    lim⁡x→0+f(x)=lim⁡x→0+(−1)=−1.\lim_{x\to 0^+} f(x) = \lim_{x\to 0^+} (-1) = -1.

    Compare. Left-hand limit =−1= -1⁠, right-hand limit =−1= -1⁠, f(0)=−1f(0) = -1⁠. All three are equal, so ff is continuous at x=0x = 0.

    Definition 1 asks for three things to agree at the junction. We compute each one with the formula that really applies on that side, rather than guessing from a single formula. The undefined value of x∣x∣\frac{x}{|x|} at 00 never enters: the left-hand limit only uses negative xx⁠, and the value at 00 comes from the other formula.
    Left-hand limit: only x<cx < c⁠; right-hand limit: only x>cx > c⁠. Basics: one-sided limits
  5. Conclude

    ff is continuous at every c≠0c \ne 0 (Step 3) and at c=0c = 0 (Step 4), that is, at every point of its domain R\R⁠. So ff has no point of discontinuity.

    "Find all points of discontinuity" can have the answer "none". The figure shows why: the graph is one horizontal line, drawn without lifting the pen.
x y −4 −3 −2 −1 1 2 3 4 −2 1 2 O (0, −1) x/|x| = −1 for x < 0 −1 for x ≥ 0
The graph of ff is the single line y=−1y = -1⁠. Blue: the part given by x∣x∣\frac{x}{|x|} for x<0x < 0⁠. Gold: the part given by −1-1 for x≥0x \ge 0⁠. The filled dot (0,−1)(0, -1) is the value f(0)f(0)⁠; there is no gap. One square is one unit on both axes.
Result

For x<0x < 0⁠, x∣x∣=−1\frac{x}{|x|} = -1⁠, so f(x)=−1f(x) = -1 for every real xx⁠. At the only junction x=0x = 0⁠: left-hand limit −1-1⁠, right-hand limit −1-1⁠, f(0)=−1f(0) = -1⁠. ff is continuous everywhere: there is no point of discontinuity. (Textbook answer: "No point of discontinuity".)

Check it with numbers

f(−5)=−5∣−5∣f(-5) = \frac{-5}{|-5|} =−55=−1= \frac{-5}{5} = -1⁠, f(−0.001)=−0.0010.001=−1f(-0.001) = \frac{-0.001}{0.001} = -1⁠, f(0)=−1f(0) = -1⁠, f(0.001)=−1f(0.001) = -1⁠, f(7)=−1f(7) = -1⁠. Values just left of 00⁠, at 00 and just right of 00 are all exactly −1-1⁠: no jump. ✓

Common mistakes
  1. "x∣x∣\frac{x}{|x|} is undefined at 0, so ff is discontinuous at 0." The first formula is never used at 00⁠; f(0)=−1f(0) = -1 comes from the second formula.
  2. Taking ∣x∣=x|x| = x for negative xx⁠. That gives xx=1\frac{x}{x} = 1 and a false jump from 11 to −1-1⁠. For x<0x < 0⁠, ∣x∣=−x|x| = -x⁠.
  3. Mixing this up with Question 8. There f(x)=∣x∣xf(x) = \frac{|x|}{x} for x≠0x \ne 0 and f(0)=0f(0) = 0⁠: the left-hand limit is −1-1⁠, the right-hand limit is 11⁠, and 00 is a point of discontinuity. Here both sides give −1-1⁠.
  4. Skipping the junction. Even when each piece is continuous, the point where the formula changes must be tested.
What to take away
  1. Simplify each piece first. A piece that looks complicated may be a constant.
  2. A formula's undefined points only matter where that formula is actually used.
  3. At a junction, compute the left-hand limit, the right-hand limit and the value separately, each with the formula that applies there.

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 2, 4Definition of the modulus function; Example 3, Section 5.2
A fraction is defined only where its denominator is non-zeroStep 1Arithmetic of real numbers
Continuity at cc⁠: left-hand limit == right-hand limit =f(c)= f(c)Steps 3, 4Definition 1, Section 5.2 (Lesson: continuity at a point)
A constant function is continuous at every real numberStep 3Example 5, Section 5.2
Left-hand and right-hand limits; the limit exists when they agreeStep 4Class XI, Limits and Derivatives; recalled in Section 5.2
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 →