Skip to content
NCERT Exemplar · Q71

Q.An example of a function which is continuous everywhere but fails to be differentiable exactly at two points is __________.

Punjab PsebShort· 1mImportance★★★★★
89% · 251/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 →

A function such as f(x)=∣x∣+∣x−1∣f(x)=|x|+|x-1| is continuous everywhere yet fails to be differentiable at exactly two points, x=0x=0 and x=1x=1.

The idea

Differentiability can fail where a continuous graph has a sharp corner: at a corner the slope coming from the left and the slope coming from the right disagree, so there is no single tangent. The absolute-value function ∣x∣|x| is the classic one-corner example (its corner is at x=0x=0). To get exactly two corners, we add two absolute-value terms whose corners sit at two different places.

Step 1 — Build the function

Let

f(x)=∣x∣+∣x−1∣.f(x)=|x|+|x-1|.

∣x∣|x| has its only corner at x=0x=0; ∣x−1∣|x-1| has its only corner at x=1x=1.

Step 2 — It is continuous everywhere

Each absolute-value function is continuous on all of R\mathbb{R}, and the sum of continuous functions is continuous. So ff is continuous for every real xx — the graph has no breaks or jumps.

Step 3 — Where differentiability fails

Write ff piecewise:

f(x)={−(x)−(x−1)=1−2x,x<0,(x)−(x−1)=1,0≤x≤1,(x)+(x−1)=2x−1,x>1.f(x)=\begin{cases}-(x)-(x-1)=1-2x,& x<0,\\[2pt](x)-(x-1)=1,& 0\le x\le 1,\\[2pt](x)+(x-1)=2x-1,& x>1.\end{cases}

  • At x=0x=0: the left slope is −2-2, the right slope is 00. They differ, so f′(0)f'(0) does not exist. …

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.