Arithmetic with Complex Numbers Advanced. This lesson goes beyond core Algebra I. You can skip it.

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)(a−bi)(a + bi)(a - bi) is real
  • Divide by multiplying the numerator and denominator by the conjugate
  • Square with (a+bi)2=(a2−b2)+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). The imaginary part is the coefficient bb, not the term bibi: in 2+3i2 + 3i the real part is 22 and the imaginary part is 33. A real number is the case b=0b = 0, and a pure imaginary number like 3i3i is the case a=0a = 0; standard form covers both, 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. That is not an extra rule bolted on; it follows from ii being non-real, 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. For (3+i)+(1+2i)(3 + i) + (1 + 2i), that means adding 3+1=43 + 1 = 4 and 1+2=31 + 2 = 3 to get 4+3i4 + 3i.

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

Reorder the sum so the real terms sit together and the imaginary terms sit together:

(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 factor ii, so they combine into (b+d)i(b + d)i:

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, already in standard form. The real part is the sum of the real parts, and the imaginary part is the sum of the imaginary parts. No two factors of ii were ever multiplied together, so i2i^2 never comes up in addition.

So the rules are

(a+bi)+(c+di)=(a+c)+(b+d)i,(a+bi)−(c+di)=(a−c)+(b−d)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)+(4−2i)(3 + 5i) + (4 - 2i) by combining the parts separately:

