Lemmara logo

The Quadratic Formula and Completing the Square

Completing the square (including a number or a minus in front of x²), turning points, and solving with the quadratic formula.

109real exam questions on this topic
  • 9 steps
  • 12 min
  • 6 syllabuses

Try a real exam question on this

0580/23 · May/Jun 2026 · Q26 · 4 marks · Solve it step by step, the way the examiner marks it.

Loading the animated solution…

See the solution as text
Text version of the solution

Express the quadratic 3x² − 6x + 5 in completed-square form a(x + b)² + c, then state the coordinates of the turning point of its graph.

(a) 3 marks

Rewrite 3x² − 6x + 5 as a(x + b)² + c, giving the values of a, b and c.

  1. 3x² − 6x + 5 = 3(x² − 2x) + 5
  2. = 3[(x − 1)² − 1] + 5
  3. = 3(x − 1)² − 3 + 5 = 3(x − 1)² + 2

Answer 3(x − 1)² + 2

(b) 1 mark

Give the coordinates of the turning point of y = 3x² − 6x + 5.

  1. Minimum when x − 1 = 0, so x = 1, y = 2
  2. (1, 2)

Answer (1, 2)

The lesson, step by step

Step 1 of 9

Two Tools for Quadratics

Some quadratics do not factorise. You have two tools for them.

Completing the square

Rewrites the quadratic. Gives the turning point and exact answers.

The formula

Solves the equation when it equals 0. Best for decimal answers.

Key idea

Read the question: “write in the form …” means completing the square; “give your answers to 2 decimal places” means the formula.

See this step move in Lemmara

Step 2 of 9

Completing the Square

Completing the square means rewriting a quadratic so all the x's sit inside one squared bracket. Watch it one small move at a time.

Key idea

Why does this work? (x plus half of b) squared multiplies out to x squared plus b x, plus an extra (half of b) squared.

So x squared plus b x is that bracket squared, take away the extra. The value has not changed, but now x appears in only one place, which makes it easy to solve or find the turning point.

Worked example

  1. 1

    — The question. Look at the and the 6x first. The +2 waits at the end.

  2. 2

    — Halve the 6 to get 3. Why half? Because gives 3x twice, and 3x + 3x = 6x.

  3. 3

    — Check by expanding. We get the and the 6x we wanted, plus an extra 9 we did not ask for.

  4. 4

    — So take the 9 away again. Now both sides are equal.

  5. 5

    — Bring back the +2 that was waiting.

  6. 6

    — −9 + 2 = −7. This is the form , with p = 3 and q = −7.

Memory trick

Halve it, square it, take it away.

Common mistake

Adding the 9 instead of taking it away. The bracket already makes the 9, so you must remove it.

See this step move in Lemmara

Step 3 of 9

A Number in Front of x²

The halving trick only works when stands alone. If it has a number in front, take that number out of the x terms first. Then do the same trick inside the bracket.

Worked example

  1. 1

    — The question. has a 3 in front, so we cannot halve straight away.

  2. 2

    — Take the 3 out of the first two terms only: and . The +5 stays outside.

  3. 3

    — Now work inside the bracket, like the last card. Half of 4 is 2, and makes an extra 4, so take 4 away.

  4. 4

    — Put that back in place of .

  5. 5

    — Open the big bracket. The 3 multiplies both parts, so 3 × (−4) = −12.

  6. 6

    — −12 + 5 = −7. Done.

Key idea

Check by expanding back: . It matches, so the answer is right.

Common mistake

Writing 3(x + 2)² − 4 + 5. The −4 is inside the 3's bracket, so it becomes −12.

See this step move in Lemmara

Step 4 of 9

A Negative x² (Extended/Higher)

Questions like “write in the form ” work the same way. The only new move: take out the minus sign first.

Worked example

  1. 1

    — The question. The x² has a minus, so we cannot halve straight away.

  2. 2

    — Take the minus out of the x terms. It flips each sign inside: becomes .

  3. 3

    — Complete the square inside. Half of −8 is −4, and makes an extra 16, so take 16 away.

  4. 4

    — Put that back in place of .

  5. 5

    — Open the outer bracket. The minus in front turns −16 into +16.

  6. 6

    — 5 + 16 = 21. So a = 21 and b = 4.

Common mistake

