Quadratic Formula

Quadratic Formula
When using the quadratic formula, you may have run into the issue of taking the square root of a negative number.
b2−4ac is called the discriminant. For any real quadratic:
- b2−4ac≥0 ⟹ real solutions
- b2−4ac<0 ⟹ complex solutions (taking the square root of a negative number)
Example
Find the roots of the real quadratic p(x)=x2+2x+2.
We want to find the values of x such that x2+2x+2=0.
We have a=1, b=2, c=2. Let's apply the quadratic formula.
x=2(1)−2±22−4(1)(2)=2−2±−4=2−2±−14=2−2±i⋅2=−1±i

Example: Roots of Real Quadratics
A real quadratic has a root at 2−3i . Find the other root along with the standard form of a quadratic with these roots.
Since we are given one root of a real quadratic and the root is complex, the other root is the complex conjugate: 2+3i.
We can find the real quadratic by multiplying the two factors that yield these roots:
(x−(2−3i)) and (x−(2+3i)) are the factors that, when set to be equal to zero, yield the desired roots.
⟹p(x)=(x−(2−3i))(x−(2+3i))=x2−(2+3i)x−(2−3i)x+(2−3i)(2+3i)=x2−2x−3ix−2x+3ix+4+9=x2−4x+13

Example: Quadratic Formula for Complex Quadratics
Find the roots of the complex quadratic q(z)=z2−(1+3i)z+(−2+i).
Note that a=1, b=−(1+3i), c=−2+i.
Applying the quadratic formula:
z=2(1)−(−(1+3i))±(−(1+3i))2−4(1)(−2+i)=2(1+3i)±(1+3i)2−(−8+4i)=2(1+3i)±(1+6i−9)+8−4i=2(1+3i)±2i
At this step, we notice that we must take the square root of a complex number. Convert 2i to polar form seiϕ:
s=0+22=2
ϕ=2π(since 2i is on the positive y-axis)
∴ 2i=2eiπ/2
The square roots are of the form sei(ϕ+2πk)/2, with values of k=0,1:
2i=====2ei(π/2)/22eiπ/42(cos4π+isin4π)2(21+i21)1+iororororor2ei(π/2 + 2π)/22ei5π/42(cos45π+isin45π)2(−21+i(−21))−1−i = −(1+i)
We can now continue finding the roots using the fact that ±2i=±(1+i):
z====2(1+3i)±2i2(1+3i)±(1+i)22+4i1+2ioror22ii