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

z=−2i, z=2i\displaystyle z = -2i,\ z = 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+4=0a=1, b=0, c=4\begin{gathered} z^{2} + 4 = 0 \\ a = 1,\ b = 0,\ c = 4 \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=02−4⋅1⋅4=−16\begin{aligned} \Delta &= b^{2} - 4ac \\ &= 0^{2} - 4 \cdot 1 \cdot 4 \\ &= -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=0±4i2\begin{aligned} z &= \frac{-b \pm \sqrt{b^{2} - 4ac}}{2a} \\ &= \frac{0 \pm 4i}{2} \end{aligned}
  5. Result

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

Worked examples