Chapter III · Complex numbers

De Moivre's theorem and the triangle inequality

§45 35 min

Multiplying complex numbers multiplies moduli and adds amplitudes; hence (cos⁡θ+isin⁡θ)n=cos⁡nθ+isin⁡nθ(\cos\theta + i\sin\theta)^n = \cos n\theta + i\sin n\theta; and the modulus of a sum never exceeds the sum of the moduli.

Why this matters

In coordinates, a product of complex numbers is a small calculation; a tenth power is a large one. In polar form both are trivial, because multiplication becomes “multiply the lengths, add the angles”. That rule, applied repeatedly, is De Moivre’s theorem, which turns trigonometric identities into algebra and is the key to the roots of the next lesson. The section also contains the most used inequality in analysis, ∣z+z′∣≤∣z∣+∣z′∣|z + z'| \le |z| + |z'|, which Chapter IV needs as soon as it deals with complex sequences.

The idea

Let z=r(cos⁡θ+isin⁡θ)z = r(\cos\theta + i\sin\theta) and z′=ρ(cos⁡ϕ+isin⁡ϕ)z' = \rho(\cos\phi + i\sin\phi). Multiply out and use the addition formulas:

zz′=rρ {(cos⁡θcos⁡ϕ−sin⁡θsin⁡ϕ)+i(sin⁡θcos⁡ϕ+cos⁡θsin⁡ϕ)}=rρ {cos⁡(θ+ϕ)+isin⁡(θ+ϕ)}.zz' = r\rho\,\{(\cos\theta\cos\phi - \sin\theta\sin\phi) + i(\sin\theta\cos\phi + \cos\theta\sin\phi)\} = r\rho\,\{\cos(\theta + \phi) + i\sin(\theta + \phi)\}.

This is the similar-triangle construction of the first lesson, now in formulas: lengths multiply, angles add.

Explore Lengths multiply, angles add

Try this. Put ww on the unit circle (the dashed circle) and drag it round: zwzw turns but keeps the length of zz. Then put ww on the positive real axis and change its length. Finally make both angles large, say zz and ww both near −1+i-1 + i.

ReIm
  • z (drag)
  • w (drag)
  • zw
  • unit circle
z=1.2+0.6i=1.34 (cos⁡0.464+isin⁡0.464)z = 1.2 + 0.6i = 1.34\,(\cos 0.464 + i\sin 0.464)
w=0.8+0.6i=1 (cos⁡0.644+isin⁡0.644)w = 0.8 + 0.6i = 1\,(\cos 0.644 + i\sin 0.644)
∣zw∣=∣z∣ ∣w∣=1.34×1=1.34|zw| = |z|\,|w| = 1.34 \times 1 = 1.34; arg⁡z+arg⁡w=26.6∘+36.9∘=63.4∘\arg z + \arg w = 26.6^\circ + 36.9^\circ = 63.4^\circ.
zw=0.6+1.2izw = 0.6 + 1.2i
What to notice

A ww of modulus 11 is a pure rotation; a positive real ww is a pure stretch; in general it is both. In the last experiment the angles add to more than 180∘180^\circ, and the read-out reports the principal amplitude of zwzw as the sum minus 360∘360^\circ: the angles add, but only up to a whole turn.

Multiplying zz by itself nn times multiplies the angle by nn and raises the length to the nn-th power. For a number on the unit circle the length stays 11, and we get De Moivre’s theorem.

Explore Powers spiral

Try this. Increase nn step by step. Then drag zz just outside the unit circle, just inside it, and onto it.

ReIm
  • z (drag)
  • z, z², …, zⁿ
  • unit circle
z=0.95+0.35i=1.01 (cos⁡0.353+isin⁡0.353)z = 0.95 + 0.35i = 1.01\,(\cos 0.353 + i\sin 0.353)
De Moivre: z6=r6(cos⁡6θ+isin⁡6θ)z^{6} = r^{6}(\cos 6\theta + i\sin 6\theta) with r=1.01r = 1.01, θ=0.353\theta = 0.353: each multiplication by zz turns through θ\theta and scales by rr. z6=−0.56+0.92iz^{6} = -0.56 + 0.92i.
What to notice

The powers z,z2,z3,…z, z^2, z^3, \dots turn by the same angle each time. Outside the unit circle they spiral outwards, inside it they spiral in to 00, and on it they walk round the circle for ever. This is the picture behind the sequence znz^n in Chapter IV.

Precise statements

