Chapter III · Complex numbers

Complex numbers and the equation i2=−1i^2 = -1

§§39–42 30 min

A complex number x+yix + yi is the displacement [x,y][x, y] under a new name; its arithmetic follows the usual rules with i2=−1i^2 = -1, and multiplying by ii is a quarter turn.

Why this matters

The last lesson produced a sum and a product of displacements. This one gives them a better notation, x+yix + yi, and shows that the notation is honest: with it, you calculate exactly as in school algebra, except that i2i^2 is replaced by −1-1. Hardy also proves the two facts that make algebra work: you can divide by anything except 00, and a product is 00 only if a factor is 00. Finally he reads multiplication by ii geometrically, as a turn through a right angle, which is the most useful single picture of complex numbers.

The idea

Hardy now writes x+yix + yi for the pair [x,y][x, y] (§39). At this stage the ++ and the ii are just ink: “x+yix + yi” is a label for a displacement, and the label was chosen because it will turn out to calculate correctly. Sums and products of complex numbers are defined as the sums and products of the displacements from the last lesson:

(x+yi)+(x′+y′i)=(x+x′)+(y+y′)i,(x+yi)(x′+y′i)=(xx′−yy′)+(xy′+yx′)i.(x + yi) + (x' + y'i) = (x + x') + (y + y')i, \qquad (x + yi)(x' + y'i) = (xx' - yy') + (xy' + yx')i.

Now look at three special cases. Pairs of the form x+0ix + 0i add and multiply exactly like the real numbers xx, so we may simply write xx. Pairs 0+yi0 + yi are written yiyi, and 0+1i0 + 1i is written ii. And by the product rule,

i⋅i=(0+1i)(0+1i)=(0⋅0−1⋅1)+(0⋅1+1⋅0)i=−1.i \cdot i = (0 + 1i)(0 + 1i) = (0\cdot 0 - 1\cdot 1) + (0\cdot 1 + 1\cdot 0)i = -1.

So i2=−1i^2 = -1 is not an assumption; it is what the similar-triangle product gives for the unit move along the yy-axis multiplied by itself. Geometrically, ii is the quarter turn: the triangle OABOAB with B=(0,1)B = (0, 1) has a right angle at OO, so multiplying by ii turns any displacement through 90∘90^\circ without stretching it. Two quarter turns make a half turn, and a half turn is multiplication by −1-1.

Explore Powers of ii

Try this. Here z=iz = i and the widget plots 1,z,z2,z3,z41, z, z^2, z^3, z^4. Read off i2i^2, i3i^3 and i4i^4. Then drag zz a little way off ii, keeping it on the unit circle.

ReIm
  • z (drag)
  • z, z², …, zⁿ
  • unit circle
z=i=1 (cos⁡1.57+isin⁡1.57)z = i = 1\,(\cos 1.57 + i\sin 1.57)
De Moivre: z4=r4(cos⁡4θ+isin⁡4θ)z^{4} = r^{4}(\cos 4\theta + i\sin 4\theta) with r=1r = 1, θ=1.57\theta = 1.57: each multiplication by zz turns through θ\theta and scales by rr. z4=1z^{4} = 1.
What to notice

i,−1,−i,1i, -1, -i, 1: each multiplication by ii is a quarter turn, so the powers cycle with period 44. For other points of the unit circle the powers still step round the circle by equal angles, which is De Moivre’s theorem, two lessons ahead.

Hardy also notes (§42) that the whole theory could have been built from this picture. If ii means “turn through a right angle”, then yiyi is a move of length yy along the yy-axis, and to multiply z=x+yiz = x + yi by w=x′+y′iw = x' + y'i we should add “zz stretched by x′x'” to “zz turned through a right angle and stretched by y′y'”. That sum is exactly the product formula.

Explore The product as a sum of two pieces

Try this. Drag ww onto the real axis, then onto the imaginary axis, then anywhere. Watch the two green pieces z⋅x′z\cdot x' and z⋅y′iz\cdot y'i, placed nose to tail.

