Resources For Teachers For Tutors For Students & Parents AI New Pricing
Year 10 Maths - 10 Quadratic Expressions and Equations

Factorising By Completing The Square

20 practice questions 1 video lesson Theory + worked examples
Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 1 video(s)
  • Factorising By Completing The Square - Video - Factorising by completing the square Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

Completing the square rewrites \(x^2 + bx + c\) as \(\left(x + \dfrac{b}{2}\right)^2\) minus or plus a number. When the result is a square minus a positive number, the difference of two squares factorises it, with surds if needed. This Year 10 maths page covers odd and fractional coefficients, a leading coefficient other than \(1\), a negative \(x^2\) term, smallest values, and how to show a quadratic has no real factors.

A perfect square \((x + h)^2 = x^2 + 2hx + h^2\) has a constant equal to the square of half the coefficient of \(x\). So \(x^2 + bx\) needs \(\left(\dfrac{b}{2}\right)^2\) added to become a perfect square: that is completing the square.

To keep the expression equal, add and subtract the same number: \(x^2 + bx + c\) \(= \left(x + \dfrac{b}{2}\right)^2 - \left(\dfrac{b}{2}\right)^2 + c\).

If the leftover number is negative, as in \((x - 1)^2 - 6\), write \(6 = (\sqrt{6})^2\) and use the difference of two squares. If it is positive, as in \((x - 1)^2 + 6\), the expression is always positive and has no real linear factors.

The form \(a(x + h)^2 + k\) is called the completed-square form. It also shows the smallest (or largest) value of the quadratic, \(k\), when \(x = -h\).

Completing the square for x squared + 6xAn x by x square and two strips of 3 by x arranged as an almost complete square of side x + 3. The missing corner is a 3 by 3 square of area 9, shown dashed in red. So x squared + 6x + 9 = (x + 3) squared. x² 3x 3x 9 x 3 x 3
\(x^2 + 6x\) is a square of side \(x + 3\) with a \(3 \times 3\) corner missing. Adding \(\left(\dfrac{6}{2}\right)^2 = 9\) completes the square.
Steps for factorising by completing the squareFive steps shown with x squared + 6x + 5. Halve the coefficient of x and square it: 9. Add and subtract 9. Write (x + 3) squared - 4. Use the difference of two squares: (x + 3 - 2)(x + 3 + 2). Simplify to (x + 1)(x + 5). 1 halve b and square it x² + 6x + 5: (6 ÷ 2)² = 9 2 add and subtract it x² + 6x + 9 − 9 + 5 3 write the square (x + 3)² − 4 4 difference of squares (x + 3 − 2)(x + 3 + 2) 5 simplify (x + 1)(x + 5)
Completing the square turns any quadratic into a square minus a number, which is a difference of two squares when the number is positive.
\[x^2 + bx + c = \left(x + \dfrac{b}{2}\right)^2 - \left(\dfrac{b}{2}\right)^2 + c\]
x2+bx+c=(x+b2)2−(b2)2+c
\[(x + h)^2 - d^2 = (x + h - d)(x + h + d)\]
(x+h)2−d2=(x+h−d)(x+h+d)
Perfect-square test. \(x^2 + bx + c\) is a perfect square exactly when \(c = \left(\dfrac{b}{2}\right)^2\); for \(a^2x^2 + bx + c^2\) the middle term must be \(\pm 2acx\). This finds a missing coefficient in one step.
Other letters and surd coefficients. The method works for any coefficient: \(x^2 - 2\sqrt{5}x\) needs \((\sqrt{5})^2 = 5\); \(x^2 - 6kx\) needs \(9k^2\). A repeated bracket, such as \(u = x - 2\), can be treated as the variable.

How to factorise by completing the square

  1. Prepare: if the \(x^2\) coefficient is not \(1\), take it out of the \(x\) terms (or of everything). If it is negative, take out \(-1\).
  2. Halve the coefficient of \(x\), square it, and add and subtract that number.
  3. Write the perfect square and collect the constants: \((x + h)^2 - d^2\).
  4. Factorise as a difference of two squares, write any surd in simplest form, and simplify each bracket.
  5. Check by expanding, or by substituting a value of \(x\).

