This site is a work in progress. New lessons are added regularly. Contact us

Arithmetic with Complex Numbers

Learning goals

  • Write a complex number in standard form a+bia + bi
  • Add and subtract by combining the parts separately
  • Multiply like binomials, replacing i2i^2 with 1-1
  • Use the conjugate, since (a+bi)(abi)(a + bi)(a - bi) is real
  • Divide by multiplying both parts by the denominator's conjugate
  • Square with (a+bi)2=(a2b2)+2abi(a + bi)^2 = (a^2 - b^2) + 2abi

The standard form a + bi

A complex number is a number written in the standard form

z=a+bi,z = a + bi,

where aa and bb are real numbers and ii is the imaginary unit with i2=1i^2 = -1. The real number aa is the real part of zz, written Re(z)\operatorname{Re}(z), and the real number bb is the imaginary part, written Im(z)\operatorname{Im}(z). Notice that the imaginary part is the real coefficient bb, not bibi: in 2+3i2 + 3i the real part is 22 and the imaginary part is 33.

Two familiar kinds of number are just special cases. When b=0b = 0 the number is a+0i=aa + 0i = a, an ordinary real number, so every real number is already a complex number. When a=0a = 0 the number is 0+bi=bi0 + bi = bi, a pure imaginary number like 3i3i or i-i. Standard form holds both of these, and everything between, in one shape.

Because the two parts play different roles, two complex numbers count as equal only when they match part for part: a+bi=c+dia + bi = c + di exactly when a=ca = c and b=db = d. This is not an extra rule we impose; it follows from ii being non-real. If a+bi=c+dia + bi = c + di with bdb \ne d, then rearranging gives (ac)=(db)i(a - c) = (d - b)i, and dividing by the nonzero dbd - b would make i=acdbi = \frac{a - c}{d - b} a ratio of real numbers, hence real. That contradicts i2=1i^2 = -1, so the imaginary parts must be equal, and then the real parts must be equal too. Matching real and imaginary parts is therefore the only way two complex numbers can be equal, a fact the next lessons lean on constantly.

Adding and subtracting

Addition and subtraction are the easiest operations, because the real and imaginary parts never interact. You simply combine them separately.

Why (a+bi)+(c+di)=(a+c)+(b+d)i(a + bi) + (c + di) = (a + c) + (b + d)i#

Write the sum out and reorder it using the commutative and associative laws of addition, which let you add real quantities in any order and grouping:

(a+bi)+(c+di)=(a+c)+(bi+di).(a + bi) + (c + di) = (a + c) + (bi + di).

The two imaginary terms bibi and didi share the common factor ii, so the distributive law pulls it out:

bi+di=(b+d)i.bi + di = (b + d)i.

Putting the pieces back together gives (a+c)+(b+d)i(a + c) + (b + d)i, which is again in standard form. In that form, the real part is the sum a+ca + c of the real parts, and the imaginary part is the sum b+db + d of the imaginary parts. Nothing about i2i^2 ever came up, because no two factors of ii were multiplied together.

So the rules are

(a+bi)+(c+di)=(a+c)+(b+d)i,(a+bi)(c+di)=(ac)+(bd)i.\begin{aligned} (a + bi) + (c + di) &= (a + c) + (b + d)i, \\ (a + bi) - (c + di) &= (a - c) + (b - d)i. \end{aligned}

Subtraction works the same way once you distribute the minus sign to both parts of the second number. The single most common slip is to subtract the real parts but forget to subtract the imaginary parts. To avoid that slip, keep the whole second number inside its parentheses until the sign is distributed.

Worked example 1 Add and subtract two complex numbers

Add (3+5i)+(42i)(3 + 5i) + (4 - 2i) by combining the parts separately:

(3+5i)+(42i)=(3+4)+(52)i=7+3i.(3 + 5i) + (4 - 2i) = (3 + 4) + (5 - 2)i = 7 + 3i.

Now subtract (7+2i)(1+6i)(7 + 2i) - (1 + 6i). Distribute the minus sign to both the 11 and the 6i6i:

(7+2i)(1+6i)=(71)+(26)i=64i.(7 + 2i) - (1 + 6i) = (7 - 1) + (2 - 6)i = 6 - 4i.

Each answer is already in standard form, the real part first and a single imaginary term second.

