One method of obtaining the roots of a quadratic equation is the factoring method. Another method that is used is completing the square method.
Consider the following situation:
The product of Sara’s age (in years) two years ago and her age four years from now is one more than twice her present age. What is her present age?
To answer this, let her present age (in years) be = x. Then the product of her ages two years ago and four years from now is (x-2)*(x+4).
Therefore, (x-2)*(x+4) = 2x+1
I.e, x^2 + 2x – 8 = 2x + 1
i.e, x^2 – 9 = 0
So Sara’s present age satisfies the quadratic equation x^2 – 9 = 0
We can write this as x^2 = 9. Taking square roots, we get x = 3 or x = -3. Since age is always a positive number, x = 3 would be our answer.
Now consider the quadratic equation (x+2)^2 – 9 = 0. To solve this we can write it as (x+2)^2 = 9. Taking roots we have x+2 = 3 and x+2 = -3. Therefore x = 1 or x = -5. These are the roots.
In both the examples above, the term containing x is completely inside a square, and we found the roots easily by taking square roots. But what if we are given the equation x^2 + 4x – 5 = 0 to solve? We would probably apply factorization unless we (somehow!) realize that x^+4x-5 = (x+2)^2 – 9.
So solving x^2+4x-5 = 0 is equivalent to solving (x+2)^2-9 = 0, which we have seen is faster. In fact, we can convert any quadratic equation to the form (x+a)^2 – b^2 = 0 and then we can easily find its roots. This process is called completing a square.
Suppose we were to complete the square for x^2+4x. The process is as follows:
X^2+4x
=(x^2 + (4/2)x) + (4/2)x
= x^2+2x+2x
= (x+2)x + 2*x
= (x+2)x + 2*x + 2*2 – 2*2
= (x+2)x + (x+2)2 – 2*2
= (x+2)(x+2) – 2^2
= (x+2)^2 – 4
So, x^2+4x-5 = (x+2)^2 -4 -5 = (x+2)^2 – 9.
So turning x^2+4x-5 to (x+2)^2-9 makes a complete square of the expression.
In brief, this can be shown as follows:
X^2+4x = (x+(4/2))^2 – (4/2)^2 = (x+(4/2))^2 – 4
So, x^2+4x-5 = 0 can be rewritten as
(x+(4/2))^2 -4-5 = 0
i.e., (x+2)^2 – 9 = 0. This was the completing square method in brief.