Complex Number Calculator: Complete Guide to Complex Arithmetic, Argand Diagram, and Polar Form
Complex numbers extend the real number system by introducing the imaginary unit i, defined as √(−1). Every complex number has the form z = a + bi, where a is the real part and b is the imaginary part. Far from being abstract curiosities, complex numbers are essential tools in electrical engineering (AC circuits), quantum mechanics (wave functions), signal processing (Fourier transforms), control theory (stability analysis), and fluid dynamics. This calculator performs all fundamental complex operations with an interactive Argand diagram visualization.
Complex Arithmetic
Addition/Subtraction: combine real and imaginary parts separately. (3+4i) + (1−2i) = 4+2i. Multiplication: use FOIL and remember i² = −1. (3+4i)(1−2i) = 3−6i+4i−8i² = 3−2i+8 = 11−2i. Division: multiply numerator and denominator by the conjugate of the denominator. (3+4i)/(1−2i) = (3+4i)(1+2i)/((1−2i)(1+2i)) = (−5+10i)/5 = −1+2i. Each operation has geometric meaning on the Argand plane: addition is vector addition, multiplication combines magnitudes and adds angles.
The Argand Diagram
The Argand diagram (complex plane) plots complex numbers as points, with the real part on the horizontal axis and imaginary part on the vertical axis. The number 3+4i appears at coordinates (3,4). This geometric representation reveals deep connections: the magnitude (modulus) |z| = √(a²+b²) is the distance from origin, and the argument (angle) θ = atan2(b,a) is the angle from the positive real axis. Our interactive canvas draws both input complex numbers, the result, and connecting lines to show the geometric meaning of each operation.
z = r(cosθ + i·sinθ) = re^(iθ) (polar form)
|z| = √(a² + b²) (magnitude)
θ = atan2(b, a) (argument)
Conjugate: z̅ = a − bi
|z|² = z × z̅ = a² + b²
De Moivre: zⁿ = rⁿ(cos(nθ) + i·sin(nθ))
Euler: e^(iπ) + 1 = 0
Polar Form and Euler’s Formula
Every complex number can be written in polar form: z = r(cosθ + i·sinθ), or using Euler’s formula: z = re^(iθ). Polar form makes multiplication and powers trivial: to multiply, multiply magnitudes and add angles. To raise to power n, use De Moivre’s theorem: zⁿ = rⁿ(cos(nθ) + i·sin(nθ)). Euler’s identity e^(iπ) + 1 = 0 connects five fundamental constants (e, i, π, 1, 0) and is widely considered the most beautiful equation in mathematics. Our calculator displays both rectangular and polar forms for every result.
Complex Numbers in Engineering
Electrical engineering: impedance Z = R + jX (using j instead of i) combines resistance R and reactance X. AC circuit analysis relies entirely on complex arithmetic — voltage, current, and impedance are all complex quantities. Signal processing: the Fourier transform decomposes signals into complex exponentials e^(iωt), and the FFT (Fast Fourier Transform) is the most important algorithm in digital signal processing. Control theory: system stability is determined by the location of poles (complex roots) in the s-plane. Quantum mechanics: wave functions are complex-valued, and probability amplitudes use complex multiplication.
The Fundamental Theorem of Algebra
Every polynomial of degree n has exactly n roots in the complex numbers (counting multiplicity). This is the Fundamental Theorem of Algebra, first proved by Gauss in 1799. It explains why complex numbers exist: without them, equations like x²+1=0 have no solutions. The quadratic formula naturally produces complex roots when the discriminant is negative. Complex roots of polynomials with real coefficients always come in conjugate pairs: if 3+4i is a root, so is 3−4i. This theorem guarantees that the complex numbers are algebraically closed — no further extension is needed to solve any polynomial equation.
How to Use This Calculator
Enter the real and imaginary parts of z₁. For operations (Add, Sub, Mul, Div), also enter z₂. For Power, enter the exponent n. The calculator computes the result in both rectangular and polar form, draws the Argand diagram with labeled points, shows magnitude, angle, conjugate, and |z|². The powers table lists z¹ through z¹⁰ with all properties. Step-by-step solution details every computation stage. The Argand diagram uses a full Canvas rendering with grid, axes, and color-coded points for z₁, z₂, and the result.
Complex Numbers in Fractals and Visualization
The Mandelbrot set, perhaps the most famous mathematical visualization, is defined entirely using complex number iteration: for each complex number c, iterate z = z² + c starting from z = 0. If the sequence stays bounded, c belongs to the set. The boundary of the Mandelbrot set reveals infinitely complex, self-similar structures at every scale of magnification. The related Julia sets use the same iteration but with fixed c and varying starting points. These fractals demonstrate the rich dynamical behavior that emerges from simple complex arithmetic and have applications in antenna design, image compression, and generative art.
Roots of Unity and Symmetry
The n-th roots of unity are the n complex numbers z satisfying zⁿ = 1. They form a regular n-gon on the unit circle in the Argand diagram: zₖ = e^(2πik/n) for k = 0, 1, ..., n−1. For example, the cube roots of unity are 1, e^(2πi/3), and e^(4πi/3), forming an equilateral triangle. These roots are fundamental in the Fast Fourier Transform (FFT), the most important algorithm in signal processing, and in abstract algebra where they generate cyclic groups. The deep connection between complex exponentials and rotational symmetry makes roots of unity appear throughout mathematics, physics, and engineering.
Quaternions: Beyond Complex Numbers
Complex numbers extend reals from 1D to 2D. Quaternions, discovered by Hamilton in 1843, extend to 4D: q = a + bi + cj + dk, where i² = j² = k² = ijk = −1. Quaternions are the standard for representing 3D rotations in game engines, aerospace, and robotics because they avoid gimbal lock (a problem with Euler angles) and interpolate smoothly (SLERP). Every 3D rotation in Unity, Unreal Engine, and most animation software uses quaternions internally. The mathematical progression from reals to complex numbers to quaternions to octonions forms a fundamental structure in abstract algebra called the Cayley-Dickson construction.