What Is the Formula for Completing the Square?

Completing the square means adding two extra terms so you can write quadratic expressions in another way. The purpose of this is to make the expression simpler and easier to analyze. Here is how you remember the method:

Rule

Mnemonic Device for Completing the Square

1.
Halve it
2.
Square it
3.
Add it
4.
Subtract it

Note! If you add and subtract the same number, you don’t really change the value of the expression!

A quadratic expression is in the form

ax2 + bx + c

You make the expression involving x’s into a square when you write it in this form:

a(x x0)2 + d,

so that

ax2 + bx + c = a(x x 0)2 + d.

When d = 0, the expression is a perfect square, which is an expression where you can use the first or second algebraic identity of quadratic expressions. So you’re using these algebraic identities, only backwards. Here is how you do it, and the final formula:

Rule

Completing the Square

Say you have an expression on the form ax2 + bx + c and are supposed to complete the square. First you factor out the coefficient a and write the expression in the form a(x2 + b ax + c a). This step can be ignored in the case where a = 1.

Halve it:

b a is the number in front of the x-term inside the parentheses. Divide this by 2. Then you get b 2a.

Square it:

b 2a is going to be squared. You then get ( b 2a ) 2.

Add it:

Take this expression, ( b 2a ) 2, and add it after the b ax-term.

Subtract it:

Take the same expression, ( b 2a ) 2, and subtract it after + ( b 2a ) 2.

The whole expression looks like this:

= a (x2 + b ax + ( b 2a)2 ( b 2a)2 + c a) = a(x x0)2 + d.

a (x2 + b ax + ( b 2a)2 ( b 2a)2 + c a) = a(x x0)2 + d.

Note! In the formula a(x x0)2 + d, you have x0 = b 2a and d = b2 4a + c.

Example 1

Complete the square x2 + 4x + 3 and write it in the form a(x x0)2 + d

= x2 + 4x + 3 = x2 + 4x + (4 2) 2 (4 2) 2 + 3 = x2 + 4x + 22 22 + 3 = (x + 2)2 4 + 3 = (x + 2)2 1

x2 + 4x + 3 = x2 + 4x + (4 2) 2 (4 2) 2 + 3 = x2 + 4x + 22 22 + 3 = (x + 2)2 4 + 3 = (x + 2)2 1

Example 2

Show that x2 12x + 36 is a perfect square

= x2 12x + 36 = x2 12x + ( 12 2 ) 2 (12 2 ) 2 + 36 = x2 12x + 62 62 + 36 = (x 6)2 36 + 36 = (x 6)2

x2 12x + 36 = x2 12x + ( 12 2 ) 2 ( 12 2 ) 2 + 36 = x2 12x + 62 62 + 36 = (x 6)2 36 + 36 = (x 6)2

Since d = 0, the expression x2 12x + 36 a perfect square.

Example 3

Find the minimum or the maximum of the function f(x) = x2 3x + 12 by completing the square

f(x) = x2 3x + ( 3 2 ) 2 (3 2 ) 2 + 12 = (x 3 2 ) 2 (3 2 ) 2 + 12 = (x 3 2 ) 2 9 4 + 12 = (x 3 2 ) 2 9 4 + 48 4 = (x 3 2 ) 2 9 + 48 4 = (x 3 2 ) 2 57 4

f(x) = x2 3x + ( 3 2 ) 2 ( 3 2 ) 2 + 12 = (x 3 2) 2 ( 3 2 ) 2 + 12 = (x 3 2) 2 9 4 + 12 = (x 3 2) 2 9 4 + 48 4 = (x 3 2) 2 9 + 48 4 = (x 3 2) 2 57 4

Since a > 0 you know that this function has a minimum. The x-value then becomes x 3 2 = 0 which gives us x = 3 2. The y-value becomes d = 57 4 . Then the minimum of the function has the following coordinates: (3 2,57 4 ).

Want to know more?Sign UpIt's free!