Skip to content
spmaddmath.com.my
Tuition

Study

SyllabusFormulasMethodsExam & PapersTools
LocationsPricingBlogOur TeachersContact
EN

Method · Quadratic Functions

How to Complete the Square

To complete the square, rewrite ax2+bx+cax^2+bx+c in the form a(x+p)2+qa(x+p)^2+q. The point (p, q)(-p,\ q) is the vertex, so you can read the minimum or maximum value straight from qq.

What completing the square is for

Completing the square is a way of rewriting a quadratic expression ax2+bx+cax^2+bx+c in the tidy form a(x+p)2+qa(x+p)^2+q, often called vertex form. The two forms describe exactly the same curve, but the second one hands you information the first one hides.

From a(x+p)2+qa(x+p)^2+q we can read the turning point of the parabola at once: its coordinates are (p, q)(-p,\ q). If a>0a>0 the curve opens upward and qq is the minimum value; if a<0a<0 it opens downward and qq is the maximum value.

In Add Math this single skill unlocks minimum and maximum problems, the axis of symmetry, sketching parabolas, and even solving quadratic equations when factorising is awkward.

We reach for vertex form because it turns a hard question into a reading exercise. Once a quadratic sits as a(x+p)2+qa(x+p)^2+q, the smallest value the squared bracket can take is zero, so the whole expression is never smaller than qq when a>0a>0, the minimum is handed to you without calculus and without a graph.

This is a core Form 4 skill in the Quadratic Functions chapter, and it feeds directly into the range of a function, the axis of symmetry x=px=-p, and the direction the curve opens. Getting it solid early makes later topics much easier to follow.

When to use this method

Reach for completing the square whenever a question asks for the minimum value, the maximum value, or the turning point of a quadratic function. The wording often says "express in the form a(x+p)2+qa(x+p)^2+q" and then "state the minimum point".

It is also the right tool when a quadratic will not factorise neatly and you still need its roots, or when you are asked for the range of a quadratic function. If you see a parabola sketch with its vertex marked, or a phrase like "least value", that is your cue.

Because the vertex form makes the symmetry obvious, quadratic-function questions built on this method appear in both Paper 1 and Paper 2.

Watch also for optimisation-style word problems, greatest area, least cost, maximum height, that hide a quadratic inside a real-world story. Rewriting the expression in vertex form gives the best value directly, and the value of xx that achieves it, without any guessing.

The steps

Here is the full procedure. When a leading coefficient is present, work in this order:

  1. 1

    Make the coefficient of x2x^2 equal to 1

    If a1a\neq 1, factor aa out of the x2x^2 and xx terms only, and leave the constant outside the bracket.

  2. 2

    Halve the coefficient of xx

    Take the number in front of xx inside the bracket, halve it, and call the result pp. This pp is what goes inside (x+p)2(x+p)^2.

  3. 3

    Add and subtract the square

    Add p2p^2 and subtract p2p^2 inside the bracket so the value is unchanged, then group the first three terms as a perfect square (x+p)2(x+p)^2.

  4. 4

    Multiply the bracket back out

    Expand the factor aa across the p2-p^2 term you created, and combine it with the constant left outside.

  5. 5

    Write the vertex form and read the answer

    State the result as a(x+p)2+qa(x+p)^2+q; the turning point is (p, q)(-p,\ q), and qq is the minimum (if a>0a>0) or the maximum (if a<0a<0).

Keep the value unchanged

Every time you add p2p^2 inside the bracket you must subtract the same p2p^2, so you are really adding zero. That is what lets you rewrite the expression without ever changing it.

Worked example

Try this yourself first, then check each line against the solution.

Q1[4 marks]

Express f(x)=2x2+8x+5f(x)=2x^2+8x+5 in the form a(x+p)2+qa(x+p)^2+q. Hence state the minimum point of the graph of ff.

Show worked solution

Start by factoring 2 out of the terms that contain xx, keeping the constant +5+5 outside the bracket:

f(x)=2(x2+4x)+5f(x)=2(x^2+4x)+5

The coefficient of xx inside the bracket is 4. Halve it to get 2, so p=2p=2 and p2=4p^2=4.

Add and subtract 4 inside the bracket:

