You are on page 1of 5

2/3/2019 Completing the Square: Deriving the Quadratic Formula | Purplemath

(../index.htm)

Completing the Square: Deriving the Quadratic


Formula
Solve x2 + 10 = –6x

To complete this exercise, I'll apply the same procedure as was demonstrated on the previous page.

First, I'll write down the original equation:

x2 + 10 = –6x
Then I'll rearrange this equation to get the variable-containing terms on the left-hand side, with the
constant (the loose number) isolated on the right-hand side:

x2 + 6x = –10
The leading term is multiplied by an "understood" 1, so I don't have to divide through by anything.

Now I'll do the side-calculations, starting with the coefficient of the linear term, including its sign:

numerical coefficient: +6

I'll divide this in half:

+6
derived value: = +3
2
I'll square this derived value:

square of derived value: (+3)2 =9


Now I'll return to my last equation-based step, and add this squared value to either side of the equation:

x2 + 6x + 9 = –10 + 9
I can simplify the strictly-numerical stuff on the right-hand side:

x2 + 6x + 9 = –1

https://www.purplemath.com/modules/sqrquad2.htm#formula 1/5
Um... Wait a minute... The left-hand side can be restated, in completed-square form, as (x + 3)2, but the
2/3/2019 Completing the Square: Deriving the Quadratic Formula | Purplemath

right-hand side is a negative. I can't have a squared expression (which must have a value that is zero or
positive) on one side, and claim that this is equal to a negative on the other side! The real numbers don't
work that way!

If you haven't yet studied complex numbers (complex.htm) (being numbers with an "i" in them), then you'd
stop at this point, and say that this equation has "no solution". On the other hand, if you have studied
complexes, you can continue.

Continuing, I'll convert the left-hand side to completed-square form, using the +3 that I derived earlier:

(x + 3)2 = –1
Now I'll square-root both sides, remembering to put a "plus-minus" on the strictly-numerical right-hand
side:

(x + 3)2 = ± −1

x + 3 = ±i

x = −3 ± i
Depending upon my level of study, my answer will either be:

no solution

...or:

x = −3 ± i

Again, if you don't yet know about complex numbers (the numbers with "i" in them), then you would say that
the above quadratic has "no solution". If, on the other hand, you do know about complexes, then you would
say that this quadratic has "no real solution", but it does have two "complex" solutions.

Since solving "(quadratic) = 0" for x is the same as finding the x-intercepts (assuming the solutions are real
numbers), it stands to reason that this quadratic should not intersect the x-axis (since x-intercepts are "real"
numbers). As you can see below, the graph does not in fact cross the x-axis.

https://www.purplemath.com/modules/sqrquad2.htm#formula 2/5
2/3/2019 Completing the Square: Deriving the Quadratic Formula | Purplemath

This relationship is always true. If you end up with a non-negative value on the right-hand side of the
equation before you take the square roots of each side, then the quadratic will have two x-intercepts (or
only one, if you get plus-minus of zero on the right-hand side); if you get a negative value on the right-hand
side, then you won't get a real-number solution (because you can't take the square root of a negative within
the real numbers), and the quadratic will not cross the x-axis.

I'll do one last "example". It's a hard one, but please bear with me.

It has become somewhat fashionable to have students derive the Quadratic Formula (quadform.htm)
themselves; this is done by completing the square for the generic quadratic equation ax2 + bx + c = 0.
While I can understand the impulse (showing students how the Formula was invented, and thereby
providing a concrete example of the usefulness of abstract symbolic manipulation), the computations
involved are often a bit beyond the average student at this point.

Here is what the instructor is looking for:

Derive the Quadratic Formula by solving ax2 + bx + c = 0.

Okay; I'll start this one exactly the same as I did all the others. The only difference in this case will be
that, as I go along, I won't be able to simplify stuff, because I have letters instead of numbers.

The original equation is this:

ax2 + bx + c = 0
I'll move the constant term (the loose number) over to the right-hand side:

ax2 + bx = –c
The leading term is multiplied by a, so I'll have to divide through by this "value":

b c
x2 + x=−
a a
Now I'll need to start my side-calculations with the coefficient of the linear term, including its sign:

b
numerical coefficient: +
https://www.purplemath.com/modules/sqrquad2.htm#formula
a 3/5
1
2/3/2019
I'll multiply this by 12 Completing the Square: Deriving the Quadratic Formula | Purplemath

1
derived value: ( ) (+ ) = +
b b
2 a 2a
Now I'll square this derived value:

2
b2
derived value: (+ ) = 2
b
2a 4a

I'll add this squared value to either side of the equation:

b b2 c b2
x2 + x+ 2 =− + 2
a 4a a 4a

I'll rearrange, convert to the common denominator, and combine on the right-hand side:

b
2 b2 b2 c
x + x+ 2 = 2 −
a 4a 4a a

b b2 b2 4ac
x2 + x+ 2 = 2 − 2
a 4a 4a 4a

b
2 b2 b2 − 4ac
x + x+ 2 =
a 4a 4a2

Then I'll convert the left-hand side to completed-square form, using the value I derived earlier:

2
b2 − 4ac
(x + ) =
b
2a 4a2

Next comes taking the square roots of either side, remembering the "plus-minus" on the strictly-
numerical side:

2
b2 − 4ac
(x + ) = ±
b
2a 4a2

https://www.purplemath.com/modules/sqrquad2.htm#formula 4/5
2/3/2019 Completing the Square: Deriving the Quadratic Formula | Purplemath

b b2 − 4ac
x+ =±
2a 2a

And I'll finish by solving for the variable:

b b2 − 4ac
x=− ±
2a 2a

−b ± b2 − 4ac
x=
2a

Whether you're working symbolically (as in the last example) or numerically (which is the norm), the key to
solving by completing the square is "practice, practice, practice". By so doing, the process will become more
"automatic", and you'll be much more likely to remember the steps when you're taking the next test.

URL: https://www.purplemath.com/modules/sqrquad2.htm

https://www.purplemath.com/modules/sqrquad2.htm#formula 5/5

You might also like