Scientia sine finibus

Linear Algebra / Unit 8, Complex Vector Spaces / Topic 8.1

Units and Topics

Unit 8. Complex Vector Spaces

8.1 Complex Numbers

Unit 8 moves from real numbers to complex numbers. Topic 5.2 showed that a real matrix can have complex eigenvalues, and quantum mechanics describes each state with complex numbers. This topic covers what the rest of the course needs: the number i, the arithmetic of complex numbers, the complex conjugate, the absolute value, the polar form, and the formula of Euler.

You need algebra and trigonometry for this topic. Topics 5.2 and 5.5 are mentioned, but they are not required.

1. The Number i

No real number has a negative square, so the equation x² = −1 has no real solution. The number i is defined as a solution of that equation.

i² = −1

A complex number is a number of the form z = a + bi, where a and b are real numbers. The number a is called the real part of z, and the number b is called the imaginary part of z. The imaginary part is the real number b, without the i.

A real number is a complex number whose imaginary part is zero. A number such as 3i, whose real part is zero, is called an imaginary number. Two complex numbers are equal only when their real parts are equal and their imaginary parts are equal.

The complex plane

A complex number a + bi is drawn as the point (a, b) in a plane, or as the arrow from the origin to that point. The horizontal axis holds the real numbers, and the vertical axis holds the imaginary numbers. Adding complex numbers is the same as adding vectors in the plane.

2. Addition and Multiplication

Add complex numbers by adding the real parts and adding the imaginary parts.

(3 − 2i) + (−1 + 5i) = 2 + 3i

Multiply complex numbers by the usual rules of algebra, and replace i² with −1 wherever it appears.

(2 + 3i)(1 − i) = 2 − 2i + 3i − 3i²multiply each term by each term(2 + 3i)(1 − i) = 2 + i + 3replace i² with −1(2 + 3i)(1 − i) = 5 + iadd the real parts

The general rule is

(a + bi)(c + di) = (ac − bd) + (ad + bc)i

The order of the factors does not matter, and all of the usual rules of algebra stay true.

Powers of i

The powers of i repeat with the period 4.

i¹ = i i² = −1 i³ = −i i⁴ = 1 i⁵ = i

3. The Conjugate and the Absolute Value

The complex conjugate of z = a + bi is the number with the opposite imaginary part. This course writes it as z*, which is the notation of physics. Many mathematics books write a bar over the z.

z* = a − bi

In the complex plane, z* is the mirror image of z across the real axis. The product of a number and its conjugate is a real number that is never negative.

z z* = (a + bi)(a − bi)z times its conjugatez z* = a² − abi + abi − b²i²multiply each term by each termz z* = a² + b²the middle terms cancel, and i² = −1

The absolute value of z is its distance from the origin. It is also called the modulus or the size of z.

|z| = √a² + b² so |z|² = z z*

For example:

|3 − 4i| = √9 + 16 = √25 = 5

Notice that |z|² is not z². The square z² is usually a complex number, and |z|² is always real.

Rules

  • (z + w)* = z* + w* and (zw)* = z* w*.
  • (z*)* = z.
  • |zw| = |z| |w|.
  • z is real exactly when z* = z.
  • The real part of z is (z + z*)/2, and the imaginary part is (z − z*)/(2i).

Division

To divide by a complex number, multiply the numerator and the denominator by the conjugate of the denominator. The new denominator is real.

(5 + i)/(1 − i) = ((5 + i)(1 + i))/((1 − i)(1 + i))multiply the numerator and the denominator by the conjugate 1 + i(5 + i)/(1 − i) = (4 + 6i)/2multiply out, with i² = −1(5 + i)/(1 − i) = 2 + 3idivide each part by 2

The same step shows that 1/z = z* / |z|² for each z except zero.

4. The Polar Form

A point in the plane can also be described by its distance r from the origin and its angle θ from the positive real axis. The angle is called the argument of z.

z = r(cos θ + i sin θ) with r = |z|

For example, 1 + i has r = √2 and θ = 45°, which is π/4 radians.