Writing 5 − 16 = −11. The minus outside the bracket flips the −16 to +16.

With −3 in front. Exams also write , with a number bigger than 1 in front of the minus. Take out the whole −3.

Worked example

  1. 1

    — The question. The x² has −3 in front. Aim for the form .

  2. 2

    — Take −3 out of the x terms only: and . The 7 stays outside.

  3. 3

    — Complete the square inside. Half of −4 is −2, and makes an extra 4, so take 4 away.

  4. 4

    — Put that back in place of .

  5. 5

    — Open the big bracket. The −3 multiplies the −4: (−3) × (−4) = +12.

  6. 6

    — 7 + 12 = 19. So a = 19, b = 3 and c = 2.

Common mistake

Writing 7 − 12 = −5. It is −3 times −4, and minus times minus is plus, so +12.

See this step move in Lemmara

Step 5 of 9

Shortcut: One Formula for Any Quadratic

If you do the last two cards with letters instead of numbers, you get one formula that does the whole job for any :

Formula

Read , and from the question, with their signs. Then work out two numbers: goes inside the bracket, and goes on the end.

Common mistake

Watch the letters. Here a, b and c are the numbers in the question. Exam questions often use a, b and c for the answer instead, e.g. “write in the form a(x + b)² + c”. For that answer's a, b, c are 3, 2 and −7, not 3, 12 and 5. Read the letters from the question.

Worked example

  1. 1

    — The example from two cards ago. a = 3, b = 12, c = 5.

  2. 2

    — The number inside the bracket: x + 2.

  3. 3

    — The number on the end. Square b first: .

  4. 4

    — Put a, the bracket and the end number together. Same answer as before.

Worked example

  1. 1

    — The last card's 5 + 8x − x², with x² written first. a = −1, b = 8, c = 5. Keep the minus on a.

  2. 2

    — So the bracket is x − 4.

  3. 3

    — Dividing by a negative flips the sign: , and taking away −16 adds 16.

  4. 4

    — The same as from the last card.

Key idea

It also gives the turning point straight away: . For that is (−2, −7).

Common mistake

Forgetting the minus when a is negative. Always write a with its sign before you divide.

A letter in front. The formula still works when a coefficient is a letter, like q. Treat q as a number and keep it in the answer.

Worked example

  1. 1

    — The question. Written as , it has a = −q, b = 12, c = q.

  2. 2

    — The number inside the bracket, so the bracket is . Dividing by −2q makes it negative.

  3. 3

    — Work out the fraction on the end first: , and dividing by −4q makes it −36/q.

  4. 4

    — Taking away a negative adds it.

  5. 5

    — Put them together: the end number, then a = −q times the bracket squared.

See this step move in Lemmara

Step 6 of 9

When Half Is a Fraction

When the x number is odd, half of it is a fraction. The method is the same; keep the fraction exact.

Worked example

  1. 1

    — The question. 5 is odd, so half of it is not a whole number.

  2. 2

    — Half of 5 is . Keep it as a fraction, not 2.5, so the next line stays exact.

  3. 3

    — The bracket makes an extra 25/4. Square the top and the bottom.

  4. 4

    — Take the extra away, and bring back the +1.

  5. 5

    — Write 1 as 4/4 so the bottoms match.

  6. 6

    — Done. p = 5/2 and q = −21/4.

Key idea

A surd works the same way. For , half of is , and . So it is .

Common mistake

Squaring 5/2 as 25/2. Square the bottom too: 2² = 4, so it is 25/4.

See this step move in Lemmara

Step 7 of 9

Using the Completed Square

Why bother completing the square? Because the finished form answers two more exam questions almost for free.

1. Find the turning point of

Worked example

  1. 1

    — A squared number is never negative. The smallest it can ever be is 0.

  2. 2

    — The bracket is 0 when x = −3.

  3. 3

    — Put x = −3 in. The bracket disappears, leaving y = −7.

  4. 4

    — This is the lowest point of the curve, so the least value is −7. Notice: the 3 changes sign, the −7 does not.

Key idea

If the x² is negative, the curve is upside down, so the turning point is the highest point. For the turning point is (4, 21), and 21 is the greatest value.

2. Solve

