Skip to main content
ScotlandMathsSyllabus dot point

How do you write a quadratic expression in the completed-square form, and what does that form tell you about the graph?

Writing a quadratic expression of the form x squared plus bx plus c in the completed-square form (x plus p) squared plus q, and using it to identify the turning point of the parabola.

A focused answer to the SQA National 5 Mathematics completing-the-square content, covering how to write a quadratic in the form (x + p) squared plus q, the link to the turning point and minimum value of the parabola, and how the method is used in Paper 1 non-calculator work.

Generated by Claude Opus 4.89 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. What completing the square does
  3. The method
  4. Reading the turning point
  5. Why the method works
  6. Examples in context
  7. Try this

What this dot point is asking

The SQA wants you to rewrite a quadratic expression x2+bx+cx^2 + bx + c in the completed-square form (x+p)2+q(x + p)^2 + q, and to use that form to state the turning point and minimum (or maximum) value of the parabola. At National 5 the coefficient of x2x^2 is 11, which keeps the method clean.

What completing the square does

A quadratic such as x2+bx+cx^2 + bx + c can always be rewritten as a single squared bracket plus a constant: (x+p)2+q(x + p)^2 + q. This completed-square form is useful because the squared bracket is never negative, so the smallest the whole expression can be is qq, reached when the bracket is zero. That tells you the turning point of the graph without any calculus.

The method

The key idea is that (x+p)2=x2+2px+p2(x + p)^2 = x^2 + 2px + p^2. Comparing this with x2+bxx^2 + bx, the coefficient of xx tells you 2p=b2p = b, so p=b2p = \dfrac{b}{2}. The square then carries an unwanted +p2+p^2, which you subtract back off.

Reading the turning point

In completed-square form y=(x+p)2+qy = (x + p)^2 + q, the bracket is zero when x=px = -p, and at that point y=qy = q. Because a squared term is never negative, this is the lowest point of an upward parabola.

The line of symmetry of the parabola passes vertically through the turning point, so for y=(x3)24y = (x - 3)^2 - 4 it is the line x=3x = 3. This is useful for sketching: once you have the turning point and you know whether the curve opens up or down, you can plot the y-intercept (the value of yy when x=0x = 0) and reflect it in the line of symmetry to get a second point quickly.

Why the method works

The whole trick rests on the identity (x+p)2=x2+2px+p2(x + p)^2 = x^2 + 2px + p^2. The middle term of the expanded bracket is 2px2px, so to match the bxbx in x2+bxx^2 + bx you need 2p=b2p = b, that is p=b2p = \tfrac{b}{2}. Squaring that half then produces a constant p2p^2 that was never in the original expression, so you subtract it straight back off. Seeing why you halve and subtract makes the steps memorable rather than mechanical, and it stops the most common error of forgetting the correction.

Examples in context

Completing the square answers "what is the best possible value" questions. If the cost of producing xx thousand items, in thousands of pounds, is modelled by C=x28x+25C = x^2 - 8x + 25, completing the square gives C=(x4)2+9C = (x - 4)^2 + 9. The cost is least when the bracket is zero, at x=4x = 4 thousand items, where the minimum cost is £9\pounds 9 thousand. The completed-square form reads the optimum straight off without trial and error.

Try this

Q1. Express x2+4x+1x^2 + 4x + 1 in the form (x+p)2+q(x + p)^2 + q. [2 marks]

  • Cue. (x+2)23(x + 2)^2 - 3.

Q2. Express x22x6x^2 - 2x - 6 in completed-square form. [2 marks]

  • Cue. (x1)27(x - 1)^2 - 7.

Q3. State the turning point of y=x2+8x+10y = x^2 + 8x + 10. [2 marks]

  • Cue. (x+4)26(x + 4)^2 - 6, so the turning point is (4,6)(-4, -6).

Exam-style practice questions

Practice questions written in the style of SQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

SQA National 5 20183 marksExpress x2+6x+1x^2 + 6x + 1 in the form (x+p)2+q(x + p)^2 + q.
Show worked answer →

Halve the coefficient of xx: half of 66 is 33, so p=3p = 3 (1 mark). Write (x+3)2(x + 3)^2, which expands to x2+6x+9x^2 + 6x + 9, so it is 99 too big and we subtract 99 (1 mark). Then add the constant: x2+6x+1=(x+3)29+1=(x+3)28x^2 + 6x + 1 = (x + 3)^2 - 9 + 1 = (x + 3)^2 - 8 (1 mark). Markers reward p=3p = 3, the correction of 9-9, and the final q=8q = -8.

SQA National 5 20214 marksExpress x28x+3x^2 - 8x + 3 in the form (x+p)2+q(x + p)^2 + q and hence write down the minimum value of the expression.
Show worked answer →

Half of 8-8 is 4-4, so p=4p = -4 (1 mark). (x4)2=x28x+16(x - 4)^2 = x^2 - 8x + 16, which is 1616 too big, so subtract 1616 (1 mark). Then x28x+3=(x4)216+3=(x4)213x^2 - 8x + 3 = (x - 4)^2 - 16 + 3 = (x - 4)^2 - 13 (1 mark). The smallest value of (x4)2(x - 4)^2 is 00 (when x=4x = 4), so the minimum value of the expression is 13-13 (1 mark). Markers reward the completed-square form and the correct minimum value q=13q = -13.

Related dot points

Sources & how we know this