This is an example of completing the square -- a very useful mathematical tool that you should know.
Group the x and y terms on the left and move the constant to the right:
Complete the square in both x and y -- that is, add constants (on both sides of the equation, of course!) to make perfect square trinomials in both x and y:
Write the perfect square trinomials as squares of binomials: