I have a piece-wise function defined on the real line. The pieces are connected continuously, and the second derivative of each piece is strictly positive. Does this means that the function is convex?
More generally, where can I see about properties of such function or such construction?
The function $f(x)=(x-1)^2$ if $x \ge 0$ and $(x+1)^2$ if $x<0$ is not convex, but the two pieces are continuously connected (at $(0,1)$) and each has strictly positive second derivative, namely $2.$