I am given a convex and twice differentiable function $f$ whose gradient is Lipschitz with constant "$L$". I am trying to prove $$ \nabla^2 f(x) \preceq L\,I. $$ I recognize that this is pretty easy, and suspect the proof will invoke the definition of the Hessian.
From $f$ having Lipschitz gradient, we know $\|\nabla f(x) - \nabla f(y)\| \lt L\,\|x - y\|$.
And therefore $$ \lim_{x \to y} \frac{\|\nabla f(x) - \nabla f(y)\|}{\|x - y\|} \lt \frac{L\,\|x - y\|}{\|x - y\|} ~~\Longrightarrow ~~\nabla^2 f(x) \preceq LI. $$ But this isn't quite right since the Hessian is a matrix and the quantities inside the limit to the left of the implication arrow are scalars. What is the proper way to prove this?
Any help here would be helpful :-)
@Brian-Borchers
Okay, it looks like using a first order Taylor expansion of the gradient could work. Please let me know if this is right.
Using the first order Taylor expansion around a point $x_0$ for the gradient gives us $$ \nabla f(x) = \nabla f(x_0) + (\nabla^2 f(\xi)) (x - x_0) $$ where $\xi$ is some point between $x$ and $x_0$. This implies $$ \nabla f(x) - \nabla f(x_0) = (\nabla^2 f(\xi)) (x - x_0). $$ Taking norms we have $$ \| \nabla f(x) - \nabla f(x_0) \| = \| (\nabla^2 f(\xi)) (x - x_0) \|. $$ Since $\| \nabla f(x) - \nabla f(x_0) \| \le L\,\| x - x_0 \|$ by assumption, this implies $$ \| (\nabla^2 f(\xi)) (x - x_0) \| \le L \, \|x - x_0\|. $$ Therefore $$ \frac{\| (\nabla^2 f(\xi)) (x - x_0) \|}{\|x - x_0\|} \le \frac{L \, \|x - x_0\|}{\|x - x_0\|} $$ where the vector $x - x_0$ is arbitrary. Therefore $$ \nabla^2 f(\xi) \preceq L \, I. $$
Does that do it? Thanks again.