example of differentiable function which is not continuously differentiable
Let be defined in the following way:
Then if , using the usual rules for calculating derivatives. If , we must compute the derivative by evaluating the limit
which we can simplify to
We know for every , so this limit is just . Combining this with our previous calculation, we see that
This is just a slightly modified version of the topologist’s sine curve; in particular,
diverges, so that is not continuous, even though it is defined for every real number. Put another way, is differentiable
but not .