Resources For Teachers For Tutors For Students & Parents AI New Pricing
Year 10 Maths Advanced Quadratics

Solving Quadratics by Completing the Square

20 practice questions 1 video lesson Theory + worked examples

Solving by completing the square adds the square of half the coefficient of \(x\) to both sides, so the left side becomes a perfect square, then takes the square root of both sides. For \(x^2+6x-7=0\) this gives \((x+3)^2=16\), so \(x=1\) or \(x=-7\). This NSW Year 10 Advanced maths method also proves the quadratic formula (NESA outcome MA5‑EQU‑P‑02).

You will complete the square for equations with whole-number, fraction and surd answers, divide by the leading coefficient first, and rearrange equations with brackets and fractions. You will show that an equation has no real solutions, find when an equation with a constant has real solutions, find the width of a swimming pool, and solve equations with letters as coefficients. Finally you will derive the quadratic formula. It is part of Year 10 Advanced Quadratics.

Practice 20 questions
Practice questions

Every question with a fully worked solution.

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

Theory

To solve a quadratic by completing the square, rewrite it as \((x+h)^2=k\), then take the square root of both sides: \(x=-h\pm\sqrt{k}\). This Year 10 Advanced maths page covers even and odd coefficients, non-monic quadratics, exact surd answers, equations with no real solutions and worded problems.

A perfect square is an expression such as \(x^2+10x+25=(x+5)^2\). The constant \(25\) is the square of half the coefficient of \(x\): half of \(10\) is \(5\), and \(5^2=25\).

Completing the square means adding that number to make a perfect square. In an equation, add it to both sides so the equation stays balanced.

Once the equation is \((x+h)^2=k\), take the square root of both sides. Both the positive and the negative root work, so \(x+h=\pm\sqrt{k}\).

If \(k\gt 0\) there are two solutions, if \(k=0\) there is one, and if \(k\lt 0\) there are no real solutions, because the square of a real number is never negative. The method only works directly when the coefficient of \(x^2\) is \(1\), so divide through by it first.

Completing the square as an areaA square of side x, two rectangles 3 by x and 3 by x, and a dashed corner square 3 by 3 with area 9. The pieces x squared plus 6x make the large square of side x plus 3 with a corner missing. Adding 9 completes it: x squared plus 6x plus 9 equals (x plus 3) squared. xΒ² 3x 3x 9 x 3 x 3 xΒ² + 6x is the square with a corner missing. Add 3Β² = 9: xΒ² + 6x + 9 = (x + 3)Β²
Half the coefficient of \(x\) is the side of the missing corner. Its square is the number you add to both sides.
Two solutions symmetric about the centreA number line from negative 1 to 9. The centre 4 is marked. Gold arrows of length root 13 go left and right from 4 to the two red solutions, 4 minus root 13 and 4 plus root 13. Below: (x minus 4) squared equals 13, so x minus 4 equals plus or minus root 13. βˆ’10123456789 4 √13 √13 4 βˆ’ √13 4 + √13 (x βˆ’ 4)Β² = 13 β‡’ x βˆ’ 4 = ±√13
\((x-h)^2=k\) means \(x\) is a distance \(\sqrt{k}\) from \(h\), in either direction. That is where the \(\pm\) comes from.

The key identity: add the square of half the coefficient of \(x\).

