Completing the square for quadratic polynomials

 
 
Completing the square blog post.jpeg
 
 
 

Process for completing the square

The zeroes of a single-variable polynomial are the values of that variable at which the polynomial is equal to 00.

Completing the square is a method we can use to find the zeroes of a quadratic polynomial.

Another way to say this is that completing the square is a method we can use to solve the corresponding quadratic equation (the equation that has the quadratic polynomial on one side and 00 on the other side).

Krista King Math.jpg

Hi! I'm krista.

I create online courses to help you rock your math class. Read more.

 

The solutions of any polynomial equation are called the roots of that equation. So the zeroes of a quadratic polynomial are numerically equal to the roots of the corresponding quadratic equation.

Completing the square is a useful method when it’s not possible to solve for the roots by factoring, because completing the square creates a trinomial that we can factor as the square of a binomial.

The formal way to write a quadratic polynomial is ax2+bx+cax^2+bx+c, where aa is the coefficient of the x2x^2 term, bb is the coefficient of the xx term, and cc is the constant term.

These are the steps we’ll follow every time we want to complete the square in order to find the roots of a quadratic equation ax2+bx+c=0ax^2+bx+c=0.

Before we go through the steps, however, we’ll first divide both sides of the equation by aa (if a1a\ne1), because it will be easier to solve the equation if the coefficient of the x2x^2 term is 11. If we have to do that division, we won’t define bb and cc until after we do it. That is, bb will be the coefficient of the new xx term, and cc will be the new constant term. So we’ll actually be starting with an equation of the form x2+bx+c=0x^2+bx+c=0.

1. Move the constant term to the right side of the equation by subtracting cc from both sides.

x2+bx+cc=0cx^2+bx+c-c=0-c

x2+bx=cx^2+bx=-c

2. Find (b/2)2(b/2)^2. Take the coefficient of the xx term, divide it by 22, and then square the result.

x2+bx+(b2)2=c+(b2)2x^2+bx+\left(\frac{b}{2}\right)^2=-c+\left(\frac{b}{2}\right)^2

3. Factor the left side, which is now

x2+bx+(b2)2x^2+bx+\left(\frac{b}{2}\right)^2

To factor this quadratic polynomial, we have to find a pair of factors of (b/2)2(b/2)^2 whose sum is bb. The only pair of factors with this property is b/2b/2 and b/2b/2. So the left side of the equation becomes

(x+b2)(x+b2)\left(x+\frac{b}{2}\right)\left(x+\frac{b}{2}\right)

Notice that the trinomial

x2+bx+(b2)2x^2+bx+\left(\frac{b}{2}\right)^2

factors as the square of the binomial x+(b/2)x+(b/2):

x2+bx+(b2)2=(x+b2)(x+b2)=(x+b2)2x^2+bx+\left(\frac{b}{2}\right)^2=\left(x+\frac{b}{2}\right)\left(x+\frac{b}{2}\right)=\left(x+\frac{b}{2}\right)^2

So the equation we have to solve is

(x+b2)2=c+(b2)2\left(x+\frac{b}{2}\right)^2=-c+\left(\frac{b}{2}\right)^2

4. Square root both sides of the equation. Remember that the right side will now include a ±\pm sign.

(x+b2)2=c+(b2)2\sqrt{\left(x+\frac{b}{2}\right)^2}=\sqrt{-c+\left(\frac{b}{2}\right)^2}

x+b2=±c+(b2)2x+\frac{b}{2}=\pm\sqrt{-c+\left(\frac{b}{2}\right)^2}

5. Solve for xx to get the roots of the original quadratic equation, by subtracting b/2b/2 from both sides.

x=b2±c+(b2)2x=-\frac{b}{2}\pm\sqrt{-c+\left(\frac{b}{2}\right)^2}

 
 

How to complete the square on a quadratic polynomial


 
Krista King Math Signup.png
 
Algebra 1 course.png

Take the course

Want to learn more about Algebra 1? I have a step-by-step course for that. :)

 
 

 
 

Find the roots of the quadratic by completing the square

Example

Solve for xx by completing the square.

x2+6x+4=0x^2+6x+4=0


There is no pair of factors of 44 whose sum is 66, so we’ll need to solve by completing the square. Start by moving the constant constant term, 44, to the right side of the equation by subtracting 44 from both sides.

x2+6x+44=04x^2+6x+4-4=0-4

x2+6x=4x^2+6x=-4

Find (b/2)2(b/2)^2. In this case, b=6b=6.

(b2)2=(62)2=32=9\left(\frac{b}{2}\right)^2=\left(\frac{6}{2}\right)^2=3^2=9

