A question on a practice exam asks:
Provide an example of a function $f: \mathbb{R} \to \mathbb{R}$ which is not differentiable but $f^{2}$ is differentiable.
This confuses me because $f$ is differentiable when $f^2$ is differentiable seems to prove that any differentiable $f^2$ means that f would be differentiable.