\[x^2+bx+\left(\dfrac{b}{2}\right)^2=\left(x+\dfrac{b}{2}\right)^2 \qquad (x+h)^2=k \;\Rightarrow\; x=-h\pm\sqrt{k}\]
x2+bx+(b2)2=(x+b2)2
ExpressionHalf of \(b\)AddPerfect square
\(x^2+12x\)\(6\)\(36\)\((x+6)^2\)
\(x^2-14x\)\(-7\)\(49\)\((x-7)^2\)
\(x^2+7x\)\(\dfrac{7}{2}\)\(\dfrac{49}{4}\)\(\left(x+\dfrac{7}{2}\right)^2\)
\(x^2-\dfrac{2}{3}x\)\(-\dfrac{1}{3}\)\(\dfrac{1}{9}\)\(\left(x-\dfrac{1}{3}\right)^2\)
\(x^2+6mx\)\(3m\)\(9m^2\)\((x+3m)^2\)
Letters as coefficients. Treat the letter as a number. For \(x^2+6mx+5m^2=0\): \(x^2+6mx+9m^2=4m^2\), so \((x+3m)^2=4m^2\), \(x+3m=\pm 2m\) and \(x=-m\) or \(x=-5m\). If the first three terms already form a perfect square, such as \(x^2-2tx+t^2\), write them as \((x-t)^2\) straight away.
Decimals and fractions. With \(0.2x^2+0.8x-0.5=0\), divide every term by \(0.2\): \(x^2+4x-2.5=0\). Half of \(4\) is \(2\), so \((x+2)^2=6.5\). Simplify a root such as \(\sqrt{6.5}=\sqrt{\dfrac{26}{4}}=\dfrac{\sqrt{26}}{2}\) for an exact answer. With an equation of two fractions, cross-multiply first to reach a quadratic.

How to solve by completing the square

  1. Rearrange into \(ax^2+bx+c=0\): expand brackets and clear fractions.
  2. Divide every term by \(a\) if \(a\neq 1\).
  3. Move the constant to the right side: \(x^2+bx=-c\).
  4. Add \(\left(\dfrac{b}{2}\right)^2\) to both sides.
  5. Write the left side as \(\left(x+\dfrac{b}{2}\right)^2\) and simplify the right side to a single number \(k\).
  6. Check the sign of \(k\). If \(k\lt 0\) there are no real solutions. Otherwise take \(\pm\sqrt{k}\) and solve for \(x\). Simplify the surd.

Other question types

  1. Show no real solutions: complete the square and show that a square equals a negative number.
  2. Find the values of \(k\): write the quadratic side as \((x+h)^2+c\). Real solutions need the other side minus \(c\) to be at least \(0\) (Example 3).
  3. General results: the same steps work with letters. Applied to \(ax^2+bx+c=0\), dividing by \(a\) and adding \(\left(\dfrac{b}{2a}\right)^2\) is how the quadratic formula is built.
  4. Word problems: form the equation, complete the square, then reject any solution the situation does not allow (Example 4).
Example 1 β€” Even coefficient of x
Solve by completing the square:
(i) \(x^2+6x-16=0\)
(ii) \(x^2-8x+3=0\)
Solution

(i) Move the constant. Half of \(6\) is \(3\), so add \(3^2=9\) to both sides.

\(x^2+6x\)\(=\)\(16\)
\(x^2+6x+9\)\(=\)\(16+9\)
\((x+3)^2\)\(=\)\(25\)
\(x+3\)\(=\)\(\pm 5\)
\(x\)\(=\)\(\boldsymbol{2} \text{ or } \boldsymbol{x=-8}\)

(ii) Half of \(-8\) is \(-4\), so add \((-4)^2=16\).

\(x^2-8x\)\(=\)\(-3\)
\(x^2-8x+16\)\(=\)\(-3+16\)
\((x-4)^2\)\(=\)\(13\)
\(x-4\)\(=\)\(\pm\sqrt{13}\)
\(x\)\(=\)\(\boldsymbol{4\pm\sqrt{13}}\)
(x−4)2=13
Example 2 β€” Odd b and a non-monic quadratic
Solve exactly:
(i) \(x^2+5x-3=0\)
(ii) \(2x^2+6x-3=0\)
Solution

(i) Half of \(5\) is \(\dfrac{5}{2}\), so add \(\dfrac{25}{4}\). Write \(3\) as \(\dfrac{12}{4}\).

\(x^2+5x+\dfrac{25}{4}\)\(=\)\(\dfrac{12}{4}+\dfrac{25}{4}\)
\(\left(x+\dfrac{5}{2}\right)^2\)\(=\)\(\dfrac{37}{4}\)
\(x+\dfrac{5}{2}\)\(=\)\(\pm\dfrac{\sqrt{37}}{2}\)
\(x\)\(=\)\(\boldsymbol{\dfrac{-5\pm\sqrt{37}}{2}}\)

(ii) First divide every term by \(2\), so the coefficient of \(x^2\) is \(1\).

