Skip to the page
Home Campus
Start free

Solving Quadratic Equations by Completing the Square

How to solve any quadratic equation by completing the square and taking square roots: roots to 2 decimal places or 3 significant figures, dividing by the coefficient of x2x^2 first, and equations with no real solutions.

Before you start

In Secondary 2 you solved equations such as (x−1)2=9(x - 1)^2 = 9 by taking the square root of both sides. The ±\pm goes with the bracket, and a square is never negative, so (x−1)2=−9(x - 1)^2 = -9 has no solution. From now on we say it has no real solutions: no real number squared is negative.

In lesson 1.1 you completed the square: x2+6x+5=(x+3)2−4.x^2 + 6x + 5 = (x + 3)^2 - 4\text{.} This lesson puts the two together.

Example: A squared bracket

Solve (x−1)2=9(x - 1)^2 = 9.

Solution

x−1=±3x - 1 = \pm 3. Either x−1=3x - 1 = 3, so x=4x = 4, or x−1=−3x - 1 = -3, so x=−2x = -2.

Check: (4−1)2=9(4 - 1)^2 = 9 ✓ and (−2−1)2=(−3)2=9(-2 - 1)^2 = (-3)^2 = 9 ✓

x=4x = 4 or x=−2x = -2

The Method

The equation x2+6x+5=0x^2 + 6x + 5 = 0 factorises: (x+1)(x+5)=0(x + 1)(x + 5) = 0. But x2+6x+2=0x^2 + 6x + 2 = 0 does not: no two integers have product 22 and sum 66. Factorising needs such a pair, and most quadratic equations have none.

Completing the square needs no such luck. Halving and squaring the coefficient of xx can always be done, and it turns any quadratic equation into a square equal to a number, (x+a)2=k(x + a)^2 = k, which you can already solve by taking square roots. So it works for every quadratic equation, whether it factorises or not.

In an equation you may add the same number to both sides. So instead of adding and subtracting (p2)2\left(\frac{p}{2}\right)^2 as in lesson 1.1, move the number term to the right first and add (p2)2\left(\frac{p}{2}\right)^2 to both sides. The two ways give the same square.

Solving x2+px+q=0x^2 + px + q = 0 by completing the square

1. Move the number term to the right side: x2+px=−qx^2 + px = -q.

2. Halve the coefficient of xx and square it, then add (p2)2\left(\frac{p}{2}\right)^2 to both sides.

3. Write the left side as a square: (x+p2)2=−q+(p2)2.\left(x + \frac{p}{2}\right)^2 = -q + \left(\frac{p}{2}\right)^2\text{.}

4. Take the square root of both sides, with ±\pm, and solve the two linear equations.

Check each root in the original equation.

Example 1: Two ways to the same roots

Solve x2+6x+5=0x^2 + 6x + 5 = 0 by completing the square.

Solution

Move the number term: x2+6x=−5x^2 + 6x = -5.

Half of 66 is 33, and 32=93^2 = 9. Add 99 to both sides: x2+6x+9=−5+9.x^2 + 6x + 9 = -5 + 9\text{.}

Write the left side as a square: (x+3)2=4(x + 3)^2 = 4.

Take square roots: x+3=±2x + 3 = \pm 2. Either x+3=2x + 3 = 2, so x=−1x = -1, or x+3=−2x + 3 = -2, so x=−5x = -5.

By lesson 1.1 instead: x2+6x+5=(x+3)2−4,x^2 + 6x + 5 = (x + 3)^2 - 4\text{,} so (x+3)2−4=0(x + 3)^2 - 4 = 0 and (x+3)2=4(x + 3)^2 = 4, the same square.

Check: (−1)2+6(−1)+5=1−6+5=0(-1)^2 + 6(-1) + 5 = 1 - 6 + 5 = 0 ✓ and (−5)2+6(−5)+5=25−30+5=0(-5)^2 + 6(-5) + 5 = 25 - 30 + 5 = 0 ✓. Factorising, (x+1)(x+5)=0(x + 1)(x + 5) = 0, gives the same roots.

x=−1x = -1 or x=−5x = -5

Roots That Are Not Whole Numbers

