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

Exercise 5.2 · Q9: ∣x−1∣|x-1| is not differentiable at x=1x=1

Exercise 5.2Differentiability · Section 5.3
The question

Prove that the function ff given by

f(x)=∣x−1∣,x∈Rf(x) = |x - 1|, \quad x \in \R

is not differentiable at x=1x = 1⁠.

Exam answer

Here f(x)=∣x−1∣f(x) = |x - 1|⁠, so f(1)=0f(1) = 0 and f(1+h)=∣h∣f(1 + h) = |h|⁠.

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

Since LHD≠RHD\text{LHD} \ne \text{RHD}⁠, ff is not differentiable at x=1x = 1⁠. Hence proved.

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

The one idea this problem is built on

A function is differentiable at cc only if the slope of the chord from cc settles to one finite number whether we approach from the left or from the right. The graph of ∣x−1∣|x - 1| is a V with its corner at x=1x = 1⁠: every chord to the left has slope −1-1⁠, every chord to the right has slope +1+1⁠. Two different one-sided slopes mean no derivative.

Given, to find, and the plan
Given
f(x)=∣x−1∣f(x) = |x - 1| for all real xx⁠.
To show
ff is not differentiable at x=1x = 1⁠.
Plan
Write ff piece by piece. Form the difference quotient f(1+h)−f(1)h\frac{f(1+h) - f(1)}{h}⁠. Find its limit as h→0−h \to 0^- (left-hand derivative) and as h→0+h \to 0^+ (right-hand derivative) separately. Show they are different.

Basics you need

1Absolute value, piece by piece

∣a∣=a|a| = a if a≥0a \ge 0 and ∣a∣=−a|a| = -a if a<0a < 0⁠. So ∣x−1∣=x−1|x - 1| = x - 1 for x≥1x \ge 1 and 1−x1 - x for x<1x < 1⁠. Basics: piecewise functions

2Differentiable at a point

ff is differentiable at cc if both one-sided limits of f(c+h)−f(c)h\frac{f(c+h) - f(c)}{h}⁠, as h→0−h \to 0^- and h→0+h \to 0^+⁠, are finite and equal (Section 5.3). Lesson: differentiability

3One-sided limits

h→0−h \to 0^- uses only negative hh⁠; h→0+h \to 0^+ uses only positive hh⁠. Basics: left-hand and right-hand limits

4Slope of a chord

f(c+h)−f(c)h\frac{f(c+h) - f(c)}{h} is the slope of the line joining (c,f(c))(c, f(c)) to (c+h,f(c+h))(c+h, f(c+h))⁠; the derivative is the limit of these slopes. Basics: slope at a point

