Find the absolute maximum value of the function f of x equals x squared plus 2 for x between 0 and 1 inclusive and equals negative x plus 4 for x greater than 1.