Usually the number on the right is not a perfect square, and the roots are not whole numbers. Write them with a square root sign first, such as x=−3+7x = -3 + \sqrt{7}, then use your calculator and round as the question asks.

Round only at the last line. Do not round 7\sqrt{7} first: use the calculator value of −3+7-3 + \sqrt{7} in one go, or keep at least five figures.

2 decimal places or 3 significant figures. 0.438450.43845 is 0.440.44 to 2 decimal places but 0.4380.438 to 3 significant figures; 4.561554.56155 is 4.564.56 either way. Read which one the question asks for, and keep a final zero: 3.89793.8979 is 3.903.90 to 2 decimal places.

A check with a rounded root gives very nearly 00, not exactly 00; it is written ≈0\approx 0.

Example 2: Roots to 2 decimal places

Solve x2+6x+2=0x^2 + 6x + 2 = 0, giving your answers correct to 2 decimal places.

Solution

Move the number term: x2+6x=−2x^2 + 6x = -2.

Half of 66 is 33, and 32=93^2 = 9. Add 99 to both sides: (x+3)2=−2+9=7.(x + 3)^2 = -2 + 9 = 7\text{.}

Take square roots: x+3=±7x + 3 = \pm\sqrt{7}, so x=−3+7x = -3 + \sqrt{7} or x=−3−7x = -3 - \sqrt{7}.

With 7=2.645 75…\sqrt{7} = 2.645\,75\ldots: x=−0.354 25…x = -0.354\,25\ldots or x=−5.645 75…x = -5.645\,75\ldots

Check x=−0.354 25x = -0.354\,25: 0.125 49−2.125 50+2≈00.125\,49 - 2.125\,50 + 2 \approx 0 ✓

x=−0.35x = -0.35 or x=−5.65x = -5.65 (2 d.p.)

Example 3: An odd coefficient, to 3 significant figures

Solve x2−5x+2=0x^2 - 5x + 2 = 0, giving your answers correct to 3 significant figures.

Solution

Move the number term: x2−5x=−2x^2 - 5x = -2.

Half of −5-5 is −52-\frac{5}{2}, and (−52)2=254=6.25.\left(-\frac{5}{2}\right)^2 = \frac{25}{4} = 6.25\text{.} Add 6.256.25 to both sides:

(x−2.5)2=−2+6.25=4.25(x - 2.5)^2 = -2 + 6.25 = 4.25

Take square roots: x−2.5=±4.25x - 2.5 = \pm\sqrt{4.25}, so x=2.5+4.25x = 2.5 + \sqrt{4.25} or x=2.5−4.25x = 2.5 - \sqrt{4.25}.

With 4.25=2.061 55…:\sqrt{4.25} = 2.061\,55\ldots\text{:} x=4.561 55…x = 4.561\,55\ldots or x=0.438 45…x = 0.438\,45\ldots

Check x=4.561 55x = 4.561\,55: 20.807 74−22.807 75+2≈020.807\,74 - 22.807\,75 + 2 \approx 0 ✓

x=4.56x = 4.56 or x=0.438x = 0.438 (3 s.f.)

When the Coefficient of x2x^2 Is Not 1

Completing the square needs x2x^2 on its own, with coefficient 11. If the equation starts 2x22x^2 or −x2-x^2, divide both sides by the coefficient of x2x^2 first. The right side stays 00, so the roots do not change.

Example 4: Divide first

Solve, giving your answers correct to 2 decimal places, (a) 2x2+8x−3=02x^2 + 8x - 3 = 0 (b) −x2+6x−4=0-x^2 + 6x - 4 = 0.

Solution

(a) Divide both sides by 22: x2+4x−32=0x^2 + 4x - \frac{3}{2} = 0, so x2+4x=32x^2 + 4x = \frac{3}{2}.

Half of 44 is 22, and 22=42^2 = 4. Add 44 to both sides: (x+2)2=32+4=5.5.(x + 2)^2 = \frac{3}{2} + 4 = 5.5\text{.}

x+2=±5.5x + 2 = \pm\sqrt{5.5}, so x=−2+5.5=0.345 21…x = -2 + \sqrt{5.5} = 0.345\,21\ldots or x=−2−5.5=−4.345 21…x = -2 - \sqrt{5.5} = -4.345\,21\ldots

