Let $U\subset \mathbb R^N$ be open and convex, and the function $f: U\to \mathbb R$ is differentiable in $U$. I've got to show that:
$f$ is Lipschitz continuous iff $\exists\: M>0$ such that $\|\nabla f(x)\|\leq M$ for all $x\in U$.
I understand that a function is Lipschitz continuous on a subset $E$ of $\mathbb R^N$ if for all $x, y\in E$,
$$|f(x)-f(y)|\le L|x-y|$$
for some $L>0$. But how do I work with this definition to get to my result? I sense that I would have to use the fact the norm is a convex function and show that
$$\|\nabla f(x)\| < \frac{|f(x)-f(y)|}{|x-y|}$$
but I'm not sure if this is the right approach.