Skip to content
Miscellaneous Exercise · Q20

Q.Does there exist a function which is continuous everywhere but not differentiable at exactly two points? Justify your answer.

Yanam CbseNCERTSubjective· 2mImportance★★★★★
63% · 178/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 →

Yes — for example f(x)=∣x∣+∣x−1∣f(x) = |x| + |x-1| is continuous everywhere but not differentiable at exactly the two points x=0x=0 and x=1x=1.

Differentiability is a stricter requirement than continuity: a function can be unbroken (continuous) yet still have a sharp corner at isolated points, where no single tangent line exists. The absolute value function ∣x∣|x| is the standard example of one corner, at x=0x=0. To get exactly two non-differentiable points, add together two absolute-value functions with corners at two different locations.

Step 1 — Construct the function.

Let f(x)=∣x∣+∣x−1∣f(x) = |x| + |x-1|, which has potential corners at x=0x=0 (from ∣x∣|x|) and x=1x=1 (from ∣x−1∣|x-1|).

Step 2 — Continuity.

Each of ∣x∣|x| and ∣x−1∣|x-1| is continuous on R\mathbb{R} (absolute value of a continuous function is continuous), so their sum ff is continuous everywhere, by the algebra of continuous functions.

Step 3 — Write ff piecewise.

f(x)={(−x)+(1−x)=1−2xx<0x+(1−x)=10≤x≤1x+(x−1)=2x−1x>1f(x) = \begin{cases} (-x)+(1-x) = 1-2x & x<0 \\ x+(1-x)=1 & 0\le x\le 1 \\ x+(x-1)=2x-1 & x>1\end{cases}

Step 4 — Check differentiability at x=0x=0.

Left-hand derivative (from the x<0x<0 piece 1−2x1-2x): slope −2-2. Right-hand derivative (from the 0≤x≤10\le x\le 1 piece, constant 11): slope 00. Since −2≠0-2 \ne 0, ff is not differentiable at x=0x=0.

Step 5 — Check differentiability at x=1x=1. …

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.