In this section, we study how f'(x_0) might fail to exist. Here are a number of cases in which is not differentiable at a point.
Quick Reference
| Cause of Non-Differentiability | Algebraic / Limit Reason | Geometric Appearance | Example |
|---|---|---|---|
| Discontinuity | is not continuous at | Jump, hole, or vertical asymptote | Heaviside step function , |
| Corner / Cusp | f'_+(x_0) \neq f'_-(x_0) | Sharp corner or V-shape point | at |
| Vertical Tangent | Tangent line is vertical (slope is infinite) | at | |
| Wild Oscillation | does not exist | Rapid infinite oscillation near point | at |
-
Discontinuity at :
When is discontinuous at . For example, if there is a jump in the graph of at , or we have or , the function is not differentiable at the point of discontinuity. For example, consider: H(x) = \begin{cases} 1 & \text{if } 0 \le x, \\ 0 & \text{if } x < 0. \end{cases} This function, which is called the Heaviside step function, is not continuous at ; therefore H'(0) does not exist. Another example is . Because , is not differentiable at .
The graphs of and show that they are discontinuous at . Therefore, they are not differentiable there. -
Corner or Cusp (f'_+(x_0) \neq f'_-(x_0)):
When f'_+(x_0) and f'_-(x_0) both exist but f'_+(x_0) \neq f'_-(x_0). In this case, there is a corner in the graph of . For instance, see the following figure.
The function is not differentiable wherever the graph has a corner or cusp. -
Vertical Tangent Line:
When the tangent line is vertical. In this case, or more generally \lim_{\Delta x\to 0} |f'(x)| = +\infty. For example, consider . As you can see in the figure below, the tangent to its graph at is vertical. This function is not differentiable at , for: \begin{aligned} \left.\frac{d(\sqrt[3]{x})}{dx}\right|_{x=0} &= \lim_{\Delta x\to 0} \frac{\sqrt[3]{0 + \Delta x} - \sqrt[3]{0}}{\Delta x} \\ &= \lim_{\Delta x\to 0} \frac{\sqrt[3]{\Delta x}}{\Delta x} \\ &= \lim_{\Delta x\to 0} \frac{1}{\Delta x^{(1 - 1/3)}} \\ &= \lim_{\Delta x\to 0} \frac{1}{\sqrt[3]{(\Delta x)^2}} \\ &= +\infty. \end{aligned}
The tangent line to the graph of at is vertical. -
Oscillation (No Limit):
When the difference quotient approaches neither a number nor as . For example, consider: f(x) = \begin{cases} x\sin\frac{1}{x} & \text{if } x \neq 0, \\ 0 & \text{if } x = 0. \end{cases} This function is not differentiable (although it is continuous) at , because: \begin{aligned} f'(0) &= \lim_{\Delta x\to 0} \frac{f(0 + \Delta x) - f(0)}{\Delta x} \\ &= \lim_{\Delta x\to 0} \frac{\Delta x\sin\frac{1}{\Delta x} - 0}{\Delta x} \\ &= \lim_{\Delta x\to 0} \sin\frac{1}{\Delta x} \end{aligned} does not exist. The graph of is shown below..png)
Graph of y = \begin{cases} x\sin\left(\frac{1}{x}\right) & \text{if } x \neq 0 \\ 0 & \text{if } x = 0 \end{cases}.
Exercises
Show that the function is continuous at but is not differentiable at .
Solution
Recall that the absolute value function can be written as a piecewise function:
f(x) = \begin{cases} x - 3 & \text{if } x \ge 3, \\ -(x - 3) & \text{if } x < 3. \end{cases}
Step 1: Check Continuity at
Evaluating the limits from the left and right:
and . Since , is continuous at .
Step 2: Calculate One-Sided Derivatives at
For the left-hand derivative f'_-(3):
For the right-hand derivative f'_+(3):
\begin{aligned} f'_+(3) &= \lim_{\Delta x\to 0^+} \frac{f(3 + \Delta x) - f(3)}{\Delta x} \\ &= \lim_{\Delta x\to 0^+} \frac{((3 + \Delta x) - 3) - 0}{\Delta x} \\ &= \lim_{\Delta x\to 0^+} \frac{\Delta x}{\Delta x} \\ &= 1. \end{aligned}
Step 3: Conclusion
Since f'_-(3) = -1 \neq 1 = f'_+(3), the left and right limits of the difference quotient are not equal. The graph of forms a sharp V-shaped corner at , so f'(3) does not exist.
Geometric Graph:
The figure below illustrates the V-shaped corner of at .
Determine whether the piecewise function:
f(x) = \begin{cases} x^2 + 1 & \text{if } x < 1, \\ 4 & \text{if } x = 1, \\ 2x & \text{if } x > 1 \end{cases}is differentiable at .
Solution
Before checking differentiability, we must check whether is continuous at .
Step 1: Check Continuity at
Evaluating the one-sided limits as :
Thus . However, the function value at is defined as .
Since , the function has a removable discontinuity at .
Step 2: Conclusion
Since differentiability requires continuity, any point of discontinuity automatically prevents the existence of a derivative. Therefore, f'(1) does not exist because is discontinuous at .
Geometric Graph:
The figure below illustrates the removable discontinuity (hole at and isolated point at ).
Investigate the differentiability of at .
Solution
Notice that , so is continuous at .
Step 1: Set up the Difference Quotient at
Step 2: Compute One-Sided Limits
For the left-hand derivative (), is negative: f'_-(0) = \lim_{\Delta x\to 0^-} \frac{1}{(\Delta x)^{1/3}} = -\infty. For the right-hand derivative (), is positive: f'_+(0) = \lim_{\Delta x\to 0^+} \frac{1}{(\Delta x)^{1/3}} = +\infty.
Step 3: Conclusion
Since f'_-(0) = -\infty and f'_+(0) = +\infty, the graph has infinite one-sided derivatives with opposite signs. The graph forms a vertical cusp pointing downwards at , so f'(0) does not exist.
Geometric Graph:
The figure below illustrates the vertical cusp of at .