Worked example

  1. 1

    — Add 7 to both sides, so the squared bracket is alone.

  2. 2

    — Square root both sides. Both and square to 7, so keep the ±.

  3. 3

    — Take 3 from both sides. This is the exact answer, and ± means two solutions.

  4. 4

    — Only if the question asks for decimals: −3 + 2.646 and −3 − 2.646, to 3 s.f.

Key idea

One completed square, three answers: the turning point, the least value, and the solutions.

3. “Hence solve” with a bracket in place of x

Worked example

  1. 1

    — The question. It is with (y + 3) wherever x was.

  2. 2

    — So call the bracket x. Now it is the equation we just solved.

  3. 3

    — We know , so y + 3 equals those answers.

  4. 4

    — Take 3 from both sides: −3 − 3 = −6.

  5. 5

    — Only if asked for decimals: −6 + 2.646 and −6 − 2.646, to 3 s.f.

Common mistake

Expanding the brackets. “Hence” means use the answer you already have: spot the repeated bracket and shift the answers.

See this step move in Lemmara

Step 8 of 9

The Quadratic Formula

When a quadratic equals 0 and will not factorise, this formula always works:

Formula

Key idea

Why does this work? The formula is what you get by completing the square on a x squared plus b x plus c equals 0, using letters instead of numbers.

It was worked out once for every quadratic, so you can put in your a, b and c instead of redoing that algebra each time.

is the number in front of , the number in front of , and the number on its own. The ± means you work it out twice: once with +, once with −.

Worked example

  1. 1

    — The question. It already equals 0. Read off a = 2, b = 5, c = −4, and keep the minus on c.

  2. 2

    — Work out the part under the square root first. Put c in brackets so its minus is not lost.

  3. 3

    — −4 × 2 × (−4) = +32, because minus times minus is plus.

  4. 4

    — Put it all in the formula: −b is −5, and the bottom is 2a = 4. Keep √57 exact for now.

  5. 5

    — The + version: √57 = 7.5498…, so (−5 + 7.5498) ÷ 4 = 0.637 to 3 s.f.

  6. 6

    — The − version: (−5 − 7.5498) ÷ 4 = −3.137…, which is −3.14 to 3 s.f.

Common mistake

Losing the minus in c. Put c in brackets: −4 × 2 × (−4).

When b is negative. Exams often give the x term a minus. Here is how to handle it.

Worked example

  1. 1

    — The question. Read off a = 2, b = −7, c = −3. This time b has a minus too.

  2. 2

    — The top of the formula starts with −b. Minus a minus is plus, so −b = 7.

  3. 3

    — A negative squared is positive. Keep the brackets.

  4. 4

    — Put c in brackets, as before.

  5. 5

    — −4 × 2 × (−3) = +24, because minus times minus is plus.

  6. 6

    — Put it all in: 7 on top, 2a = 4 on the bottom.

  7. 7

    — The + version: √73 = 8.544…, so (7 + 8.544) ÷ 4 = 3.886…, which is 3.89 to 2 d.p.

  8. 8

    — The − version: (7 − 8.544) ÷ 4 = −0.386…, which is −0.39 to 2 d.p.

Common mistake

Typing −7² on a calculator. It gives −49, because the calculator squares 7 first. Type (−7)², which is 49.

Key idea

Write the formula with your numbers in before you press anything. That line earns marks even if a later slip spoils the answer.

Key idea

In 628, the Indian mathematician Brahmagupta wrote a rule, in words, for solving quadratic equations. It follows the same steps as the formula you use today, about 1,000 years before the letters and symbols existed.

See this step move in Lemmara

Step 9 of 9

Which Method? Read the Question

The wording tells you which tool.

You seeYou do
“In the form (x + p)² + q”Complete the square
“In the form a − (x − b)²”Take out the minus, then complete
“Turning point” or “least value”Complete the square, read it off
“To 2 decimal places”Use the formula
“In the form p ± √q” or “exact”Complete the square, then solve. Keep the √
It factorisesSee Solving Quadratics by Factorising

Key idea

On a formula question, write a, b and c down first, with their signs.

See this step move in Lemmara

More real exam questions on this

Solve one in Lemmara and see where every mark goes.

All 109 questions on this topic

Lemmara is an independent study tool, not affiliated with or endorsed by Cambridge International Education or Pearson Edexcel. The lessons and worked examples are Lemmara’s own.

Try a real exam question on this

Solve it →