ReIm
  • z = x + yi (drag)
  • w = x′ + y′i (drag)
  • iz: z turned through a right angle
  • z·x′, then z·y′i
  • zw
z=1.5+0.5i,w=1.2+0.9i,iz=−0.5+1.5iz = 1.5 + 0.5i,\quad w = 1.2 + 0.9i,\quad iz = -0.5 + 1.5i
z⋅x′=1.2 z=1.8+0.6iz\cdot x' = 1.2\,z = 1.8 + 0.6i; z⋅y′i=0.9 (iz)=−0.45+1.35iz\cdot y'i = 0.9\,(iz) = -0.45 + 1.35i
Sum: zw=(xx′−yy′)+(xy′+yx′)i=1.35+1.95izw = (xx' - yy') + (xy' + yx')i = 1.35 + 1.95i
What to notice

On the real axis the second piece vanishes and zwzw is zz stretched. On the imaginary axis the first piece vanishes and zwzw is iziz stretched. In general zwzw is their sum, which is the distributive law z(x′+y′i)=zx′+z y′iz(x' + y'i) = zx' + z\,y'i seen as a picture. Either way zwzw ends up at the angle of zz plus the angle of ww.

The practical rule that comes out of all this (§41): calculate with x+yix + yi as with an ordinary algebraic expression in a letter ii, and replace i2i^2 by −1-1 wherever it appears. For example

(x+yi)(x′+y′i)=xx′+xy′i+yx′i+yy′i2=(xx′−yy′)+(xy′+yx′)i.(x + yi)(x' + y'i) = xx' + xy'i + yx'i + yy'i^2 = (xx' - yy') + (xy' + yx')i.

Precise statements

Definition Complex number Hardy: §39 (1)–(3)

A complex number is a pair of real numbers (x,y)(x, y), written x+yix + yi. Two complex numbers are equal when both their parts are equal: x+yi=x′+y′ix + yi = x' + y'i if and only if x=x′x = x' and y=y′y = y'. Sum and product are

(x+yi)+(x′+y′i)=(x+x′)+(y+y′)i,(x+yi)(x′+y′i)=(xx′−yy′)+(xy′+yx′)i.(x + yi) + (x' + y'i) = (x + x') + (y + y')i, \qquad (x + yi)(x' + y'i) = (xx' - yy') + (xy' + yx')i.

We write xx for x+0ix + 0i, yiyi for 0+yi0 + yi, and ii for 0+1i0 + 1i. The numbers x+yix + yi and x−yix - yi are conjugate.

Theorem The laws of algebra Hardy: §39

Addition and multiplication of complex numbers are commutative and associative, and multiplication is distributive over addition. Subtraction is always possible, and (x+yi)−(x′+y′i)=(x−x′)+(y−y′)i(x + yi) - (x' + y'i) = (x - x') + (y - y')i.

These hold because they hold for displacements (previous lesson). Division is the interesting case.

Theorem Division Hardy: §39 (4)

If x′+y′i≠0x' + y'i \ne 0, there is exactly one complex number ξ+ηi\xi + \eta i with (ξ+ηi)(x′+y′i)=x+yi(\xi + \eta i)(x' + y'i) = x + yi, namely

x+yix′+y′i=xx′+yy′x′2+y′2+yx′−xy′x′2+y′2 i.\frac{x + yi}{x' + y'i} = \frac{xx' + yy'}{x'^2 + y'^2} + \frac{yx' - xy'}{x'^2 + y'^2}\, i.

Division by 00 is impossible.

Theorem The factor theorem Hardy: §40

A product of two complex numbers is 00 only if one of the factors is 00.

Proposition Multiplication by ii Hardy: §§41–42

i2=(−i)2=−1i^2 = (-i)^2 = -1. Multiplying a complex number by ii turns the corresponding displacement through a positive right angle: (x+yi) i=−y+xi(x + yi)\,i = -y + xi.

Proofs

Proof Division
Strategy

Treat ξ\xi and η\eta as unknowns. Equating real and imaginary parts turns one complex equation into two real linear equations, and the conjugate of the divisor gives a quick way to solve them.

