Unit 8, lesson 42

Complex Numbers for Linear Algebra

How complex numbers are built from the imaginary unit, how to add, multiply and divide them, and how the complex plane, the conjugate, the modulus and multiplication by i as a quarter-turn fit together.

  • Video 42
  • Complex Eigenvalues

Turn the plane a quarter-turn counterclockwise about the origin, and then turn it once more. The two turns together send every point (x,y)(x, y) to (−x,−y)(-x, -y), which is multiplication by −1-1. If a single quarter-turn were multiplication by one number, the square of that number would be −1-1, and no real number has a negative square. This lesson introduces the complex numbers, which contain such a number, and works out their addition, multiplication, conjugation, modulus and division, each with a check you can do by hand.

Key terms

Complex numbers and the imaginary unit

Definition The imaginary unit ii is a number with i2=−1i^2 = -1. A complex number is an expression z=a+biz = a + bi with real numbers aa and bb. Its real part is Re⁡z=a\operatorname{Re} z = a and its imaginary part is the real number Im⁡z=b\operatorname{Im} z = b. The set of all complex numbers is written C\mathbb{C}. Two complex numbers are equal exactly when their real parts are equal and their imaginary parts are equal. A real number aa is the complex number a+0ia + 0i, so R\mathbb{R} sits inside C\mathbb{C}. Sums, differences and products follow the usual rules of algebra together with i2=−1i^2 = -1,

(a+bi)±(c+di)=(a±c)+(b±d)i,(a+bi)(c+di)=(ac−bd)+(ad+bc)i.\begin{aligned} &(a + bi) \pm (c + di) \\[0.4em] &\quad = (a \pm c) + (b \pm d)i, \\[0.4em] &(a + bi)(c + di) \\[0.4em] &\quad = (ac - bd) + (ad + bc)i. \end{aligned}

The square of a real number is never negative, so ii is not a real number. Its powers i,i2,i3,i4,…i, i^2, i^3, i^4, \dots are i,−1,−i,1i, -1, -i, 1 and then repeat in the same cycle of four.

In plain words Calculate with a+bia + bi as with any algebraic expression, and replace i2i^2 by −1-1 wherever it appears. The imaginary part is the real coefficient bb, not bibi.

Example Take z=3+2iz = 3 + 2i and w=1−iw = 1 - i. Then z+w=4+iz + w = 4 + i and z−w=2+3iz - w = 2 + 3i. Expanding the product term by term,

zw=3−3i+2i−2i2=5−i.\begin{aligned} zw &= 3 - 3i + 2i - 2i^2 \\[0.4em] &= 5 - i. \end{aligned}

The general rule agrees, since ac−bd=3−(−2)=5ac - bd = 3 - (-2) = 5 and ad+bc=−3+2=−1ad + bc = -3 + 2 = -1. Multiplying the real parts and the imaginary parts separately would give 33 and −2-2, which is not the product. Also Im⁡z=2\operatorname{Im} z = 2, not 2i2i.

Complex plane

Definition The complex plane represents the complex number a+bia + bi by the point (a,b)(a, b) of the coordinate plane. The horizontal axis, made of the points (a,0)(a, 0), is the real axis, and the vertical axis, made of the points (0,b)(0, b), is the imaginary axis. Each complex number corresponds to exactly one point and each point to exactly one complex number. Addition of complex numbers is addition of coordinate pairs, so a sum can be drawn with the tip-to-tail rule for vectors. Multiplication is not done coordinate by coordinate, as the product rule shows.

In plain words A complex number is a point in a plane, with the real part measured across and the imaginary part measured up. One complex number carries two real coordinates.

Example The number 3+2i3 + 2i is the point (3,2)(3, 2) and 1−i1 - i is the point (1,−1)(1, -1). Their sum 4+i4 + i is the point (4,1)(4, 1), the fourth corner of the parallelogram with the other corners at 00, (3,2)(3, 2) and (1,−1)(1, -1). The number ii is the point (0,1)(0, 1) on the imaginary axis, and the real number −2-2 is the point (−2,0)(-2, 0) on the real axis.

Multiplication by i as a quarter-turn

Definition For every complex number a+bia + bi,

i(a+bi)=−b+ai,i(a + bi) = -b + ai,

so multiplication by ii sends the point (a,b)(a, b) to (−b,a)(-b, a). Treating points as column vectors, with a tuple standing for a column, this is the linear map of R2\mathbb{R}^2 with matrix

[0−110].\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}.

