With a=1,b=2 and c=5,b2−4ac is negative, so there are no real solutions.
22−4⋅1⋅5=−16
2
Take the square root of a negative
√−16=√16⋅√−1=4i. The rule √a⋅√b=√ab fails for two negatives, but splitting off √−1=i from a positive 16 is how i is defined.
√−16=4i
3
Put the parts into the formula
x=(−b±√b2−4ac)/(2a) with b=2,a=1 and the root 4i.
x=2−2±4i
4
Divide both parts by 2
Each part of the top is divided by 2, the real part −2 and the imaginary part 4i. The two solutions are conjugates, as they must be when the coefficients are real.
x=−1±2i
5
Check x=−1+2i
x2=1−4i+4i2=−3−4i and 2x=−2+4i, so x2+2x+5=(−3−4i)+(−2+4i)+5=0.
(−3−4i)+(−2+4i)+5=0
Result
x=−1+2i or x=−1−2i.
Your turn
1. One like the example
Solve x2−4x+13=0.
Show the answer and explanation
x=2±3i.
The discriminant is 16−52=−36, and √−36=6i, so x=(4±6i)/2=2±3i.
x2−4x+13=0x=24±6ix=2±3i
2. A variation
Solve 2x2+2x+5=0. The leading coefficient is not 1 this time.
Show the answer and explanation
x=−1/2±(3/2)i.
The discriminant is 22−4⋅2⋅5=4−40=−36, and √−36=6i. The bottom of the formula is 2a=4, so x=(−2±6i)/4=−1/2±(3/2)i.
2x2+2x+5=0x=4−2±6ix=−21±23i
3. Somewhere new
Work backwards. Find a quadratic with real coefficients whose solutions are 3+i and 3−i.
Show the answer and explanation
x2−6x+10=0.
Multiply (x−(3+i))(x−(3−i)). Group it as ((x−3)−i)((x−3)+i), a difference of squares, to get (x−3)2−i2=x2−6x+9+1=x2−6x+10. To check it another way, put x=3+i into x2−6x+10, which gives 8+6i−18−6i+10=0.
(x−(3+i))(x−(3−i))=(x−3)2−i2=x2−6x+10
Keep exploring
In Graph, y=x2+2x+5 stays above the x-axis, so there are no real roots. Its vertex, (−1,4), sits above the real part of the solutions, −1.