Completing the Square
Fall 2009
Completing the square takes an expression having a quadratic
term (x2), a linear term (x), and possibly a constant term, and
produces an equal expression involving squaring an expression (e.g. (x–3)2)
but no linear term.
For example,
completing the square for x2 – 4x + 15 gives (x–2)2 + 11.
It is simple to
check that these are equal because (x–2)2 + 11 = (x2 – 4x
+ 4) + 11 = x2 – 4x + 15.
Completing the
square tells us how to start with x2 – 4x + 15 and get (x–2)2 +
11. More generally, completing the square
takes an expression of the form ax2 + bx + c and finds an equal
expression of the form a(x – h)2 + k.
Completing the
square is often taught as one method to solve quadratic equations. (Other techniques are factoring and using
the quadratic formula.) Completing the
square also can be used to find the vertex of a parabola. In the above example, the parabola y
= x2 – 4x + 15 must have vertex (2, 11) because we
can rewrite the equation as y = (x–2)2 + 11 or
as y – 11 = (x–2)2. Other uses of completing the square will arise from time to time
in calculus.
Note that
completing the square is done on an expression, not an equation. So never try to add a number to "both
sides" since you are not dealing with an equality.
Here is a summary
of how to complete the square on various expressions.
Part 1
Here are some more examples; these will also be used below for more calculations:
x2 – 4x = x2 – 4x +
4 – 4 = (x2 – 4x + 4) – 4 = (x–2)2 – 4
x2 + 12x = x2 + 12x +
36 – 36 = (x2 + 12x + 36) – 36 = (x+6)2 – 36
x2 – 2x = x2 – 2x +
1 – 1 = (x2 – 2x + 1) – 1 = (x–1)2 – 1
x2 + x = x2 + x +
¼ – ¼ = (x2 + x + ¼) – ¼
= (x+½)2 – ¼
![]()
More examples:
x2 – 6x + 15 = x2 – 6x +
9 – 9 + 15 = (x2 – 6x + 9) + (–9 + 15) = (x–3)2
+ 6
x2 +2x – 5 = x2 +2x +
1 – 1 – 5 = (x2 +2x + 1) + (–1 – 5) = (x+1)2
– 6
x2 + x + 2 = x2 + 3x +
¼ – ¼ + 2 = (x2 + x + ¼) + (–¼ + 2) = (x+½)2 + 7/4
![]()
Part 2
Other examples which use our earlier calculations above as side work:
10x2 – 40x
– 2 = 10(x2 – 4x) – 2 = 10[(x–2)2 – 4] – 2
= 10(x–2)2 – 40 – 2 = 10(x–2)2 – 42
2x2 + 24x
= 2(x2 + 12x) = 2[(x+6)2 – 36] = 2(x+6)2
– 72
–x2 + 2x
+ 4 = –1(x2 – 2x) + 4 = –1[(x–1)2 – 1] + 4
= –1(x–1)2 + 1 + 4 = –(x–1)2 + 5
–3x2 – 3x
+ 2 = –3(x2+x)+2 = –3[(x+½)2 – ¼] + 2 = –3(x+½)2 + ¾ + 2 = –3(x+½)2 + 11/4
![]()
Examples done
without side work:
7x2 + 28x
+ 3 = 7(x2 + 4x) + 3 = 7(x2 + 4x +4
– 4) + 3 = 7[(x + 2)2 – 4] + 3 = 7(x
+ 2)2 – 28 + 3 = 7(x + 2)2 – 25
–2x2 + 20x
– 50 = –2(x2 – 10x) – 50 = –2(x2 – 10x +25
– 25) – 50 = –2[(x – 5)2 – 25] – 50 = –2(x
– 5)2 + 50 – 50 = –2(x – 5)2
![]()
Complete the square
on the following expressions. Check
your answers by multiplying out your result to see if you get the original
expression.
Exercises:
On exercises #1–10:
(a) Complete the
square. (Optional: check by multiplying out.)
(b) Sketch each function;
if possible, graph intercepts.
Hint: to graph, recall y=(x–h)2+k
is the standard parabola, shifted right h units and up k.
On Exercises
#11–29: Complete the square (you can
check by multiplying).
There is a separate
Web page where you may check answers to
odd numbered problems.
Revised Friday, May 1, 2009. E-mail corrections, suggestions to mmaltenfort@ccc.edu