How to Add, Subtract, Multiply and Divide Complex Numbers

Adds, subtracts, multiplies or divides the complex numbers a + bi and c + di. Multiplication uses i² = −1 to tidy the result, and division multiplies top and bottom by the conjugate c − di so that the denominator becomes a real number.

This adds, subtracts, multiplies or divides the complex numbers a+bia + bi and c+dic + di, where ii squares to 1-1.

Addition and subtraction simply combine the real parts and the imaginary parts. Multiplication expands the brackets and tidies up with i2=1i^2 = -1.

(a+bi)(c+di)=(acbd)+(ad+bc)i(a + bi)(c + di) = (ac - bd) + (ad + bc)i

Division multiplies both top and bottom by the conjugate cdic - di. The denominator becomes the real number c2+d2c^2 + d^2, and what is left is division by a real number.

a+bic+di=(ac+bd)+(bcad)ic2+d2\dfrac{a + bi}{c + di} = \dfrac{(ac + bd) + (bc - ad)i}{c^2 + d^2}

Example

Take (3+4i)(12i)(3 + 4i)(1 - 2i). The real part is 3×14×(2)=113 \times 1 - 4 \times (-2) = 11 and the imaginary part is 3×(2)+4×1=23 \times (-2) + 4 \times 1 = -2, so the answer is 112i11 - 2i. Expanding by hand agrees: 36i+4i8i2=32i+8=112i3 - 6i + 4i - 8i^2 = 3 - 2i + 8 = 11 - 2i. The absolute value is 121+4=125\sqrt{121 + 4} = \sqrt{125}, about 11.18.

Why the conjugate works

(c+di)(cdi)=c2(di)2=c2+d2(c + di)(c - di) = c^2 - (di)^2 = c^2 + d^2, and ii disappears. It drives ii out of the denominator, in the same way that rationalising clears a 2\sqrt{2} from the bottom of a fraction.

Notes

With cc and dd both 0 this divides by zero, so nothing is calculated.