Solution

  1. Write ff piece by piece and find f(1)f(1)

    f(x)=∣x−1∣={1−x,x<1x−1,x≥1f(x) = |x - 1| = \begin{cases} 1 - x, & x < 1 \\ x - 1, & x \ge 1 \end{cases}

    and f(1)=∣0∣=0f(1) = |0| = 0⁠.

    The quantity inside the modulus, x−1x - 1⁠, changes sign at x=1x = 1⁠. That is where the formula changes, so that is the point where something can go wrong. Elsewhere ff is a single straight line.
    Check one value: x=−2x = -2 gives ∣−3∣=3|-3| = 3⁠, and 1−(−2)=31 - (-2) = 3⁠. Basics: piecewise functions
  2. Note that ff is continuous at 11

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

    The two one-sided limits and the value agree, so ff is continuous at 11⁠.

    Theorem 3 says a differentiable function is continuous. Here continuity holds, so we cannot use a break in the graph to rule out a derivative. We have to look at the slopes themselves. (This is the situation the book describes after Corollary 1: continuity does not imply differentiability.)
    Continuity at a point, Definition 1, Section 5.2. Lesson: continuity at a point
  3. Form the difference quotient at 11

    For h≠0h \ne 0⁠,

    f(1+h)−f(1)h=∣1+h−1∣−0h=∣h∣h.\frac{f(1+h) - f(1)}{h} = \frac{|1 + h - 1| - 0}{h} = \frac{|h|}{h}.
    This is the slope of the chord from (1,0)(1, 0) to (1+h,f(1+h))(1+h, f(1+h))⁠. The derivative at 11⁠, if it exists, is the limit of this quotient as h→0h \to 0⁠. Because ∣h∣|h| behaves differently for negative and positive hh⁠, we must take the two one-sided limits separately.
    Derivative of ff at cc⁠: lim⁡h→0f(c+h)−f(c)h\lim_{h\to0}\frac{f(c+h) - f(c)}{h}⁠, Section 5.3. Basics: slope at a point
  4. Left-hand derivative (h<0h < 0⁠)

    For h<0h < 0⁠, ∣h∣=−h|h| = -h⁠, so

    lim⁡h→0−∣h∣h=lim⁡h→0−−hh=lim⁡h→0−(−1)=−1.\begin{aligned} \lim_{h\to0^-}\frac{|h|}{h} &= \lim_{h\to0^-}\frac{-h}{h} \\ &= \lim_{h\to0^-}(-1) = -1. \end{aligned}
    For every negative hh the quotient is exactly −1-1 (for example h=−0.01h = -0.01⁠: 0.01−0.01=−1\frac{0.01}{-0.01} = -1⁠). A quantity that is constantly −1-1 has limit −1-1⁠. Geometrically, every chord to the left lies along the arm y=1−xy = 1 - x⁠, which has slope −1-1⁠.
    Left-hand limit: only h<0h < 0 is used. Basics: one-sided limits
  5. Right-hand derivative (h>0h > 0⁠)

    For h>0h > 0⁠, ∣h∣=h|h| = h⁠, so

    lim⁡h→0+∣h∣h=lim⁡h→0+hh=lim⁡h→0+1=1.\begin{aligned} \lim_{h\to0^+}\frac{|h|}{h} &= \lim_{h\to0^+}\frac{h}{h} \\ &= \lim_{h\to0^+}1 = 1. \end{aligned}
    Every chord to the right lies along the arm y=x−1y = x - 1⁠, of slope +1+1⁠, so the quotient is exactly 11 for every positive hh⁠.
  6. Compare and conclude

    Left-hand derivative =−1= -1⁠, right-hand derivative =1= 1⁠. They are finite but not equal, so lim⁡h→0f(1+h)−f(1)h\lim_{h\to0}\frac{f(1+h)-f(1)}{h} does not exist. Hence ff is not differentiable at x=1x = 1.

    The definition asks for both one-sided limits to be finite and equal; one failure is enough. The graph has a corner at (1,0)(1, 0)⁠: no single line can be "the tangent" there, because the left arm and the right arm leave the corner in different directions.
    Same argument as the book's for ∣x∣|x| at 00 (Section 5.3, after Corollary 1): the graph of ∣x−1∣|x - 1| is the graph of ∣x∣|x| shifted 1 unit right. Lesson: differentiability
x y −1 1 2 3 2 y = 1 − x slope −1 y = x − 1 slope +1
The graph of y=∣x−1∣y = |x - 1| (same scale on both axes). Left of 11 it is the line y=1−xy = 1 - x (slope −1-1⁠, gold); right of 11 it is y=x−1y = x - 1 (slope +1+1⁠, blue). The two arms meet at the corner (1,0)(1, 0) with different slopes, so there is no tangent there.
Result

At x=1x = 1⁠: left-hand derivative −1-1⁠, right-hand derivative 11⁠. Since −1≠1-1 \ne 1⁠, f(x)=∣x−1∣f(x) = |x - 1| is not differentiable at x=1x = 1, even though it is continuous there. (The answer key gives no answer for this proof question; the conclusion is the one asked for.)

Check it with numbers
hhf(1+h)f(1+h)f(1+h)−f(1)h\frac{f(1+h) - f(1)}{h}
−0.1-0.10.10.1−1-1
−0.001-0.0010.0010.001−1-1
0.0010.0010.0010.00111
0.10.10.10.111

However small hh is, the quotient is −1-1 on the left and 11 on the right; it never settles to one value.

Common mistakes
  1. Differentiating each piece and "plugging in" x=1x = 1⁠. The pieces' derivatives −1-1 and 11 suggest the answer, but the proof must use the limits of the difference quotient at 11 itself.
  2. Concluding from continuity. ff is continuous at 11⁠; that does not make it differentiable. Continuity is necessary, not sufficient.
  3. Writing ∣h∣h=1\frac{|h|}{h} = 1⁠. That is true only for h>0h > 0⁠; for h<0h < 0 the quotient is −1-1⁠.
What to take away
  1. To prove non-differentiability at a corner, compute the left-hand and right-hand derivatives from the difference quotient and show they differ.
  2. ∣x−c∣|x - c| is continuous at cc but not differentiable there; everywhere else its derivative is −1-1 (left of cc⁠) or 11 (right of cc⁠).

Every fact used, and where it comes from

FactUsed inSource
∣a∣=a|a| = a for a≥0a \ge 0⁠, ∣a∣=−a|a| = -a for a<0a < 0Steps 1, 4, 5Definition of absolute value (Basics: piecewise functions)
Continuity at a pointStep 2Definition 1, Section 5.2
Differentiable implies continuous (not conversely)Step 2Theorem 3 and Corollary 1, Section 5.3
Differentiable at cc iff both one-sided limits of the difference quotient are finite and equalSteps 3 to 6Section 5.3 (Lesson: differentiability)
∣x∣|x| is not differentiable at 00Step 6Section 5.3, after Corollary 1
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 →