Escolar Documentos
Profissional Documentos
Cultura Documentos
Overview
Additional Resources
18.06 Text Book
6.837 Text Book
Check the course website for a
copy of these notes
What is a Matrix?
A matrix is a set of elements, organized
into rows and columns
rows
columns
a b
c d
Basic Operations
Addition, Subtraction, Multiplication
a b e
c d + g
f a + e b + f
=
h c + g d + h
a b e
c d g
f a e b f
=
h c g d h
a b e
c d g
f ae + bg
=
h ce + dg
af + bh
cf + dh
Multiplication
Is AB = BA? Maybe, but maybe not!
a b e
c d g
f ae + bg ...
=
h ...
...
e
g
f a b ea + fc ...
=
h c d ...
...
Vector Operations
Vector: 1 x N matrix
Interpretation: a line
in N dimensional
space
Dot Product, Cross
Product, and
Magnitude defined on
vectors only
a
G
v = b
c
y
v
x
Vector Interpretation
Think of a vector as a line in 2D or 3D
Think of a matrix as a transformation on a line
or set of lines
x a b x'
y c d = y '
A+B = C
(use the head-to-tail method
to combine vectors)
A
6.837 Linear Algebra Review
a b = a b cos( )
a b = a b sin( )
6.837 Linear Algebra Review
Inverse of a Matrix
Identity matrix:
AI = A
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
Used for inversion
If det(A) = 0, then A
has no inverse
Can be found using
factorials, pivots, and
cofactors!
Lots of interpretations
for more info, take
18.06
a b
A=
c
d
det( A) = ad bc
1 d b
A =
ad bc c a
1
Determinant of a Matrix
a b
d
g
e
h
a
d
b
e
c a b
f d e
c a b
f d e
c
f
i g
i g
Inverse of a Matrix
a b
d e
g h
c 1 0 0
f + 0 1 0
i 0 0 1
Homogeneous Matrices
Problem: how to include translations in
transformations (and do perspective transforms)
Solution: add an extra dimension
[x
x
1
1
=
z 1]
Orthonormal Basis
Basis: a space is totally defined by a set of
vectors any point is a linear combination
of the basis
Ortho-Normal: orthogonal + normal
Orthogonal: dot product is zero
Normal: magnitude is one
Example: X, Y, Z (but dont have to be!)
6.837 Linear Algebra Review
Orthonormal Basis
x = [1 0 0]
y = [0 1 0]
z = [0 0 1]
x y = 0
xz = 0
yz = 0
Orthonormal Basis
a 0 0 u1
0 b 0 u
2
0 0 c u3
v1
v2
v3
n1 a u + b u + c u
n2 = a v + b v + c v
n3 a n + b n + c n
Questions?