It is the counterclockwise rotation of the plane about the origin through a right angle. For a nonzero point (a,b)(a, b) the image has the same distance a2+b2\sqrt{a^2 + b^2} from the origin, it is perpendicular to (a,b)(a, b) because a(−b)+ba=0a(-b) + ba = 0, and the turn goes counterclockwise because the matrix with columns (a,b)(a, b) and (−b,a)(-b, a) has the positive determinant a2+b2a^2 + b^2. Multiplying by ii twice multiplies by i2=−1i^2 = -1, a half turn that sends (a,b)(a, b) to (−a,−b)(-a, -b), and four times multiplies by i4=1i^4 = 1. Multiplication by −i-i is the clockwise quarter-turn.

In plain words Multiplying by a negative real number keeps every nonzero point on its line through 00 and reverses its direction. Multiplying by ii moves every nonzero point a quarter-turn around 00, into the perpendicular direction.

Example For z=3+2iz = 3 + 2i, the product iz=3i+2i2=−2+3iiz = 3i + 2i^2 = -2 + 3i, so the point (3,2)(3, 2) moves to (−2,3)(-2, 3). Both points lie at distance 13\sqrt{13} from 00, and their dot product is 3(−2)+2⋅3=03(-2) + 2 \cdot 3 = 0. Multiplying by ii again gives i2z=−3−2ii^2 z = -3 - 2i, the point (−3,−2)(-3, -2) opposite to where it started.

Complex conjugate

Definition The complex conjugate of z=a+biz = a + bi is z‾=a−bi\overline{z} = a - bi. In the complex plane it is the reflection across the real axis. For all complex numbers zz and ww,

z+w‾=z‾+w‾,zw‾=z‾ w‾,\overline{z + w} = \overline{z} + \overline{w}, \qquad \overline{zw} = \overline{z}\,\overline{w},

and z‾‾=z\overline{\overline{z}} = z. A complex number is real exactly when it equals its conjugate. The sum z+z‾=2az + \overline{z} = 2a is real, and the product of a number with its conjugate is a nonnegative real number,

zz‾=(a+bi)(a−bi)=a2+b2.z\overline{z} = (a + bi)(a - bi) = a^2 + b^2.

In plain words Conjugation flips the sign of the imaginary part. Multiplying a number by its conjugate makes the imaginary cross terms cancel and leaves a real number.

Example The conjugate of 3+2i3 + 2i is 3−2i3 - 2i, and

(3+2i)(3−2i)=9−6i+6i−4i2=13.\begin{aligned} &(3 + 2i)(3 - 2i) \\[0.4em] &\quad = 9 - 6i + 6i - 4i^2 \\[0.4em] &\quad = 13. \end{aligned}

With z=3+2iz = 3 + 2i and w=1−iw = 1 - i, the product zw=5−izw = 5 - i has conjugate 5+i5 + i. Multiplying the conjugates gives the same number, (3−2i)(1+i)=3+3i−2i−2i2=5+i(3 - 2i)(1 + i) = 3 + 3i - 2i - 2i^2 = 5 + i.

Modulus

Definition The modulus of z=a+biz = a + bi is the real number

∣z∣=a2+b2=zz‾,\lvert z \rvert = \sqrt{a^2 + b^2} = \sqrt{z\overline{z}},

the distance from 00 to the point (a,b)(a, b) in the complex plane. It satisfies ∣z∣≥0\lvert z \rvert \ge 0, with equality only for z=0z = 0, and for a real number it is the usual absolute value. Also ∣z‾∣=∣z∣\lvert \overline{z} \rvert = \lvert z \rvert. The modulus of a product is the product of the moduli, ∣zw∣=∣z∣∣w∣\lvert zw \rvert = \lvert z \rvert \lvert w \rvert, because

∣zw∣2=zw zw‾=zz‾ ww‾=∣z∣2∣w∣2,\begin{aligned} \lvert zw \rvert^2 &= zw\,\overline{zw} = z\overline{z}\,w\overline{w} \\[0.4em] &= \lvert z \rvert^2 \lvert w \rvert^2, \end{aligned}

and both moduli are nonnegative.

In plain words The modulus is the length of the arrow from 00 to the point. It squares both parts, adds the squares and takes the square root, as in the Pythagorean theorem, rather than adding the absolute values of the parts.

Example The modulus of 3+4i3 + 4i is 9+16=5\sqrt{9 + 16} = 5, not 3+4=73 + 4 = 7. For z=3+2iz = 3 + 2i and w=1−iw = 1 - i, the moduli are 13\sqrt{13} and 2\sqrt{2}, and the product zw=5−izw = 5 - i has modulus 26=13 2\sqrt{26} = \sqrt{13}\,\sqrt{2}. Since ∣i∣=1\lvert i \rvert = 1, multiplication by ii keeps every modulus, which fits the quarter-turn picture.