Two real equations

(ξ+ηi)(x′+y′i)=(ξx′−ηy′)+(ξy′+ηx′)i(\xi + \eta i)(x' + y'i) = (\xi x' - \eta y') + (\xi y' + \eta x')i. This equals x+yix + yi exactly when ξx′−ηy′=x\xi x' - \eta y' = x and ξy′+ηx′=y\xi y' + \eta x' = y.

Solve them

Multiply the first equation by x′x' and the second by y′y' and add: ξ(x′2+y′2)=xx′+yy′\xi(x'^2 + y'^2) = xx' + yy'. Multiply the first by −y′-y' and the second by x′x' and add: η(x′2+y′2)=yx′−xy′\eta(x'^2 + y'^2) = yx' - xy'.

Divide, which needs x′2+y′2≠0x'^2 + y'^2 \ne 0

If x′+y′i≠0x' + y'i \ne 0 then x′x' and y′y' are not both 00, so x′2+y′2>0x'^2 + y'^2 > 0. Dividing gives the stated ξ\xi and η\eta, and they are the only possible values. Substituting back confirms they work.

The same answer, quickly

Multiply top and bottom by the conjugate x′−y′ix' - y'i: the bottom becomes (x′+y′i)(x′−y′i)=x′2+y′2(x' + y'i)(x' - y'i) = x'^2 + y'^2, a positive real number, and the top becomes (xx′+yy′)+(yx′−xy′)i(xx' + yy') + (yx' - xy')i.

Why not 00

If x′=y′=0x' = y' = 0 the two equations read 0=x0 = x and 0=y0 = y. When x+yi≠0x + yi \ne 0 there is no solution; when x+yi=0x + yi = 0 every ξ+ηi\xi + \eta i is a solution. Either way there is no single answer, so (x+yi)/0(x + yi)/0 means nothing.

Proof The factor theorem
Strategy

Suppose zw=0zw = 0 and w≠0w \ne 0. Dividing by ww is allowed, and dividing 00 by anything nonzero gives 00.

Set up

Let z=ξ+ηiz = \xi + \eta i and w=x′+y′i≠0w = x' + y'i \ne 0, with zw=0zw = 0.

zz is the quotient 0/w0/w

zw=0zw = 0 says exactly that zz is the number which multiplied by ww gives 0+0i0 + 0i. By the division theorem there is only one such number, and the formula with x=y=0x = y = 0 gives it as ξ=0\xi = 0, η=0\eta = 0.

Conclude

So z=0z = 0. Hence if zw=0zw = 0, then w=0w = 0 or z=0z = 0.

The quarter-turn statement is one line: (x+yi) i=xi+yi2=−y+xi(x + yi)\,i = xi + yi^2 = -y + xi, and the point (−y,x)(-y, x) is (x,y)(x, y) turned through +90∘+90^\circ about OO (same length, and the two directions are perpendicular because x⋅(−y)+y⋅x=0x\cdot(-y) + y\cdot x = 0).

Worked examples and exercises

Exercise ●○○ Hardy: Examples XXI, 6

Write in the form A+BiA + Bi, where λ,μ\lambda, \mu are real and not both 00:

(1+i)2,(1+i1−i)2,(1−i1+i)2,λ+μiλ−μi,(λ+μiλ−μi)2−(λ−μiλ+μi)2.(1 + i)^2, \qquad \left(\frac{1 + i}{1 - i}\right)^2, \qquad \left(\frac{1 - i}{1 + i}\right)^2, \qquad \frac{\lambda + \mu i}{\lambda - \mu i}, \qquad \left(\frac{\lambda + \mu i}{\lambda - \mu i}\right)^2 - \left(\frac{\lambda - \mu i}{\lambda + \mu i}\right)^2.
Hint
For quotients, multiply top and bottom by the conjugate of the bottom.
Hint
For the last one, call the first fraction ww. Then the second fraction is 1/w1/w, and also the conjugate of ww. What is w2−wˉ2w^2 - \bar w^2?
Solution

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

