Let $\alpha \geq 0$ and $\beta \geq 0$. Can we prove or disprove the following function is convex on $x_2 \geq x_1 \geq 0$? $$ g(x_1, x_2) = (\alpha - x_1)^2 + (\max \{\alpha, x_1\} + \beta - x_2)^2 $$
My Approach: It is clear that the function $\max \{\alpha, x_1\} - x_2$ is convex. For $x \geq 0$, $x^2$ is convex and increasing, so composition of these two functions is convex. But this does not seem to work in general because of the region that $\max \{\alpha, x_1\} - x_2$ might go negative.