Home›Study Resources›Maths›
How do you complete the square?
Maths
National 5

How do you complete the square?

Completing the square rewrites x² + bx + c in the form (x + p)² + q. Halve the coefficient of x to find p. Then subtract p² and add the original constant to find q. Example: Write x² + 6x + 2 in the form (x + p)² + q. p = 6 ÷ 2 = 3 (x + 3)² = x² + 6x + 9 x² + 6x + 2 = (x + 3)² − 9 + 2 = (x + 3)² − 7 Answer: (x + 3)² − 7

Completing the square rewrites x² + bx + c in the form (x + p)² + q. Halve the coefficient of x to find p. Then subtract p² and add the original constant to find q.

Worked example

Write x² + 6x + 2 in the form (x + p)² + q.

  1. p = 6 ÷ 2 = 3
  2. (x + 3)² = x² + 6x + 9
  3. x² + 6x + 2 = (x + 3)² − 9 + 2 = (x + 3)² − 7

Answer: (x + 3)² − 7

Reviewed by

Want one-to-one support?

One-to-one online tuition can help you build confidence in your subject. Find a tutor who teaches your course.

Find a Tutor

Learn face to face in Glasgow

Prefer in-person lessons? Visit the ExpertTutor Glasgow Southside centre.

See the centre