1+i1−i=(1+i)2(1−i)(1+i)=2i2=i\dfrac{1 + i}{1 - i} = \dfrac{(1 + i)^2}{(1 - i)(1 + i)} = \dfrac{2i}{2} = i, and similarly 1−i1+i=(1−i)22=−2i2=−i\dfrac{1 - i}{1 + i} = \dfrac{(1 - i)^2}{2} = \dfrac{-2i}{2} = -i. Squaring, (1+i1−i)2=i2=−1\left(\dfrac{1 + i}{1 - i}\right)^2 = i^2 = -1 and (1−i1+i)2=(−i)2=−1\left(\dfrac{1 - i}{1 + i}\right)^2 = (-i)^2 = -1.

λ+μiλ−μi=(λ+μi)2λ2+μ2=λ2−μ2λ2+μ2+2λμλ2+μ2 i.\dfrac{\lambda + \mu i}{\lambda - \mu i} = \dfrac{(\lambda + \mu i)^2}{\lambda^2 + \mu^2} = \dfrac{\lambda^2 - \mu^2}{\lambda^2 + \mu^2} + \dfrac{2\lambda\mu}{\lambda^2 + \mu^2}\,i.

For the last, let ww be that fraction. Its conjugate is (λ−μi)/(λ+μi)(\lambda - \mu i)/(\lambda + \mu i), so the expression is w2−wˉ2w^2 - \bar w^2, which is 2i2i times the imaginary part of w2w^2. Writing w=p+qiw = p + qi with p=(λ2−μ2)/(λ2+μ2)p = (\lambda^2 - \mu^2)/(\lambda^2 + \mu^2) and q=2λμ/(λ2+μ2)q = 2\lambda\mu/(\lambda^2 + \mu^2), the imaginary part of w2w^2 is 2pq2pq. Hence

w2−wˉ2=4pq i=8λμ(λ2−μ2)(λ2+μ2)2 i.w^2 - \bar w^2 = 4pq\,i = \frac{8\lambda\mu(\lambda^2 - \mu^2)}{(\lambda^2 + \mu^2)^2}\, i.

Check: λ=2\lambda = 2, μ=1\mu = 1 gives w=(3+4i)/5w = (3 + 4i)/5, w2=(−7+24i)/25w^2 = (-7 + 24i)/25, and w2−wˉ2=48i/25w^2 - \bar w^2 = 48i/25, which matches 8⋅2⋅1⋅3/258\cdot 2\cdot 1\cdot 3/25.

Exercise Conjugates ●○○ Hardy: §39, Example (2)

Show that (x+yi)(x−yi)=x2+y2(x + yi)(x - yi) = x^2 + y^2, and use it to derive the division formula.

Hint
Multiply out with i2=−1i^2 = -1; the cross terms cancel.

Solution

(x+yi)(x−yi)=x2−xyi+xyi−y2i2=x2+y2(x + yi)(x - yi) = x^2 - xyi + xyi - y^2i^2 = x^2 + y^2, a real number, and positive unless x=y=0x = y = 0. So x+yix′+y′i=(x+yi)(x′−y′i)(x′+y′i)(x′−y′i)=(xx′+yy′)+(yx′−xy′)ix′2+y′2\dfrac{x + yi}{x' + y'i} = \dfrac{(x + yi)(x' - y'i)}{(x' + y'i)(x' - y'i)} = \dfrac{(xx' + yy') + (yx' - xy')i}{x'^2 + y'^2}, where the numerator was multiplied out with the usual rule. Multiplying top and bottom by the same nonzero number cc is legitimate: if q=(ac)/(bc)q = (ac)/(bc) then q b c=a cq\,b\,c = a\,c, so (qb−a)c=0(qb - a)c = 0, and since c≠0c \ne 0 the factor theorem below gives qb=aqb = a, that is, q=a/bq = a/b.

Exercise Division as a construction ●●○ Hardy: §39, Example (1)

Describe geometrically how to find OD‾/OC‾\overline{OD}/\overline{OC}, and explain why it fails exactly when C=OC = O.

