Assume that f is twice differentiable, that is, its Hessian or second derivative $\nabla^2f$ exists at each point in dom$f$, which is open. Then f is convex if and only if dom$f$ is convex and its Hessian is positive semidefinite: for all x ∈ dom$f$, $\nabla^2f\geq 0$.
Is it possible that a function can be convex but not 2 twice differentiable?
What about $f(x)=\|x\|$? (Euclidean norm)