# Twice differentiable

A function may be differentiable at a point but not twice differentiable
(i.e., the first derivative exists, but the second derivative does not).

## 1. A cubic function

The initial graph shows a cubic, shifted up and to the right so the axes don't get in the way. Note that there is a derivative at *x* = 1, and that the derivative (shown in the middle) is also differentiable at *x* = 1. Move the slider around to see that there are no abrupt changes. So this function is said to be twice differentiable at *x* = 1.

## 2. A piecewise function

The second example shows a half of a parabola connected to half of a cubic, also shifted up and to the right. This is defined as
The middle graph shows the derivative, which exists for *x* = 1 since the left-hand and right-hand derivatives are the same at this point (i.e., both are 0). But, look at the graph of the first derivative in the middle; is it differentiable at *x* = 1 (i.e., is the original function twice differentiable)? Move the slider, and notice that the first derivative has a corner at x = 1. So the first derivative is not differentiable there.

**Note:** You may have noticed in the last example that for *x* = 1, the graph of the second derivative shows an open point at (1,2), but the applet reports in the little box on the graph that *f *'' (1) = 2, implying that there is a second derivative. Which is right? In fact, the second derivative does not exist, as we noted above, but the graphing software isn't quite smart enough to know this and thinks that there is a second derivative there. That's why the little box says the value of the second derivative is 2, when it should really say "undefined." The open point is actually not drawn by the software, but manually added by hand to the example to make the graph clearer.

## Other differentiation topics

(C) 2011 Copyright Math Open Reference.

All rights reserved