Download 1.3. Dot Product and Matrix Multiplication

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
1.3. Dot Product and Matrix
Multiplication
DEF (→ p. 17) The dot product of n-vectors:
u = (a 1 , …, a n ) and v = (b 1 , …, b n ) is
u 6 v = a1b1 + ` + anbn
(regardless of whether the vectors are written as
rows or columns).
DEF (→ p. 18)
If A = [a ij ] is an m × n matrix and B = [b ij ] is an
n × p matrix then the product of A and B is the
m × p matrix C = [c ij ] such that
c ij = row i (A) 6 col j (B)
= a i1 b 1j + ` + a in b nj
MATH 316U (003) - 1.3 (Dot Prod. & Matr. Mult.) / 1
EXAMPLE 1
4 −1
1
0
5
6 −2 3
1
8 0
6 −2 3
multiplied.
8 0
4 −1
0
5
=
−2
34 −3
30 −10 15
cannot be
As demonstrated above, in general AB ≠ BA.
For some matrices A and B, we have AB = BA
e.g.
1 0
1 2
0 1
3 4
1 2
1 0
3 4
0 1
=
1 2
=
1 2
3 4
3 4
Such matrices A and B are said to commute.
MATH 316U (003) - 1.3 (Dot Prod. & Matr. Mult.) / 2
→ Read pp.21-22: The Matrix-Vector Product
Written in Terms of Columns
→ Read pp.27-28: The Summation Notation
Recall a linear system of m equations in n
unknowns:
a 11 x 1 + a 12 x 2 + ` + a 1n x n = b 1
a 21 x 1 + a 22 x 2 + ` + a 2n x n = b 2
_
a m1 x 1 + a m2 x 2 + ` + a mn x n = b m
MATH 316U (003) - 1.3 (Dot Prod. & Matr. Mult.) / 3
This system can be written in the matrix form
Ax = b
where
a 11 a 12 ` a 1n
A=
a 21 a 22 ` a 2n
_
_ b
_
,
a m1 a m2 ` a mn
x =
x1
b1
x2
b2
_
xn
,b =
_
bm
• The m × n matrix A is called the coefficient
matrix of the system.
• The m × (n + 1) matrix [A| b ] is called the
augmented matrix of the system.
MATH 316U (003) - 1.3 (Dot Prod. & Matr. Mult.) / 4
EXAMPLE 2
The system
2x − y = −4
− 3x − 2y = −1
of from EXAMPLE 1 the Section 1.1 lecture
notes has
2 −1
• the coefficient matrix A =
,
−3 −2
• the unknown vector x =
x
y
• the right-hand-side vector b =
,
−4
−1
,
• and the augmented matrix
2 −1 −4
[A| b ] =
.
−3 −2 −1
MATH 316U (003) - 1.3 (Dot Prod. & Matr. Mult.) / 5
Related documents