Check x=0.345 21x = 0.345\,21: 2(0.119 17)+2.761 68−3=0.238 34+2.761 68−3≈02(0.119\,17) + 2.761\,68 - 3 = 0.238\,34 + 2.761\,68 - 3 \approx 0 ✓

(b) Divide both sides by −1-1 (every sign changes): x2−6x+4=0x^2 - 6x + 4 = 0, so x2−6x=−4x^2 - 6x = -4.

Half of −6-6 is −3-3, and (−3)2=9(-3)^2 = 9. Add 99 to both sides: (x−3)2=5(x - 3)^2 = 5.

x−3=±5x - 3 = \pm\sqrt{5}, so x=3+5=5.236 07…x = 3 + \sqrt{5} = 5.236\,07\ldots or x=3−5=0.763 93…x = 3 - \sqrt{5} = 0.763\,93\ldots

Check x=0.763 93x = 0.763\,93 in the original: −0.583 59+4.583 58−4≈0-0.583\,59 + 4.583\,58 - 4 \approx 0 ✓

(a) x=0.35x = 0.35 or x=−4.35x = -4.35; (b) x=5.24x = 5.24 or x=0.76x = 0.76 (2 d.p.)

No Real Solutions

After completing the square, look at the number on the right before taking square roots. A square is never negative, so if the number is negative, no real value of xx fits.

A square equal to a number

When the equation becomes (x+a)2=k(x + a)^2 = k:

if k>0k > 0, there are two roots, x=−a+kx = -a + \sqrt{k} and x=−a−kx = -a - \sqrt{k};

if k=0k = 0, there are two equal roots, x=−ax = -a;

if k<0k < 0, there are no real solutions, since no real number squared is negative.

Example 5: Negative or zero on the right

Solve, if possible, (a) x2+2x+4=0x^2 + 2x + 4 = 0 (b) x2−6x+9=0x^2 - 6x + 9 = 0.

Solution

(a) x2+2x=−4x^2 + 2x = -4. Half of 22 is 11, and 12=11^2 = 1. Add 11 to both sides: (x+1)2=−3(x + 1)^2 = -3.

No real number squared gives −3-3, so there is no real value of xx.

In lesson 1.1 terms: x2+2x+4=(x+1)2+3,x^2 + 2x + 4 = (x + 1)^2 + 3\text{,} which is 33 or more for every xx, so it is never 00.

(b) x2−6x=−9x^2 - 6x = -9. Half of −6-6 is −3-3, and (−3)2=9(-3)^2 = 9. Add 99: (x−3)2=0(x - 3)^2 = 0, so x−3=0x - 3 = 0 and x=3x = 3.

Check (b): 9−18+9=09 - 18 + 9 = 0 ✓

(a) There are no real solutions. (b) x=3x = 3 (two equal roots).

Using the Method in a Problem

Example 6: A library rug

A rectangular rug in a school library is 33 m longer than it is wide, and its area is 5050 m². Taking its width as xx m, form an equation and solve it to find the width, correct to 3 significant figures.

Solution

The length is (x+3)(x + 3) m, so x(x+3)=50x(x + 3) = 50, that is, x2+3x=50x^2 + 3x = 50.

Half of 33 is 32\frac{3}{2}, and (32)2=2.25.\left(\frac{3}{2}\right)^2 = 2.25\text{.} Add 2.252.25 to both sides: (x+1.5)2=52.25(x + 1.5)^2 = 52.25.

x+1.5=±52.25,x + 1.5 = \pm\sqrt{52.25}\text{,} so x=−1.5+52.25=5.728 42…x = -1.5 + \sqrt{52.25} = 5.728\,42\ldots or x=−1.5−52.25=−8.728 42…x = -1.5 - \sqrt{52.25} = -8.728\,42\ldots

A width cannot be negative, so x=−8.73x = -8.73 is rejected.

Check: 5.728 42×8.728 42≈505.728\,42 \times 8.728\,42 \approx 50 ✓

The width of the rug is 5.735.73 m (3 s.f.).

