Algebra › Section I · Quadratic equations and functions › Topic I.2

Completing the square

Some quadratics refuse to factor. Completing the square refuses to be refused — it converts any quadratic into a perfect square plus a leftover, and the square root property finishes the job.

The shape worth becoming

Completing the square works because some quadratics are secretly perfect squares: \(x^2 + 10x + 25 = (x + 5)^2\), and the pattern generalises. In every perfect square trinomial with leading coefficient 1, the constant is the square of half the \(x\)-coefficient: \(\left(\frac{10}{2}\right)^2 = 25\), and \(\left(\frac{8}{2}\right)^2 = 16\) makes \(x^2 + 8x + 16 = (x + 4)^2\). That single observation — the magic constant is always half the middle coefficient, squared — powers everything in this topic.

The completing move

To solve \(x^2 + 8x - 4 = 0\), first walk the constant across: \(x^2 + 8x = 4\). The left side is two-thirds of a perfect square; it wants \(\left(\frac{8}{2}\right)^2 = 16\). Balance demands adding 16 to both sides: \(x^2 + 8x + 16 = 20\), which is \((x + 4)^2 = 20\). The square root property takes over: \(x + 4 = \pm 2\sqrt{5}\), so \(x = -4 \pm 2\sqrt{5}\). The equation had no integer factors; completing the square manufactured a perfect square and solved it anyway.

Worked example: a full solve, step by step

Solve \(x^2 + 6x - 1 = 0\). Move the constant: \(x^2 + 6x = 1\). Half the middle coefficient is 3, squared is 9 — add it to both sides: \(x^2 + 6x + 9 = 10\), that is \((x + 3)^2 = 10\). Square roots: \(x + 3 = \pm\sqrt{10}\), so \(x = -3 \pm \sqrt{10}\). Checking the decimal sanity: \(-3 + 3.16 \approx 0.16\), and substituting \(0.16\) back gives approximately \(0.03 + 0.98 - 1 \approx 0\). Two irrational solutions, found without the quadratic formula.

When the leading coefficient is not 1

The recipe needs the \(x^2\)-coefficient to be 1, so when it is not, divide everything by it first. For \(3x^2 - 12x - 6 = 0\): divide by 3 to get \(x^2 - 4x = 2\), then complete the square — half of \(-4\) is \(-2\), squared is 4 — giving \((x - 2)^2 = 6\) and \(x = 2 \pm \sqrt{6}\). The division is not optional decoration: adding \((b/2)^2\) only creates a perfect square when the \(x^2\)-coefficient is exactly 1. Skip the division, and the whole method silently breaks.

Worked example: fractions welcome

Solve \(2x^2 + 6x - 5 = 0\). Divide by 2: \(x^2 + 3x = \frac{5}{2}\). Half of 3 is \(\frac{3}{2}\), squared is \(\frac{9}{4}\): \(x^2 + 3x + \frac{9}{4} = \frac{5}{2} + \frac{9}{4} = \frac{19}{4}\). The left side is \(\left(x + \frac{3}{2}\right)^2\), so \(x + \frac{3}{2} = \pm\frac{\sqrt{19}}{2}\) and \(x = \frac{-3 \pm \sqrt{19}}{2}\). Fractions appear and survive; the method does not require tidy numbers — that is precisely its strength over factoring.

Vertex form: the same trick, wearing graph clothes

Completing the square does double duty in graphing: it converts \(y = x^2 - 6x + 11\) into vertex form. Take the \(x\)-terms aside: \(x^2 - 6x + 9 = (x - 3)^2\), so adding and subtracting 9 gives \(y = (x - 3)^2 + 2\) — the parabola opens upward from the vertex \((3, 2)\), and the minimum value of the whole expression, 2, is now readable at a glance. One technique, two payoffs: equations solved here, parabolas located and minimums found in the graphing topic. The half-then-square constant is the same in both jobs.

Why this technique earns its keep

Completing the square is not just another solver to add to the pile — it is the technique that produces the quadratic formula, by running the same steps on \(ax^2 + bx + c = 0\) with letters instead of numbers: divide by \(a\), add \(\left(\frac{b}{2a}\right)^2\), factor the perfect square, take square roots. Every formula step is a completing-the-square step, which means memorising the formula without ever completing a square is using an answer whose question was never understood. The pattern also reappears throughout later mathematics — in integration technique in calculus, in rewriting circle equations, and wherever a quadratic hides inside a different problem — so the half-then-square habit learned here compounds for the rest of the course.

Common mistakes to avoid

First, adding the magic constant to one side only — the square must appear on both sides or the balance is broken. Second, squaring the whole \(x\)-coefficient instead of half of it: the constant for \(x^2 + 8x\) is 16, not 64. Third, skipping the division when \(a \neq 1\), which quietly ruins the perfect square. Fourth, dropping the \(\pm\) — \((x + 3)^2 = 10\) has two square roots, and forgetting the negative one halves the answer set. Fifth, mishandling the sign: half of \(-4\) is \(-2\), and its square is still positive 4.

Key takeaways

A quadratic with leading coefficient 1 becomes a perfect square by adding the square of half the \(x\)-coefficient — \(x^2 + bx + \left(\frac{b}{2}\right)^2 = \left(x + \frac{b}{2}\right)^2\). To solve: move the constant, add that magic number to both sides, factor the square, and finish with the square root property and its \(\pm\). When \(a \neq 1\), divide through by \(a\) before completing. Fractions in the arithmetic are normal, not a mistake. The same move converts a quadratic to vertex form \(y = a(x - h)^2 + k\), and applied with letters, it is the derivation of the quadratic formula.

Flashcards

Flashcard

Perfect square trinomial

x² + bx + (b/2)² = (x + b/2)²

Constant = half, squared.

Test your understanding

Question 1 of 5

What constant completes x² + 12x + ___ as a perfect square?

Question 2 of 5

Solve x² + 6x − 1 = 0 by completing the square.

Question 3 of 5

Solve 2x² − 4x − 2 = 0 by completing the square.

Question 4 of 5

Rewrite y = x² + 8x + 20 in vertex form. What is the vertex?

Question 5 of 5

After completing the square you reach (x + 3/2)² = 19/4. What are the solutions?

← Previous topicNext topic →