Mathematics Topic

Completing the Square

  1. Read notes
  2. Flashcards
  3. Quiz
  4. Confident

Study focus - 3 things

  1. Rewrite x^2 + bx + c as (x + b/2)^2 + (c - b^2/4), and ax^2 + bx + c as a(x - h)^2 + k
  2. Solve a quadratic equation by completing the square: move the constant, divide by a, add the square of half the coefficient of x to both sides, take square roots
  3. Give exact answers with a square root sign, or decimals to the accuracy asked for, and recognise an equation with no real solutions

Section 1Perfect squares and the missing term

A bracket squared always has the same pattern: (x + p)^2 = x^2 + 2px + p^2. The coefficient of x is twice the number in the bracket, and the last term is the square of that number. So if you are given x^2 + 18x and want a perfect square, halve the 18 to get 9 and square it to get 81, because x^2 + 18x + 81 = (x + 9)^2. In general, for x^2 + bx the number that completes the square is (b/2)^2, the square of half the coefficient of x. It works with a negative coefficient too: x^2 - 20x needs 100 and gives (x - 10)^2.

Section 2Rewriting x^2 + bx + c as a bracket squared plus a number

To rewrite an expression, add the missing square and take it away again so that the value does not change: x^2 + bx + c = (x + b/2)^2 - b^2/4 + c, which is (x + b/2)^2 + (c - b^2/4). For x^2 + 22x + 9 the half is 11 and its square is 121, so x^2 + 22x + 9 = (x + 11)^2 - 121 + 9 = (x + 11)^2 - 112. When b is odd the half is a fraction: x^2 + 9x + 2 = (x + 9/2)^2 - 81/4 + 2 = (x + 9/2)^2 - 73/4. In the form (x - h)^2 + k this has h = -b/2 and k = c - b^2/4, so a plus sign inside the bracket means that h is negative. Always check by expanding the answer.

Section 3When a is not 1: the form a(x - h)^2 + k

To rewrite ax^2 + bx + c, take a out of the two x terms first: ax^2 + bx + c = a(x^2 + (b/a)x) + c. Complete the square inside the bracket, and then remember that the number you added inside is multiplied by a, so a times it must be subtracted. The result is a(x - h)^2 + k with h = -b/(2a) and k = c - b^2/(4a). For 5x^2 + 20x + 6: 5(x^2 + 4x) + 6 = 5(x + 2)^2 - 5 × 4 + 6 = 5(x + 2)^2 - 14. Here h = -2, which is why the bracket shows a plus sign. A common slip is to subtract 4 instead of 20.

Section 4Solving a quadratic equation when a = 1

To solve x^2 + bx + c = 0 by completing the square: (1) move the constant to the right side; (2) add (b/2)^2 to both sides; (3) write the left side as a bracket squared; (4) take the square root of both sides, remembering the plus and minus; (5) solve for x. For x^2 + 14x + 3 = 0: x^2 + 14x = -3, then add 49 to both sides to get (x + 7)^2 = 46, so x + 7 = ±√46 and x = -7 ± √46. As exact answers this is -7 + √46 or -7 - √46. As decimals, √46 = 6.7823 to 4 decimal places, so x = -0.22 or x = -13.78 to 2 decimal places. If the right side is a perfect square, such as (x + 6)^2 = 25, the roots are whole numbers: x = -1 or x = -11.

Section 5Solving when a is not 1

When a is not 1, divide every term by a before completing the square, including the right side. For 2x^2 + 6x - 3 = 0: move the constant to get 2x^2 + 6x = 3, divide by 2 to get x^2 + 3x = 3/2, then add (3/2)^2 = 9/4 to both sides: (x + 3/2)^2 = 3/2 + 9/4 = 15/4. Taking square roots, x + 3/2 = ±√15/2, so x = (-3 ± √15)/2. Leave the answer exact unless the question asks for decimals. If the question gives an accuracy, use a calculator for the square root only at the end and round half up to the stated decimal places.

Section 6How many solutions, and checking

After step 3 the equation looks like (x + p)^2 = k. If k is positive there are two different real solutions, x = -p + √k and x = -p - √k. If k is zero there is exactly one solution, x = -p. If k is negative there are no real solutions, because the square of a real number is never negative. Check an answer by substituting it back into the original equation. Solving by factorising or by the quadratic formula gives the same solutions, and those methods have their own topics. Completing the square works even when the quadratic does not factorise.

Examples

(a) Write x^2 - 12x + 5 in the form (x - h)^2 + k. (b) Hence solve x^2 - 12x + 5 = 0, giving the answers correct to 2 decimal places.

(a) Half of -12 is -6 and (-6)^2 = 36. So x^2 - 12x + 5 = (x - 6)^2 - 36 + 5 = (x - 6)^2 - 31. Check: (x - 6)^2 - 31 = x^2 - 12x + 36 - 31 = x^2 - 12x + 5. (b) Set (x - 6)^2 - 31 = 0, so (x - 6)^2 = 31 and x - 6 = ±√31. Then x = 6 ± √31. Using √31 = 5.5678 to 4 decimal places, x = 6 + 5.5678 = 11.5678 or x = 6 - 5.5678 = 0.4322. To 2 decimal places, x = 11.57 or x = 0.43.

Solve 2x^2 + 5x - 4 = 0 by completing the square. Give the exact answers, and then the answers correct to 2 decimal places.

Step 1: move the constant to the right side: 2x^2 + 5x = 4. Step 2: divide every term by 2: x^2 + (5/2)x = 2. Step 3: half of 5/2 is 5/4, and (5/4)^2 = 25/16, so add 25/16 to both sides: x^2 + (5/2)x + 25/16 = 2 + 25/16 = 57/16. Step 4: write the left side as a bracket squared: (x + 5/4)^2 = 57/16. Step 5: take square roots: x + 5/4 = ±√57/4. So x = (-5 ± √57)/4. Using √57 = 7.5498 to 4 decimal places, x = (-5 + 7.5498)/4 = 0.6375 or x = (-5 - 7.5498)/4 = -3.1375. To 2 decimal places, x = 0.64 or x = -3.14. Check the first answer in the original equation: 2(0.6375)^2 + 5(0.6375) - 4 = 0.8128 + 3.1875 - 4 = 0.0003, which is zero apart from rounding.

Now let's water it

Session runs notes to flashcards to quiz back-to-back.

Where this comes from