There is a clean picture behind this. Suppose you plot a complex number a+bia + bi as the point aa units along a horizontal real axis and bb units up a vertical imaginary axis. Then adding two complex numbers adds their horizontal steps and adds their vertical steps, which is exactly how you add arrows tip to tail.

Adding complex numbers as a parallelogram of arrowsArrows from the origin to 3 + i and to 1 + 2i, with the diagonal arrow to their sum 4 + 3i completing a parallelogram, because the real parts 3 and 1 add to 4 and the imaginary parts 1 and 2 add to 3.ReIm12341233 + i1 + 2i4 + 3i
Plot a complex number a + bi by going a units along the real axis and b units up the imaginary axis. Adding combines the parts separately, so the sum lands at the far corner of the parallelogram built on the two arrows: (3 + i) + (1 + 2i) = 4 + 3i, because 3 + 1 = 4 and 1 + 2 = 3.

Check your understanding

Simplify (62i)(3+4i)(6 - 2i) - (3 + 4i).

Answer choices

Multiplying

To multiply two complex numbers, treat them as two binomials and expand with the distributive law, the same “first, outer, inner, last” you use for (x+2)(x+3)(x + 2)(x + 3). The one extra step is that the product of the two imaginary terms produces i2i^2, which you immediately replace with 1-1.

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

Expand the product by multiplying every term of the first factor by every term of the second:

(a+bi)(c+di)=ac+adi+bci+bdi2.(a + bi)(c + di) = ac + adi + bci + bd\,i^2.

Three of these terms are ordinary products of real numbers times 11 or ii. The last term carries i2i^2, and this is the only place the imaginary unit does anything special. Replace i2i^2 with 1-1:

bdi2=bd(1)=bd.bd\,i^2 = bd(-1) = -bd.

Now collect the real terms, acac and bd-bd, and the imaginary terms, adiadi and bcibci:

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

The real part is acbdac - bd and the imaginary part is ad+bcad + bc. The bd-bd in the real part is the whole reason a product of complex numbers is interesting. That bd-bd is the i2=1i^2 = -1 substitution reaching back to change a term you might have expected to stay positive.

You do not need to memorize the final formula. It is faster and safer to expand each product by hand and replace i2i^2 with 1-1 as it appears, exactly as in the examples below. Two special cases are worth noticing: multiplying by a real number kk scales both parts, k(a+bi)=ka+kbik(a + bi) = ka + kbi, and multiplying by ii sends a+bia + bi to i(a+bi)=ai+bi2=b+aii(a + bi) = ai + bi^2 = -b + ai.

Worked example 2 Multiply two complex numbers

Expand (2+3i)(4i)(2 + 3i)(4 - i) term by term:

(2+3i)(4i)=82i+12i3i2.(2 + 3i)(4 - i) = 8 - 2i + 12i - 3i^2.

Replace i2i^2 with 1-1, so 3i2=3(1)=+3-3i^2 = -3(-1) = +3, then combine like terms:

82i+12i3i2=8+10i+3=11+10i.8 - 2i + 12i - 3i^2 = 8 + 10i + 3 = 11 + 10i.

Try a second, (5+2i)(1+4i)(5 + 2i)(1 + 4i):

(5+2i)(1+4i)=5+20i+2i+8i2=5+22i8=3+22i.(5 + 2i)(1 + 4i) = 5 + 20i + 2i + 8i^2 = 5 + 22i - 8 = -3 + 22i.

In both products the i2i^2 term flipped sign and merged into the real part, which is exactly where a beginner’s answer most often goes wrong.

Check your understanding

Multiply (2i)(3+2i)(2 - i)(3 + 2i).

Answer choices

The complex conjugate

Before dividing, we need one special product. The complex conjugate of z=a+biz = a + bi is the number with the sign of its imaginary part flipped,

z=abi,\overline{z} = a - bi,

read “z bar.” Conjugation changes only the imaginary part: the conjugate of 2+3i2 + 3i is 23i2 - 3i, and the conjugate of 4i-4 - i is 4+i-4 + i. What makes the conjugate useful is what happens when you multiply a number by it.

Why (a+bi)(abi)=a2+b2(a + bi)(a - bi) = a^2 + b^2#

The two factors a+bia + bi and abia - bi are a sum and a difference of the same two terms, so their product is a difference of squares. That is the pattern (x+y)(xy)=x2y2(x + y)(x - y) = x^2 - y^2 from the special-factorizations chapter, used here with x=ax = a and y=biy = bi:

