IB Maths AA SL Paper 1 & 2 15 min read

Completing the Square

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:

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):

  1. Halve b and write down x + b2 inside a squared bracket: (x + b2)2
  2. Subtract the extra (b2)2 term that the squared bracket created.
  3. Add the original constant c.
  4. Simplify the constants together.

For example, x2 โˆ’ 4x + 5:

Method 2: Non-Monic Quadratics

For ax2 + bx + c (where a โ‰  1):

  1. Factor out a from the x terms only โ€” leave c outside the bracket. Like this: a(x2 + bax) + c
  2. Complete the square inside the bracket using the monic method.
  3. Multiply through by a to expand the constant that came out.
  4. 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:

min = k
a > 0

Vertex is the minimum. The smallest value is k, reached when x = h.

max = k
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)ยฒ = 9 Step 2: write the squared bracket. (x + 3)ยฒ = xยฒ + 6x + 9 Step 3: subtract the extra 9 and add c = 11. xยฒ + 6x + 11 = (x + 3)ยฒ โˆ’ 9 + 11 (x + 3)ยฒ + 2 Vertex 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)ยฒ = 16 Step 2: write the squared bracket. (x โˆ’ 4)ยฒ = xยฒ โˆ’ 8x + 16 Step 3: subtract 16 and add c = 3. xยฒ โˆ’ 8x + 3 = (x โˆ’ 4)ยฒ โˆ’ 16 + 3 (x โˆ’ 4)ยฒ โˆ’ 13 Vertex 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) โˆ’ 5 Step 2: complete the square inside the bracket. half of 4 is 2,   2ยฒ = 4 3((x + 2)ยฒ โˆ’ 4) โˆ’ 5 Step 3: multiply through by 3 and combine constants. 3(x + 2)ยฒ โˆ’ 12 โˆ’ 5 3(x + 2)ยฒ โˆ’ 17 Vertex 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) โˆ’ 3 Step 2: complete the square inside. half of 6 is 3,   3ยฒ = 9 2((x + 3)ยฒ โˆ’ 9) โˆ’ 3 Step 3: multiply through by 2. 2(x + 3)ยฒ โˆ’ 18 โˆ’ 3 2(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)ยฒ = 25 f(x) = (x โˆ’ 5)ยฒ โˆ’ 25 + 27 f(x) = (x โˆ’ 5)ยฒ + 2 Step 2: read off the vertex from a(x โˆ’ h)ยฒ + k. h = 5,   k = 2 Step 3: a = 1 > 0, so vertex is a minimum. Min value is 2,   at x = 5 The 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.

Book Free Session โ†’