The polar form makes multiplication simple. Multiply two numbers in polar form and use the addition formulas of trigonometry. The result is a rule with two parts.

  • The absolute values are multiplied.
  • The angles are added.

Multiplying by i turns each number by 90° about the origin, because i has the absolute value 1 and the angle 90°. Multiplying by any number of absolute value 1 is a pure turn.

Try it: the product of two complex numbers

Drag the tips of z and w. The green arrow is the product zw, and the small blue ring is the conjugate z*. The readout gives the absolute value and the angle of each number. The gray circle is the unit circle.

5. The Formula of Euler

The exponential function can be extended to imaginary numbers. The result is the formula of Euler, with the angle θ in radians.

eiθ = cos θ + i sin θ

One way to see the reason uses calculus. The function f(θ) = cos θ + i sin θ has the derivative −sin θ + i cos θ, which is i times f(θ), and f(0) = 1. The function eiθ is the function with exactly these two properties.

The number eiθ lies on the unit circle at the angle θ, so its absolute value is 1. The polar form of any complex number becomes short.

z = reiθ

The rule for products is now the rule for exponents: (r₁eiα)(r₂eiβ) = r₁r₂ei(α + β).

θeiθ
01
π/2i
π−1
3π/2−i
2π1

Conjugates and powers

  • The conjugate of eiθ is e−iθ, which is also its reciprocal.
  • (eiθ)ⁿ = einθ. A power multiplies the angle.
  • cos θ = (eiθ + e−iθ)/2 and sin θ = (eiθ − e−iθ)/(2i).

Oscillations

Topic 5.5 solved systems of differential equations with the functions eλt. For a complex eigenvalue λ = a + bi,

e(a + bi)t = eat(cos bt + i sin bt)

The real part a gives growth or decay, and the imaginary part b gives an oscillation with the angular frequency b. This is the reason that complex eigenvalues go with solutions that oscillate.

6. Roots of Polynomials

With complex numbers, each quadratic equation has solutions. When the number under the square root in the quadratic formula is negative, write its square root with i.

x² + 2x + 5 = 0the equationx = (−2 ± √4 − 20)/2the quadratic formulax = (−2 ± √−16)/2the number under the root is negativex = (−2 ± 4i)/2 = −1 ± 2i√−16 = 4i

The two solutions are conjugates of each other. Topic 5.2 stated the general fact: a polynomial of degree n has exactly n complex roots, counted with their multiplicities. For a polynomial with real coefficients, the roots that are not real come in conjugate pairs.

In quantum mechanics, the state of a system is a list of complex numbers called amplitudes. The probability of a result is the squared absolute value |z|² of an amplitude, which is always a real number that is not negative. A factor eiθ is called a phase factor. It changes an amplitude without changing its absolute value.

Common Mistakes

  • Replacing i² with 1. The square of i is −1.
  • Writing |a + bi|² as a² + (bi)² = a² − b². The correct value is a² + b².
  • Calling bi the imaginary part of a + bi. The imaginary part is the real number b.
  • Dividing by a complex number by dividing the real parts and the imaginary parts separately.
  • Confusing z² with |z|². For z = i, z² = −1 and |z|² = 1.
  • Using degrees in the formula of Euler. The angle in eiθ is in radians.
  • Taking the conjugate of only one factor of a product. The conjugate of zw is z* w*.

Summary

FactStatement
The number ii² = −1
Complex numberz = a + bi, with the real part a and the imaginary part b
Conjugatez* = a − bi
Absolute value|z| = √a² + b², and |z|² = z z*
DivisionMultiply the numerator and the denominator by the conjugate of the denominator
Polar formz = reiθ. A product multiplies the absolute values and adds the angles
Formula of Eulereiθ = cos θ + i sin θ

Practice

Work each problem on paper first. Then open the answer to check your work.

1. Calculate (3 − 2i)(1 + 4i).

3 + 12i − 2i − 8i² = 3 + 10i + 8multiply each term by each term, then replace i² with −13 + 10i + 8 = 11 + 10iadd the real parts

2. For z = 3 − 4i, find z*, |z|, and z z*.

