I am doing an exercise in which I first proved that any $f\in C^1[a,b]$ which is twice differentiable on (a,b) with $f''\geq 0$ is convex, and now I need to deduce that $x \mapsto |x|^p$ is convex for $p \geq 1$.
It's clear for $p=1,2$ and for $p>2$ I've shown that the function is twice differentiable with nonnegative second derivative so convexity follows from the first part. However for $p\in (1,2)$ the function is not twice differentiable at $0$ so I'm not sure what to do. I don't think the question assumes that $p$ is an integer so it's not clear how to apply the first part in this case. Of course it is twice differentiable with nonnegative second derivative everywhere else but when the two points have opposite signs it is unclear how to show convexity.