It’s useful to think of “completing the square” as short for “completing the perfect square trinomial”.
First, recall that a perfect square is a number whose square root is an integer. The easiest way to think of perfect squares is to square the counting numbers:
12,22,32,42,52,...
A perfect square trinomial is a polynomial whose square root is a binomial. The easiest way to think of perfect square trinomials is to square the binomials obtained by adding counting numbers to a variable x:
(x+1)2,(x+2)2,(x+3)2,(x+4)2,(x+5)2,⋮
Recall that to square something is to multiply it by itself:
We see the general pattern for the square of a monomial of the form x+b would then be
x2+2bx+b2
So, a perfect square trinomial must, by definition, be able to be written as the square of some binomial. We just saw that if we square any monomial of the form x+b, a perfect square trinomial of the form x2+2bx+b2 emerges. This tells us that if we run into a quadratic polynomial of the form x2+2bx, we should add b2 to complete the square. In words, we add the square of half the x coefficient.
The monomial x+b is pretty general, but ax+b is even more general. Think of them as the same, but in the first one we assumed a=1.
At this point, just remind yourself that if a=0, the equation would reduce to b2=b2. So let’s assume a≠0, which means a2≠0. We are now able to divide both sides by a2:
The thing we need to notice here is that on the right hand side, the constant term is the square of half the coefficient of x . Thus, to complete the square,
Divide by the coefficient of x2.
Identify the new coefficient of x, cut it in half, square it, then add it.
What you have can now be rewritten as a perfect square trinomial.
To understand this in full generality, let’s try it with the quadratic polynomial ax2+bx.