Here's another, maybe simpler way to look at it:
Starting with the general quadratic equation: (note - I lost my superscripts in translation here - I hope this doesn't confuse you!)
ax2 + bx+ c = 0
Subtract c from both sides:
ax2 + bx = -c
Divide both sides by a (we can do this since we know a does not equal 0. If it did, we wouldn’t have a quadratic equation)
x2 + (b/a)x = - c/a
Now comes the part where most people get confused. But, for now we’ll just do this. I’ll explain it in a second. Divide b/a by 2, and add the square of that to the right hand side of the equation. Then, change the left hand side of the equation so that it looks like this:
(x +b/2a)2 = b2/4a2 – c/a
Ok, all this comes from examining what happens when we square a binomial:
Consider:
(a + d) = 0
Squaring both sides:
(a+d)2 = 0
Which gives us: (Use the FOIL method – First, Outer, Inner, Last)
a2 + 2ad + d2 = 0
Notice the factor of 2 in the middle term on the left. So, if we want the middle term in our original equation (x2 + (b/a)x = -c/a) to come out right, the second term in the binomial we want to square has to be b/2a; half of b/a Now also notice that if we square (x+ b/2a) we will get a final term of b2/4a2 which didn’t appear in our original equation. But that’s easily fixed – just add it to the right hand side also.
So, moving on, we can add the two fractions on the right hand side of our new equation and get:
(x + b/2a)2 = (b2 – 4ac)/2a
And you have completed the square!
Note, that if you solve this for x you get the famous general solution for the quadratic equation.