\(x^2+3x\)\(=\)\(\dfrac{3}{2}\)
\(x^2+3x+\dfrac{9}{4}\)\(=\)\(\dfrac{6}{4}+\dfrac{9}{4}\)
\(\left(x+\dfrac{3}{2}\right)^2\)\(=\)\(\dfrac{15}{4}\)
\(x\)\(=\)\(\boldsymbol{\dfrac{-3\pm\sqrt{15}}{2}}\)
x=−3±152
Example 3 β€” When are there solutions?

(i) Show that \(x^2-4x+7=0\) has no real solutions.
(ii) For which values of \(k\) does \(x^2+8x+20=k\) have real solutions? Solve it when \(k=13\).
Solution

(i) Complete the square.

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

A square is never negative, so \((x-2)^2=-3\) is impossible. There are no real solutions.

(ii) Write the left side in the form \((x+h)^2+c\): \(x^2+8x+20=(x+4)^2+4\).

\((x+4)^2+4\)\(=\)\(k\)
\((x+4)^2\)\(=\)\(k-4\)

The left side is at least \(0\), so real solutions need \(k-4\ge 0\), that is \(\boldsymbol{k\ge 4}\). When \(k=13\):

\((x+4)^2\)\(=\)\(9\)
\(x+4\)\(=\)\(\pm 3\)
\(x\)\(=\)\(\boldsymbol{-1} \text{ or } \boldsymbol{x=-7}\)
Example 4 β€” A garden bed
A rectangular garden bed is \(6\) m longer than it is wide, and its area is \(30\ \text{m}^2\). Let the width be \(x\) m. Find the width exactly and correct to \(2\) decimal places, and find the length.
Solution

Area \(=\) width \(\times\) length:

\(x(x+6)\)\(=\)\(30\)
\(x^2+6x+9\)\(=\)\(30+9\)
\((x+3)^2\)\(=\)\(39\)
\(x\)\(=\)\(-3\pm\sqrt{39}\)

\(-3-\sqrt{39}\) is negative, but a width must be positive. Reject it.

\(x\)\(=\)\(\boldsymbol{-3+\sqrt{39}}\)
\(\)\(\approx\)\(\boldsymbol{3.24}\text{ m}\)

Length \(=x+6=3+\sqrt{39}\approx\boldsymbol{9.24}\) m. Check: \(3.245\times 9.245\approx 30\).

Common pitfalls

Add to both sides. Adding \(9\) only to the left of \(x^2+6x=7\) changes the equation. It must be \(x^2+6x+9=7+9\).
Halve, then square. For \(x^2-10x\), add \((-5)^2=25\), not \(10^2\) or \(5\).
Divide by a first. In \(3x^2+12x=5\), adding \(36\) does not make a perfect square. Divide by \(3\) first: \(x^2+4x=\dfrac{5}{3}\), then add \(4\).
Keep both roots. \((x-1)^2=16\) gives \(x-1=4\) or \(x-1=-4\), so \(x=5\) or \(x=-3\). Writing only \(+4\) loses a solution.
Check the sign of the bracket. \(x^2-12x+36=(x-6)^2\), with the same sign as the \(x\) term. Expand your bracket to check.

Frequently asked questions

What does completing the square mean?

It means adding the number that turns \(x^2+bx\) into a perfect square. That number is \(\left(\dfrac{b}{2}\right)^2\), so \(x^2+6x\) becomes \(x^2+6x+9=(x+3)^2\).

How do you complete the square when the coefficient of x is odd?

Use a fraction. Half of \(5\) is \(\dfrac{5}{2}\), so add \(\dfrac{25}{4}\). Write the other side over \(4\) as well so the fractions are easy to add.

What if the coefficient of x squared is not 1?

Divide every term of the equation by that coefficient first, then complete the square as usual. The fractions this creates are normal.

How does completing the square show there are no solutions?

If you reach a square equal to a negative number, such as \((x-2)^2=-3\), there is no real solution, because squaring a real number never gives a negative result.

Is completing the square related to the quadratic formula?

Yes. Completing the square on the general equation \(ax^2+bx+c=0\) produces the quadratic formula, so both methods always give the same solutions.