Find the absolute maximum and minimum values off on the set D

Find the absolute maximum and minimum values off on the set D.
f(x,y)=x2+y2−2x, D is the closed triangular region with vertices (2, 0), (0, 2), and (0, -2)