Euler Hall — free maths guides

Solve a quadratic equation by completing the square

Move the constant, complete the square, take roots and solve. The idea in plain words, a worked example, and a check with the answers shown — part of the free Algebra I guides.

The four-step routine

Completing the square solvesax2+bx+c=0ax^{2} + bx + c = 0 by turning the left side into a single square. Once one square equals a number, the previous section's property finishes it.

For a monic quadratic, the four steps are:

  1. 1. Move the constant across.
  2. 2. Halve the middle coefficient, square it, add it to both sides.
  3. 3. Write the left side as a bracket squared.
  4. 4. Take both signs of the root and solve.

Takex2+6x−7=0x^{2} + 6x - 7 = 0.

Step 1.x2+6x=7x^{2} + 6x = 7.

Step 2. Half of66 is33, and32=93^{2} = 9:x2+6x+9=16x^{2} + 6x + 9 = 16.

Step 3.(x+3)2=16(x + 3)^{2} = 16.

Step 4.x+3=±4x + 3 = \pm 4, sox=1x = 1 orx=−7x = -7.

Both check:1+6−7=01 + 6 - 7 = 0 and49−42−7=049 - 42 - 7 = 0.

Why this route is worth knowing

The formula does the same job faster. So why learn this?

Three reasons. First, the derivation of the quadratic formula is this method applied toax2+bx+c=0ax^{2} + bx + c = 0 with letters instead of numbers, so understanding one gives you the other. Second, some equations only look like quadratics — an equation inx4x^{4} andx2x^{2}, or in a square rooted expression — and no formula applies until the square is completed. Third, the completed form(x−h)2+k(x-h)^{2} + k reads off the vertex and the minimum value directly, which is what a graph question usually wants.

The method also never needs a discriminant: whether the right side is positive, zero or negative at step 3 tells you the count of solutions immediately.

Worked example with an odd coefficient

Solvex2+5x+4=0x^{2} + 5x + 4 = 0.

Step 1.x2+5x=−4x^{2} + 5x = -4.

Step 2. Half of55 is52\frac{5}{2}, whose square is254\frac{25}{4}. Add to both sides: x2+5x+254=−4+254=94.x^{2} + 5x + \frac{25}{4} = -4 + \frac{25}{4} = \frac{9}{4}.

Step 3.(x+52)2=94\left(x + \frac{5}{2}\right)^{2} = \frac{9}{4}.

Step 4.x+52=±32x + \frac{5}{2} = \pm\frac{3}{2}, sox=−5+32=−1x = \frac{-5 + 3}{2} = -1 orx=−5−32=−4x = \frac{-5-3}{2} = -4.

Step 5. Check.(−1)2+5(−1)+4=0(-1)^{2} + 5(-1) + 4 = 0 and16−20+4=016 - 20 + 4 = 0. Both correct.

Working with fractions throughout is what keeps this exact. Writing254\frac{25}{4} as6.256.25 also works, but a decimal that does not terminate would break the check.

By the end you can
  • Move the constant, complete the square, take roots and solve
  • Add the completing constant to both sides without losing a sign
  • Work exactly with a fractional completing constant
  • Say how many solutions exist from the right side of the squared form
Check yourself

(a) Solvex2+2x−8=0x^{2} + 2x - 8 = 0 by completing the square.

(b) Solvex2−6x+5=0x^{2} - 6x + 5 = 0.

(c) What does(x−1)2=−4(x - 1)^{2} = -4 tell you about the solutions?

Answers

(a)x2+2x=8x^{2} + 2x = 8, thenx2+2x+1=9x^{2} + 2x + 1 = 9, so(x+1)2=9(x+1)^{2} = 9 andx=2x = 2 orx=−4x = -4.

(b)x2−6x=−5x^{2} - 6x = -5, thenx2−6x+9=4x^{2} - 6x + 9 = 4, so(x−3)2=4(x-3)^{2} = 4 andx=5x = 5 orx=1x = 1.

(c) The left side is a square and so is never negative, so the equation has no real solutions.

Work out where to start — free, no accountAnswer six real questions — free, no account