Exercise 31

Find the absolute maximum and minimum values of \(f(x, y) = x^2 + y^2 - 2x\) on the set D, where D is the closed triangular region with vertices (2, 0), (0, 2), and (0, -2).