GCSE · Maths · OCR · Spec J560

Completing the square

Can't factorise it? Don't panic. Turn it into a square plus a leftover and the solving gets much easier.

Maths · Completing the square

Which way does the method go?

Tap your way down. At each fork there's one question to ask yourself, and the answer sends you a different way.

Expression or equation? → Is a = 1? → Is k positive or negative?

6 different routes through the method.

On Start: a quadratic with an x² term. 2 branches to choose from.

Maths · The picture behind the name

Complete the square, literally

Take x² + 6x + 5. Split the 6x equally into two strips, 3x on each side of the x² square. Fill in the grid to see what the corner of the square needs.

Grid: each cell is its row times its column
x
xx²3x
3x

Type x² as x^2 if you cannot type ². Spaces do not matter.

Maths · Spot the sign trap

What happens to the extra square?

You're completing the square on x² − 8x + 3. Half of −8 is −4, so the bracket is (x − 4)². But (x − 4)² on its own isn't x² − 8x + 3, so you need to fix the constant.

Which is closest to what you'd do next?
How sure are you?

When a isn't 1

Problem

Write 2x² − 12x + 22 in the form a(x + p)² + q.

Maths · Solving

Solve it, step by step

Solve x² + 6x − 2 = 0 by completing the square. This one doesn't factorise neatly, which is exactly when completing the square earns its keep. Give both solutions to 2 decimal places.

  1. Step 1: p, the number in the bracket
  2. Step 2: k, the right-hand side
  3. Step 3: The positive square root of k
  4. Step 4: The larger solution
  5. Step 5: The smaller solution
  6. Final question: On your own
What you are given
QuantityValue
Coefficient of x6
Constant term-2
  1. Step 1 of 5: p, the number in the bracket

    The equation is x² + bx + c = 0. Half the coefficient of x gives p, so the bracket is (x + p)². What is p?

    Give your answer to 1 decimal place.

  2. Step 2 of 5: k, the right-hand sideOpens when the step before it is right.
  3. Step 3 of 5: The positive square root of kOpens when the step before it is right.
  4. Step 4 of 5: The larger solutionOpens when the step before it is right.
  5. Step 5 of 5: The smaller solutionOpens when the step before it is right.

Predict, then check

Think about what the line y = 16 and the curve have in common when they meet.

The horizontal line y = 16 is drawn across the graph of y = (x + 3)². Where do they meet?

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Turn a quadratic into a square plus a leftover, then solve it with one square root.

What you need to know

  • Completing the square rewrites ax² + bx + c as a(x + p)² + q, so x appears in just one place.
  • Perfect squares look like (x + a)². For example, x² + 6x + 9 = (x + 3)². But x² − 36 and (x + 1)(x + 4) are not.
  • Have a goYour friend says x² + 6x + 8 is a perfect square, because it looks just like x² + 6x + 9. Is she right?

    No. (x + 3)² is x² + 6x + 9, so x² + 6x + 8 is one short of it.

    Matching the first two terms isn't enough. The constant has to fill the corner of the square too.

  • Picture an x² square with the x terms split equally down two sides. The corner that completes the square is the constant you need.
  • With a = 1, p is half the coefficient of x. For example, x² − 6x + 8 = (x − 3)² − 1.
  • Have a goYou're completing the square on x² + 10x + 1. What is p?

    p = 5

    p is half the coefficient of x, and half of 10 is 5. The 1 doesn't change p.

  • If the bracket number is negative, you still subtract its square, because squaring a negative gives a positive. Then include the original constant.
  • An odd coefficient of x means fractions or decimals. Fractions are usually easier and avoid recurring decimals.
  • Have a goCompleting the square on x² + 9x. What goes in the bracket as p, written as a fraction?

    9/2, so the bracket is (x + 9/2)²

    Half of an odd number is a fraction. Fractions are neater than 4.5 and never go recurring.

  • For an expression with a ≠ 1, factor out a. Dividing through only works for an equation, where both sides are divided.
  • To solve (x + p)² = k, square root both sides to get ±, then use inverse operations. That gives two solutions.
  • If (x + p)² equals a negative number, there are no real solutions. You can't square root a negative and get a real value.
  • Completing the square is one of several ways to solve a quadratic, and it's handy when the quadratic won't factorise easily.

The big picture

Completing the square rewrites ax² + bx + c as a(x + p)² + q, so x appears just once. That makes solving easy: square root both sides to get two solutions, or spot that there are no real solutions.

Key points

1Completing the square: ax² + bx + c = a(x + p)² + q.
2When a = 1, p is half the coefficient of x. Subtract p², then include the original constant.
3For an expression with a ≠ 1, factor out a. Only an equation lets you divide both sides.
4From (x + p)² = k: a positive k gives ± and two solutions, and a negative k gives no real solutions.
5Give answers to the stated accuracy, using exact values in your calculator until the end.

Worked example

Problem

Write x² + 5x + 1 in the form (x + p)² + q.

⚠ Watch out

Giving only one solution. Your calculator's √ button shows just the positive root, so you have to add the ± yourself and work out both solutions.

🧠

Memory hook

Half it. Square it. Take it off. Then include the old constant.

✓

Check yourself

Close the page and complete the square on x² − 12x + 5. Did you subtract the square of −6 and include the 5? Answer: (x − 6)² − 31.

Flashcards

(14)
What is completing the square?
Rewriting ax² + bx + c as an equivalent expression of the form a(x + p)² + q.
When the x² coefficient is 1, how do you find p?
Halve the coefficient of x. For x² − 6x + 8, p = −3, giving (x − 3)² − 1.
What does a perfect square look like, and what doesn't?
A perfect square is (x + a)², like x² + 8x + 16 = (x + 4)². x² − 36 and (x + 1)(x + 4) are not perfect squares.
A bracket holds a negative number, like (x − 3)². Do you add or subtract its square?
Always subtract it. Squaring a negative gives a positive, so the bracket brings in an extra amount to take off. Then include the original constant.
The coefficient of x is odd. Work in fractions or decimals?
Fractions. They're generally easier to manipulate and avoid recurring decimals.
How do you complete the square for ax² + bx + c when a ≠ 1?
Factor out a, complete the square inside the bracket, then multiply the outer bracket out.
Why can't you divide an expression by a to get rid of it?
Dividing changes the expression. It's only valid for an equation, where both sides are divided.
How do you solve (x + p)² = k?
Square root both sides to get ±, then use inverse operations to find x.
Why does square rooting give two solutions?
Every positive number has a positive and a negative square root. A calculator's √ button gives only the positive one.
How do you solve ax² + bx + c = 0 when a ≠ 1 by completing the square?
Divide both sides by the coefficient of x² first. It may be negative or a fraction. Then complete the square.
What if (x + p)² equals a negative number?
There are no real solutions, because a negative number can't be square rooted to give a real value. The graph wouldn't cross the x-axis.
How do you give solutions to a stated degree of accuracy?
Use exact values in your calculator, then round at the end to the stated number of decimal places or significant figures.
How can a graph check a solution of (x + 3)² = 16?
The graph of y = (x + 3)² meets the line y = 16 at (−7, 16) and (1, 16), giving x = −7 and x = 1.
When is completing the square especially useful?
It's one of several methods for solving a quadratic equation, and it's useful when the quadratic can't be easily factorised.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More OCR GCSE Maths topics

See the full OCR Maths curriculum →

How this lesson was checked. This OCR GCSE Maths (specification J560)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 18 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.

Helpful guides for parents and students