How do you solve #x^2=12x-45# by completing the square?

1 Answer
Jul 28, 2015

#{(x_1 = 3(2+i)), (x_2 = 3(2-i)) :}#

Explanation:

Start by getting the #x#-term on the left side of the equation

#x^2 - 12x = color(red)(cancel(color(black)(12x))) - color(red)(cancel(color(black)(12x))) - 45#

#x^2 - 12x = -45#

Now you need to focus on writing the left side of the equation as a square of a binomial by adding a term to both sides of the equation.

The coefficient of the #x#-term will help with that. Divide this coefficient by 2, then square the result to get

#(-12)/2 = -6#, then

#(-6)^2 = 36#

This means that you must add #36# to both sides of the equation.

#x^2 - 12x + 36 = -45 + 36#

The left side of the equation can now be written as

#(x^2 - 12x + 36) = x^2 + 2 * (-6) + (-6)^2 = (x-6)^2#

The equation becomes

#(x-6)^2 = -9#

You can tell right away that this equation has no real solutions, so you're going to have to use complex numbers to get the solutions you want.

Take the square root of both sides to get

#sqrt((x-6)^2) = sqrt(-9)#

#x-6 = +- sqrt(-9)#

Now, the square root of a negative number can be written, using the fact that #i^2 = -1#, as

#sqrt(-a) = sqrt((-1) * a) = sqrt((-1)) * sqrt(a) = sqrt(i^2) * sqrt(a) = i * sqrt(a)#

In your case, you have

#sqrt(-9) = i * sqrt(9) = i * sqrt(3^2) = 3i#

Therefore,

#x-6 = +- 3i => x_(1,2) = 6 +- 3i = 3(2 +-i)#

The two solutions to your quadratic will thus be

#x_1 = color(green)(3(2+i))# and #x_2 = color(green)(3(2-i))#