Complex division

Definition Let w=c+diw = c + di be a nonzero complex number, so cc and dd are not both zero. For every complex number zz, the quotient z/wz / w is the unique complex number qq with qw=zqw = z. Multiplying the numerator and the denominator by w‾\overline{w} turns the denominator into the positive real number ∣w∣2=c2+d2\lvert w \rvert^2 = c^2 + d^2, so

zw=zw‾ww‾=zw‾c2+d2.\frac{z}{w} = \frac{z\overline{w}}{w\overline{w}} = \frac{z\overline{w}}{c^2 + d^2}.

In particular the reciprocal of ww is

1c+di=c−dic2+d2.\frac{1}{c + di} = \frac{c - di}{c^2 + d^2}.

The number 00 has no reciprocal, since 0⋅q=00 \cdot q = 0 for every qq, so division by 00 stays undefined.

In plain words To divide, multiply the top and the bottom by the conjugate of the bottom. The bottom becomes a positive real number, and dividing by a real number divides both parts.

Example Multiply the top and the bottom of the quotient below by 1−2i1 - 2i.

5+5i1+2i=(5+5i)(1−2i)(1+2i)(1−2i)=15−5i5=3−i.\begin{aligned} \frac{5 + 5i}{1 + 2i} &= \frac{(5 + 5i)(1 - 2i)}{(1 + 2i)(1 - 2i)} \\[0.4em] &= \frac{15 - 5i}{5} = 3 - i. \end{aligned}

Multiplying back confirms it, since (3−i)(1+2i)=3+6i−i−2i2=5+5i(3 - i)(1 + 2i) = 3 + 6i - i - 2i^2 = 5 + 5i. In the same way 1/i=−i1/i = -i, because i(−i)=−i2=1i(-i) = -i^2 = 1.

Check yourself

  1. Let z=2−3iz = 2 - 3i and w=−1+4iw = -1 + 4i. Find z+wz + w and zwzw.
Show the answer

Adding parts gives z+w=1+iz + w = 1 + i. Expanding the product,

zw=−2+8i+3i−12i2=−2+11i+12=10+11i.\begin{aligned} zw &= -2 + 8i + 3i - 12i^2 \\[0.4em] &= -2 + 11i + 12 = 10 + 11i. \end{aligned}

The rule (ac−bd)+(ad+bc)i(ac - bd) + (ad + bc)i agrees, with ac−bd=−2+12=10ac - bd = -2 + 12 = 10 and ad+bc=8+3=11ad + bc = 8 + 3 = 11.

  1. Compute (4+3i)/(2−i)(4 + 3i)/(2 - i) and check the answer by multiplication.
Show the answer

Multiply the top and the bottom by 2+i2 + i.

4+3i2−i=(4+3i)(2+i)(2−i)(2+i)=5+10i5=1+2i.\begin{aligned} \frac{4 + 3i}{2 - i} &= \frac{(4 + 3i)(2 + i)}{(2 - i)(2 + i)} \\[0.4em] &= \frac{5 + 10i}{5} = 1 + 2i. \end{aligned}

The numerator comes from 8+4i+6i+3i2=5+10i8 + 4i + 6i + 3i^2 = 5 + 10i, and the denominator is 4+1=54 + 1 = 5. Check that (1+2i)(2−i)=2−i+4i−2i2=4+3i(1 + 2i)(2 - i) = 2 - i + 4i - 2i^2 = 4 + 3i.

  1. Let z=−3+4iz = -3 + 4i. A classmate says that ∣z∣=7\lvert z \rvert = 7 and that multiplying by ii moves the point (−3,4)(-3, 4) to (4,−3)(4, -3). Correct both claims, and give z‾\overline{z} as well.
Show the answer

The modulus is (−3)2+42=25=5\sqrt{(-3)^2 + 4^2} = \sqrt{25} = 5. The value 77 adds the absolute values of the parts instead of their squares. Multiplying by ii gives iz=−3i+4i2=−4−3iiz = -3i + 4i^2 = -4 - 3i, the point (−4,−3)(-4, -3), which matches the rule (a,b)↦(−b,a)(a, b) \mapsto (-b, a). The classmate swapped the coordinates without changing a sign, which reflects the point across the line y=xy = x instead of turning it. Both zz and iziz have modulus 55, as a rotation requires. The conjugate is z‾=−3−4i\overline{z} = -3 - 4i.

How this lesson connects

It also uses arithmetic with fractions and squares and points and coordinates on a graph.