How to Solve Quadratic Equations by Completing the Square
Completing the square rewrites a quadratic such as x² + 6x + 8 into the form (x + p)² + q, which lets you solve equations exactly and read a parabola’s vertex straight off the equation. This Edexcel IGCSE Maths guide works through the method step by step, for a = 1 and for a larger coefficient, then uses it to solve and to graph, with worked examples and free auto-marked practice questions below.
Core Ideas of Completing the Square
What does "Completing the Square" produce?
We aim to write a quadratic as \( a(x+p)^2 + q \). For solving, arrange to \( (x+p)^2 = q \). When \( a\ne1 \), factor \( a \) from the \( x^2 \) and \( x \) terms only and complete the square inside the bracket.
Completing the Square: Step by Step
Each step is shown applied to \(x^2 + 6x + 8\).
- Halve the x-coefficient. Divide the coefficient of \(x\) by 2.\(6 \div 2 = 3\)
This gives the number that goes inside the bracket with \(x\).
- Write the squared bracket. Use the halved value inside \((x + \square)^2\). Expanding it shows the hidden constant.\((x + 3)^2 = x^2 + 6x + 9\)
The bracket reproduces the \(x^2\) and \(6x\) terms, but it also creates a \(+9\).
- Subtract the square you added. \((x+3)^2\) contains a \(+9\) that wasn't in the original; subtract it straight away.\((x + 3)^2 - 9\)
This keeps the expression equivalent to the original \(x^2 + 6x\).
- Bring in the original constant. Add the constant term from the original quadratic to finish.\((x + 3)^2 - 9 + 8 = (x + 3)^2 - 1\)
Combine \(-9 + 8 = -1\) to get the final completed-square form.
Worked Examples
💡 Example 1: Solve by completing the square
Solve \( x^2 + 6x + 5 = 0 \).
What's happening?
Move the constant to the right-hand side.
Halve the x-coefficient: \(6 \div 2 = 3\). Square it: \(3^2 = 9\). Add 9 to both sides.
The left side is now a perfect square.
Square-root both sides (remember \(\pm\)).
Subtract 3 from each value to find the two solutions.
💡 Example 2: \( a\ne1 \), factor first
Solve \( 2x^2 + 8x + 6 = 0 \).
What's happening?
Factor \(2\) from the \(x^2\) and \(x\) terms only; the \(+6\) stays outside.
Inside the bracket: halve \(4 \to 2\), square \(2 \to 4\). Write \((x+2)^2 - 4\).
Expand the \(2\) across the constants: \(2 \times (-4) = -8\).
Combine: \(-8 + 6 = -2\). Then isolate \((x+2)^2\).
Square-root both sides and solve.
Using Completing the Square for Graphing
Write \( ax^2+bx+c \) as \( a(x+p)^2+q \). The vertex is \((-p,\,q)\); axis of symmetry \( x=-p \). If \( a>0 \) the graph opens up; if \( a<0 \) it opens down.
💡 Example 3: Rewrite for graphing
Vertex \((2,-3)\); axis \(x=2\); opens up since \(a=1>0\).
💡 Example 4: \( a\ne1 \)
Vertex \((2,17)\); axis \(x=2\); opens down since \(a=-3<0\).
🔑 Key Points
- Mantra: halve it, square it, take it away.
- When \( a\ne1 \), factor \( a \) from \( x^2 \) and \( x \) first.
- Solving: once \((x+p)^2=q\), write \( x=-p\pm\sqrt{q} \).
- Graphing: \( a(x+p)^2+q \) gives vertex \((-p,q)\) and axis \(x=-p\).
- Keep one equals per line for method marks.
⚠️ Ways it Can Appear in an Exam
- Rewrite \( ax^2+bx+c \) in completed-square form.
- Show that \( ax^2+bx+c \) can be written as \( a(x+p)^2+q \).
- Solve a quadratic by completing the square.
- Find vertex and axis by completing the square.
- Choose a parameter so an equation has one, two, or no real roots.
- Match equations to sketches by comparing \( a,p,q \).