Maxima and Minima of Function of two Variables