Lesson 1.4.2 built ex as the limit of (1+nx)n: split a growth x into n small pieces. Now try an imaginary growth, x=iθ, where θ is an angle in radians. Each factor 1+niθ is a complex number, so multiplying by it turns a point as well as stretching it.
Take θ=π. The table shows (1+niπ)n as n grows.
n
(1+niπ)n
1
1+3.141593i
10
−1.593362+0.156064i
100
−1.05056+0.001085i
10,000
−1.000494
1,000,000
−1.000005
The values close in on −1. Multiplying a point z by 1+niπ adds niπz to it. Since multiplying by i is a quarter turn (lesson 1.7.2), that is a short step at right angles to z.
Steps at right angles to the radius go round a circle. Their lengths add up to about π, so the path covers about π of the unit circle. That is half a turn, from 1 to −1.
With more and smaller steps the path hugs the unit circle, and after an arc of π it lands near −1. In the same way, eiθ is the point an arc θ round the circle: (cosθ,sinθ).
The same happens for any angle: the limit is the point an arc θ round the unit circle from 1. Lesson 1.7.1 named that point (cosθ,sinθ). Written as a complex number, this is Euler's formula.
Rule: Euler's formula
eiθ=cosθ+isinθ
With θ in radians, the real part is cosθ and the imaginary part is sinθ. So eiθ is the point at angle θ on the unit circle.
Why this holds for every θ needs calculus; module 2.7 (Taylor series) shows one way to see it. Here the numbers are the evidence, as they were for e in lesson 1.4.2.
Try it
cmath is Python's module for complex maths, and cmath.exp computes e to a complex power.
tidy rounds both parts to 6 places; adding 0.0 turns a -0.0 into 0.0. The loop rebuilds the table, then cmath.exp(1j * math.pi) gives eiπ directly.
⌘/Ctrl + Enter runs the cell
Going round the unit circle
Every value of eiθ lies on the unit circle. Its distance from 0 is cos2θ+sin2θ=1, by the identity of lesson 1.7.1. The quarter turns give four values worth knowing.
θ
0
2π
π
23π
2π
eiθ
1
i
−1
−i
1
So eiπ=−1: two famous numbers, e and π, combine to give −1. A full turn, e2πi, is back at 1.
The facts about angles from lesson 1.7.1 carry over:
Period 2π:ei(θ+2π)=eiθ, because one more full turn changes nothing.
Negative angles:e−iθ=cosθ−isinθ, the conjugate of eiθ. Turning clockwise mirrors the point in the real axis.
Degrees do not work:e90i is the point 90 radians round, about −0.448074+0.893997i, not i.
Example 1. Write eiπ/6 and e−iπ/6 in the form a+bi. By the exact values of lesson 1.7.1, eiπ/6=23+21i≈0.866025+0.5i. Its conjugate is e−iπ/6≈0.866025−0.5i.
Try it
Each line prints θ, then cmath.exp(1j * theta), then cosθ+isinθ built from math. The two always agree, and the modulus is always 1.
⌘/Ctrl + Enter runs the cell
Polar form
Any complex number other than 0 is a distance from 0 and a direction. Let r=∣z∣ be the distance and θ the angle from the positive real axis to z, called its argument. Then z is r times the point at angle θ on the unit circle.
Rule: Polar form
z=reiθ=rcosθ+irsinθr=a2+b2
The real part is a=rcosθ and the imaginary part is b=rsinθ. The distance r is never negative.
From polar form to a+bi, use the cosine and sine. For example 2eiπ/3=2(21+23i)=1+3i≈1+1.732051i.
From a+bi to polar form, r is the modulus and θ the angle of the point (a,b). For 1+i, r=2≈1.414214 and θ=4π, which is 45°.
The quadrant matters. −1−i also has r=2, and the same slope ab=1 as 1+i. But it lies in quadrant III, so θ=−43π (−135°), not 4π.
Four more cases come up often:
Angles are not unique. Adding 2π gives the same number, so −43π and 45π both describe −1−i. Python's cmath.phase picks the angle between −π and π.
Real numbers: a positive one has angle 0, and a negative one has angle π. So −2=2eiπ.
A negative r is not polar form.−3eiπ/4 points the opposite way, so it is 3ei(π/4+π)=3e5iπ/4. Python reports its angle as −43π≈−2.356194.
0 has no angle. Its distance is 0, and every angle gives the same point.
Try it
cmath.polar(z) returns the pair (r,θ) and cmath.rect(r, theta) goes back. Both use radians.
The loop prints r and the angle in degrees for 1+i, −1−i and −2. Then rect turns 2eiπ/3 into 1+1.732051i.
⌘/Ctrl + Enter runs the cell
Multiplying: a stretch and a turn
In polar form, multiplication needs only the exponent rules of lesson 1.4.1. Write α and β (the Greek letters alpha and beta) for two angles.
To multiply, multiply the distances and add the angles. To divide, divide the distances and take the angles away.
So multiplying by eiβ, at distance 1, turns a point through β without stretching it. Multiplying by a positive real number r stretches it without turning. Since i=eiπ/2, multiplying by i is the quarter turn of lesson 1.7.2.
Example 2. Multiply z=1+i by w=1+3i.
In polar form, z is 2 at 45° and w is 2 at 60°. So zw is 22≈2.828427 at 105°. Multiplying out instead (lesson 1.7.2) gives the same number:
Multiplying z by w stretches it by ∣w∣=2 and turns it by 60°, the angle of w. The product lands in quadrant II, at 105°.
The conjugate fits the same picture. zˉ=re−iθ has the opposite angle, so zzˉ=r2e0=r2: the ∣z∣2 of lesson 1.7.2. Division works the same way: 6e5iπ/6÷2eiπ/3=3eiπ/2=3i.
Powers
The power zn of z=reiθ multiplies n copies of z. Each copy multiplies the distance by r and adds θ to the angle.
Rule: Powers
(reiθ)n=rneinθ
The distance is raised to the power n, and the angle is multiplied by n.
Example 3. Find (1+i)8. Each power multiplies the distance by 2 and adds 45°, so the points spiral outwards.
k
1
2
3
4
5
6
7
8
(1+i)k
1+i
2i
−2+2i
−4
−4−4i
−8i
8−8i
16
angle
45°
90°
135°
180°
225°
270°
315°
360°
The power rule gives the last entry at once: (2eiπ/4)8=(2)8e8iπ/4=16e2πi=16.
Try it
The first lines check Example 2: the distance of the product and its angle in degrees.
The loop prints the powers of 1+i with their distances and angles. Python gives each angle between −180° and 180°, so 225° shows as −135° and 360° as 0°. The -0 in line 6 is 0, as in lesson 1.7.2.
⌘/Ctrl + Enter runs the cell
Module 5.6 builds characteristic functions of random variables from eiθ, and the Financial Computing with Python course prices options from them by Fourier methods.
Common mistakes
The angle must be in radians.e90i is about −0.448074+0.893997i, not i. A quarter turn is eiπ/2.
∣eiθ∣=1, not eθ. An imaginary exponent turns the point; it does not grow it. ∣e3i∣=1, while e3≈20.085537.
Check the quadrant.−1−i and 1+i share the slope ab=1, but their angles are −135° and 45°.
Angles add only when you multiply.1 is at 0° and i at 90°, but their sum 1+i is at 45°. Its distance is 2, not 2.
The distance r is never negative. Rewrite −3eiπ/4 as 3ei(π/4+π).
An angle has many names.23π and −2π are the same direction; Python reports the one between −π and π.
Euler's formula and polar form
0 of 12 correct
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
How to type answers
Powers with ^: x^7, 2^(1/3), a^-2.
Multiply with * or by writing side by side: 3x^2, 2(x+1).
ln(x) is the natural log, log(x, 2) is log base 2, e is Euler's number, sqrt(x) is a square root.
sin(x), cos(x) and tan(x) take radians; write pi for π and sin(x)^2 for sin²x.
Your first answer to each question is saved: it counts towards your score and brings the question back for review.
Exact answers like ln(20)/ln(3) are best. Decimals need about 4 significant figures.
Summary card
Euler's formula: eiθ=cosθ+isinθ, with θ in radians. It is the limit of (1+niθ)n, and the point at angle θ on the unit circle.
∣eiθ∣=1; eiπ/2=i, eiπ=−1, e2πi=1; e−iθ is the conjugate of eiθ.
Polar form: z=reiθ with r=∣z∣≥0, a=rcosθ, b=rsinθ. The quadrant fixes θ; adding 2π gives the same number.
Multiplying multiplies the distances and adds the angles; dividing divides them and subtracts. (reiθ)n=rneinθ.
In Python: cmath.exp(1j * theta), cmath.polar(z), cmath.rect(r, theta), cmath.phase(z).