As I understand, a smooth function is continuously differentiable.
But if I have a function which is continuous AND differentiable, I cannot automatically say that it is smooth. For it has to be so for all its differentials.
So I wonder, what function would be continuous and differentiable, but not continuously differentiable?
I cannot find the answer myself, as I do not clearly understand the difference between continuous AND differentiable, and continuously differentiable....
Context: I ask this because of an arc length contest. The function has to be continuous and differentiable on [0,1]. But does this automatically mean that I may always use the formula for an arc length, which has the condition that the function is smooth... (or, in another book, that it has a continuous derivative)?
EDIT: there is some confusion as to what is being asked here. I am answering "Does there exist a continuous and differentiable function which isn't smooth?" (mentioned in the title and the question), but I see that "what function would be continuous and differentiable, but not continuously differentiable?" is also asked. To this second question, I recommend looking at @Ian's comment below.
A good example is
$$ f(x) = \begin{cases} x^2 & : x \geq 0 \\ 0 & : x < 0 \end{cases} $$
You can check the right-hand limit of both the function and first derivative are $0$, but the second derivative is discontinuous.
Similarly, $$ f(x) = \begin{cases} x^n & : x \geq 0 \\ 0 & : x < 0 \end{cases} $$
provides an example where the function and first $n-1$ derivatives are continuous, but the $n$th derivative is not.