First of all, note that . As you should see, the function cannot obtain negative values. Setting gives a function value of 0, which obviously is a minimum for all . You might also want to have a look at the second plot here: http://www.wolframalpha.com/input/?i=x^2-2+x+y+%2B+y^2