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−2z+5=0z^{2} - 2z + 5 = 0

z=1−2i, z=1+2i\displaystyle z = 1 - 2i,\ z = 1 + 2i
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−2z+5=0a=1, b=−2, c=5\begin{gathered} z^{2} - 2z + 5 = 0 \\ a = 1,\ b = -2,\ c = 5 \end{gathered}
  2. Discriminant

    The discriminant decides the kind of roots. It is negative, so the roots are a pair of complex numbers, conjugates of each other.

    Δ=b2−4ac=(−2)2−4⋅1⋅5=−16\begin{aligned} \Delta &= b^{2} - 4ac \\ &= \left(-2\right)^{2} - 4 \cdot 1 \cdot 5 \\ &= -16 \end{aligned}
  3. Square root of the discriminant

    Take the square root of the discriminant; the square root of a negative number is written with ii.

    −16=4i\sqrt{-16} = 4i
  4. Quadratic formula

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

    z=−b±b2−4ac2a=2±4i2\begin{aligned} z &= \frac{-b \pm \sqrt{b^{2} - 4ac}}{2a} \\ &= \frac{2 \pm 4i}{2} \end{aligned}
  5. Result

    The solutions are z=1−2i, z=1+2iz = 1 - 2i,\ z = 1 + 2i.

Worked examples