Nathan Wakefield, Christine Kelley, Marla Williams, Michelle Haver, Lawrence Seminario-Romero, Robert Huben, Aurora Marks, Stephanie Prahl, Based upon Active Calculus by Matthew Boelkins
We recall that a function is said to be differentiable at if exists. Moreover, for to exist, we know that the graph of must have a tangent line at the point , since the value of is precisely the slope of this line. Observe that in order to ask if has a tangent line at , it is necessary for to be continuous at : if fails to have a limit at , if is not defined, or if does not equal the value of , then it doesn’t make sense to talk about a tangent line to the curve at this point.
Indeed, it can be proved formally that if a function is differentiable at , then it must be continuous at . Stated differently, if is not continuous at , then it is automatically the case that is not differentiable there. For example, in Figure 1.96 below, both and fail to be differentiable at because neither function is continuous at .
A natural question to ask at this point is “is there a difference between continuity and differentiability?” In other words, can a function fail to be differentiable at a point where the function is continuous? To answer these questions, we consider a certain function , where the graph of is displayed below in Figure 1.97. We notice that has a sharp corner at the point , and further observe that is continuous at since .
Figure1.97.A function that is continuous at but not differentiable at ; at right, we zoom in on the point in a magnified version of the box shown in the left-hand plot.
However, the function in Figure 1.97 is not differentiable at because fails to exist. One way to see this is to observe that for every value of that is less than 1, while for every value of that is greater than 1. That makes it seem that either or would be equally good candidates for the value of the derivative at . Alternatively, we could use the limit definition of the derivative to attempt to compute , and discover that the derivative does not exist. Finally, we can see visually in Figure 1.97 that this function does not have a tangent line at . Regardless of how closely we examine the function by zooming in on on the graph of , it will always look like a “V” and never like a single line, which tells us there is no possibility for a tangent line there.
If a function does have a tangent line at a given point, then the function and the tangent line should appear essentially indistinguishable when we zoom in on the point of tangency. 38
For instance, see http://gvsu.edu/s/6J for an applet (due to David Austin, GVSU) where zooming in shows the increasing similarity between the tangent line and the curve.
Conversely, if we zoom in on a point and the function looks like a single straight line, then the function should have a tangent line there and thus be differentiable at that point. Therefore, we say that a function that is differentiable at is locally linear. An example of this can be seen in Figure 1.98 below, with the graph of a function on the left and a magnified version with the tangent line to at on the right.
Figure1.98.A function and its tangent line at the point is shown in the figure. Notice how the function resembles a line as we zoom in on .
Example1.99.
Let be the function given by the rule .
Visualize (or sketch) the graph of , and use it to explain why is differentiable at every nonzero value of .
Use the limit definition of the derivative to show that . Then use left- and right- handed limits to explain why this limit does not exist. Conclude that is not differentiable at .
Hint.
What type of function is for all ? For all ?
Recall that . What is the value of when ?
Answer.
is piecewise linear.
and.
Solution.
We know that is given by the formula when and by when . Each of these pieces of is a straight line, so at every point other than the point where they meet, the function has a well-defined slope and thus is differentiable whenever . The graph of is a translate of the earlier graph of from Figure 1.97.
Observe that
To evaluate this limit, note that whenever , and thus
.
In contrast, we have whenever , and thus
.
Since the right- and left-hand limits are not equal, it follows that
does not exist. Therefore, the function is not differentiable at .
Another example of when a function can fail to be differentiable at a point is if the function has a vertical tangent at the point. In other words, when is continuous at and . This means the tangent lines become very steep as we move closer to .
Example1.100.
In this example, let .
In Figure 1.101 below, we have the graph of along with a progression of tangent lines at points approaching on the graph. As we approach , we see that the tangent lines drawn become steeper and steeper, ultimately leading to a vertical tangent line at .
Figure1.101.As we move closer to , the tangent lines to the graph of become steeper and steeper. Notice that the tangent line closest to is nearly vertical.
We can also show this by calculating the limit of the derivative close to :
If is differentiable at , then is continuous at . Equivalently, if fails to be continuous at , then will not be differentiable at .
A function can be continuous at a point without being differentiable there. In particular, a function is not differentiable at if the graph has a sharp corner (or cusp) at the point .
If is differentiable at , then is locally linear at . In other words, a differentiable function looks linear when viewed up close because it resembles its tangent line at any given point of differentiability.
Example1.102.
In this example, let be the function whose graph is given below in Figure 1.103.
State all values of for which is not continuous at . For each, provide a reason for your conclusion.
State all values of for which is not differentiable at . For each, provide a reason for your conclusion.
State all values of for which is not differentiable, but is continuous at . Think about why this is the case.
Hint.
You might start by looking for places you would lift your pencil when drawing the graph, identifying points where is not continuous. Calculating limits may also be useful.
You might start by identifying points where is not continuous.
At , does not exist; at ,; at , does not exist; at , is undefined.
, because is not continuous at these points; , because does not have a tangent line at these points.
.
Solution.
is not continuous at because at each of these points does not exist. is not continuous at because , but . is not continuous at because is not defined.
is not differentiable at because at each of these points is not continuous. In addition, is not differentiable at and because the graph of has a corner point (or cusp) at each of these values.
The only two points where is continuous but not differentiable are . This is because of the corner point (or cusp). These points fit the criteria for continuity, but there is no discernible tangent line.
Example1.104.
True or false: if a function is differentiable at , then must exist. Write at least one sentence to justify your choice.
Hint.
What does being differentiable at a point tell you about continuity there?
Answer.
True.
Solution.
We know that a function is continuous whenever it is differentiable, and that one characteristic of being continuous at is that exists. Therefore the statement “if a function is differentiable at , then must exist” is true.
A function is differentiable at whenever exists, which means that has a tangent line at and thus is locally linear at . Informally, this means that the function looks like a line when viewed up close at and that there is not a corner point or cusp at .
Differentiability is a stronger condition than continuity, which is a stronger condition than having a limit. In particular, if is differentiable at , then is also continuous at , and if is continuous at , then has a limit at .
For each of the following prompts, give an example of a function that satisfies the stated criteria; a formula or a graph, with reasoning, is sufficient for each. If no such example is possible, explain why.
A function that is continuous at but not differentiable at .
A function that is differentiable at but does not have a limit at .
A function that has a limit at , is defined at , but is not continuous at .
Use a graph to explain visually why is not differentiable at .
Use the limit definition of the derivative to show that
.
Investigate the value of by estimating the limit in (b) using small positive and negative values of . For instance, you might compute . Be sure to use several different values of (both positive and negative), including ones closer to 0 than 0.01. What do your results tell you about ?
Use your graph in (a) to sketch an approximate graph of .