Linear Algebra / Unit 8, Complex Vector Spaces / Topic 8.1
Unit 8. Complex Vector Spaces
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.
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² = −1A 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.
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.
Add complex numbers by adding the real parts and adding the imaginary parts.
(3 − 2i) + (−1 + 5i) = 2 + 3iMultiply 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 partsThe general rule is
(a + bi)(c + di) = (ac − bd) + (ad + bc)iThe order of the factors does not matter, and all of the usual rules of algebra stay true.
The powers of i repeat with the period 4.
i¹ = i i² = −1 i³ = −i i⁴ = 1 i⁵ = iThe 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 − biIn 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² = −1The 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 = 5Notice that |z|² is not z². The square z² is usually a complex number, and |z|² is always real.
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 2The same step shows that 1/z = z* / |z|² for each z except zero.
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.
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.
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θ |
|---|---|
| 0 | 1 |
| π/2 | i |
| π | −1 |
| 3π/2 | −i |
| 2π | 1 |
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.
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 = 4iThe 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.
| Fact | Statement |
|---|---|
| The number i | i² = −1 |
| Complex number | z = a + bi, with the real part a and the imaginary part b |
| Conjugate | z* = a − bi |
| Absolute value | |z| = √a² + b², and |z|² = z z* |
| Division | Multiply the numerator and the denominator by the conjugate of the denominator |
| Polar form | z = reiθ. A product multiplies the absolute values and adds the angles |
| Formula of Euler | eiθ = cos θ + i sin θ |
Work each problem on paper first. Then open the answer to check your work.
3 + 12i − 2i − 8i² = 3 + 10i + 8multiply each term by each term, then replace i² with −13 + 10i + 8 = 11 + 10iadd the real parts
z* = 3 + 4ichange the sign of the imaginary part|z| = √9 + 16 = 5z z* = 25the square of the absolute value
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
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
i³ = −i and i⁴ = 1.
The powers repeat with the period 4, so i¹⁰ = i² = −1.
x = (4 ± √16 − 52)/2the quadratic formulax = (4 ± √−36)/2x = (4 ± 6i)/2 = 2 ± 3i
The solutions are 2 + 3i and 2 − 3i.
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
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
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
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.
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
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).
Multiply out and replace i² with −1.6 − 4i + 3i − 2i² = 6 − i + 26 − i + 2 = 8 − i
2. Find the absolute value of −6 + 8i.
|z| = √(−6)² + 8² = √100 = 10
3. Which number is the complex conjugate of 4 − 7i?
The conjugate keeps the real part and changes the sign of the imaginary part.
4. Write (3 + 4i)/(1 + 2i) in the form a + bi.
Multiply the numerator and the denominator by 1 − 2i.numerator = (3 + 4i)(1 − 2i) = 3 − 6i + 4i + 8numerator = 11 − 2idenominator = 1 + 4 = 5result = (11 − 2i)/5 = 2.2 − 0.4i
5. Which number is equal to eiπ/2?
eiπ/2 = cos(π/2) + i sin(π/2)the formula of Eulereiπ/2 = 0 + i = iIt is the point of the unit circle at the angle of 90°.