Completing the square is a process by which we turn an expression of the form ax 2 + bx + c into an expression of the form a(x + h)2 + d. The usefullness of this technique was shown in lecture on Tuesday evening in finding the center and radius of a circle from an equation for a circle that was not in standard form.
First if a is not one, then we factor out a , so we have a[x 2 + (b/a)x] + c . To make notation easier, let r = b/a . Then we want to write a[x 2 + rx] + c in the form a(x + h)2 + d .
The completing the square algorithm tells us that we let h = r/2 and we write a[x 2 + rx] + c = a[x 2 + rx + h2 - h 2 ] + c = a[(x + h) 2 - h2 ] + c = a(x + h) 2 + (c - a h2 ).
How this relates to the quadratic formula
Assume that we want to write x 2 + bx + r as (x + h) 2 + d . In order to do this, we need to find a numbers c, h such that x 2 + bx + c = (x + h) 2 . We can find these numbers by realizing that the two expressions must have the same roots. The expression (x+h) 2 has only one root, -h , with multiplicity two. To find the roots of x 2 + bx + c , we can use the quadratic formula. Since we would like on root with multiplicity two, we know that the part of the quadratic formula under the square root, b 2 - 4ac (the discriminant) has to be zero. In this case a = 1 , so we need b 2 = 4c and c = b 2 /4 = [b/2] 2 . Then, from the quadratic formula, h = -b/(2a) = -b/2
Therefore, x 2 + bx + (b/2) 2 = (x - (b/2)) 2 . Finally, x 2 + bx + r = (x - (b/2)) 2 - (b/2)2 + r . If you compare this with the result described above, you will not that it is the same. I would not suggest trying to remember all this, but it is always interesting to look into the relationships between math concepts.