Calculus (3rd Edition)

$f(x)$ is not differentiable at $x=0$
Given $$f(x)=(x-1)|x|, \quad a=0$$ From the following figure, we have a sharp corner at $x=0$. Thus, $f(x)$ is not differentiable at $x=0$ (no tangent line exists there).