A quadratic that will not factorise
Try to factorise . You need two numbers with product 11 and sum 6. The only whole-number pairs are 1 and 11, or −1 and −11. Neither pair adds to 6. So the method from the last two lectures fails.
But the expression still has a lot to tell you. Here is a question it can answer: what is the smallest value can ever take? Try some values of .
| x | −6 | −5 | −4 | −3 | −2 | −1 | 0 |
|---|---|---|---|---|---|---|---|
| x² + 6x + 11 | 11 | 6 | 3 | 2 | 3 | 6 | 11 |
The values fall, reach 2 at , then rise again in the same pattern. It looks as if 2 is the smallest value. But a table only shows the values you tried. Could a fraction such as go lower? By the end of this lecture you will be able to prove it cannot, with one line of algebra. The tool is called completing the square.
The last lecture ended with a promise. It spotted squares that were already there, as in . This lecture does something different. It builds a square that is not there yet.
What a squared bracket looks like
Start from the other direction. Expand a squared bracket, , where is any number:
Look at the pattern carefully. The middle coefficient is , which is twice the number in the bracket. And the last term is , the square of that number. For example:
Now read it backwards. If you see , the 6 must be . So is half of 6, which is 3. That is the whole secret of the method. The number in the bracket is half the coefficient of .
But is not exactly . The square gives at the end, and we have . So the expression is the square, plus 2 more:
Expand it to check: . Yes.
Why it is called completing the square
The name is a picture. Draw as a square of side . Draw as two strips, each 3 by , and put one on the right and one underneath. The shape is almost a square of side . Only one corner is missing, and that corner is 3 by 3.
Adding the 9 "completes" the square. So on its own is the big square without its corner:
This picture is over a thousand years old. Around the year 820, the Baghdad scholar al-Khwārizmī wrote a book on solving equations. He had no letters for unknowns, so he wrote everything in words. One problem was: a square and ten of its roots make 39. In our notation, that is . He halved the 10 to get 5, and squared it to get 25. Then he added 25 to 39 to make 64, a perfect square of side 8. So , and . He justified each step with a drawing like the one above. The word "algebra" comes from al-jabr, a word in the title of his book.
Check his answer: . It works.
The general method
The same reasoning works for any quadratic . Half of goes in the bracket. Squaring the bracket adds an extra , so take that away again. Then the original stays.
In words: halve the coefficient of and put it in the bracket. Subtract the square of that half. Add the original constant. The result is in the form , which is called completed square form.
A student writes . Is that right?
Show the answer
No. The bracket already contains a , so the student has counted 9 extra. Test it with . The left side is 11. The right side is . The correct form takes the 9 away: . Testing one easy value, such as , catches this mistake every time.
The proof that 2 is the smallest value
Now return to the opening question. We have . Think about the two parts separately.
The part is a square. A square of a real number is never negative. It is zero when the bracket is zero, which is when , and it is positive for every other . So is always at least 2. It equals exactly 2 at . Any other value of , including , gives something bigger.
That is the proof the table could not give. Completed square form shows the smallest value without any trial and error. In general:
The two sides are equal only when . So the smallest value is , and it happens when .
Notice the sign. The bracket is zero at , not at . On a graph of , the lowest point is . That point is called the vertex of the curve, and the graphs unit uses it constantly. Move the sliders below to see the vertex move as the quadratic changes.
Choose b and c in y = x² + bx + c. Watch the completed square form and the lowest point of the curve. Try an odd value of b, and try b = 0.
Four quadratics in completed square form, with their lowest points.
| Quadratic | Completed square form | Smallest value |
|---|---|---|
| x² + 6x + 11 | (x + 3)² + 2 | 2, at x = −3 |
| x² − 8x + 7 | (x − 4)² − 9 | −9, at x = 4 |
| x² + 5x + 1 | (x + 5/2)² − 21/4 | −21/4, at x = −5/2 |
| x² − 6 | x² − 6 (b = 0) | −6, at x = 0 |
Worked examples
Write in completed square form. State its smallest value.
Half of is , so the bracket is . It expands to , which has 16 at the end. Take the 16 away and add the 7:
Check with : the original gives 7, and . The smallest value is , when . Keep the sign with the half: the bracket is , and it is zero at .
Write in completed square form.
Half of 5 is . Do not round it to a decimal. Fractions keep the answer exact. The square of is .
Here , so . Check with : . The smallest value is , which is , when .
Write in completed square form.
The halving rule only works when stands alone. So first take the 2 out of the first two terms only. Leave the constant outside:
Now complete the square inside the bracket. We already know . Use square brackets to keep the whole thing together:
The 2 multiplies everything in the square bracket, so the becomes . This is the step where most mistakes happen. Check by expanding: . The smallest value is , when .
Write in completed square form. Does it have a smallest or a largest value?
Take out from the first two terms. Watch the sign of : .
Now the square is subtracted. is never negative, so is never positive. The expression is at most 5, and it equals 5 when . So it has a largest value of 5, and no smallest value. Check with : , which matches the original.
Factorise using completed square form.
Half of 2 is 1, so .
This is the shape from Worked Example 5 of the last lecture: a squared bracket minus a square number. It is a difference of two squares, with and :
The product-and-sum method gives the same answer: product −8 and sum 2 give 4 and −2. So completing the square is not a separate topic. It joins up everything in this unit.
Here is where that joining up becomes powerful. Go back to an expression that does not factorise with whole numbers, such as . Half of 4 is 2, so:
Five is not a square number, but it is the square of . The last lecture said that whether you "can" factorise depends on which numbers you allow. Allow surds, and the difference of two squares still works:
Each bracket is zero for one value of . So the expression is zero when or , which are about −4.24 and 0.24. That is a quadratic equation solved exactly, without a formula. The lecture on solving quadratics by completing the square takes this idea and makes it a full method.
Can ever equal ?
Show the answer
No. Worked Example 1 showed . The square is never negative, so the expression is never less than . And is less than . Completed square form answers this at once, with no trial and error.
Now look at a student's working for a quadratic whose coefficient is 3.
One line of this working is wrong. Tap the line you think is wrong. Every line has an explanation.
The working, with the mistake marked and corrected:
- Line 1. 3x² + 12x + 2 = 3(x² + 4x) + 2. (Correct.)
- Line 2. Half of 4 is 2, and (x + 2)² = x² + 4x + 4. (Correct.)
- Line 3. So 3(x² + 4x) + 2 = 3[(x + 2)² − 4] + 2. (Correct.)
- Line 4. = 3(x + 2)² − 4 + 2. The mistake: the 3 multiplies the −4 as well, so it should be −12.
- Line 5. = 3(x + 2)² − 2. (This follows from the mistake. The correct answer is 3(x + 2)² − 12 + 2 = 3(x + 2)² − 10.)
Three classic mistakes
is not . The bracket brings its own , so you must subtract it: . Test with to catch this.
In , the 2 multiplies the too. The answer is , not . Also, never halve the 12 before taking out the 2. The halving rule needs on its own.
has its smallest value at , not . Ask: what value of makes the bracket zero? For , it is .
Work each one on paper first. Check each answer by expanding, or with .
-
Write in completed square form. What is its smallest value, and for which ?
Hint 1
Half of 10 is 5. What does expand to?
Hint 2
. You need 30 at the end, not 25.
Full answer
. The smallest value is 5, when . Check with : .
-
Write in completed square form. Give exact fractions.
Hint 1
Half of is .
Hint 2
, and .
Full answer
. The smallest value is , when . Check with : .
-
Write in completed square form.
Hint 1
Take 3 out of the first two terms: .
Hint 2
. Remember that the 3 multiplies the .
Full answer
. Check by expanding: . The smallest value is , when .
-
A farmer has 20 m of fencing. She makes a rectangular pen against a long wall, so the fence forms only three sides. The two sides that meet the wall are each m long. Show that the area is square metres. Then use completed square form to find the largest possible area.
Hint 1
The two short sides use m of fence, so the long side is m. Area = length × width.
Hint 2
Write , then complete the square inside the bracket.
Full answer
Area . Then . The term is never positive, so the area is at most 50 m². It equals 50 m² when . The pen is then 5 m by 10 m. Check: , and m of fence.
Completing the square turns a quadratic into "a square plus a number". That is the most revealing shape a quadratic can take. A square is never negative, so the smallest or largest value can be read off at once. Set the expression equal to zero and you can solve it, even when it does not factorise. Do the same steps with letters instead of numbers and you get the quadratic formula. The graphs unit uses completed square form to find the vertex of any parabola in one line.
This completes the unit on expanding and factorising. The next unit, on quadratic equations, uses every method from this unit. Completing the square will be at the centre of it.
- , so the number in the bracket is half the coefficient of .
- : halve, square, take the square away, add the constant.
- The name comes from a picture: is a square with one corner missing, and the corner has area .
- has smallest value , when . With a negative coefficient, the value is the largest instead.
- When the coefficient is not 1, take it out of the first two terms first, and multiply the subtracted square by it.