Sub topic 9
Complex Roots When the Discriminant Is Negative
Prerequisites
Assume you can rewrite a quadratic in standard form, \(ax^2+bx+c=0\), identify \(a\), \(b\), and \(c\), and use the quadratic formula:
\[ x=\frac{-b\pm\sqrt{b^2-4ac}}{2a} \]
You also need to know that \(i\) is the imaginary unit, defined by:
\[ i^2=-1 \]
Why a Negative Discriminant Produces Complex Roots
The discriminant is
\[ D=b^2-4ac \]
If \(D<0\), the formula contains the square root of a negative number. No real number has a negative square, so the quadratic has no real solutions. However, complex numbers allow these square roots:
\[ \sqrt{-k}=i\sqrt{k} \]
for \(k>0\). Therefore, if \(D=-k\), then
\[ \sqrt{D}=\sqrt{-k}=i\sqrt{k} \]
Substituting this into the quadratic formula gives
\[ x=\frac{-b\pm i\sqrt{k}}{2a} \]
This has the form
\[ p\pm qi \]
where \(p\) and \(q\) are real numbers. The two roots are complex conjugates: they have the same real part and opposite imaginary parts.
Worked Example
Solve:
\[ x^2+2x+5=0 \]
Here, \(a=1\), \(b=2\), and \(c=5\). First calculate the discriminant:
\[ D=2^2-4(1)(5)=4-20=-16 \]
Because \(D\) is negative, the roots are not real. Rewrite the square root:
\[ \sqrt{-16}=4i \]
Now apply the formula:
\[ x=\frac{-2\pm4i}{2} \]
Divide each term by 2:
\[ x=-1\pm2i \]
The roots are
\[ x=-1+2i \quad\text{and}\quad x=-1-2i \]
The real part of each root is \(-1\). The imaginary parts are \(2\) and \(-2\).
import cmath
a, b, c = 1, 2, 5
discriminant = b * b - 4 * a * c
root = cmath.sqrt(discriminant)
x1 = (-b - root) / (2 * a)
x2 = (-b + root) / (2 * a)
print(x1) # (-1-2j)
print(x2) # (-1+2j)Python writes \(i\) as j. Thus, -1+2j represents \(-1+2i\).
Connection to the Graph
The graph of \(y=ax^2+bx+c\) is a parabola. Solving the equation \(ax^2+bx+c=0\) means finding where the parabola crosses the x-axis.
When \(D<0\), there are no real roots, so the parabola has no x-intercepts. The complex roots still describe the equation algebraically, even though they do not appear as real locations on the usual coordinate plane.
Checking the Result
For \(x^2+2x+5=0\), the roots are \(-1+2i\) and \(-1-2i\). Their sum is
\[ (-1+2i)+(-1-2i)=-2 \]
which equals \(-b/a=-2\). Their product is
\[ (-1+2i)(-1-2i)=1+4=5 \]
which equals \(c/a=5\). These checks confirm the roots.
Exercise
Solve \(x^2-4x+13=0\) and state whether the roots are real or complex.
Show answer
\(D=16-52=-36\), so \(\sqrt{D}=6i\). The roots are \(\frac{4\pm6i}{2}=2\pm3i\). They are complex conjugates, not real.