you might understand this better by looking at an example

this needs to complete the square to get an equation of a circle

first group the x-terms, group the y terms and the constant to the right side.

you can see that this does not represent

the procedure to do this is to take half the coefficient of x, square it, and then add and subtract that result to the original expression

this yields

from which we obtain