Académique Documents
Professionnel Documents
Culture Documents
Woosoon Yim
Math Tools-
Vectors, Matrices, Complex Numbers
ME 320
ME 320 Dynamics of Machines Instructor: Prof. Woosoon Yim
ℤ - Integers
ℤ = 0, ±1, ±2, …
ℚ - Rational Numbers
𝑚
ℚ = ∀𝑛, 𝑚 ∈ ℤ 𝑛 𝑖𝑠 𝑎 𝑟𝑎𝑡𝑖𝑜𝑛𝑎𝑙 𝑛𝑢𝑚𝑏𝑒𝑟, 𝑛 ≠ 0
ℝ - Real numbers
(For our purposes think of this set as the set of all rational numbers
merged with all the irrational numbers, i.e. 2, 𝜋, 𝑒,…)
ℂ - Complex Numbers
We introduce the complex number 𝑖 =
−1, and say that a complex number
𝑠 is defined by
𝑖 2 = −1
𝑠 = 𝑎 + 𝑖𝑏
Where 𝑎 and 𝑏 are real numbers.
ME 320 Dynamics of Machines Instructor: Prof. Woosoon Yim
Vector Dimension
A vector with n elements: 2D representation:
ℕ, ℕ2 , ℕ3 , … , ℕ𝑛
ℤ, ℤ2 , ℤ3 , … , ℤ𝑛
ℚ, ℚ2 , ℚ3 , … , ℚ𝑛
ℝ, ℝ2 , ℝ3 , … , ℝ𝑛
ℂ, ℂ2 , ℂ3 , … , ℂ𝑛
x 1
or
x is a real scalar number
x 2
x is a (2 1) vector of
rational numbers
x 3
x is a (3 1) vector of
complex numbers
ME 320 Dynamics of Machines Instructor: Prof. Woosoon Yim
Point Representation
A vector V with end points p1 and p2 in 2D and 3D spaces are
V p2 p1
p2 x p1x p2 y p1 y
2
V p2 p1
2
p2 y p1 y
2D
p2 x p1x
T
uˆ
V
p2 x p1x p2 y p1 y p2 z p1z
2
V p2 p1
2 2
p2 y p1 y
3D
p2 x p1x p2 z p1z
T
uˆ
V
ME 320 Dynamics of Machines Instructor: Prof. Woosoon Yim
Euler Formula
Maclaurin series is a Taylor series expansion of a function about 0
f (0) 2 f (0) 3 Im
f ( x) f (0) f (0) x x x
2! 3!
ei cos i sin
for f ( ) ei
i i ei ei
e 1 ie
x 0
i 2
i 2 3
3
2! x 0
3! x 0
Re
i i i i
2 3 4 5
1 i
2! 3! 4! 5!
2 4 3 5
1 i
2! 4! 3! 5!
cos j sin Euler's formula
cos 1 sin 0
cos 2
sin 3
2! 0
3! 0
2
4
1
2! 4!
sin 0 cos 0
sin 2
cos 3
2! 0
3! 0
3 5
3! 5!
ME 320 Dynamics of Machines Instructor: Prof. Woosoon Yim
Complex Number-
Multiplication/Differentiation
• Product V1 V2 V1ei1V2 ei2 V1V2ei1 2 V1V2 cos 1 2 i sin 1 2
• Derivatives
dV1 d
i 1 V1ei1 i1V1ei1 i1V1
dt dt
d 2V1
dt 2
i 1V 1 i1V1
V1 i1V1
V1 i1V1 1
2
V1 V1i1 1
2
• Differentiation of complex numbers are used to find
velocity and acceleration from the vector-loop equation.
ME 320 Dynamics of Machines Instructor: Prof. Woosoon Yim
1
x1 2 3 y1
y
2
x 1 4 2
ME 320 Dynamics of Machines Instructor: Prof. Woosoon Yim
Mathematics in Kinematics-2D
V1 V1x iV1 y V1 (cos 1 i sin 1 ) V1ei1 Note that * i 90 CCW since i ei 90
iei1
V1
i1
e cos 1 i sin 1 Im ei1
i i i ( )
Multiplication: VV 1 2 V1e V2 e VV
1 2e
1 2 1 2
1 2 cos(1 2 ) i sin(1 2 )
VV V2
Differentiation: V V e 1 1
i 1
d
V1
dV1 V1 i1V1
dt dt
dV
i 1 V1 i1 1 i1V1 12V1 V1 i1 12
dt
V2 V112
i1V1
V1ei1 i1 12 1
Re
i1 i1
=V11 ie V e
2
1 1
i1
i1 i 2
i 0 i1V1e
V1 V1e
V1 V2 - V3 V j 0
V V e
i 2V2 e Vj 0
j j
2nd Differentiation:
V i1V1
V1 V2 - V3 V j 0
V V
j j
V1 i1 12 V2 i 2 22 V j 0
V1ei1 i1 12 V2 ei2 i 2 22 V j 0
iV11ei1 V112ei1 iV2 2ei2 V2 2 2ei2 V j 0
iV11 (cos 1 i sin 1 ) V112 (cos 1 i sin 1 ) iV2 2 (cos 2 i sin 2 ) V2 2 2 (cos 2 i sin 2 ) V j 0
V sin
1 1 1 V112 cos 1 V2 2 sin 2 V2 2 2 cos 2 V j
i V11 cos 1 V112 sin 1 V2 2 cos 2 V2 2 2 sin 2 0
V sin
Given:1 ,1 ,1 1 2 V11 sin 1 V112 cos 1 V2 2 2 cos 2 2
2 Solve for
V2 cos 2
2 ,V j from loop eqs
2 from velocity eqs
0 V j V11 cos 1 V112 sin 1 V2 2 2 sin 2 V j
ME 320 Dynamics of Machines Instructor: Prof. Woosoon Yim
MATLAB Example
>> syms R1 R2 R3 th1(t) th2(t) t;
>> R3=R1*exp(i*th1(t))+R2*exp(i*th2(t));
R2 >> dR3=diff(R3)
Imaginary
dR3 =
2
R1*exp(th1(t)*i)*diff(th1(t), t)*i +
R2*exp(th2(t)*i)*diff(th2(t), t)*i
R1 R3
>> ddR3=diff(dR3)
3 ddR3 =
1 - R1*exp(th1(t)*i)*diff(th1(t), t)^2 -
R2*exp(th2(t)*i)*diff(th2(t), t)^2 +
Real
R1*exp(th1(t)*i)*diff(th1(t), t, t)*i +
R 3 = R1 + R 2 R2*exp(th2(t)*i)*diff(th2(t), t, t)*i