Finding the relative extrema of the function f(x,y)