For example, the piecewise function
$ f(x) = \begin{cases} \sqrt{1 - (x + 1)^2} &-2 \leq x \leq 0 \\ -\sqrt{1 - (x - 1)^2} &0 \leq x \leq 2 \end{cases} $
will, at $f(0)$, give $f'(0) = $ undefined (vertical tangent). Once deriving I can prove this algebraically, there is a zero in the denominator. It looked like an inflection point, so I wondered if $f''(x)$ would equal zero or undefined. After taking the (painstakingly ugly) second derivative, I ran into another zero in the denominator error, so $f''(0)$ is also undefined. Is this a general rule that if $f'(x)$ is undefined $f''(x)$ will also be undefined?
Thanks :)