I am struggling to prove $$x+|x|$$ to be locally Lipschitz. Since it is not continuously differentiable - not differentiable at $x=0$ - it is hence not globally Lipschitz. But how do I proceed for the local case?
$$|f(x) - f(y)| \leq L|x-y|$$ $$\Rightarrow |x+|x|-y-|y||=...$$
$|x+|x|-y-|y||=|(x-y)+(|x|-|y|)|\le |x-y|+||x|-|y|| \le |x-y|+|x-y| = 2|x-y|$. Thus $k = 2$. The key inequality is $xy \le |xy| = |x||y|$ which leads to $||x| - |y|| \le |x-y|$ which can be shown by simply squaring both sides.