Differentiability & continuity
What is differentiability?
A function is differentiable at if its derivative exists at that point.
There are four common cases where a function is not differentiable at a point :
1. Discontinuities
A function must be continuous to be differentiable. If there is a removable, jump, or infinite discontinuity at , then the derivative does not exist at the point.
- Often seen in rational, piecewise, or logarithmic functions, which may have discontinuities and/or asymptotes
e.g.
2. Sharp corners
The function changes direction abruptly. The one-sided derivatives exist, but they are not equal.
- Often seen in absolute value or piecewise functions
e.g.
3. Cusps
Cusps are like corners, but the slope becomes unbounded: one or both one-sided derivatives approach infinity, and they approach opposite infinities.
- Often seen in power functions with fractional exponents
e.g.
4. Vertical tangents
The tangent line becomes vertical. The one-sided derivatives both approach infinity with the same sign.
- Often seen in radical functions
e.g.
In the last three cases, the function is continuous, but the graph is not smooth at the non-differentiable point (for a visual, graph each in Desmos).
Checking for differentiability
To check if is differentiable at ,
-
Continuity: First check whether is continuous by verifying the conditions stated in Section 1.6: Continuity. If it’s not continuous at , then it’s not differentiable.
-
Differentiate: Find and look for any -values where is undefined.
-
If necessary (mostly for piecewise functions): Check that the one-sided derivatives at both exist, are finite, and match. In other words, there must be a finite value such that
Example 1: From functions
For each of the following functions, find the -value(s) at which it is non-differentiable.
a)
b)
c)
d)
Solutions
a)
The function has a vertical asymptote at and is discontinuous. A function that is not continuous is not differentiable at the point, and the derivative does not exist at .
b)
is continuous for all values of . To analyze the derivative, first rewrite as a piecewise function:
Then differentiate each piece:
Note that the equality is dropped because the derivative is not defined at .
As , the derivative approaches , and as , it approaches . Because these one-sided derivatives don’t match, does not exist. On the graph, this shows up as a sharp corner at .
c)
is continuous with derivative
This derivative is undefined when the denominator is , which happens at .
Also, notice the one-sided behavior:
-
As ,
-
As ,
Since the one-sided derivatives approach opposite infinities, the graph has a cusp at , and the function is not differentiable at that point.
d)
Differentiating
which is undefined at .
Example 2: From a graph
The graph of shown below has a horizontal tangent at and a vertical tangent at . At which of the values and is not differentiable?
Solution
At , the function is continuous but the one-sided derivatives are not equal, so is not differentiable at the point.
At , the tangent line is horizontal so , and is differentiable.
At , the function has a jump discontinuity, so it is not differentiable at the point.
At , the vertical tangent line has a slope that is undefined, so does not exist and is not differentiable at that point.
Example 3: Finding unknown variables
Consider the function defined as:
Find the values of and such that is differentiable for all values of .
Answer:
If a piecewise function is differentiable, then it must be continuous.
For to be continuous at , both and must exist and be equal.
First,
Next, compute the one-sided limits:
- Left:
- Right:
So continuity requires .
Since there are two unknowns, we need a second equation. Differentiate each piece (treating and as constants):
For differentiability at , the one-sided derivatives must match:
Now solve the system:
which gives
Graph
in Desmos to confirm that the curve is unbroken and also smooth.
