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.

Two complex numbers are equal exactly when their parts match: a+bi=c+dia+bi=c+di means a=ca=c and b=db=d. For example, 2+3i2+3i and 2+4i2+4i differ by ii, so they are not equal. In general, a+bi=c+dia+bi=c+di gives a−c=(d−b)ia-c=(d-b)i. The left side is real. A nonzero real multiple of ii cannot equal a real number: dividing by its nonzero real coefficient would make ii itself real. Thus d−b=0d-b=0, and then a−c=0a-c=0, so both parts match.

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.

Thus the sum is (a+c)+(b+d)i(a+c)+(b+d)i, already in standard form. No factors of ii were multiplied together, so there is no i2i^2 to replace.

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 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.

Plot a+bia+bi as the point (a,b)(a,b), using a horizontal real axis (Re) and a vertical imaginary axis (Im). Draw an arrow from the origin to the point. It records a horizontal change aa and a vertical change bb, wherever you place it: positive changes move right or up, and negative changes move left or down. Addition combines these changes separately. Placing the second arrow at the tip of the first gives the sum.

Adding complex numbers as a parallelogram of arrowsEqual units on the real and imaginary axes show that three right and one up, followed by one right and two up, reaches four right and three up.ImRe12341233 + i1 + 2i4 + 3i
The arrows for 3 + i and 1 + 2i form two sides of a parallelogram. Its far corner is their sum, 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 gives i2i^2, which you replace 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 it is the only term that needs simplifying. 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.\begin{gathered} (a+bi)(c+di) \\ =(ac-bd)+(ad+bc)i. \end{gathered}

The real part is ac−bdac-bd and the imaginary part is ad+bcad+bc. The term bd i2bd\,i^2 contributes −bd-bd to the real part; its sign depends on bb and dd.

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.

Beginners most often go wrong when the i2i^2 term changes sign and joins the real terms, as it did in both products.

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 no ii is left.

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.\begin{aligned} a^2-(bi)^2&=a^2-b^2i^2 \\ &=a^2-b^2(-1) \\ &=a^2+b^2. \end{aligned}

The difference of squares became a sum of squares: since i2=−1i^2 = -1, subtracting b2i2b^2 i^2 is the same as adding 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.

For a nonzero complex number, this product is positive. We can use it to make a denominator real without introducing division by zero.

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 gives the same value.

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.\begin{aligned} \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. \end{aligned}

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.

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.\begin{aligned} \frac{2+3i}{3+2i}&=\frac{(2+3i)(3-2i)}{13} \\ &=\frac{6-4i+9i-6i^2}{13} \\ &=\frac{12+5i}{13}. \end{aligned}

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

Powers use repeated multiplication. For a square, use the binomial pattern (x+y)2=x2+2xy+y2(x+y)^2=x^2+2xy+y^2 from Squares of Binomials, then replace i2i^2 with −1-1.

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.

Now 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 terms 11 and −1-1 cancel, leaving −2i-2i.

The same expansion works with any real aa and bb:

(a+bi)2=a2+2abi+(bi)2=a2+2abi+b2i2=(a2−b2)+2abi.\begin{aligned} (a+bi)^2&=a^2+2abi+(bi)^2 \\ &=a^2+2abi+b^2i^2 \\ &=(a^2-b^2)+2abi. \end{aligned}

The real part is a2−b2a^2-b^2 and the imaginary part is 2ab2ab. To cube a number, square it and multiply once more, replacing every i2i^2 as it appears.

Check your understanding

Square 3+2i3 + 2i.

Answer choices

The rest of the chapter goes back to quadratic equations with real coefficients and builds a method that solves them, including the ones whose solutions are not real.

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#

For a concrete example, suppose 2+3i=5+4i2+3i=5+4i. Subtracting 2+3i2+3i would give 0=3+i0=3+i, hence i=−3i=-3, which is impossible because ii is not real.

Now suppose a+bi=c+dia + bi = c + di with real a,b,c,da,b,c,d, 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. Conversely, if a=ca=c and b=db=d, the two expressions have identical parts and are equal. This proves both directions.

A bit of history (optional)

Wessel and Argand gave complex numbers a geometric interpretation before Hamilton’s work. A point in a plane can represent a+bia+bi, as in this lesson’s addition diagram. Hamilton developed another way to describe these numbers: arithmetic on ordered pairs. This gave explicit rules using only real-number entries, without relying on a picture.

In his 1837 paper, the Irish mathematician William Rowan Hamilton presented complex numbers as pairs (a,b)(a,b) of real numbers. The order matters. The first entry plays the role of the real part and the second of the imaginary part. Addition and multiplication follow these rules:

(a,b)+(c,d)=(a+c,b+d),(a,b)(c,d)=(ac−bd,ad+bc).\begin{aligned} (a,b)+(c,d)&=(a+c,b+d), \\ (a,b)(c,d)&=(ac-bd,ad+bc). \end{aligned}

Try multiplying (0,1)(0,1) by itself. The first entry becomes 0−1=−10-1=-1, and the second becomes 0+0=00+0=0. Thus (0,1)2=(−1,0)(0,1)^2=(-1,0): the pair representing ii squares to the pair representing −1-1. In Hamilton’s description, i2=−1i^2=-1 became a calculation on pairs of familiar real numbers.

Sources: Hamilton’s 1837 paper, hosted by Trinity College Dublin and MacTutor’s account of Argand and Wessel.

Your progress

See all your progress →