Using the completed square

  1. Finding unknowns: if the factors are \((x + h + d)(x + h - d)\), they differ by \(2d\). A given difference of factors, or a given perfect square, fixes \(d\) and hence the constant.
  2. Areas: factorising an area expression gives possible length and width; their difference is \(2d\).
  3. No real factors: if the completed square is \((x + h)^2 + k\) with \(k > 0\), the expression is always positive, so it has no real linear factors (Example 4).
  4. Two letters: in \(x^2 - y^2 + 6y - 9\), the last three terms are \(-(y - 3)^2\), so the expression is \(x^2 - (y - 3)^2 = (x - y + 3)(x + y - 3)\).
Example 1 — Completing the square

(i) Fill the gaps: \(x^2 + 10x + \underline{\quad} = (x + \underline{\quad})^2\) and \(x^2 - 5x + \underline{\quad} = (x - \underline{\quad})^2\).
(ii) By completing the square, factorise \(x^2 + 10x + 21\).
Solution

(i) Halve the coefficient of \(x\) and square it.

\(x^2 + 10x + 25\)\(=\)\(\boldsymbol{(x + 5)^2}\)
\(x^2 - 5x + \dfrac{25}{4}\)\(=\)\(\boldsymbol{\left(x - \dfrac{5}{2}\right)^2}\)

(ii) Add and subtract \(25\), then use the difference of two squares.

\(x^2 + 10x + 21\)

\(\)\(=\)\(x^2 + 10x + 25 - 25 + 21\)
\(\)\(=\)\((x + 5)^2 - 4\)
\(\)\(=\)\((x + 5)^2 - 2^2\)
\(\)\(=\)\((x + 5 + 2)(x + 5 - 2)\)
\(\)\(=\)\(\boldsymbol{(x + 7)(x + 3)}\)
x2+10x+21=(x+5)2−4

This trinomial could also be factorised with product and sum. Completing the square works even when that fails, as Example 2 shows.

Example 2 — Surd factors
By completing the square, factorise, with surds in simplest form:
(i) \(x^2 + 10x + 18\)
(ii) \(x^2 + 3x - 1\)
Solution

(i) No integers multiply to \(18\) and add to \(10\), so complete the square.

\(x^2 + 10x + 18\)

\(\)\(=\)\((x + 5)^2 - 25 + 18\)
\(\)\(=\)\((x + 5)^2 - 7\)
\(\)\(=\)\((x + 5)^2 - (\sqrt{7})^2\)
\(\)\(=\)\(\boldsymbol{(x + 5 - \sqrt{7})(x + 5 + \sqrt{7})}\)

(ii) Half of \(3\) is \(\dfrac{3}{2}\), and \(\left(\dfrac{3}{2}\right)^2 = \dfrac{9}{4}\).

\(x^2 + 3x - 1\)

\(\)\(=\)\(\left(x + \dfrac{3}{2}\right)^2 - \dfrac{9}{4} - \dfrac{4}{4}\)
\(\)\(=\)\(\left(x + \dfrac{3}{2}\right)^2 - \left(\dfrac{\sqrt{13}}{2}\right)^2\)
\(\)\(=\)\(\boldsymbol{\left(x + \dfrac{3 - \sqrt{13}}{2}\right)\left(x + \dfrac{3 + \sqrt{13}}{2}\right)}\)
x2+10x+18=(x+5−7)(x+5+7)

\(\dfrac{13}{4} = \left(\dfrac{\sqrt{13}}{2}\right)^2\), because \(\sqrt{\dfrac{13}{4}} = \dfrac{\sqrt{13}}{\sqrt{4}}\).

Example 3 — When the x² coefficient is not 1

(i) Write \(2x^2 + 12x + 7\) in the form \(a(x + h)^2 + k\), then factorise it fully with surds.
(ii) Write \(8 - 2x - x^2\) in the form \(c^2 - (x + h)^2\) and factorise it.
Solution

(i) Take out \(2\) from the \(x\) terms only, and complete the square inside.

\(2x^2 + 12x + 7\)\(=\)\(2(x^2 + 6x) + 7\)
\(\)\(=\)\(2[(x + 3)^2 - 9] + 7\)
\(\)\(=\)\(\boldsymbol{2(x + 3)^2 - 11}\)