Common Mistakes

  • Adding (p2)2\left(\frac{p}{2}\right)^2 to one side only: x2+4x=5x^2 + 4x = 5 gives (x+2)2=5+4=9(x + 2)^2 = 5 + 4 = 9, not (x+2)2=5(x + 2)^2 = 5.
  • Moving the number term with the wrong sign: x2+6x+2=0x^2 + 6x + 2 = 0 gives x2+6x=−2x^2 + 6x = -2.
  • Taking only the positive square root: (x+3)2=7(x + 3)^2 = 7 gives x+3=7x + 3 = \sqrt{7} or x+3=−7x + 3 = -\sqrt{7}.
  • Forgetting to divide by the coefficient of x2x^2: for 2x2+8x−3=02x^2 + 8x - 3 = 0, first write x2+4x−32=0x^2 + 4x - \frac{3}{2} = 0.
  • Rounding too early: −3+2.6=−0.4-3 + 2.6 = -0.4, but −3+7=−0.354…,-3 + \sqrt{7} = -0.354\ldots\text{,} which is −0.35-0.35 to 2 decimal places.
  • Giving roots for (x+1)2=−3(x + 1)^2 = -3. A square is never negative: there are no real solutions.

Practice

Solve each equation by completing the square, and check your roots. Give answers that are not exact as each question asks.

Question 1

Solve x2+8x+12=0x^2 + 8x + 12 = 0 by completing the square.

ShowHide solution

x2+8x=−12x^2 + 8x = -12. Half of 88 is 44, and 42=164^2 = 16. Add 1616 to both sides: (x+4)2=4(x + 4)^2 = 4.

x+4=±2x + 4 = \pm 2, so x=−2x = -2 or x=−6x = -6.

Check: 4−16+12=04 - 16 + 12 = 0 ✓ and 36−48+12=036 - 48 + 12 = 0 ✓ (and (x+2)(x+6)=0(x + 2)(x + 6) = 0 gives the same roots).

x=−2x = -2 or x=−6x = -6

Question 2

Mei Ling solved x2+4x−5=0x^2 + 4x - 5 = 0 like this: “x2+4x=5x^2 + 4x = 5, so (x+2)2=5(x + 2)^2 = 5, so x+2=5x + 2 = \sqrt{5}.” Name her two mistakes, and solve the equation correctly.

ShowHide solution

First, she added 44 to the left side only. Adding 44 to both sides gives (x+2)2=5+4=9(x + 2)^2 = 5 + 4 = 9.

Second, she took only the positive square root. x+2=±3x + 2 = \pm 3.

So x=1x = 1 or x=−5x = -5. Check: 1+4−5=01 + 4 - 5 = 0 ✓ and 25−20−5=025 - 20 - 5 = 0 ✓

x=1x = 1 or x=−5x = -5

Question 3

Solve x2+4x−3=0x^2 + 4x - 3 = 0, giving your answers correct to 2 decimal places.

ShowHide solution

x2+4x=3x^2 + 4x = 3. Half of 44 is 22, and 22=42^2 = 4: (x+2)2=7(x + 2)^2 = 7.

x=−2±7x = -2 \pm \sqrt{7}: x=0.645 75…x = 0.645\,75\ldots or x=−4.645 75…x = -4.645\,75\ldots

Check x=0.645 75x = 0.645\,75: 0.416 99+2.583 00−3≈00.416\,99 + 2.583\,00 - 3 \approx 0 ✓

x=0.65x = 0.65 or x=−4.65x = -4.65 (2 d.p.)

Question 4

Solve x2−10x+14=0x^2 - 10x + 14 = 0, giving your answers correct to 3 significant figures.

ShowHide solution

x2−10x=−14x^2 - 10x = -14. Half of −10-10 is −5-5, and (−5)2=25(-5)^2 = 25: (x−5)2=−14+25=11.(x - 5)^2 = -14 + 25 = 11\text{.}

x=5±11x = 5 \pm \sqrt{11}: x=8.316 62…x = 8.316\,62\ldots or x=1.683 38…x = 1.683\,38\ldots

Check x=1.683 38x = 1.683\,38: 2.833 77−16.833 80+14≈02.833\,77 - 16.833\,80 + 14 \approx 0 ✓

