# The Quadratic Formula, Part 2

In the previous section, we limited ourselves to only using real numbers for our solutions. This caused us to run into a challenge when the number under the square root in the Quadratic Formula became negative since we couldn't simplify that to a real number. If we expand our range a little and allow our answers to be complex numbers rather than just real numbers then every quadratic equation will have a solution.

Working with imaginary numbers is a key skill to working this kind of question. Remember that the basic rule is that sqrt(-1) = *i*. This means, for example, that we could simplify something like sqrt(-51) this way:

$$x = \frac {-b \pm \sqrt {b^2 - 4ac}} {2a}$$

$$\sqrt {-51} = \sqrt {-1 \cdot 51} = \sqrt {-1} \cdot \sqrt {51} = i \sqrt {51}$$

The important thing to remember is that when you see a negative under a square root, you can "pull the negative sign" outside of the square root as *i*.

With the exception of handling the conversion of the negative square root to the imaginary number *i*, this type of question proceeds exactly the same way as the ones in the previous section.

# Example 1

**Solve the equation x^{2} + 2x + 5 = 0.**

This is Example 4 from the previous section where we had to stop because the part of the formula under the square root became negative. I'll repeat the process here and then keep going with our new "complex number" approach.

Since the equation is already set equal to zero we can start by picking out the values we'll need for the formula.

*a* = 1*b* = 2*c* = 5

If we substitute those values into the formula, we get:

This is where we ran into trouble before. If, however, we allow complex numbers then we can simplify $\sqrt {-16}$ to 4*i* and keep on going.

# Example 2

**Solve the equation 2 x^{2} - 5x + 10 = 0.**

First, we need to pick out the *a*, *b* and *c* values that we'll substitute into the formula. Remember that the *a* value is the number in front of the *x*^{2} term, the *b* value is the number in front of the *x* term and the *c* value is the constant at the end. This means that, for our equation, we have:

*a* = 2*b* = -5*c* = 10

If we substitute those values into the formula, we get:

Since $\sqrt {55}$ can't be reduced or simplified any further. That's our final answer. It's a little messy with both a square root and a fraction left in it but these problems are often going to come out that way.