My Math Studio  ·  Precalculus

9.3. Completing the Square

10/10 Mastery
Watch the video
Optional
Do the practice set
Required
Take the mastery quiz
Required

First, a method that does not depend on luck

\(x^2 + 6x + 2 = 0\) has two perfectly good answers, and no pair of integers will ever find them. Factoring worked last time because somebody chose the numbers so that it would. Change the constant from 8 to 2 and the search for two integers with product 2 and sum 6 simply fails, not because the equation is harder, but because its answers are irrational.

Completing the square stops hunting for a perfect square and builds one. It works on every quadratic there is, which is why it is worth learning even though it is slower, and because everything that comes after is built out of it.

Where the method gets its name

\(x^2 + 6x\), a square, two strips, and a corner that is missing
Take the \(6x\) and split it into two strips of \(3x\), one down the side and one along the bottom. What you have is nearly a square of side \(x+3\): all that is missing is the small corner, and that corner is \(3 \times 3 = 9\).

So \(x^2 + 6x + 9\) is \((x+3)^2\), exactly. The number you add is always the square of half the middle coefficient, because half of it is what goes on each of the two sides.
That is the whole idea, and it is worth carrying as a picture rather than a rule: halve the middle coefficient, square it, and that is the missing corner. Everything below is bookkeeping around this one move.

The five steps

\(x^2 + 6x + 2 = 0\)
Exercise 5a. The coefficient of \(x^2\) is already 1, so step one is free.
\(x^2 + 6x = -2\)
1. Move the constant across. Leave only the \(x^2\) and \(x\) terms on the left: they are the square and the strips.
\(\left(\tfrac{6}{2}\right)^2 = 3^2 = 9\)
2. Halve the middle coefficient and square it. This is the missing corner.
\(x^2 + 6x + 9 = -2 + 9\)
3. Add it to both sides. Adding to one side only would change the equation.
\((x+3)^2 = 7\)
4. Factor the left, tidy the right. The left is always \(\left(x + \tfrac{b}{2}\right)^2\): you built it that way, so no searching is needed.
\(x + 3 = \pm\sqrt{7}\)
5. Take the square root of both sides, and write the \(\pm\), as before.
\(x = -3 \pm \sqrt{7}\)
Subtract 3. Two answers, \(-3+\sqrt{7}\) and \(-3-\sqrt{7}\), and neither is an integer.
If the squared term has a coefficient, divide it out first
Step 2 halves the middle coefficient, and that only builds the right corner when the squared term is a plain \(x^2\). So if \(a \ne 1\), divide every term by \(a\) before you start. \[3x^2 + 6x + 2 = 0 \;\longrightarrow\; x^2 + 2x + \tfrac{2}{3} = 0\] Dividing an equation by a non-zero number never changes its roots, so nothing is lost, and the fractions this produces are usually easier than they look, because the constant is about to move across anyway.
Divide every term, including the constant
\(3x^2 + 6x + 2 = 0\) does not become \(x^2 + 2x + 2 = 0\). The 2 has to be divided as well. A quick check: put your new equation's constant back and see whether multiplying the whole thing by 3 returns the original.
A negative squared term divides out the same way
\(-x^2 + 3x + 1 = 0\) divides by \(-1\) to give \(x^2 - 3x - 1 = 0\), and every sign changes. From there the method runs as usual. \[-4x^2 - 10x + 5 = 0 \;\longrightarrow\; x^2 + \tfrac{5}{2}x - \tfrac{5}{4} = 0\] Dividing by \(-4\) flips all three signs at once. It is the fiddliest start on the sheet and the rest is ordinary.
Half of a fraction, then squared: do it in two separate moves
With \(b = \tfrac{5}{2}\), half of it is \(\tfrac{5}{4}\), and squaring gives \(\tfrac{25}{16}\). Trying to do both at once is where this goes wrong. Halve first, write it down, then square what you wrote.

Exercise 5  ·  all twelve, completed and solved

Four of these would have factored. Parts (d), (e), (f) and (j) come out to integers and fractions, and you met three of them when solving by factoring. That is not a mistake in the exercise: it is the point. Completing the square gets the same answer factoring would, which is the evidence that the method is sound before you turn it loose on the ones that cannot be factored.

© 2026 S. R. Kingan. All rights reserved. Free for your own study. No copying or redistribution without written permission. Terms of use