What completing the square does
A quadratic like x² + 6x + 5 is awkward because x appears twice. Completing the square rewrites it so that x appears once only, inside a bracket that is squared:
The whole method rests on one expansion you must know cold:
Why it is called “completing the square”
Think of x² + 6x as areas: one x by x square and two strips of width 3. Slide the strips into a corner and a 3 × 3 tile is missing. Add that tile to complete the square — then subtract it again so nothing changes.
Example 1Write x² + 8x + 3 in the form (x + p)² + q.
Example 2Write x² − 6x + 11 in completed square form, and hence show it is always positive.
Odd numbers and a leading coefficient
When b is odd
Nothing changes — p is simply a fraction. Keep it as a fraction, never as a rounded decimal, because the question almost always wants exact values.
x² + 7x → p = 72, p² = 494
When the coefficient of x² is not 1
The halving rule only works when the x² term is a single x². So factor the leading coefficient out of the first two terms only, complete the square inside the bracket, then multiply back out.
Example 3Write x² + 5x − 1 in the form (x + p)² + q.
Example 4Write 2x² + 12x + 7 in the form a(x + p)² + q.
Solving a quadratic by completing the square
Once x appears only once, you can simply undo the operations one at a time. This is the method the paper demands when it says “solve by completing the square” or “give your answers in exact form”.
The four moves
- Complete the square: (x + p)² + q = 0
- Move the constant: (x + p)² = −q
- Square root both signs: x + p = ±−q
- Subtract p: x = −p ± −q
Example 5Solve x² − 4x − 7 = 0 by completing the square. Give exact answers.
Reading the turning point off the form
This is the real payoff. The graph of y = a(x − h)² + k is a parabola whose turning point (vertex) is at (h, k), and whose line of symmetry is the vertical line x = h.
If a > 0
The parabola opens upwards (a valley). The turning point is a minimum, and q is the smallest value the expression can take.
If a < 0
The parabola opens downwards (a hill). The turning point is a maximum, and q is the largest value the expression can take.
Completing-the-square machine
Change a, b and c and watch the halving, the square that is added and subtracted, and the vertex move. Try a = 1, b = 5 to see the fraction case.
More worked examples
Example 6Write 5 + 4x − x² in the form q − (x + p)² and hence write down its greatest value.
Example 7(a) Write 3x² − 12x + 5 in the form a(x + p)² + q. (b) Write down the coordinates of the turning point of y = 3x² − 12x + 5. (c) Solve 3x² − 12x + 5 = 0, giving exact answers.
Your turn
Practice set
- Write x² + 10x + 3 in the form (x + p)² + q.
- Write x² − 3x + 5 in the form (x + p)² + q, using fractions.
- Write 2x² − 8x + 3 in the form a(x + p)² + q.
- Solve x² + 6x − 2 = 0 by completing the square, giving exact answers.
- Write down the turning point and the line of symmetry of y = (x − 4)² + 7, and say whether it is a maximum or a minimum.
- Show that x² − 8x + 20 is always positive.
- p = 5, q = 3 − 25 → (x + 5)² − 22
- p = −32, p² = 94, q = 5 − 94 = 114 → (x − 32)² + 114
- 2(x² − 4x) + 3 = 2[(x − 2)² − 4] + 3 = 2(x − 2)² − 8 + 3 → 2(x − 2)² − 5
- (x + 3)² − 9 − 2 = 0 → (x + 3)² = 11 → x = −3 ± 11 (0.32 or −6.32 to 2 d.p.)
- The bracket is (x − 4) so h = 4: (4, 7), line of symmetry x = 4, a minimum because a = 1 > 0.
- p = −4, q = 20 − 16 = 4 → (x − 4)² + 4. A square is never negative, so the expression is at least 4, which is greater than 0 — always positive.
Key points to remember
- Halve, square, subtract: x² + bx + c = (x + p)² + q with p = b2 and q = c − p².
- The sign of b is carried into the bracket: x² − 6x gives (x − 3)².
- If b is odd, p is a fraction — keep it exact, never round.
- If the coefficient of x² is not 1, factor it out of the first two terms only, then multiply the whole bracket — including the number you subtracted — back out.
- To solve: isolate the square, take the root of both sides with ±, then rearrange. Leave surds unless decimals are asked for.
- y = a(x − h)² + k has turning point (h, k) and line of symmetry x = h; a minimum when a > 0, a maximum when a < 0.
- A square is never negative. That single sentence proves “always positive” and gives the greatest or least value.
- Always expand your completed square to check — it must return the original quadratic exactly.
Where next?
📚 Take the full lesson
Completing the Square — objectives, a starter, worked examples, practice and an exit check, taught step by step.
✏️ Practise exam questions
Quadratic Equations — 25 exam-style questions worth 98 marks, with full answers and the mark scheme.
Progress is saved on this device only and appears on the notes home page.