z* = 3 + 4ichange the sign of the imaginary part|z| = √9 + 16 = 5z z* = 25the square of the absolute value

3. Write (1 + 2i)/(3 − 4i) in the form a + bi.

Multiply the numerator and the denominator by 3 + 4i.

numerator = (1 + 2i)(3 + 4i) = 3 + 4i + 6i + 8i²numerator = −5 + 10ireplace i² with −1denominator = 9 + 16 = 25result = (−5 + 10i)/25 = −0.2 + 0.4i

4. Write 1 + i in polar form, and use it to calculate (1 + i)⁸.

1 + i = √2 eiπ/4the polar form(1 + i)⁸ = (√2)⁸ ei2πraise the size to the power 8, and multiply the angle by 8(1 + i)⁸ = 16because ei2π = 1

5. Find i³, i⁴, and i¹⁰.

i³ = −i and i⁴ = 1.

The powers repeat with the period 4, so i¹⁰ = i² = −1.

6. Solve x² − 4x + 13 = 0.

x = (4 ± √16 − 52)/2the quadratic formulax = (4 ± √−36)/2x = (4 ± 6i)/2 = 2 ± 3i

The solutions are 2 + 3i and 2 − 3i.

Python Practice

Step 1. Type a complex number

Python writes the number i as 1j. The letter j is the notation of electrical engineering, where i stands for a current. The number 2 + 3i is typed as 2 + 3j. A number must come directly before the j, so i itself is 1j, and a single j is not accepted. The * sign multiplies.

Python

The product is (5+1j), which is 5 + i, as in Part 2. Now calculate the product of Practice Problem 1, (3 − 2i)(1 + 4i).

Python

Step 2. Parts, conjugate, and absolute value

For a complex number z, z.real is the real part and z.imag is the imaginary part. The instruction np.conj gives the conjugate, and abs gives the absolute value.

Python

The absolute value is 5, and the product of z and its conjugate is 25, written as (25+0j). Now find the absolute value of 5 − 12i.

Python

Step 3. Division

The / sign divides complex numbers. Python does the step with the conjugate of the denominator by itself.

Python

The result is 2 + 3i, as in Part 3. Now calculate the quotient of Practice Problem 3, (1 + 2i)/(3 − 4i), and store it under the name q.

Python

Step 4. The polar form and the formula of Euler

The instruction np.angle gives the angle of a complex number in radians, and np.degrees changes radians to degrees. The instruction np.exp calculates the exponential function, and np.pi is the number π.

Python

The number 1 + i has the absolute value 1.414, which is √2, and the angle 45 degrees. The last result is eiπ. Python prints the real part −1 and an imaginary part of about 0.00000000000000012, which is a rounding error. The exact value is −1.

The next box builds a number from its polar form. Change it so that it calculates the number with the absolute value 2 and the angle π/2.

Python

The number with the absolute value 2 and the angle of 90 degrees is 2i.

Step 5. The roots of a polynomial

The instruction np.roots finds all of the roots of a polynomial. The list holds the coefficients, starting with the highest power. The list 1, 2, 5 stands for x² + 2x + 5.

Python

The roots are −1 + 2i and −1 − 2i, as in Part 6. Now solve the equation of Practice Problem 6, x² − 4x + 13 = 0.

Python

Quiz

This quiz has 5 questions on this topic. A question asks you either to choose one answer or to type numbers. The page grades your answers and explains each one. A number can be typed as a whole number, a decimal, a fraction such as 1/3, or a calculation such as sqrt(18)/2 or arccos(1/2). The page shows the value of a calculation next to the box. Angles in a calculation are in degrees. The Calculator button under each question opens a calculator. Your answers are saved in your browser, so they are still on the page when you come back to it.

Choose how your answers are checked

1. Calculate (2 + i)(3 − 2i).

2. Find the absolute value of −6 + 8i.

3. Which number is the complex conjugate of 4 − 7i?

4. Write (3 + 4i)/(1 + 2i) in the form a + bi.

5. Which number is equal to eiπ/2?

Next: Topic 8.2, Complex Vectors and the Inner Product