(a+bi)(abi)=a2(bi)2.(a + bi)(a - bi) = a^2 - (bi)^2.

The middle terms abi-abi and +abi+abi are exact opposites and cancel, which is what clears the imaginary part. Now expand the square (bi)2=b2i2(bi)^2 = b^2 i^2 and replace i2i^2 with 1-1:

a2(bi)2=a2b2i2=a2b2(1)=a2+b2.a^2 - (bi)^2 = a^2 - b^2 i^2 = a^2 - b^2(-1) = a^2 + b^2.

The difference of squares became a sum of squares, because i2=1i^2 = -1 turned the subtracted b2i2b^2 i^2 into an added b2b^2. The result a2+b2a^2 + b^2 is a real number, and since it is a sum of two squares it is never negative. The result is zero only when aa and bb are both zero, that is, only when z=0z = 0.

That is the key property: a nonzero complex number times its conjugate is a positive real number, with every trace of ii gone. Multiplying a+bia + bi by abia - bi is the surest way to turn a complex number into a real one, and it is exactly the tool that makes division possible.

Worked example 3 Conjugates and their products

The conjugate of 43i4 - 3i is 4+3i4 + 3i. Their product clears the imaginary part:

(43i)(4+3i)=42+32=16+9=25.(4 - 3i)(4 + 3i) = 4^2 + 3^2 = 16 + 9 = 25.

The conjugate of the pure imaginary number 5i5i is 5i-5i, and

(5i)(5i)=25i2=25,(5i)(-5i) = -25i^2 = 25,

again a positive real number. In standard form 5i=0+5i5i = 0 + 5i, so here a=0a = 0 and b=5b = 5, and a2+b2=25a^2 + b^2 = 25 as the pattern predicts.

Dividing

A quotient of two complex numbers, such as 1+3i1+i\dfrac{1 + 3i}{1 + i}, is not yet in standard form: it has an imaginary part sitting in the denominator. Clearing it uses the same move you learned for rationalizing a radical denominator in the special-factorizations chapter. There you multiplied by the conjugate to turn a+ba + \sqrt{b} into the rational a2ba^2 - b; here you multiply by the conjugate to turn c+dic + di into the real c2+d2c^2 + d^2. The imaginary unit plays the role the radical played, and the conjugate clears it the same way.

To divide a+bic+di\dfrac{a + bi}{c + di}, multiply the numerator and the denominator by the conjugate cdic - di of the denominator:

a+bic+di=a+bic+dicdicdi=(a+bi)(cdi)c2+d2.\frac{a + bi}{c + di} = \frac{a + bi}{c + di}\cdot\frac{c - di}{c - di} = \frac{(a + bi)(c - di)}{c^2 + d^2}.

The denominator is now the real number c2+d2c^2 + d^2, by the conjugate property just proved. Expanding the numerator and dividing each part by that real number puts the answer back in standard form:

a+bic+di=(ac+bd)+(bcad)ic2+d2=ac+bdc2+d2+bcadc2+d2i.\frac{a + bi}{c + di} = \frac{(ac + bd) + (bc - ad)i}{c^2 + d^2} = \frac{ac + bd}{c^2 + d^2} + \frac{bc - ad}{c^2 + d^2}\,i.

As always with a conjugate, cdicdi=1\dfrac{c - di}{c - di} = 1, so multiplying by it changes the form of the quotient without changing its value. You never need the boxed formula; in practice you multiply by the conjugate, simplify the numerator with i2=1i^2 = -1, and divide the real denominator into each part.

Worked example 4 Divide and write the answer in standard form

Divide 1+3i1+i\dfrac{1 + 3i}{1 + i}. The denominator’s conjugate is 1i1 - i, and multiplying top and bottom by it makes the denominator 12+12=21^2 + 1^2 = 2:

1+3i1+i=(1+3i)(1i)(1+i)(1i)=1i+3i3i21+1=4+2i2.\frac{1 + 3i}{1 + i} = \frac{(1 + 3i)(1 - i)}{(1 + i)(1 - i)} = \frac{1 - i + 3i - 3i^2}{1 + 1} = \frac{4 + 2i}{2}.

Divide both parts of the numerator by 22:

4+2i2=2+i.\frac{4 + 2i}{2} = 2 + i.

