MathLive Logo

Complex Equation Numerical Solver Beta

Solve f(z)=0 over ℂ. Use variable z. Examples: z^2+4, e^z-z, z^32-2^z.
Tips: Provide f'(z) when you can. Increase grid to find more roots; expand ranges for large-magnitude solutions. For z^32-2^z, include 256 on the real axis to catch the exact root.

How the Complex Equation Solver Works

The solver finds the complex roots of an equation f(z) = 0, where z = x + iy. It spreads a grid of starting points over the rectangle you choose (the real and imaginary ranges) and runs Newton’s method from each one: znew = z − f(z)/f′(z). Each step is damped so it cannot jump too far, which makes the search more stable. When |f(z)| drops below the tolerance, the point is accepted as a root; roots closer together than the merge radius are counted once. Every root is listed in rectangular form (a + bi) and polar form (r and angle), plotted on the complex plane, and can be exported as CSV or PNG.

Worked example

For z^2 + 4, solve z² = −4: the roots are z = 2i and z = −2i, both at distance 2 from the origin. For z^3 - 1, the three cube roots of unity are 1, −1/2 + (√3/2)i and −1/2 − (√3/2)i; they sit on the unit circle, 120° apart.

Frequently asked questions

Why didn’t it find all the roots?

Newton’s method only finds roots that some starting point leads to. Increase the grid size, raise the maximum iterations, or widen the real and imaginary ranges — roots with a large magnitude need a large search area. If a root is found outside your range, the plot zooms out automatically to show it.

Should I enter the derivative f′(z)?

It is optional. Without it the solver estimates the derivative numerically; typing the exact derivative (for example 3*z^2 for z^3 - 1) usually converges faster and more reliably.

How do I type complex functions?

Use z as the variable, * for multiplication and ^ for powers, and i for the imaginary unit: z^4 + 1, e^z - z, z^2 - (1+2*i).

What is the polar form?

A complex number a + bi can also be written by its distance from the origin r = √(a² + b²) and its angle θ from the positive real axis, so that a + bi = r·(cos θ + i·sin θ).

For a full explanation of every setting, with an annotated screenshot, see the Complex Equation Solver guide.