Professional Documents
Culture Documents
A gentle introduction
What is a Vector ?
a
v b
c
y
v
x
A
B
C
B
A
A+B = C
(use the head-to-tail method
to combine vectors)
av(x1,2)(ax1,2)
Scalar Product: av
av
ad be cf
A AT A aa bb cc
A B A B cos( )
.v.w
,(x1,2v).w
v
w
)y
.102
(
x
(|
yv1,w
x|co1sy
2.y
1
2
2)
Inner (dot) Product: v.w or wTv
vs
x 1 0 0
T
[Sneak peek:
y 0 1 0
Orthogonal: dot product is zero
T
0
0
1
Normal: magnitude is one ]
x y 0
xz 0
yz 0
What is a Matrix?
columns
a b
c d
a b e
c d g
f ae b f
h c g d h
a b e
c d g
f ae b f
h c g d h
a b
c d
e
g
f ae bg
h ce dg
af bh
cf dh
l13211322N
L
M
l1323
m
13211322m
1323 n
13211322n
1323
Matrix Times Matrix
x = ax + by
y = cx + dy
a b x x'
c d y y'
Multiplication
a
c
ae bg
h
...
...
...
e
g
f a
h c
ea fc ...
d ...
...
b
Pure scaling, no rotation => diagonal matrix (note: x-, y-axes could be scaled differently!)
Pure rotation, no stretching => orthogonal matrix O
Identity (do nothing) matrix = unit scaling, no rotation!
r1 0
0 r2
[0,1]T
[0,r2]T
scaling
[r1,0]T
[1,0]T
cos -sin
sin cos
[0,1]T
rotation
[1,0]T
[-sin, cos]T
[cos, sin]T
Scaling
P
r 0
0 r
dilation (r >1)
contraction (r <1)
Rotation
P
P
cos -sin
sin cos
P
'(xtx,yy)P
t
2D Translation
P
ty
y
tx
40h 15c 50 2
25c 25 2 50h
x C7 H 8 y HNO3 z C7 H 5O6 N 3 w H 2O
C : 7x 7z
H : 8 x y 5z 2 w
N : y 3z
O : 3 y 6z w
C6 H 2 NO2 3 CH 3
Inverse of a Matrix
Identity matrix:
AI = A
Inverse exists only for square
matrices that are non-singular
Maps N-d space to another
N-d space
Some matrices have an
inverse, such that:
AA-1 = I
Inversion is tricky:
(ABC)-1 = C-1B-1A-1
Derived from noncommutativity property
1 0 0
I 0 1 0
0 0 1
Determinant of a Matrix
a b
A
c
d
det( A) ad bc
1 d b
A
ad bc c a
1
AB
B
A
A B A B sin( )