To factorise, take out \(2\) from both terms: \(\sqrt{\dfrac{11}{2}} = \dfrac{\sqrt{11}}{\sqrt{2}} = \dfrac{\sqrt{22}}{2}\).

\(\)\(=\)\(2\left[(x + 3)^2 - \dfrac{11}{2}\right]\)
\(\)\(=\)\(\boldsymbol{2\left(x + 3 - \dfrac{\sqrt{22}}{2}\right)\left(x + 3 + \dfrac{\sqrt{22}}{2}\right)}\)

(ii) Take out \(-1\) from the \(x\) terms.

\(8 - 2x - x^2\)\(=\)\(8 - (x^2 + 2x)\)
\(\)\(=\)\(8 - [(x + 1)^2 - 1]\)
\(\)\(=\)\(\boldsymbol{9 - (x + 1)^2}\)
\(\)\(=\)\((3 - x - 1)(3 + x + 1)\)
\(\)\(=\)\(\boldsymbol{(2 - x)(4 + x)}\)
2x2+12x+7=2(x+3)2−11
Example 4 — Reasoning with completed squares
(i) Show that \(x^2 - 4x + 7\) cannot be written as a product of real linear factors.
(ii) Find the smallest value of \(x^2 + 6x + 14\), and the value of \(x\) that gives it.
Solution

(i) Complete the square.

\(x^2 - 4x + 7\)\(=\)\((x - 2)^2 - 4 + 7\)
\(\)\(=\)\((x - 2)^2 + 3\)

A square is never negative, so \((x - 2)^2 + 3 \ge 3\) for every \(x\). The expression is a square plus a number, not a difference of two squares, and it is never \(0\). A product of linear factors \((x - r)(x - s)\) would be \(0\) at \(x = r\), so no real linear factors exist.

(ii) Complete the square: half of \(6\) is \(3\), and \(3^2 = 9\).

\(x^2 + 6x + 14\)\(=\)\((x + 3)^2 - 9 + 14\)
\(\)\(=\)\((x + 3)^2 + 5\)

The square is smallest, \(0\), when \(x + 3 = 0\). So the smallest value is \(\boldsymbol{5}\), when \(\boldsymbol{x = -3}\).

Check: \((-3)^2 + 6(-3) + 14 = 9 - 18 + 14 = 5\). ✓

Common pitfalls

Halve before you square. For \(x^2 + 8x\), add \(\left(\dfrac{8}{2}\right)^2 = 16\), not \(8^2 = 64\).
Add and subtract. Adding \(16\) without subtracting it changes the expression. Write \(+16 - 16\).
Factor out a first. For \(3x^2 + 12x\), complete the square on \(x^2 + 4x\) inside \(3(\ldots)\), and multiply the subtracted square by \(3\) when you remove the bracket.
Simplify the surd. \(\sqrt{\dfrac{5}{4}} = \dfrac{\sqrt{5}}{2}\) and \(\sqrt{12} = 2\sqrt{3}\). Leave answers in simplest form.
A plus sign means no real factors. \((x + 1)^2 + 4\) is not a difference of two squares and does not factorise with real numbers.

Frequently asked questions

How do you complete the square?

Take half of the coefficient of \(x\) and square it. Add and subtract that number, then write the first three terms as a squared bracket: \(x^2 + 8x + 3\) \(= (x + 4)^2 - 16 + 3\) \(= (x + 4)^2 - 13\).

Why do you add and subtract the same number?

Adding a number makes a perfect square, and subtracting the same number keeps the expression equal to the original. Together they add zero.

How do you factorise a quadratic with surds?

Complete the square to get \((x + h)^2 - d\). Write \(d\) as \((\sqrt{d})^2\), then use \(a^2 - b^2 = (a - b)(a + b)\).

How do you complete the square when the coefficient of x squared is not 1?

Take the coefficient out of the x squared and x terms, complete the square inside the bracket, then multiply the subtracted square by that coefficient when you remove the bracket.

How can you tell a quadratic has no real factors?

Complete the square. If you get a bracket squared plus a positive number, the expression is always positive, so it is never zero and has no real linear factors.