I am reading the book Introduction to Nonlinear Optimization by Amir Beck. This problem is the problem 9.2 in his book.
Problem: Consider the Huber function $$ H_{\mu} = \begin{cases} \frac{\|x\|^2}{2\mu}, & \|x\| \leq \mu, \\ \|x\| - \frac{\mu}{2}, & else. \end{cases} $$ where $\mu > 0$ is a given parameter. Show that $H_{\mu} \in C^{1,1}_{\frac{1}{\mu}}$.
($f \in C^{1,1}_{\frac{1}{\mu}}$ iff for $\forall x,y$, $\|\nabla f(x) - \nabla f(y)\| \leq \frac{1}{\mu}\|x-y\|.$)
Maybe it is an easy problem, but I somewhat got stuck...
MY ATTEMPT:
If $0 < \mu \leq \frac{1}{2}$, $$ \nabla^2 H_{\mu}(x) = \begin{cases} \frac{1}{\mu}I, & \|x\| \leq \mu, \\ 2I, & else. \end{cases} $$ then, $\|\nabla^2 H_{\mu}\| \leq \frac{1}{\mu}$, this is equivalent to $H_{\mu} \in C^{1,1}_{\frac{1}{\mu}}$.
If $\mu > \frac{1}{2}$, I do not know how to deal with this case.
Could anyone give me some hints? Or you may feel free to point out my mistakes in the proof. Any help will be appreciated.
Corrected Version: I found that I calculated the gradient wrongly, it should be $$ \nabla H_{\mu}(x) \begin{cases} \frac{x}{\mu}, & \|x\| \leq \mu,\\ 1, & else. \end{cases} $$ Thus, $$ \nabla^2 H_{\mu}(x) = \begin{cases} \frac{1}{\mu}I, & \|x\| \leq \mu,\\ 0, & else. \end{cases} $$ Hence, $\|\nabla^2 H_{\mu}\| \leq \frac{1}{\mu} \Rightarrow H_{\mu} \in C^{1,1}_{1/\mu}.$ $\square$