Theorem Sums, products and quotients Hardy: §45 (1)–(5)

For complex numbers z,z′z, z':

  1. R(z+z′)=R z+R z′\mathbf R(z + z') = \mathbf R\,z + \mathbf R\,z' and I(z+z′)=I z+I z′\mathbf I(z + z') = \mathbf I\,z + \mathbf I\,z'.
  2. ∣zz′∣=∣z∣ ∣z′∣|zz'| = |z|\,|z'|.
  3. am⁡(zz′)\operatorname{am}(zz') is equal to am⁡z+am⁡z′\operatorname{am} z + \operatorname{am} z' or differs from it by ±2π\pm 2\pi.
  4. ∣z/z′∣=∣z∣/∣z′∣|z/z'| = |z|/|z'| (if z′≠0z' \ne 0).
  5. am⁡(z/z′)\operatorname{am}(z/z') is equal to am⁡z−am⁡z′\operatorname{am} z - \operatorname{am} z' or differs from it by ±2π\pm 2\pi.

The “or differs by 2π2\pi” is not pedantry. Hardy’s example: z=z′=−1+iz = z' = -1 + i has principal amplitude 34π\frac34\pi, but zz′=−2izz' = -2i has principal amplitude −12π-\frac12\pi, not 32π\frac32\pi. With some values of the amplitudes the rule is exact; with principal values it holds only up to a whole turn.

Theorem De Moivre's theorem Hardy: §45

For every integer nn, positive, negative or zero,

(cos⁡θ+isin⁡θ)n=cos⁡nθ+isin⁡nθ.(\cos\theta + i\sin\theta)^n = \cos n\theta + i\sin n\theta.

More generally {r(cos⁡θ+isin⁡θ)}n=rn(cos⁡nθ+isin⁡nθ)\{r(\cos\theta + i\sin\theta)\}^n = r^n(\cos n\theta + i\sin n\theta) for r>0r > 0.

Theorem The triangle inequality Hardy: §45 (6); Examples XXI, 1–3

For any complex numbers z1,…,znz_1, \dots, z_n,

∣z1+z2+⋯+zn∣≤∣z1∣+∣z2∣+⋯+∣zn∣,|z_1 + z_2 + \dots + z_n| \le |z_1| + |z_2| + \dots + |z_n|,

with equality only when all the nonzero zkz_k have the same amplitude. Also ∣ ∣z∣−∣z′∣ ∣≤∣z−z′∣\bigl|\,|z| - |z'|\,\bigr| \le |z - z'|.

Proofs

Proof Products, quotients and De Moivre
Strategy

Everything follows from the product formula in polar form, proved above from the addition formulas. Positive powers come by induction, and negative powers from the reciprocal.

Product: (2) and (3)

We showed zz′=rρ{cos⁡(θ+ϕ)+isin⁡(θ+ϕ)}zz' = r\rho\{\cos(\theta + \phi) + i\sin(\theta + \phi)\}. So ∣zz′∣=rρ|zz'| = r\rho, and θ+ϕ\theta + \phi is a value of am⁡(zz′)\operatorname{am}(zz'). If θ,ϕ\theta, \phi are principal values, θ+ϕ\theta + \phi lies in (−2π,2π](-2\pi, 2\pi], so it is the principal value or differs from it by 2π2\pi.

Reciprocal

(cos⁡θ+isin⁡θ)(cos⁡θ−isin⁡θ)=cos⁡2θ+sin⁡2θ=1(\cos\theta + i\sin\theta)(\cos\theta - i\sin\theta) = \cos^2\theta + \sin^2\theta = 1, so 1/(cos⁡θ+isin⁡θ)=cos⁡(−θ)+isin⁡(−θ)1/(\cos\theta + i\sin\theta) = \cos(-\theta) + i\sin(-\theta). Hence 1/z=r−1{cos⁡(−θ)+isin⁡(−θ)}1/z = r^{-1}\{\cos(-\theta) + i\sin(-\theta)\}: the modulus is inverted and the amplitude reversed. Combined with the product rule this gives (4) and (5).

Positive powers, by induction

The case n=1n = 1 is clear. If (cos⁡θ+isin⁡θ)n=cos⁡nθ+isin⁡nθ(\cos\theta + i\sin\theta)^n = \cos n\theta + i\sin n\theta, multiply both sides by cos⁡θ+isin⁡θ\cos\theta + i\sin\theta; the product rule adds the angles: cos⁡(n+1)θ+isin⁡(n+1)θ\cos(n + 1)\theta + i\sin(n + 1)\theta.

Zero and negative powers

For n=0n = 0 both sides are 11. For n=−mn = -m with m>0m > 0: (cos⁡θ+isin⁡θ)−m={(cos⁡θ+isin⁡θ)−1}m={cos⁡(−θ)+isin⁡(−θ)}m=cos⁡(−mθ)+isin⁡(−mθ)(\cos\theta + i\sin\theta)^{-m} = \{(\cos\theta + i\sin\theta)^{-1}\}^m = \{\cos(-\theta) + i\sin(-\theta)\}^m = \cos(-m\theta) + i\sin(-m\theta) by the positive case.

Hardy’s proof of the triangle inequality is the picture of Fig. 23: lay the displacements nose to tail; the sum is the straight line from start to finish, and a straight line is the shortest route. Try it.

Explore The straight road is shortest

Try this. Drag the blue summands and compare the two lengths in the read-out. Then press the button that turns them all to one direction, and drag one of them so that it points the opposite way.

ReIm
  • the summands zₖ (drag)
  • copies laid nose to tail: length Σ|zₖ|
  • the sum OU: length |Σzₖ|
∣z1+⋯+z3∣=2.42|z_1 + \dots + z_3| = 2.42, ∣z1∣+⋯+∣z3∣=3.41|z_1| + \dots + |z_3| = 3.41. The straight route is shorter by 0.9910.991: the broken line bends.
What to notice

The ochre broken line is never shorter than the purple straight line OU, and they are equal only when the broken line does not bend, that is, when all the summands have the same amplitude. A summand pointing backwards makes the gap largest.

Hardy also asks (Examples XXI, 1) for a proof that does not rely on geometry. Here it is.

Proof The triangle inequality, by algebra
Strategy

Prove the case of two numbers by squaring, using ∣w∣2=wwˉ|w|^2 = w\bar w and R w≤∣w∣\mathbf R\,w \le |w|; then add one number at a time.

Expand ∣z+z′∣2|z + z'|^2

∣z+z′∣2=(z+z′)(zˉ+zˉ′)=∣z∣2+∣z′∣2+(zzˉ′+zˉz′)|z + z'|^2 = (z + z')(\bar z + \bar z') = |z|^2 + |z'|^2 + (z\bar z' + \bar z z'). The bracket is a number plus its conjugate, so it equals 2 R(zzˉ′)2\,\mathbf R(z\bar z').

Bound the cross term

For any w=u+viw = u + vi, R w=u≤u2+v2=∣w∣\mathbf R\,w = u \le \sqrt{u^2 + v^2} = |w|. So 2 R(zzˉ′)≤2∣zzˉ′∣=2∣z∣ ∣z′∣2\,\mathbf R(z\bar z') \le 2|z\bar z'| = 2|z|\,|z'|, using (2) and ∣zˉ′∣=∣z′∣|\bar z'| = |z'|.

Two numbers

Hence ∣z+z′∣2≤∣z∣2+2∣z∣∣z′∣+∣z′∣2=(∣z∣+∣z′∣)2|z + z'|^2 \le |z|^2 + 2|z||z'| + |z'|^2 = (|z| + |z'|)^2, and taking non-negative square roots, ∣z+z′∣≤∣z∣+∣z′∣|z + z'| \le |z| + |z'|.

Many numbers

By induction: ∣z1+⋯+zn+1∣≤∣z1+⋯+zn∣+∣zn+1∣≤∣z1∣+⋯+∣zn+1∣|z_1 + \dots + z_{n+1}| \le |z_1 + \dots + z_n| + |z_{n+1}| \le |z_1| + \dots + |z_{n+1}|.

The reverse form

Apply the two-number case to z=(z−z′)+z′z = (z - z') + z': ∣z∣≤∣z−z′∣+∣z′∣|z| \le |z - z'| + |z'|, so ∣z∣−∣z′∣≤∣z−z′∣|z| - |z'| \le |z - z'|. Swapping z,z′z, z' gives ∣z′∣−∣z∣≤∣z−z′∣|z'| - |z| \le |z - z'|. Together, ∣∣z∣−∣z′∣∣≤∣z−z′∣\bigl||z| - |z'|\bigr| \le |z - z'|.

Worked examples and exercises

Exercise A tenth power without expanding ●○○ Hardy: §45

Compute (1+i)10(1 + i)^{10} and (1+3 i)6(1 + \sqrt3\,i)^{6}.

Hint
Put each number in polar form first: 1+i=2(cos⁡π4+isin⁡π4)1 + i = \sqrt2(\cos\frac\pi4 + i\sin\frac\pi4).

Solution

(1+i)10=(2)10(cos⁡10π4+isin⁡10π4)=32(cos⁡5π2+isin⁡5π2)=32i(1 + i)^{10} = (\sqrt2)^{10}(\cos\frac{10\pi}4 + i\sin\frac{10\pi}4) = 32(\cos\frac{5\pi}2 + i\sin\frac{5\pi}2) = 32i. 1+3 i=2(cos⁡π3+isin⁡π3)1 + \sqrt3\,i = 2(\cos\frac\pi3 + i\sin\frac\pi3), so its sixth power is 64(cos⁡2π+isin⁡2π)=6464(\cos 2\pi + i\sin 2\pi) = 64.

Exercise Trigonometry from De Moivre ●○○ Hardy: §45

Express cos⁡3θ\cos 3\theta and sin⁡3θ\sin 3\theta in terms of cos⁡θ\cos\theta and sin⁡θ\sin\theta.

Hint
Expand (cos⁡θ+isin⁡θ)3(\cos\theta + i\sin\theta)^3 by the binomial theorem and compare real and imaginary parts with cos⁡3θ+isin⁡3θ\cos 3\theta + i\sin 3\theta.

Solution

Write c=cos⁡θc = \cos\theta, s=sin⁡θs = \sin\theta. Then (c+is)3=c3+3c2(is)+3c(is)2+(is)3=(c3−3cs2)+i(3c2s−s3)(c + is)^3 = c^3 + 3c^2(is) + 3c(is)^2 + (is)^3 = (c^3 - 3cs^2) + i(3c^2s - s^3). By De Moivre this is cos⁡3θ+isin⁡3θ\cos 3\theta + i\sin 3\theta, and equal complex numbers have equal parts: cos⁡3θ=c3−3cs2=4c3−3c\cos 3\theta = c^3 - 3cs^2 = 4c^3 - 3c and sin⁡3θ=3c2s−s3=3s−4s3\sin 3\theta = 3c^2s - s^3 = 3s - 4s^3 (using c2+s2=1c^2 + s^2 = 1).

Exercise When is the triangle inequality an equality? ●●○ Hardy: Examples XXI, 2

Show that ∣z1+⋯+zn∣=∣z1∣+⋯+∣zn∣|z_1 + \dots + z_n| = |z_1| + \dots + |z_n| (all zk≠0z_k \ne 0) only when all the zkz_k have the same amplitude.

Hint
For two numbers, trace equality back through the algebraic proof: which step was an inequality?
Hint
R w=∣w∣\mathbf R\,w = |w| exactly when ww is real and ≥0\ge 0.

Solution

Two numbers. In the algebraic proof the only inequality was R(zzˉ′)≤∣zzˉ′∣\mathbf R(z\bar z') \le |z\bar z'|. Equality there means zzˉ′z\bar z' is real and positive (it is nonzero). Now zzˉ′=∣z′∣2⋅(z/z′)z\bar z' = |z'|^2 \cdot (z/z'), so z/z′z/z' is a positive real number tt, and z=tz′z = tz': the two have the same amplitude. Conversely, if z=tz′z = tz' with t>0t > 0 then ∣z+z′∣=(1+t)∣z′∣=∣z∣+∣z′∣|z + z'| = (1 + t)|z'| = |z| + |z'|.

Many numbers. Suppose equality holds for z1,…,znz_1, \dots, z_n, and let s=z1+⋯+zn−1s = z_1 + \dots + z_{n-1}. Then ∑∣zk∣=∣s+zn∣≤∣s∣+∣zn∣≤∑∣zk∣\sum|z_k| = |s + z_n| \le |s| + |z_n| \le \sum|z_k|, so both inequalities are equalities. The first says ss and znz_n have the same amplitude (if s≠0s \ne 0); the second, by induction, says z1,…,zn−1z_1, \dots, z_{n-1} have a common amplitude, which is then that of their sum ss. (s≠0s \ne 0, since ∣s∣=∣z1∣+⋯+∣zn−1∣>0|s| = |z_1| + \dots + |z_{n-1}| > 0.) Geometrically: the broken line of Fig. 23 has the length of its chord only if it is straight and never turns back.

Exercise Principal values do not simply add ●○○ Hardy: §45

Let z=z′=−1+iz = z' = -1 + i. Find the principal amplitudes of zz, z′z' and zz′zz', and explain the discrepancy.

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

Solution

am⁡z=am⁡z′=34π\operatorname{am} z = \operatorname{am} z' = \frac34\pi. But zz′=(−1+i)2=−2izz' = (-1 + i)^2 = -2i, whose principal amplitude is −12π-\frac12\pi. The sum 34π+34π=32π\frac34\pi + \frac34\pi = \frac32\pi is an amplitude of −2i-2i, but it lies outside (−π,π](-\pi, \pi]; subtracting 2π2\pi gives the principal value −12π-\frac12\pi. So (3) of the theorem cannot be sharpened to “equals” for principal values.

Exercise ●○○ Hardy: Examples XXI, 3

Show that ∣z−z′∣≥∣ ∣z∣−∣z′∣ ∣|z - z'| \ge \bigl|\,|z| - |z'|\,\bigr|, and interpret it geometrically.

Hint
See the last step of the algebraic proof; for the picture, consider the triangle with vertices 00, zz, z′z'.

Solution

The proof is the last step above. Geometrically, ∣z∣|z|, ∣z′∣|z'| and ∣z−z′∣|z - z'| are the three sides of the triangle with vertices OO, zz, z′z', and the inequality says that a side of a triangle is at least the difference of the other two. In analysis it is used to show that ∣zn∣→∣l∣|z_n| \to |l| whenever zn→lz_n \to l.

Check yourself

Check yourself Enter a number

What is ∣(3+4i)3∣|(3 + 4i)^3|?

Why

∣3+4i∣=5|3 + 4i| = 5, and the modulus of a product is the product of the moduli, so the answer is 53=1255^3 = 125. No expansion is needed.

Check yourself Choose one

What is (cos⁡θ+isin⁡θ)−1(\cos\theta + i\sin\theta)^{-1}?

Why

The number has modulus 11, so its reciprocal has modulus 11 and the opposite amplitude: cos⁡(−θ)+isin⁡(−θ)=cos⁡θ−isin⁡θ\cos(-\theta) + i\sin(-\theta) = \cos\theta - i\sin\theta, which is also its conjugate. Taking reciprocals of the parts separately is wrong (and undefined when sin⁡θ=0\sin\theta = 0); −cos⁡θ−isin⁡θ-\cos\theta - i\sin\theta is the half turn, not the inverse turn.

Check yourself True or false?

For all nonzero z,z′z, z', the principal value of am⁡(zz′)\operatorname{am}(zz') equals am⁡z+am⁡z′\operatorname{am} z + \operatorname{am} z' (principal values).

Why

False: z=z′=−1+iz = z' = -1 + i is a counterexample (the sum is 32π\frac32\pi, the principal value is −12π-\frac12\pi). The statement is true up to a multiple of 2π2\pi.

Check yourself Choose one

For which pair is ∣z+z′∣=∣z∣+∣z′∣|z + z'| = |z| + |z'|?

Why

Equality needs the same amplitude, i.e. z′=tzz' = tz with t>0t > 0. In the second pair t=3t = 3. In the third, t=−2<0t = -2 < 0: the summands point in opposite directions, and ∣z+z′∣=2|z + z'| = \sqrt2 while ∣z∣+∣z′∣=32|z| + |z'| = 3\sqrt2. The first pair are conjugates with different amplitudes.

Hardy’s language

Summary

Summary
  • In polar form, r(cos⁡θ+isin⁡θ)⋅ρ(cos⁡ϕ+isin⁡ϕ)=rρ(cos⁡(θ+ϕ)+isin⁡(θ+ϕ))r(\cos\theta + i\sin\theta)\cdot\rho(\cos\phi + i\sin\phi) = r\rho(\cos(\theta + \phi) + i\sin(\theta + \phi)): moduli multiply, amplitudes add.
  • With principal values, amplitudes add only up to a multiple of 2π2\pi.
  • De Moivre: (cos⁡θ+isin⁡θ)n=cos⁡nθ+isin⁡nθ(\cos\theta + i\sin\theta)^n = \cos n\theta + i\sin n\theta for every integer nn; it turns multiple-angle formulas into binomial expansions.
  • ∣z1+⋯+zn∣≤∣z1∣+⋯+∣zn∣|z_1 + \dots + z_n| \le |z_1| + \dots + |z_n|, with equality only when all amplitudes agree; also ∣∣z∣−∣z′∣∣≤∣z−z′∣\bigl||z| - |z'|\bigr| \le |z - z'|.