Chapter 9/9.5Accelerateabout 8 min
Completing the square
Solve (x + 3)2 = 25. Now solve x2 + 6x + 9 = 25. Why are the answers the same? Can you use this to solve x2 + 6x = 16?
From (x + 3)2 = 25, the number x + 3 is 5 or −5, so x = 2 or x = −8. The second equation is the same, because x2 + 6x + 9 is (x + 3)2. And x2 + 6x = 16 becomes the same equation if you add 9 to both sides.
Al-Khwarizmi's square. In Chapter 7 you met al-Khwarizmi's problem: "a square and ten of its roots make thirty nine". Here "root" meant the side of the square, so the problem is x2 + 10x = 39. He solved it with a picture, and the picture still works.
Draw the square x2. Split the 10x into two strips, each 5 by x, and attach them to two sides of the square. The shape has area 39, but it is a square with a corner missing. The missing corner is 5 by 5, so add 25 to complete the square. The big square has area 39 + 25 = 64, so its side is 8. Since the side is x + 5, x = 3.
Al-Khwarizmi gave the answer 3. The algebra finds a second root, because (x + 5)2 = 64 also allows x + 5 = −8, giving x = −13. He did not consider it, because in his time a negative number was not accepted as an answer. Check: (−13)2 + 10 × (−13) = 169 − 130 = 39.
Completing the square. x2 + bx = (x + b/2)2 − (b/2)2. In words: halve the coefficient of x, put it in the bracket, and take away its square.
Expand the right side with the rule of Section 9.2: (x + b/2)2 = x2 + 2 × b/2 × x + (b/2)2 = x2 + bx + (b/2)2. Taking away (b/2)2 leaves x2 + bx.
We write ± ("plus or minus") to show both square roots at once: if y2 = 5, then y = ±√5.
- (a)x2 + 6x − 7 = 0
- (b)x2 − 4x − 1 = 0, giving answers to 2 decimal places.
Babylon, four thousand years ago. Quadratic problems are far older than al-Khwarizmi. A Babylonian clay tablet, written about 1800 BC and now in the British Museum, asks: "I added the area and the side of my square, and it is 0;45." In base 60 (Chapter 2), 0;45 means 45/60 = 3/4, so the problem is x2 + x = 3/4. The scribe's instructions are: take half of 1, which is 1/2; square it to get 1/4; add 3/4 to get 1; its square root is 1; take away the 1/2, and the side is 1/2. Step by step, this is completing the square.
The quadratic formula. Completing the square on the general equation ax2 + bx + c = 0 gives a formula for every root at once. Divide by a: x2 + b/ax = −c/a. Add (b/2a)2 to both sides: (x + b/2a)2 = b2 − 4ac/4a2. Take square roots and subtract b/2a:
x = −b ± √(b2 − 4ac)/2a
If b2 − 4ac is negative there are no roots, because no square is negative. In Chapter 5 the golden ratio g came from a rectangle whose sides satisfy g/1 = 1/g − 1, which gives g2 − g − 1 = 0. The formula gives g = 1 + √5/2 = 1.6180..., the exact value promised there.
Check your understanding 9.5
- Write in the form (x + p)2 + q:
- (a)x2 + 8x
- (b)x2 − 2x + 7
- (c)x2 + 5x
Show answerHide answer
- (a)(x + 4)2 − 16
- (b)(x − 1)2 + 6
- (c)(x + 5/2)2 − 25/4
- Solve by completing the square
- (a)x2 + 4x = 21
- (b)x2 − 10x + 18 = 0, leaving square roots in your answer where they are not whole numbers.
Show answerHide answer
- (a)(x + 2)2 = 25: 3, −7
- (b)(x − 5)2 = 7: 5 ± √7
- Use al-Khwarizmi's picture to solve x2 + 8x = 48. Draw it.
Show answerHide answer
Two strips 4 by x; the missing corner is 16. (x + 4)2 = 64, so x = 4 (and also −12). - Solve the Babylonian problem x2 + x = 3/4 by factorising 4x2 + 4x − 3. Do you get the scribe's answer?
Show answerHide answer
4x2 + 4x − 3 = (2x − 1)(2x + 3) = 0, so x = 1/2 or −3/2. The positive root is the scribe's 1/2.
