If you apply the first derivative test (putting partial derivatives equal to 0), you see that the only critical point of f(x,y)occurs at the origin. If you apply the second derivative test (calculate the second partial derivatives and look at ), it tells you that there is a local max/min at the origin (depending on whether is negative or positive) if that expression is positive, and that there is a saddle point if it is negative.

On the other hand, if you look at the formula obtained by completing the square, you get exactly the same information: if then one of the squares is positive and the other one is negative, so there is a saddle point at the origin. If then both squares are positive, and the function will have a local max/min at the origin depending on whether a is negative or positive.

So it looks as though the aim of this exercise is to persuade you that the second derivative test works, by seeing that it gives the right answer in this case.