001 - Lecture - 3 - Annotated - Matrix Multiplication
001 - Lecture - 3 - Annotated - Matrix Multiplication
If
A is of dimension m x n
B is of dimension n x p
==> C = AB is an m x p matrix
Plan for Today
Matrices vs vectors
Special matrices:
Identity matrix
Null matrix
Idempotent matrix
Transpose of a matrix?
Matrix multiplication - Example
C = AB =
Matrix multiplication – Example
BA =
Matrix multiplication - Example
x∙y’ =
xy’ =
Matrix multiplication - Matrices & Vectors 2
1
Ex 2: u v' 3 5 2
4
u∙v’ =
uv’ =
Matrix multiplication - Matrices & Vectors 3
u’u =
Length of a vector
1 0 0
1 0
I2 I 3 0 1 0
0 1 0 0 1
Identity Matrix 2
a b
c d by I
Ex: Post-multiply and pre-multiply A
e f
Identity Matrix 3
Some implications:
AIB = (AI)B = AB
2) Multiplying In by itself:
InIn = (In)2 = In
The Null Matrix
The null matrix (or zero matrix) is a matrix whose
elements are all zero
Denoted 0
Properties:
A+0=0+A=A
0A = 0
A0 = 0
1 0
Another example: A
0 0
Idempotent Matrix 2
2 4 - 2 - 4
Ex: A B
1 2 1 2
Matrices vs Scalars 2
2) For scalars, ab = ac (with a ≠ 0) ==> b = c.
NOT true for matrices.
2 3 1 1 - 2 1
Ex: A B C
6 9 1 2 3 2
Rules of matrix
algebra
Commutative, Associative, and
Distributive Laws
In ordinary scalar algebra, addition and multiplication
obey the following laws: