Perform complex number calculations including arithmetic operations, conversions, modulus, and argument calculations.
A complex number is expressed as \( z = a + bi \), where \( a, b \in \mathbb{R} \) and \( i = \sqrt{-1} \). The real part is \( a \), the imaginary part is \( b \). Complex numbers extend the one‑dimensional number line to a two‑dimensional complex plane (Argand diagram). They were first introduced by Gerolamo Cardano in the 16th century and later formalized by Rafael Bombelli, becoming essential in algebra, analysis, and applied sciences.
Euler's formula – the most remarkable formula in mathematics:
\( e^{i\theta} = \cos\theta + i\sin\theta \)
When \( \theta = \pi \), we obtain \( e^{i\pi} + 1 = 0 \), linking five fundamental constants (e, i, π, 1, 0). This formula is the foundation of phasor analysis, Fourier transforms, and quantum wavefunctions.
| Operation | Formula (z₁ = a+bi, z₂ = c+di) | Example with z₁=3+2i, z₂=1-2i |
|---|---|---|
| Addition | \( (a+c) + (b+d)i \) | 4 + 0i |
| Subtraction | \( (a-c) + (b-d)i \) | 2 + 4i |
| Multiplication | \( (ac - bd) + (ad + bc)i \) | (3·1 - 2·(-2)) + (3·(-2) + 2·1)i = 7 -4i |
| Division | \( \frac{ac+bd}{c^2+d^2} + \frac{bc-ad}{c^2+d^2} i \) | (3·1+2·(-2))/(1²+(-2)²) + (2·1-3·(-2))/5 i = (-1)/5 + (8)/5 i = -0.2 + 1.6i |
| Modulus (|z|) | \( \sqrt{a^2 + b^2} \) | |z₁| = √13 ≈ 3.6055 |
| Argument (arg z) | \( \arctan2(b, a) \) (principal value (−π, π]) | arg z₁ ≈ 0.5880 rad (33.69°) |
| Conjugate (z̄) | \( a - bi \) | z̄₁ = 3 - 2i |
| Polar form | \( z = r(\cos\theta + i\sin\theta) = r e^{i\theta} \) | z₁ ≈ 3.6055·e^{0.588i} |
In alternating current (AC) circuits, voltages and currents are represented as complex phasors. Impedance \( Z = R + iX \) combines resistance R and reactance X. Using complex arithmetic, we compute total impedance, phase angles, and power factors. For example, a series RC circuit with R=4Ω and Xc=3Ω has impedance \( Z = 4 - 3i \) Ω. Its magnitude is 5Ω, and phase angle = -36.87° (current leads voltage). Our calculator can instantly verify these values.
The Discrete Fourier Transform (DFT) converts a time‑domain signal into its frequency components using complex exponentials. Each frequency bin is a complex number representing amplitude and phase. Complex multiplication and addition are the core operations of the FFT algorithm. Engineers rely on complex arithmetic to design filters and analyze spectral content.
The state of a quantum system is described by a complex wavefunction \( \Psi(x,t) \). The Schrödinger equation involves complex coefficients. Observable quantities are obtained via modulus squared (probability). Complex conjugates appear in inner products. Understanding complex numbers is essential for interpreting quantum phenomena.
This tool is built on formulas verified against authoritative sources: Complex Variables and Applications by Churchill & Brown, Advanced Engineering Mathematics by Kreyszig, and the Wolfram MathWorld entry. The implementation uses double‑precision floating point and the standard Math.atan2 for correct quadrant‑aware argument. Reviewed by GetZenQuery’s Tech team. Last updated March 2026.