Skip to content
Gioi Toan
Start learning
A thick book and a smiling magnifying glass

What is Completing the square?

Short answer

Completing the square is a way of transforming a quadratic expression into the square of an expression plus a constant.

Type
Method
First learned
Grade 9
In English
completing the square

Formulas

x2+bx=(x+b2)2−b24x^2 + bx = \left(x + \dfrac{b}{2}\right)^2 - \dfrac{b^2}{4}

ax2+bx+c=a(x+b2a)2+c−b24aax^2 + bx + c = a\left(x + \dfrac{b}{2a}\right)^2 + c - \dfrac{b^2}{4a}

Explanation

Completing the square is the transformation of an expression of the form x2+bxx^2 + bx into (x+b2)2−b24\left(x + \dfrac{b}{2}\right)^2 - \dfrac{b^2}{4}. The method is to add and then subtract the square of half the coefficient of bb.

This method is used to solve quadratic equations, find the maximum and minimum value of an expression, or bring the equation of a circle into standard form.

For example x2+6x=x2+6x+9−9=(x+3)2−9x^2 + 6x = x^2 + 6x + 9 - 9 = (x + 3)^2 - 9. Thanks to that, you can immediately see that the expression has minimum value −9-9 when x=−3x = -3.

Examples

Example 1

Complete the square for x2−4x+1x^2 - 4x + 1.

See the solution to example 1

x2−4x+1=(x−2)2−4+1=(x−2)2−3x^2 - 4x + 1 = (x - 2)^2 - 4 + 1 = (x - 2)^2 - 3.

Common mix-ups

  • Forgetting to subtract back the part that was added, which changes the value of the expression.
  • Getting the sign wrong when taking half the coefficient bb: for x2−4xx^2 - 4x write (x−2)2(x - 2)^2, not (x+2)2(x + 2)^2.