Skip to content
NCERT Exemplar · Q23

Q.Show that f(x)=∣x−5∣f(x) = |x - 5| is continuous but not differentiable at x=5x = 5.

Manipur CohsemShort· 3mImportance★★★★★
72% · 203/281 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

The function f(x)=∣x−5∣f(x) = |x-5| is continuous at x=5x=5 because the left and right limits both equal f(5)=0f(5)=0, but it is not differentiable because the left-hand derivative (−1-1) and right-hand derivative (+1+1) are different — the graph has a sharp corner.

Why absolute value functions behave this way

The absolute value function ∣x∣|x| has a V-shaped graph. At the vertex (where the expression inside becomes zero), the slope changes abruptly from −1-1 to +1+1. For f(x)=∣x−5∣f(x) = |x-5|, that vertex is shifted to x=5x=5. Continuity is about the graph being unbroken — and the V is unbroken. Differentiability is about having a unique tangent — and at the tip of the V, there are infinitely many lines that touch the graph, not a single tangent.

Let’s verify both properties formally.


Step-by-step verification

1. Rewrite the function piecewise

The definition of absolute value gives:

∣x−5∣={x−5,x≥55−x,x<5|x-5| = \begin{cases} x-5, & x \geq 5 \\[4pt] 5-x, & x < 5 \end{cases}

So f(x)f(x) is a straight line of slope +1+1 for x≥5x \geq 5, and slope −1-1 for x<5x < 5.

2. Check continuity at x=5x=5

A function is continuous at a point if three things match: the left-hand limit, the right-hand limit, and the function value.

  • Left-hand limit (x→5−x \to 5^-):

    For x<5x<5, f(x)=5−xf(x)=5-x.

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

  • Right-hand limit (x→5+x \to 5^+):

    For x>5x>5, f(x)=x−5f(x)=x-5.

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

  • Function value:

    f(5)=∣5−5∣=0f(5) = |5-5| = 0.

Since lim⁡x→5−f(x)=lim⁡x→5+f(x)=f(5)=0\displaystyle \lim_{x \to 5^-} f(x) = \lim_{x \to 5^+} f(x) = f(5) = 0, the function is continuous at x=5x=5.

Note

Continuity only cares about the value of the function near the point, not the direction of approach. Both sides meet at the same height — that’s enough.

3. Check differentiability at x=5x=5

Differentiability requires the derivative from the left and the derivative from the right to be equal. We compute each using the limit definition of the derivative.

Left-hand derivative (approach from x<5x<5):

f−′(5)=lim⁡h→0−f(5+h)−f(5)hf'_-(5) = \lim_{h \to 0^-} \frac{f(5+h) - f(5)}{h}

For h<0h<0, 5+h<55+h < 5, so f(5+h)=5−(5+h)=−hf(5+h) = 5 - (5+h) = -h. And f(5)=0f(5)=0.

f−′(5)=lim⁡h→0−−h−0h=lim⁡h→0−−hh=lim⁡h→0−(−1)=−1f'_-(5) = \lim_{h \to 0^-} \frac{-h - 0}{h} = \lim_{h \to 0^-} \frac{-h}{h} = \lim_{h \to 0^-} (-1) = -1

Right-hand derivative (approach from x>5x>5): …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.