Professional Documents
Culture Documents
Matrix Multiplication
Matrix Multiplication
tion.
>> b1=[1;1;-1] b1 = 1 1 -1
>> b2=[2;-3;1] b2 = 2 -3 1
Next, compute the matrix products A
= [> > ]
2 -3 1
-1 -1 -1
Its important to note that the rst column of AB is .
Theorem 1
multiplied. If then
> ; >
;:::;
>n
AB
;:::;
;:::;A
>n ] >n ]
>> r1=[1 2 3] r1 = 1 2 3
>> r2=[4 5 6] r2 = 4 5 6
>> r3=[7 8 9] r3 = 7 8 9
H B, H
B, and
H! B.
ans = 0 >> r2*B ans = 3 >> r3*B ans = 6 >> A*B ans = 0 3 6 -1 -1 -1 -1 -1 -1
Its important to note that the rst row of AB is B, and the third row of AB is
H! B.
H B,
Theorem 2
multiplied. If
H ; H
;:::;
Hn
AB
= =
>> c1=[1;2;3]
4
? ; ?
, and
?! .
= [? ? ?! ]
, the vector
product C
N.
2 ! N =" 3 # 5
>> x=[-2;3;-5]
N by N
Theorem 3
If C
= [? ? ?n ]
and
$ N =$ $ "
x x
. . .
x
! % %, then C N = N ? + x ? + % #
+ n ?n
x
>> x=[5 -6 4] x = 5 -6 4
>> r1=[1 2 3] r1 = 1 2 3
>> r2=[4 5 6] r2 = 4 5 6
>> r3=[7 8 9] r3 = 7 8 9
N as weights.
H ; H
; and
H!
12
15
NC .
H ; H
; and
2 5 8
3 6 9
Theorem 4
If
N =[x
+ n Hn
x
NC by forming N as weights.
4.1
Homework
From time to time during the remainder of the semester, take out this sheet and practice these various forms of multiplication. They will greatly aid your study of linear algebra.