Skip to content
Gioi Toan
Start learning

Completing the square Maths skill, first learned in Grade 9

What you will be able to do

This content is not yet available in English. It is shown below in the original Vietnamese.

Viết tam thức bậc hai dưới dạng a(x + p)² + q để giải phương trình, tìm đỉnh.

Strand
Số và Đại số
Topic
Số và Đại số (Vinschool extension)
Track
Vinschool extension
Difficulty
from Secure (M2) to Advanced applying (M4)

Definitions and formulas

Completing the square (Extended): x2+bx+c=(x+b2)2−(b2)2+cx^{2} + bx + c = \left(x + \frac{b}{2}\right)^{2} - \left(\frac{b}{2}\right)^{2} + c.

When the coefficient of x2x^{2} is a≠1a \ne 1: ax2+bx+c=a(x+b2a)2+c−b24aax^{2} + bx + c = a\left(x + \frac{b}{2a}\right)^{2} + c - \frac{b^{2}}{4a}, written more briefly as a(x+p)2+qa(x + p)^{2} + q.

From the form a(x+p)2+qa(x + p)^{2} + q: the vertex of the parabola is (−p;q)(-p; q); for a>0a > 0, the minimum value of the expression is qq at x=−px = -p.

Key points to remember

  • Take half the coefficient of xx, square it, then subtract exactly that amount.

  • Solving an equation: rearrange to (x+p)2=k(x + p)^{2} = k; if k≥0k \ge 0 then x=−p±kx = -p \pm \sqrt{k}; if k<0k < 0 then no solution.

  • The completed-square form shows the vertex, the maximum value and the minimum value straight away, and lets you prove that an expression is always positive.

  • This belongs only to the Extended part.

Worked examples

Example 1

Write x2+8x+3x^{2} + 8x + 3 in the form (x+p)2+q(x + p)^{2} + q.

Show the solution to example 1

Step 1: Half the coefficient of xx is 4: x2+8x=(x+4)2−16x^{2} + 8x = (x + 4)^{2} - 16.
Step 2: x2+8x+3=(x+4)2−16+3x^{2} + 8x + 3 = (x + 4)^{2} - 16 + 3.
Result: (x+4)2−13(x + 4)^{2} - 13.

Example 2

Solve x2−6x+2=0x^{2} - 6x + 2 = 0 by completing the square, leaving the result in surd form.

Show the solution to example 2

Step 1: x2−6x+2=(x−3)2−9+2=(x−3)2−7x^{2} - 6x + 2 = (x - 3)^{2} - 9 + 2 = (x - 3)^{2} - 7.
Step 2: (x−3)2=7(x - 3)^{2} = 7, so x−3=±7x - 3 = \pm\sqrt{7}.
Result: x=3±7x = 3 \pm \sqrt{7}.

Common mistakes

Read these carefully so you can avoid them.

  • Forgetting to subtract (b2)2\left(\frac{b}{2}\right)^{2}: x2+8x≠(x+4)2x^{2} + 8x \ne (x + 4)^{2}.
  • Taking the whole coefficient bb instead of half: x2+8xx^{2} + 8x becomes (x+8)2(x + 8)^{2}.
  • With a≠1a \ne 1, forgetting to multiply aa when subtracting: 2x2+12x=2(x+3)2−182x^{2} + 12x = 2(x + 3)^{2} - 18, not 2(x+3)2−92(x + 3)^{2} - 9.

Secure first, learn next

Secure first

Learn next

This skill is the last stop on this branch. Check the map to pick another branch.

Practice

Questions go from easy to hard. Answer each one, then press Check. If you get stuck, open the hint right below the question.

Question 1 of 1Fill in the number · Understanding

Write x2+6x+2x^{2} + 6x + 2 in the form (x+3)2+q(x + 3)^{2} + q. Fill in qq.

Decimals can use a comma or a point. Write fractions as a/b, for example -5/3.

Asking the teacher while practising is for children who have a profile. It is free to turn on: Parent sign-in.

More practice for this skill is waiting for you

  • Completing the square

Ask a parent to sign in and create your profile to unlock more. It's free. Sign in