Hey i'm trying to solve this question:
Let U be an open interval in R and a ∈ U.
Prove that if f : U → R is Lipschitz continuous, then $g(x) = (f(x) − f(a))^2$ is differentiable at a.
so far I have the following, but im not sure how to piece it all together
$|f(x) - f(y)| \le k|x-y|$
=> $ (f(x) − f(a))^2 \le (k|x-a|)^2$
if $g(x)$ is differentiable at a then $\lim_{x\to a} \frac{g(x) - g(a)}{x - a }$ must exist
$\lim_{x\to a} \frac{g(x) - g(a)}{x - a } = \lim_{x\to a} \frac{(f(x) − f(a))^2 - (f(a) − f(a))^2}{x - a } = \lim_{x\to a} \frac{(f(x) − f(a))^2}{x - a } \le \frac{(k|x-a|)^2}{x-a} = k^2(x-a)$
and from here im not sure where to go to show the limit exists
hint
For $x\ne a$,
$$|\frac{g(x)-g(a)}{x-a}|=$$ $$|\frac{f(x)-f(a)}{x-a}||f(x)-f(a)|$$ $$\le K|f(x)-f(a)|$$$f$ is continuous at $a$ then $$\lim_{x\to a}(f(x)-f(a))=0$$
then $$g'(a)=0.$$