Completing the square when the roots of the polynomial are complex

 
 
Completing the square with complex roots blog post.jpeg
 
 
 

What are complex roots?

As you saw in the previous lesson, when you have a quadratic equation of the form ax2+bx+c=0ax^2+bx+c=0 with a=1a=1 and you solve it by completing the square, you eventually get an equation of the following form:

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

Krista King Math.jpg

Hi! I'm krista.

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

 

In that lesson, we set out to find real numbers xx that are roots of that equation, and we said that if the expression on the right side,

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

is negative, then the equation has no (real) roots, so we stopped.

However, there are numbers, called complex numbers, that are roots of a quadratic equation like that. So now you’re going to learn how to solve quadratic equations that have complex numbers as roots.

The roots of a polynomial equation that are real numbers are also called real zeroes of the corresponding polynomial. Similarly, the roots of a polynomial equation that are complex numbers are also called complex zeroes of the corresponding polynomial.

Complex numbers are based on the numbers ii, which is defined as 1\sqrt{-1} (something that you’ve always been told doesn’t exist!). We call ii an imaginary number. A complex number is a number that can be written in the form a+bia+bi, where aa and bb are real numbers. If a=0a=0, the complex number a+bia+bi is equal to bibi, which is said to be a pure imaginary number.

If aa is any negative real number, we can write d\sqrt{d} as idi\sqrt{-d}. Notice that d-d is a positive real number. So we “fix” the square root of a negative number by factoring out an ii. You may think, “What’s the point of learning about imaginary numbers?” Imaginary numbers are incredibly useful in the real world and are most often used in electrical engineering.

When we solve a quadratic equation that has complex roots, we’ll follow the same steps as before, except that we won’t stop when we get a negative number under the radical sign. Here are the steps, but recall that we first divide the polynomial by aa (the coefficient of the x2x^2 term) if a1a\ne1. So just as before, we’ll be starting with a quadratic equation of the form x2+bx+c=0x^2+bx+c=0.

Move the constant term, cc, 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

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

Add (b/2)2(b/2)^2 to both sides of the equation.

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

Factor the left side, which is now

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

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

(x+b2)2\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

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}

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

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

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

 
 

How to find the complex roots of a quadratic equation


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

 
 

 
 

Completing the square using complex roots

Example

Solve for xx by completing the square.

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

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

x2+4x+77=07x^2+4x+7-7=0-7

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

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

(b2)2=(42)2=(2)2=4\left(\frac{b}{2}\right)^2=\left(\frac{4}{2}\right)^2=(2)^2=4

Add 44 to both sides of the equation.

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

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

Notice that x2+x+4x^2+x+4 factors as the square of a binomial, (x+2)2(x+2)^2, so our equation becomes

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

Take the square root of each side of the equation.

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

Factor out an ii on the right side, so that the 3-3 under the radical sign becomes 33.

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

So we get

x+2=±i3x+2=\pm i\sqrt{3}

Solve for xx by subtracting 22 from both sides. To avoid confusion, put the 2-2 in front of the ±i3\pm i\sqrt3.

x+22=2±i3x+2-2=-2\pm i\sqrt{3}

x=2±i3x=-2\pm i\sqrt{3}

Completing the square with complex roots for Algebra 1.jpg

the roots of a polynomial equation that are complex numbers are also called complex zeroes of the corresponding polynomial.

Example

Solve for the variable by completing the square.

2x26x+9=02x^2-6x+9=0

In this case, a1a\ne1, so we’ll first divide everything by aa, which in this problem is 22.

2x226x2+92=02\frac{2x^2}{2}-\frac{6x}{2}+\frac{9}{2}=\frac{0}{2}

x23x+92=0x^2-3x+\frac{9}{2}=0

Move the constant term, 9/29/2, to the right side of the equation by subtracting 9/29/2 from both sides.

x23x+9292=092x^2-3x+\frac{9}{2}-\frac{9}{2}=0-\frac{9}{2}

x23x=92x^2-3x=-\frac{9}{2}

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

(b2)2=(32)2=94\left(\frac{b}{2}\right)^2=\left(\frac{-3}{2}\right)^2=\frac{9}{4}

Add 9/49/4 to both sides of the equation.

x23x+94=92+94x^2-3x+\frac{9}{4}=-\frac{9}{2}+\frac{9}{4}

x23x+94=94x^2-3x+\frac{9}{4}=-\frac{9}{4}

Now we’ll factor

x23x+94x^2-3x+\frac{9}{4}

as the square of a binomial, [x(3/2)]2[x-(3/2)]^2, so our equation becomes

(x32)2=94\left(x-\frac{3}{2}\right)^2=-\frac{9}{4}

Take the square root of each side of the equation.

(x32)2=94\sqrt{\left(x-\frac{3}{2}\right)^2}=\sqrt{-\frac{9}{4}}

Factor out an ii on the right side of the equation, so that the 9/4-9/4 under the radical sign becomes 9/49/4.

(x32)2=94i\sqrt{\left(x-\frac{3}{2}\right)^2}=\sqrt{\frac{9}{4}}i

(x32)2=32i\sqrt{\left(x-\frac{3}{2}\right)^2}=\frac32i

Therefore,

x32=±32ix-\frac{3}{2}=\pm\frac{3}{2}i

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

x32+32=32±32ix-\frac{3}{2}+\frac{3}{2}=\frac{3}{2}\pm\frac{3}{2}i

x=32±32ix=\frac{3}{2}\pm\frac{3}{2}i

x=3±3i2x=\frac{3\pm3i}{2}

 
Krista King.png
 

Get access to the complete Algebra 1 course