My textbook claims that for a continuous function $f$, if $f^2$ is differentiable, then $f$ is differentiable at x whenever $f(x) \neq 0$. The claim is given without proof. I also found the following question on math stack exchange that makes the same claim.
Can someone help me by pointing to a proof (or give a proof)?