Completing the square rewrites a quadratic in vertex form โ a(x โ h)2 + k. This form gives you the vertex, the maximum or minimum value, and lets you solve any quadratic โ even ones that won’t factorise.
๐
What you need to know
The core trick: halve the coefficient of x and square it
For a monic quadratic x2 + bx + c: write as (x + b2)2 โ (b2)2 + c
For a non-monic quadratic: factor out a from the x terms first, then complete the square inside
The vertex form a(x โ h)2 + k shows the vertex (h, k) directly
The value k is the minimum if a > 0, and the maximum if a < 0
Why Bother?
Completing the square unlocks four useful things:
Finds the maximum or minimum of a quadratic โ useful for the range
Gives the vertex instantly when sketching
Lets you solve quadratic equations that don’t factorise nicely
Is the technique used to derive the quadratic formula
The Core Trick
The whole technique relies on one move: halve the coefficient of x, then square it. Why? Because:
(x + b2)2 = x2 + bx + (b2)2
So x2 + bx is hiding inside (x + b2)2 โ we just need to subtract the extra (b2)2 back off.
The Halve-and-Square Move
Start
x2 + 6x
โ
Halve b
6 รท 2 = 3
โ
Square it
32 = 9
x2 + 6x = (x + 3)2 โ 9
Method 1: Monic Quadratics
For x2 + bx + c (where the coefficient of x2 is 1):
Halve b and write down x + b2 inside a squared bracket: (x + b2)2
Subtract the extra (b2)2 term that the squared bracket created.
Add the original constant c.
Simplify the constants together.
For example, x2 โ 4x + 5:
Halve โ4 โ โ2. Square it โ 4. So (x โ 2)2 = x2 โ 4x + 4
Factor out a from the x terms only โ leave c outside the bracket. Like this: a(x2 + bax) + c
Complete the square inside the bracket using the monic method.
Multiply through by a to expand the constant that came out.
Add the original c and simplify.
Why leave c outside? Factoring it out would create messy fractions. Keeping it outside means the only fraction you might deal with is ba inside the bracket.
Reading the Vertex Form
Once you’ve completed the square, you have the vertex form. Each part tells you something:
a(x โ h)2 + k
a โ Stretch
Sign tells you โช or โฉ
h โ x of vertex
Sign flips: (x + 3) means h = โ3
k โ y of vertex
Min or max value
Finding the Maximum or Minimum
The squared bracket (x โ h)2 can never be negative โ its smallest value is 0, when x = h. So:
a > 0
Vertex is the minimum. The smallest value is k, reached when x = h.
a < 0
Vertex is the maximum. The largest value is k, reached when x = h.
Watch for sneaky wording: questions don’t always say “complete the square” โ they might ask for the maximum profit, minimum cost, or range of a function. If you see a quadratic and a max/min in the same question, completing the square is your tool.
Worked Examples
โ
Example 1 โ Monic with positive middle term
Complete the square on x2 + 6x + 11.
Answer:
Step 1: halve b and square it.b = 6, b/2 = 3, (b/2)ยฒ = 9Step 2: write the squared bracket.(x + 3)ยฒ = xยฒ + 6x + 9Step 3: subtract the extra 9 and add c = 11.xยฒ + 6x + 11 = (x + 3)ยฒ โ 9 + 11(x + 3)ยฒ + 2Vertex at (โ3, 2). Min value is 2.
โ
Example 2 โ Monic with negative middle term
Complete the square on x2 โ 8x + 3.
Answer:
Step 1: halve b and square it.b = โ8, b/2 = โ4, (b/2)ยฒ = 16Step 2: write the squared bracket.(x โ 4)ยฒ = xยฒ โ 8x + 16Step 3: subtract 16 and add c = 3.xยฒ โ 8x + 3 = (x โ 4)ยฒ โ 16 + 3(x โ 4)ยฒ โ 13Vertex at (4, โ13). Min value is โ13.
โ
Example 3 โ Non-monic
Complete the square on 3x2 + 12x โ 5.
Answer:
Step 1: factor 3 from the x terms only (leave โ5 outside).3(xยฒ + 4x) โ 5Step 2: complete the square inside the bracket.half of 4 is 2, 2ยฒ = 43((x + 2)ยฒ โ 4) โ 5Step 3: multiply through by 3 and combine constants.3(x + 2)ยฒ โ 12 โ 53(x + 2)ยฒ โ 17Vertex at (โ2, โ17). Since a = 3 > 0, this is a minimum.
โ
Example 4 โ Non-monic with bigger coefficients
Complete the square on 2x2 + 12x โ 3.
Answer:
Step 1: factor 2 from the x terms only.2(xยฒ + 6x) โ 3Step 2: complete the square inside.half of 6 is 3, 3ยฒ = 92((x + 3)ยฒ โ 9) โ 3Step 3: multiply through by 2.2(x + 3)ยฒ โ 18 โ 32(x + 3)ยฒ โ 21
โ
Example 5 โ Finding a minimum value
A function is given by f(x) = x2 โ 10x + 27. Find the minimum value of f(x) and the value of x for which it occurs.
Answer:
Step 1: complete the square.half of โ10 is โ5, (โ5)ยฒ = 25f(x) = (x โ 5)ยฒ โ 25 + 27f(x) = (x โ 5)ยฒ + 2Step 2: read off the vertex from a(x โ h)ยฒ + k.h = 5, k = 2Step 3: a = 1 > 0, so vertex is a minimum.Min value is 2, at x = 5The smallest (x โ 5)ยฒ can be is 0, so f(x) is never less than 2.
๐ก
Tips
Mantra: “halve and square” โ that’s the entire trick. Halve b, square the result.
For non-monic, leave c outside the bracket. You only factor a from the x terms โ never from the constant.
Watch the sign flip when reading vertex coordinates: (x + 3)2 means h = โ3, not +3.
Check your work by expanding back. If you complete the square on x2 + 6x + 11 and get (x + 3)2 + 2, expanding should give x2 + 6x + 9 + 2 = x2 + 6x + 11 โ.
The minimum (or maximum) value is just k โ once you have vertex form, you’ve already done the work.
โ
Common mistakes
Forgetting to subtract the (b/2)2 term. The squared bracket creates an extra term โ you must subtract it back. Otherwise you’ve changed the value of the expression.
For non-monic, factoring a out of c as well. Don’t! Factor a only from the x terms. Keep c outside.
For non-monic, forgetting to multiply through by a when expanding the bracket. The โ9 inside became โ18 after multiplying by 2 โ both terms inside get multiplied.
Sign error reading vertex form. (x + 3)2 + 2 has vertex (โ3, 2). The h is the value that makes the bracket zero.
Confusing min and max based on the sign of a. Positive a โ โช shape โ vertex is MIN. Negative a โ โฉ shape โ vertex is MAX.
Stopping too early. Always combine the constants at the end: leaving (x โ 4)2 โ 16 + 3 instead of (x โ 4)2 โ 13 loses marks for incomplete simplification.
Final word: Halve, square, subtract, simplify. Once vertex form is in front of you, the vertex, the max/min, and even the roots all fall out without much extra work.
Need help with Quadratics?
Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.