Complex Equation Calculator

Enter an equation in z to solve it.

An equation in z, linear or quadratic, with complex coefficients such as z^2 + 2iz - 1 = 0.

Try

Result

You enteredz2+2iz−1=0z^{2} + 2iz - 1 = 0

z=−i (double root)\displaystyle z = -i\ \left(\text{double root}\right)
Show the work
  1. Standard form of a quadratic

    Move every term to the left so the equation is az2+bz+c=0az^{2} + bz + c = 0. The coefficients may be complex numbers.

    z2+(2i)z−1=0a=1, b=(2i), c=−1\begin{gathered} z^{2} + \left(2i\right)z - 1 = 0 \\ a = 1,\ b = \left(2i\right),\ c = -1 \end{gathered}
  2. Discriminant

    The discriminant is worked out with complex arithmetic. Unlike a real quadratic, it never stops the formula working: every complex number has a square root.

    Δ=b2−4ac=(2i)2−4⋅1⋅−1=0\begin{aligned} \Delta &= b^{2} - 4ac \\ &= \left(2i\right)^{2} - 4 \cdot 1 \cdot -1 \\ &= 0 \end{aligned}
  3. Square root of a complex number

    Find Δ\sqrt{\Delta}, a number whose square is 00. It is exact here.

    0=0\sqrt{0} = 0
  4. Quadratic formula

    Put −b-b, Δ\sqrt{\Delta} and 2a2a into the formula, once with + and once with -.

    Using z=−b±b2−4ac2az = \frac{-b \pm \sqrt{b^{2} - 4ac}}{2a}

    z=(−2i)±02⇒z=−i\begin{gathered} z = \frac{\left(-2i\right) \pm 0}{2} \\ \Rightarrow \\ z = -i \end{gathered}
  5. Result

    The solution is z=−i (double root)z = -i\ \left(\text{double root}\right).

Worked examples