x=8.32x = 8.32 or x=1.68x = 1.68 (3 s.f.)

Question 5

Solve x2+3x−5=0x^2 + 3x - 5 = 0, giving your answers correct to 2 decimal places.

ShowHide solution

x2+3x=5x^2 + 3x = 5. Half of 33 is 1.51.5, and 1.52=2.251.5^2 = 2.25: (x+1.5)2=5+2.25=7.25.(x + 1.5)^2 = 5 + 2.25 = 7.25\text{.}

x=−1.5±7.25x = -1.5 \pm \sqrt{7.25}: x=1.192 58…x = 1.192\,58\ldots or x=−4.192 58…x = -4.192\,58\ldots

Check x=1.192 58x = 1.192\,58: 1.422 25+3.577 74−5≈01.422\,25 + 3.577\,74 - 5 \approx 0 ✓

x=1.19x = 1.19 or x=−4.19x = -4.19 (2 d.p.)

Question 6

Solve x2−7x+11=0x^2 - 7x + 11 = 0, giving your answers correct to 3 significant figures.

ShowHide solution

x2−7x=−11x^2 - 7x = -11. Half of −7-7 is −3.5-3.5, and (−3.5)2=12.25(-3.5)^2 = 12.25: (x−3.5)2=−11+12.25=1.25.(x - 3.5)^2 = -11 + 12.25 = 1.25\text{.}

x=3.5±1.25x = 3.5 \pm \sqrt{1.25}: x=4.618 03…x = 4.618\,03\ldots or x=2.381 97…x = 2.381\,97\ldots

Check x=2.381 97x = 2.381\,97: 5.673 78−16.673 79+11≈05.673\,78 - 16.673\,79 + 11 \approx 0 ✓

x=4.62x = 4.62 or x=2.38x = 2.38 (3 s.f.)

Question 7

Solve 3x2−12x+9=03x^2 - 12x + 9 = 0 by completing the square.

ShowHide solution

Divide both sides by 33: x2−4x+3=0x^2 - 4x + 3 = 0, so x2−4x=−3x^2 - 4x = -3.

Half of −4-4 is −2-2, and (−2)2=4(-2)^2 = 4: (x−2)2=1(x - 2)^2 = 1.

x−2=±1x - 2 = \pm 1, so x=3x = 3 or x=1x = 1.

Check in the original: 27−36+9=027 - 36 + 9 = 0 ✓ and 3−12+9=03 - 12 + 9 = 0 ✓

x=3x = 3 or x=1x = 1

Question 8

Solve 2x2−6x−7=02x^2 - 6x - 7 = 0, giving your answers correct to 2 decimal places.

ShowHide solution

Divide both sides by 22: x2−3x−3.5=0x^2 - 3x - 3.5 = 0, so x2−3x=3.5x^2 - 3x = 3.5.

Half of −3-3 is −1.5-1.5, and (−1.5)2=2.25(-1.5)^2 = 2.25: (x−1.5)2=3.5+2.25=5.75.(x - 1.5)^2 = 3.5 + 2.25 = 5.75\text{.}

x=1.5±5.75x = 1.5 \pm \sqrt{5.75}: x=3.897 92…x = 3.897\,92\ldots or x=−0.897 92…x = -0.897\,92\ldots

Check x=3.897 92x = 3.897\,92 in the original: 2(15.193 78)−23.387 52−7≈02(15.193\,78) - 23.387\,52 - 7 \approx 0 ✓

x=3.90x = 3.90 or x=−0.90x = -0.90 (2 d.p.)

Question 9

Solve, if possible, (a) x2+6x+10=0x^2 + 6x + 10 = 0 (b) x2−8x+16=0x^2 - 8x + 16 = 0.

ShowHide solution

(a) x2+6x=−10x^2 + 6x = -10. Add 99 to both sides: (x+3)2=−1(x + 3)^2 = -1. No real number squared is negative.

(b) x2−8x=−16x^2 - 8x = -16. Add 1616 to both sides: (x−4)2=0(x - 4)^2 = 0, so x=4x = 4. Check: 16−32+16=016 - 32 + 16 = 0 ✓

(a) There are no real solutions. (b) x=4x = 4 (two equal roots).