Hint
Division undoes multiplication, and OB‾⋅OC‾=OD‾\overline{OB}\cdot\overline{OC} = \overline{OD} was built from triangles OABOAB and OCDOCD similar in the same sense.

Solution

We want BB with OB‾⋅OC‾=OD‾\overline{OB}\cdot\overline{OC} = \overline{OD}, that is, with triangles CODCOD and AOBAOB similar in the same sense (A=(1,0)A = (1, 0)). So make the angle AOBAOB equal to the signed angle CODCOD, and the length OB=OD/OCOB = OD/OC. This determines BB uniquely provided OC≠0OC \ne 0. If C=OC = O the “triangle” CODCOD has no angle at OO and the ratio OD/OCOD/OC is meaningless, matching the fact that division by 00 is impossible.

Exercise ●○○ Hardy: Examples XXI, 7 (part)

With z=x+yiz = x + yi, write z2z^2, z3z^3 and 1/z1/z in the form X+YiX + Yi with X,YX, Y real.

Hint
Expand (x+yi)3(x + yi)^3 by the binomial theorem; i3=−ii^3 = -i.

Solution

z2=(x2−y2)+2xy iz^2 = (x^2 - y^2) + 2xy\,i. z3=x3+3x2(yi)+3x(yi)2+(yi)3=(x3−3xy2)+(3x2y−y3) iz^3 = x^3 + 3x^2(yi) + 3x(yi)^2 + (yi)^3 = (x^3 - 3xy^2) + (3x^2y - y^3)\,i. 1/z=x−yix2+y2=xx2+y2−yx2+y2 i1/z = \dfrac{x - yi}{x^2 + y^2} = \dfrac{x}{x^2 + y^2} - \dfrac{y}{x^2 + y^2}\,i (for z≠0z \ne 0).

Check yourself

Check yourself Choose one

In Hardy’s construction, what is ii?

Why

Nothing is assumed: ii is the pair (0,1)(0, 1), and i2=−1i^2 = -1 is then computed from the product rule. Calling it −1\sqrt{-1} is a later convenience (Hardy uses it in §43), and it needs care, since −i-i also squares to −1-1.

Check yourself Enter a number

What is i100i^{100}?

Why

The powers of ii cycle with period 44: i,−1,−i,1i, -1, -i, 1. Since 100=4×25100 = 4 \times 25, i100=(i4)25=1i^{100} = (i^4)^{25} = 1. Geometrically: 100100 quarter turns are 2525 full turns.

Check yourself Choose one

What is the real part of 13+4i\dfrac{1}{3 + 4i}?

Why

13+4i=3−4i9+16=325−425i\dfrac{1}{3 + 4i} = \dfrac{3 - 4i}{9 + 16} = \dfrac{3}{25} - \dfrac{4}{25}i. The real part of a quotient is not the quotient of the real parts; −4/25-4/25 is the imaginary part, and 3/53/5 forgets to square the modulus.

Check yourself True or false?

If z2=0z^2 = 0 for a complex number zz, then z=0z = 0.

Why

True, by the factor theorem with both factors equal to zz. This is not automatic for every way of multiplying pairs: with the rejected componentwise product, [1,0] [0,1]=[0,0][1, 0]\,[0, 1] = [0, 0] although neither factor is zero.

Hardy’s language

an ‘imaginary number’ is no more ‘imaginary’, in any ordinary sense of the word, than a ‘real’ number or any other mathematical object.

— G. H. Hardy, §43

Summary

Summary
  • x+yix + yi is a name for the displacement [x,y][x, y]; equality means equality of both parts.
  • Compute as in ordinary algebra and replace i2i^2 by −1-1; this reproduces the product of displacements.
  • Divide by multiplying top and bottom by the conjugate: (x+yi)(x−yi)=x2+y2(x + yi)(x - yi) = x^2 + y^2. Every nonzero number can be divided by; 00 cannot.
  • A product is zero only when a factor is zero.
  • Multiplying by ii turns a displacement through a right angle; so i2=−1i^2 = -1 is a half turn.