Professional Documents
Culture Documents
Complex Number
Complex Number
Complex Number
Complex Numbers
( x, y )
z
A complex number 𝒛 can be expressed as a vector
r
𝒛 = (𝑥, 𝑦) on a plane.
𝑥 = 𝑅𝑒 𝒛 Real Axis
𝑦 = 𝐼𝑚(𝒛)
1
In matlab, enter the following commands:
>> z=3-5i
𝑟 = 𝒛 = 𝑎𝑏𝑠 𝒛 = 𝑥2 + 𝑦2 and
𝑦 Imaginary Axis
𝜃 = ∠ 𝒛 = 𝑎𝑟𝑔 𝒛 = tan−1
𝑥 ( x, y )
z
If we have 𝑟 and 𝜃, then 𝑥 and 𝑦 r
𝑥 = 𝑟𝑐𝑜𝑠𝜃 = 𝑅𝑒 𝒛
𝑦 = 𝑟𝑠𝑖𝑛𝜃 = 𝐼𝑚 𝒛
2
Euler’s Formula
𝑒 𝑖𝜃 = 𝑐𝑜𝑠𝜃 + 𝑖𝑠𝑖𝑛𝜃
Therefore,
𝒛 = 𝑟 ∗ exp(𝑖 ∗ 𝑡ℎ𝑒𝑡𝑎)
3
Representation of Complex Numbers in MATLAB
𝒛 = 4 + 𝑖3
𝑟= 𝑥 2 + 𝑦 2 = 42 + 32 = 5
3
𝜃 = tan−1 = 36.87 ° 0.6435 𝑟𝑎𝑑
4
𝒛 = 5∠36.87 °
>> z=4+3i;
>> r=abs(z)
r=5
>> theta_rad=angle(z)
heta_rad=0.6435
>> theta_degree=theta_rad*(180/pi)
theta_degree=36.87
>> a=r*exp(i*theta_rad)
a=4.0000 + 3.0000i
Example:
𝒛 = −1.6646 + 𝑖3.6372
In MATLAB:
>> z=4*exp(2i)
z =
-1.6646 + 3.6372i
4
Operations on Complex Numbers: SUM
𝒛1 = 𝑥1 + 𝑖𝑦1 𝒛2 = 𝑥2 + 𝑖𝑦2
Imaginary Axis
𝒛𝑠𝑢𝑚 = 𝒛1 + 𝒛2 z sum
z2
z1
= 𝑥1 + 𝑖𝑦1 + 𝑥2 + 𝑖𝑦2 z2
Real Axis
= 𝑥1 + 𝑥2 + 𝑖(𝑦1 + 𝑦2 )
Let 𝒛 = 𝑥 + 𝑖𝑦 = 𝑟𝑒 𝑖𝜃 ,
𝒛 = 𝑥 − 𝑖𝑦 = 𝑟𝑒 −𝑖𝜃
𝑒 𝑖𝜃 +𝑒 −𝑖𝜃 𝑒 𝑖𝜃 −𝑒 −𝑖𝜃
𝑐𝑜𝑠𝜃 = ; sin𝜃 =
2 2𝑖
10
5
Operations on Complex Numbers: Multiplication
𝒛1 = 𝑥1 + 𝑖𝑦1 ; 𝒛2 = 𝑥2 + 𝑖𝑦2
𝒛𝑝𝑟𝑜𝑑 = 𝑥1𝑥2 − 𝑦1 𝑦2 + 𝑖(𝑥1 𝑦2 + 𝑥2 𝑦1 )
𝒛𝑝𝑟𝑜𝑑 = 𝑥1 𝑥2 − 𝑦1 𝑦2 + 𝑖(𝑥1 𝑦2 + 𝑥2 𝑦1 )
11
• Again, this operation is not suited to the rectangular form, where it can be costly
or cumbersome. If we move to the polar representation
𝒛1 = 𝑟1 𝑒 𝑖𝜃1 ; 𝒛2 = 𝑟2 𝑒 𝑖𝜃2 ;
𝑧1 𝑟 𝑒 𝑖𝜃1 𝑟
𝒛𝑑𝑖𝑣 = = 𝑟1 𝑒 𝑖𝜃2 = 𝑟1 𝑒 𝑖(𝜃1 −𝜃2 )
𝑧2 2 2
12
6
Application of Complex numbers (2)
𝑠 4 = −1 = 1𝑒 𝑖(𝜋+2𝜋𝑛)
𝜋 2𝜋
𝑠 = 𝑒 𝑖( 4 +𝑛 4 )
𝜋
𝑠1 = 𝑒 𝑖 4 = 0.7071 + 𝑖0.7071
3𝜋
𝑠2 = 𝑒 𝑖 4 = −0.7071 + 𝑖0.7071
5𝜋
𝑠3 = 𝑒 𝑖 4 = −0.7071 − 𝑖0.7071
7𝜋
𝑠4 = 𝑒 𝑖 4 = 0.7071 − 𝑖0.7071
13
2 k 2 k
z k n r cos i sin
n n
w here k 0 , 1, 2 , , n 1
14
7
Find the 4th root of z 81 cos80 i sin80
15
16
8
Find the 4th root of z 81 cos80 i sin80
17
1
8 cos135 isin135
1
2 2i 3
o o 3
1 3 135 360k
1
8 2 cos
135 360k
isin
3 3
For k = 0, 1, and 2, the roots are:
2 cos 45o i sin 45o
2 cos 165 o i sin 165 o
2 cos 285 o
i sin 285
o
18
9
Find the three cube roots of z = -2+2i
Reference:
ENSC 180 – Introduction to Engineering Analysis Tools
School of Engineering Science
Simon Fraser University
Burnaby, BC, Canada
http://www.sfu.ca/outlines.html?2019/spring/ensc/180/d100
20
10
Mathematical Functions
Elementary Functions
cos(x) Cosine abs(x) Absolute value
sin(x) Sine ceil(x) Round towards + Inf
tan(x) Tangent floor(x) Round towards - Inf
acos(x) Arc cosine round(x) Round
asin(x) Arc sine rem(x) Remainder after division
atan(x) Arc tangent angle(x) Phase
exp(x) Exponential conj(x) Complex Conjugate
sqrt(x) Square root imag (x) imaginary
Natural
log(x) real (x) Real number
Logarithm
Common
log10(x) primes (x) Prime Number
Logarithm
21
11