The max and min may occur at a critical pointinsidethe set, or on the boundary of a set. Here, that is particularly easy because on the boundary, so your function is just , a constant.

Evaluate the function at all critical points inside the set and on the boundary andseewhich are smallest and largest!