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 :
- 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 there.
- Often seen in rational, piecewise, or logarithmic functions, which may have discontinuities and/or asymptotes
e.g.
- 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.
- 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.
- 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 there.
- 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
Examples
- Consider the functions:
a)
b)
c)
d)For what -value(s) is each non-differentiable and why?
Solutions
a) has a vertical asymptote at , so it is not continuous there. Since differentiability implies continuity, the derivative does not exist at .
b) is continuous everywhere. Its derivative is the piecewise function:
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) The derivative of is
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 there.
d) The derivative of is
This derivative is undefined at .
Because is squared in the denominator, is positive for . That means from both sides as . On the graph, this appears as a vertical tangent at , so the function is not differentiable there.
Consider the function defined as:
Find the values of and such that is differentiable (everywhere).
Solution
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:
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:
This gives
Graph
in Desmos to confirm that the curve is unbroken and also smooth.
Identify all the points where is not differentiable.
Solution
First, check where the expression inside the absolute value changes sign by solving .
Factoring,
These are the breakpoints for a piecewise definition.
-
For :
A test value like makes positive, so . -
For :
A test value like makes negative, so . -
For :
A test value like makes positive, so .
Rewritten in piecewise form,
Now check continuity at each breakpoint.
At :
So the function is continuous at .
At :
So the function is also continuous at .
Next, take the derivative on each interval:
Now compare one-sided derivatives at the breakpoints.
At :
The one-sided derivatives don’t match, so is not differentiable at .
At :
The one-sided derivatives don’t match, so is not differentiable at .
Confirm visually with the graph of to see the sharp corners at and .