Question 10

Solve x(x−6)=4x(x - 6) = 4, giving your answers correct to 2 decimal places.

ShowHide solution

Expand: x2−6x=4x^2 - 6x = 4. The number is already on the right.

Half of −6-6 is −3-3, and (−3)2=9(-3)^2 = 9: (x−3)2=13(x - 3)^2 = 13.

x=3±13x = 3 \pm \sqrt{13}: x=6.605 55…x = 6.605\,55\ldots or x=−0.605 55…x = -0.605\,55\ldots

Check x=6.605 55x = 6.605\,55: 6.605 55×0.605 55≈46.605\,55 \times 0.605\,55 \approx 4 ✓

x=6.61x = 6.61 or x=−0.61x = -0.61 (2 d.p.)

Question 11

A rectangular parade square in a school in Bishan is 2020 m longer than it is wide, and its area is 12001200 m². Taking its width as xx m, form an equation and find the width and the length of the parade square, correct to 3 significant figures.

ShowHide solution

The length is (x+20)(x + 20) m, so x(x+20)=1200x(x + 20) = 1200, that is, x2+20x=1200x^2 + 20x = 1200.

Half of 2020 is 1010, and 102=10010^2 = 100: (x+10)2=1300(x + 10)^2 = 1300.

x=−10±1300x = -10 \pm \sqrt{1300}: x=26.055 51…x = 26.055\,51\ldots or x=−46.055 51…x = -46.055\,51\ldots

A width cannot be negative, so x=−46.1x = -46.1 is rejected. The length is 26.055 51+20=46.055 5126.055\,51 + 20 = 46.055\,51 m.

Check: 26.055 51×46.055 51≈120026.055\,51 \times 46.055\,51 \approx 1200 ✓

The parade square is 26.126.1 m wide and 46.146.1 m long (3 s.f.).

Question 12

A ball is kicked up from the ground. Its height, hh metres, tt seconds after it is kicked is given by h=20t−5t2h = 20t - 5t^2. Find the two times at which the ball is 1212 m above the ground, correct to 3 significant figures.

ShowHide solution

Put h=12h = 12: 20t−5t2=1220t - 5t^2 = 12. Collect the terms on the side that keeps t2t^2 positive: 5t2−20t+12=05t^2 - 20t + 12 = 0.

Divide both sides by 55: t2−4t+2.4=0t^2 - 4t + 2.4 = 0, so t2−4t=−2.4t^2 - 4t = -2.4.

Half of −4-4 is −2-2, and (−2)2=4(-2)^2 = 4: (t−2)2=1.6(t - 2)^2 = 1.6.

t=2±1.6t = 2 \pm \sqrt{1.6}: t=3.264 91…t = 3.264\,91\ldots or t=0.735 09…t = 0.735\,09\ldots

Both are positive, and both make sense: the ball passes 1212 m on the way up and again on the way down.

Check t=0.735 09t = 0.735\,09: 14.701 8−2.701 8≈1214.701\,8 - 2.701\,8 \approx 12 ✓

The ball is 1212 m high after 0.7350.735 s and after 3.263.26 s (3 s.f.).

Key Points

  • Completing the square solves every quadratic equation, whether it factorises or not.
  • Make the coefficient of x2x^2 equal to 11 (divide by it), move the number term to the right, add (p2)2\left(\frac{p}{2}\right)^2 to both sides, and write the left side as a square.
  • Take the square root with ±\pm: (x+3)2=7(x + 3)^2 = 7 gives x=−3±7x = -3 \pm \sqrt{7}.
  • Round only at the last line, to 2 decimal places or 3 significant figures as the question asks.
  • If the square equals a negative number, there are no real solutions; if it equals 00, there are two equal roots.
  • In a problem, reject a root the setting does not allow, such as a negative length.

Previous lesson1.1 Completing the Square Next lesson1.3 The Quadratic Formula

All Secondary 3 (Grade 9) lessons

Home Campus has lessons, practice questions with worked solutions and worksheets for Primary 3 to Secondary 2. Register free to practise and keep track of progress.

This lesson follows the Singapore Secondary 3 syllabus and was checked question by question before it was published. Spotted a mistake? Tell us.