How can we prove the convexity (convex or concave) of the function $$f(x) = g^2(x),$$ where $g(x) = \max\{2 + x, x, x^2 - 4\}$?
Any hints will be highly appreciated!
How can we prove the convexity (convex or concave) of the function $$f(x) = g^2(x),$$ where $g(x) = \max\{2 + x, x, x^2 - 4\}$?
Any hints will be highly appreciated!