Add 99 to both sides of the equation.

x2+6x+9=4+9x^2+6x+9=-4+9

x2+6x+9=5x^2+6x+9=5

Factor x2+6x+9x^2+6x+9, and notice that it factors as the square of a binomial, (x+3)2(x+3)^2, so our equation becomes

(x+3)2=5(x+3)^2=5

Take the square root of each side of the equation.

(x+3)2=5\sqrt{(x+3)^2}=\sqrt{5}

Since x+3x+3 could be either positive or negative (because (x+3)2(x+3)^2 is equal to 55, which is positive), we get

x+3=±5x+3=\pm\sqrt{5}

Solve for xx by subtracting 33 from both sides. To avoid confusion, put the 3-3 in front of the ±5\pm\sqrt5.

x+33=3±5x+3-3=-3\pm\sqrt{5}

x=3±5x=-3\pm\sqrt{5}

The roots of the original quadratic equation are

x=3+5x=-3+\sqrt{5} and x=35x=-3-\sqrt{5}


Let’s try another example of completing the square.


Completing the square for Algebra 1.jpg

Completing the square is a useful method when it’s not possible to solve for the roots by factoring, because completing the square creates a trinomial that we can factor as the square of a binomial.

Example

Solve for the variable by completing the square.

v35v2+4v=0v^3-5v^2+4v=0

In this case we could solve by factoring since we can first factor out a vv and then factor the quadratic polynomial that remains.

v(v25v+4)=0v(v^2-5v+4)=0

(1)(4)=4(-1)(-4)=4 and 1+(4)=5-1+(-4)=-5, so v25v+4v^2-5v+4 can be factored as (v1)(v4)(v-1)(v-4). Therefore, our original equation can be rewritten as

v(v1)(v4)=0v(v-1)(v-4)=0

One solution is v=0v=0, and we’ll set each of the other two factors (v1v-1 and v4v-4) equal to 00 and solve each of the resulting equations for vv.

v1=0v-1=0

v1+1=0+1v-1+1=0+1

v=1v=1

and

v4=0v-4=0

v4+4=0+4v-4+4=0+4

v=4v=4

The solutions are therefore

v=0v=0, v=1v=1, and v=4v=4

However, we were not asked to solve by factoring, so let’s look at how this problem can be solved by completing the square. Start by factoring out aso that we’ll have a quadratic polynomial inside parentheses.

v(v25v+4)=0v(v^2-5v+4)=0

Again, one solution is v=0v=0, so now we’ll find the other solutions, that is, the solutions of the equation

v25v+4=0v^2-5v+4=0

Now that we have a quadratic polynomial on the left side, we can start by moving the constant term, 44, to the right side of the equation by subtracting 44 from both sides.

v25v+44=04v^2-5v+4-4=0-4

v25v=4v^2-5v=-4

Find (b/2)2(b/2)^2. In this case, b=5b=-5.

(b2)2=(52)2=254\left(\frac{b}{2}\right)^2=\left(\frac{-5}{2}\right)^2=\frac{25}{4}

Add 25/425/4 to both sides of the equation.

v25v+254=4+254v^2-5v+\frac{25}{4}=-4+\frac{25}{4}

v25v+254=94v^2-5v+\frac{25}{4}=\frac{9}{4}

We see that the trinomial on the left side,

v25v+254v^2-5v+\frac{25}{4}

factors as the square of a binomial, [v(5/2)]2[v-(5/2)]^2, so our equation becomes

(v52)2=94\left(v-\frac{5}{2}\right)^2=\frac{9}{4}

Take the square root of each side of the equation.

(v52)2=94\sqrt{\left(v-\frac{5}{2}\right)^2}=\sqrt{\frac{9}{4}}

So we get

v52=±32v-\frac{5}{2}=\pm\frac{3}{2}

Solve for vv by adding 5/25/2 to both sides. To avoid confusion, put the 5/25/2 in front of the ±(3/2)\pm(3/2).

v52+52=52±32v-\frac{5}{2}+\frac{5}{2}=\frac{5}{2}\pm\frac{3}{2}

v=52±32v=\frac{5}{2}\pm\frac{3}{2}

If we solve this both ways (adding and subtracting), we get

v=52+32=82=4v=\frac{5}{2}+\frac{3}{2}=\frac{8}{2}=4

v=5232=22=1v=\frac{5}{2}-\frac{3}{2}=\frac{2}{2}=1

So the solutions are

v=0v=0, v=1v=1, and v=4v=4

 
Krista King.png
 

Get access to the complete Algebra 1 course