Maths WorkshopMaths problems with full solutions
Exercise 398Calculus › Single-variable calculus › Differentiation › Differentiable functionsL1Added 2 Nov 2026

Three ways to fail to be differentiable

#differentiability#corner#vertical tangent#oscillation

Statement

Each of the following functions is continuous at 00. Show that none is differentiable at 00, and explain why in each case.

  1. f1(x)=∣x∣f_1(x)=|x|
  2. f2(x)=x3f_2(x)=\sqrt[3]{x}
  3. f3(x)=xsin⁡1xf_3(x)=x\sin\dfrac1x for x≠0x\ne0, f3(0)=0f_3(0)=0
Hint

Write the difference quotient f(h)−f(0)h\dfrac{f(h)-f(0)}h in each case and study its behaviour as h→0h\to0.

Show solutionHide solution

Solution

1. A corner. The quotient is ∣h∣h\frac{|h|}h, equal to 11 for h>0h>0 and −1-1 for h<0h<0. The two one-sided derivatives exist but differ.

2. A vertical tangent. The quotient is h1/3h=h−2/3→+∞\dfrac{h^{1/3}}h=h^{-2/3}\to+\infty as h→0h\to0 (from both sides). The slope of the secants becomes infinite.

3. Wild oscillations. The quotient is hsin⁡(1/h)h=sin⁡1h\dfrac{h\sin(1/h)}h=\sin\dfrac1h, which has no limit as h→0h\to0: it takes the values 00 and 11 along suitable sequences h→0h\to0. The secants through (0,0)(0,0) keep oscillating in slope between −1-1 and 11.

Moral. Differentiability is a strictly stronger property than continuity, and it can fail in three different ways: left and right slopes differ, the slope blows up, or the slope has no limit at all.