f(x)=2(x2+4x+44)+5f(x)=2\left(x^2+4x+4-4\right)+5

Group the first three terms as a perfect square:

f(x)=2[(x+2)24]+5f(x)=2\left[(x+2)^2-4\right]+5

Multiply the 2 across the bracket and simplify the constants:

f(x)=2(x+2)28+5=2(x+2)23f(x)=2(x+2)^2-8+5=2(x+2)^2-3

So a=2a=2, p=2p=2 and q=3q=-3. Because a=2>0a=2>0, the parabola opens upward, so q=3q=-3 is the minimum value, reached when x+2=0x+2=0, that is x=2x=-2.

Answer

The minimum point is (2, 3)(-2,\ -3). We can check by expanding: 2(x+2)23=2(x2+4x+4)3=2x2+8x+52(x+2)^2-3=2(x^2+4x+4)-3=2x^2+8x+5, which is the original expression.

Because the vertex form is now visible, two more answers come for free. The axis of symmetry is the vertical line through the vertex, x=2x=-2.

And since the least value of ff is 3-3, the range of ff is f(x)3f(x)\ge -3. Reading three results from one line of algebra is exactly why examiners like this form.

Common mistakes to avoid

  • Forgetting to factor out aa first. When the coefficient of x2x^2 is not 1, you must take it out of the x2x^2 and xx terms before halving.
  • Halving but not squaring, or squaring but not subtracting. You must add p2p^2 and subtract the same p2p^2 so the expression keeps its value.
  • Forgetting to multiply the p2-p^2 by the factor aa when it leaves the bracket. This is the most common sign error.
  • Reading the vertex as (p, q)(p,\ q) instead of (p, q)(-p,\ q). The xx-coordinate is the value that makes the bracket zero.
  • Assuming qq is always a minimum. It is only the minimum when a>0a>0; when a<0a<0 the curve opens downward and qq is the maximum.

How a teacher helps you get it right

Almost every lost mark in completing the square comes from one specific line, most often the moment the factor aa has to be multiplied back across the p2-p^2 term. In a one-to-one lesson our teacher watches you work that exact line, spots whether the slip is a sign, a missing factor, or a halving error, and has you redo just that step until it is automatic.

Because our teachers are experienced, you get someone who explains the why, not only the how. Lessons are online and taught in English, and because working is marked step by step, we show you how to earn method marks even when the final number goes wrong.

We also build the habit of a ten-second check, expanding the vertex form back to the original, so a careless slip never survives to the final line.

Get 1-to-1 help.

Book a Trial Class

Frequently asked questions

When should I complete the square instead of using the quadratic formula?

Use completing the square when a question asks for the minimum or maximum value, the turning point, or the range of a quadratic, the vertex form a(x+p)2+qa(x+p)^2+q gives these directly. The quadratic formula only gives the roots.

How do I find the turning point once the expression is in vertex form?

From a(x+p)2+qa(x+p)^2+q, the turning point is (p, q)(-p,\ q). The xx-coordinate is the value that makes the bracket zero, and qq is the yy-value there.

What if the coefficient of x2x^2 is not 1?

Factor it out of the x2x^2 and xx terms first, complete the square inside the bracket, then multiply that factor back across when you take the p2-p^2 out. Forgetting this step is the most common mistake.

Does completing the square work for solving quadratic equations too?

Yes. Once you have a(x+p)2+q=0a(x+p)^2+q=0, rearrange to (x+p)2=qa(x+p)^2=-\frac{q}{a} and take the square root of both sides.

It is especially handy when the quadratic does not factorise neatly.

How is completing the square different from factorising?

Factorising writes a quadratic as a product such as (xr)(xs)(x-r)(x-s), which is best for finding roots. Completing the square writes it as a(x+p)2+qa(x+p)^2+q, which is best for the turning point, the range, and the least or greatest value.

They answer different questions, so it is worth being fluent in both.

Source:SRC-DSKP-EN

Written by the spmaddmath.com.my editorial team.· Last updated 5 September 2026

Ready to get started?

Book a Trial Classfrom RM50/hr · One-hour paid trial · Same-day reply
Book a Trial ClassOne-hour paid trial · Same-day reply