How do you solve x24x+7=0 by completing the square?

1 Answer
Aug 10, 2017

x=2±3i

Explanation:

Given:

x24x+7=0

While completing the square we will find that this takes the form of the sum of a square and a positive number. As a result it has no solution in real numbers, but we can solve it using complex numbers.

The imaginary unit i satisfies i2=1

The difference of squares identity can be written:

a2b2=(ab)(a+b)

We can use this with a=(x2) and b=3i as follows:

0=x24x+7

0=x24x+4+3

0=(x2)2+(3)2

0=(x2)2(3i)2

0=((x2)3i)((x2)+3i)

0=(x23i)(x2+3i)

Hence the two roots are:

x=2+3i and x=23i