I'm trying to solve a past year exam question. I'm having trouble with this question.
I have to show that the following function is strictly convex. $$f: \mathbb{R}^n \rightarrow \mathbb{R}, \\ x \mapsto \frac{\|x\|^2}{2}+\cos\|x\|,$$
where $\|\cdot \|$ is the Euclidean norm on $\mathbb{R}^n$. Any help would be greatly appreciated.
I wanted to compute the Hessian. To do so, I wanted to use the fact that this function is constant on any sphere. Since $f$ is constant on any sphere, the gradient is perpendicular to the sphere at any point on the sphere. But I'm not sure how to proceed. I've showed that this function is convex by decomposing it as $u \circ v$ with $v$ the norm and $u$ as $x^2/2 + \cos(x)$. I showed that $v$ is convex and that $u$ is convex and increasing.