(3+5i)+(4−2i)=(3+4)+(5−2)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)=(7−1)+(2−6)i=6−4i.(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 (6−2i)−(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). Try (1+i)(2+i)(1 + i)(2 + i): expanding gives 2+i+2i+i2=2+3i−1=1+3i2 + i + 2i + i^2 = 2 + 3i - 1 = 1 + 3i. The one extra step is that the product of the two imaginary terms produces i2i^2. That is the only new thing that ever happens, and you immediately replace it with −1-1.

Why (a+bi)(c+di)=(ac−bd)+(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+bd i2.(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:

bd i2=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)=(ac−bd)+(ad+bc)i.(a + bi)(c + di) = (ac - bd) + (ad + bc)i.

The real part is ac−bdac - bd and the imaginary part is ad+bcad + bc. That −bd-bd is the whole reason a product of complex numbers is interesting. It is where i2=−1i^2 = -1 turns a term you might expect to stay positive into one that lowers the real part instead.

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. For example, i(4+2i)=4i+2i2=−2+4ii(4 + 2i) = 4i + 2i^2 = -2 + 4i.

Worked example 2 Multiply two complex numbers

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

(2+3i)(4−i)=8−2i+12i−3i2.(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:

8−2i+12i−3i2=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+22i−8=−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 (2−i)(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‾=a−bi,\overline{z} = a - bi,

read “z bar.” Conjugation changes only the imaginary part: the conjugate of 2+3i2 + 3i is 2−3i2 - 3i, and the conjugate of −4−i-4 - i is −4+i-4 + i. What makes the conjugate useful is what happens when you multiply a number by it: try (2+i)(2−i)=4−2i+2i−i2=4+1=5(2 + i)(2 - i) = 4 - 2i + 2i - i^2 = 4 + 1 = 5, and every trace of ii is gone.

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

The two factors a+bia + bi and a−bia - bi are a sum and a difference of the same two terms, so their product is a difference of squares. That is the familiar pattern (x+y)(x−y)=x2−y2(x + y)(x - y) = x^2 - y^2, applied here with x=ax = a and y=biy = bi:

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

Now expand the square (bi)2=b2i2(bi)^2 = b^2 i^2 and replace i2i^2 with −1-1:

a2−(bi)2=a2−b2i2=a2−b2(−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. It 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 a−bia - 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 4−3i4 - 3i is 4+3i4 + 3i. Their product clears the imaginary part:

(4−3i)(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.

Check your understanding

What is (−4−i)(−4+i)(-4 - i)(-4 + i)?

Answer choices

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. Multiply top and bottom by 1−i1 - i, the denominator’s conjugate:

1+3i1+i=1+3i1+i⋅1−i1−i=(1+3i)(1−i)(1+i)(1−i)=4+2i2=2+i.\frac{1 + 3i}{1 + i} = \frac{1 + 3i}{1 + i}\cdot\frac{1 - i}{1 - i} = \frac{(1 + 3i)(1 - i)}{(1 + i)(1 - i)} = \frac{4 + 2i}{2} = 2 + i.

Multiplying by 1−i1−i=1\dfrac{1 - i}{1 - i} = 1 changes the fraction’s form without changing its value, the same conjugate move you used to rationalize a radical denominator. It works because (1+i)(1−i)=12+12=2(1 + i)(1 - i) = 1^2 + 1^2 = 2, a real number, by the conjugate property just proved, so the ii in the denominator is gone.

That is the whole method. In general, to divide a+bic+di\dfrac{a + bi}{c + di} (with c+di≠0c + di \ne 0), multiply the numerator and the denominator by the conjugate c−dic - di of the denominator:

a+bic+di=a+bic+di⋅c−dic−di=(a+bi)(c−di)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, never zero here since cc and dd are not both zero. From there, expand the numerator with i2=−1i^2 = -1 and divide its real part and its imaginary part by that real denominator, exactly as above.

Worked example 4 Check a quotient, then divide a harder one

A quick check on the quotient above 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 3−2i3 - 2i, with denominator 32+22=133^2 + 2^2 = 13:

2+3i3+2i=(2+3i)(3−2i)13=6−4i+9i−6i213=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+i1−i\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=(a2−b2)+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 a2−b2a^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+12i−9=−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 1−i1 - i:

(1−i)2=1−2i+i2=1−2i−1=−2i.(1 - i)^2 = 1 - 2i + i^2 = 1 - 2i - 1 = -2i.

Here the real parts canceled 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.

Check your understanding

Square 3+2i3 + 2i.

Answer choices

Add, subtract, multiply, divide, and now square: with these tools, complex numbers are ready to use. The chapter now turns back to quadratics, to build a method that can reach the complex answers this arithmetic makes sense of.

Common mistakes

Practice

Multiple Choice Questions (MCQ)

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

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems 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.

Go deeper (optional)

You can skip this and keep going. Read it if you want to know more.

Why matching real and imaginary parts is the only way to be equal

Why a+bi=c+dia + bi = c + di exactly when a=ca = c and b=db = d#

Suppose a+bi=c+dia + bi = c + di but the imaginary parts differ, b≠db \ne d. Rearranging the equation moves the real parts to one side and the imaginary parts to the other:

a−c=di−bi=(d−b)i.a - c = di - bi = (d - b)i.

Since b≠db \ne d, the number d−bd - b is nonzero, so both sides can be divided by it:

i=a−cd−b.i = \frac{a - c}{d - b}.

The right side is a ratio of real numbers, so it is real. But ii is not real: no real number squares to −1-1. That contradiction means the assumption b≠db \ne d was wrong, so b=db = d after all. Once the imaginary parts match, a+bi=c+dia + bi = c + di reduces to a=ca = c as well. So the two complex numbers can be equal only when both parts match, exactly as the lesson states.

A bit of history (optional)

A generation before Hamilton, Wessel and later Argand had already given complex numbers a geometric meaning. They drew a+bia + bi as a point in a plane, the same picture this lesson used for addition, with rules for adding and multiplying those points. What their geometry could not offer was a definition built from arithmetic alone, one that did not lean on a picture at all.

In 1837 the Irish mathematician William Rowan Hamilton supplied exactly that. He defined a complex number as simply an ordered pair of real numbers, written (a,b)(a, b). Those are two ordinary real numbers, kept in order, with no geometry and no picture required.

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)=(ac−bd,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 0−10 - 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. Hamilton built a new number system out of ordinary pairs of real numbers, just by choosing this multiplication rule. The pairs were nothing mysterious; only the rule for combining them was new. Hamilton’s definition of a product is the multiplication rule in this lesson’s takeaway, read backwards.