global extrema of Piecewise[{{(2/3)(x-1)+2, -2<=x<1}, {x-1, 1<=x<=2}}]