The quotient comes out to the tidy 2+i2 + i. A quick check multiplies back: (2+i)(1+i)=2+2i+i+i2=1+3i(2 + i)(1 + i) = 2 + 2i + i + i^2 = 1 + 3i, the original numerator.

Not every quotient is that clean. Divide 2+3i3+2i\dfrac{2 + 3i}{3 + 2i} using the conjugate 32i3 - 2i, with denominator 32+22=133^2 + 2^2 = 13:

2+3i3+2i=(2+3i)(32i)13=64i+9i6i213=12+5i13.\frac{2 + 3i}{3 + 2i} = \frac{(2 + 3i)(3 - 2i)}{13} = \frac{6 - 4i + 9i - 6i^2}{13} = \frac{12 + 5i}{13}.

Split the single fraction into its real and imaginary parts to reach standard form:

12+5i13=1213+513i.\frac{12 + 5i}{13} = \frac{12}{13} + \frac{5}{13}i.

Fractions in the parts are perfectly normal; the answer is still a+bia + bi, now with a=1213a = \frac{12}{13} and b=513b = \frac{5}{13}.

Check your understanding

Write 5+i1i\dfrac{5 + i}{1 - i} in standard form a+bia + bi.

Answer choices

Powers of a complex number

Raising a complex number to a power is just repeated multiplication, so the same rules apply. The most common case is a square, which follows the square-of-a-binomial pattern (x+y)2=x2+2xy+y2(x + y)^2 = x^2 + 2xy + y^2 from earlier, again with a final i2=1i^2 = -1:

(a+bi)2=a2+2abi+(bi)2=a2+2abi+b2i2=(a2b2)+2abi.(a + bi)^2 = a^2 + 2abi + (bi)^2 = a^2 + 2abi + b^2 i^2 = (a^2 - b^2) + 2abi.

The real part is a2b2a^2 - b^2 and the imaginary part is 2ab2ab.

Worked example 5 Square a complex number

Square 2+3i2 + 3i with the binomial pattern, then apply i2=1i^2 = -1:

(2+3i)2=22+2(2)(3i)+(3i)2=4+12i+9i2=4+12i9=5+12i.(2 + 3i)^2 = 2^2 + 2(2)(3i) + (3i)^2 = 4 + 12i + 9i^2 = 4 + 12i - 9 = -5 + 12i.

A difference can collapse even further. Square 1i1 - i:

(1i)2=12i+i2=12i1=2i.(1 - i)^2 = 1 - 2i + i^2 = 1 - 2i - 1 = -2i.

Here the real parts cancelled completely, leaving the pure imaginary 2i-2i. Higher powers build on the same idea: to cube a number, square it and multiply once more, reducing every i2i^2 as it appears.

These four operations are the whole of complex arithmetic, and they are enough to give every quadratic equation a solution, the thread the next lessons pick up.

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Free Response Questions (FRQ)

Longer questions in parts, to be worked out on paper. Progressive hints, the answer on its own so you can check yourself and try again, then the full worked solution, plus a rubric to mark your own work against.

Free response Work it out on paper 5 questions Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (Optional)

You have spent this lesson computing with a number nobody could point to. That was the state of the subject for nearly three hundred years. The rules worked. What ii actually was, nobody could say, and the only honest answer went in a circle: it is whatever squares to 1-1.

In 1837 the Irish mathematician William Rowan Hamilton removed the question instead of answering it. He proposed that a complex number is simply an ordered pair of real numbers, written (a,b)(a, b). There is no new object anywhere in that definition. There are two ordinary real numbers, kept in order.

Then he laid down how pairs combine. They add slot by slot, so (a,b)+(c,d)=(a+c,b+d)(a, b) + (c, d) = (a + c, b + d). They multiply by the rule you derived above, (a,b)(c,d)=(acbd,ad+bc)(a, b)(c, d) = (ac - bd, ad + bc).

Now watch the pair (0,1)(0, 1) meet itself under that product. Its first slot gives 010 - 1, and its second slot gives 0+00 + 0. So the answer is the pair (1,0)(-1, 0), which is the real number 1-1.

That is the whole of it. The equation i2=1i^2 = -1 stopped being a leap of faith and became a small piece of arithmetic on pairs. Nothing has to be believed, because nothing new was invented. Hamilton’s definition of a product is the multiplication rule in this lesson’s takeaway, read backwards.