Professional Documents
Culture Documents
Math 114
2 Special Matrices
3 Matrix Operations
a11 a12 a1n r1
a21 a22 a2n h i r2
A = [aij ] = . = c1 c2 cn = .
.. .. .. .. ..
. . .
amn am2 amn rn
Examples
" # 1 4 1 2
1 3 4
A = [aij ] = B = [bkl ] =
1 0 1 0
2 1 0
2 3 1 0
Examples
" # 1 4 1 2
1 3 4
A = [aij ] = B = [bkl ] =
1 0 1 0
2 1 0
2 3 1 0
1 A is a matrix.
Examples
" # 1 4 1 2
1 3 4
A = [aij ] = B = [bkl ] =
1 0 1 0
2 1 0
2 3 1 0
1 A is a 2 3 matrix.
Examples
" # 1 4 1 2
1 3 4
A = [aij ] = B = [bkl ] =
1 0 1 0
2 1 0
2 3 1 0
1 A is a 2 3 matrix.
2 The (1, 2) entry of A is a12 = .
Examples
" # 1 4 1 2
1 3 4
A = [aij ] = B = [bkl ] =
1 0 1 0
2 1 0
2 3 1 0
1 A is a 2 3 matrix.
2 The (1, 2) entry of A is a12 = 3.
Examples
" # 1 4 1 2
1 3 4
A = [aij ] = B = [bkl ] =
1 0 1 0
2 1 0
2 3 1 0
1 A is a 2 3 matrix.
2 The (1, 2) entry of A is a12 = 3.
Examples
" # 1 4 1 2
1 3 4
A = [aij ] = B = [bkl ] =
1 0 1 0
2 1 0
2 3 1 0
1 A is a 2 3 matrix.
2 The (1, 2) entry of A is a12 = 3.
1
3 The third column of B is b3 = 1
1
Graph Theory
2 3
1 4
(
1 if vertex i and j are connected
Incidence matrix aij =
0 otherwise
0 1 0 0
1 0 1 1
A=
0
1 0 1
0 1 1 0
Two matrices are equal if and only if they are of the same size and each
corresponding entries are equal.
2 Special Matrices
3 Matrix Operations
2 Special Matrices
3 Matrix Operations
cij = raij
cji = aij
" # 1 4 1 2
1 3 4
A = [aij ] = B = [bkl ] =
1 0 1 0
2 1 0
2 3 1 0
3 1 2 " # 1
1
1 0
C =
0 2
1 D= x =
4
0 2
0 0 4 3
" # 1 4 1 2
1 3 4
A = [aij ] = B = [bkl ] =
1 0 1 0
2 1 0
2 3 1 0
3 1 2 " # 1
1
1 0
C =
0 2
1 D= x =
4
0 2
0 0 4 3
2 Special Matrices
3 Matrix Operations
Assume A, B and C have appropriate sizes for the operations defined below.
Assume A, B and C have appropriate sizes for the operations defined below.
1 Matrix product is not commutative. In general, AB 6= BA.
Assume A, B and C have appropriate sizes for the operations defined below.
1 Matrix product is not commutative. In general, AB 6= BA.
2 A(BC ) = (AB)C
3 A(B + C ) = AB + AC
4 (B + C )A = BA + CA
5 r (AB) = (rA)B = A(rB) for any r R
6 rA = (rIm )A = A(rIn ) for any r R
Assume A, B and C have appropriate sizes for the operations defined below.
1 Matrix product is not commutative. In general, AB 6= BA.
2 A(BC ) = (AB)C
3 A(B + C ) = AB + AC
4 (B + C )A = BA + CA
5 r (AB) = (rA)B = A(rB) for any r R
6 rA = (rIm )A = A(rIn ) for any r R
7 (AB)T = B T AT .
8 It is possible that AB = 0m,n but A, B 6= 0. No cancellation law for matrix
products!
Assume A, B and C have appropriate sizes for the operations defined below.
1 Matrix product is not commutative. In general, AB 6= BA.
2 A(BC ) = (AB)C
3 A(B + C ) = AB + AC
4 (B + C )A = BA + CA
5 r (AB) = (rA)B = A(rB) for any r R
6 rA = (rIm )A = A(rIn ) for any r R
7 (AB)T = B T AT .
8 It is possible that AB = 0m,n but A, B 6= 0. No cancellation law for matrix
products!
A = [aij ] Rmn
x = [xj ] Rn
a11 a12 a1n x1
a21 a22 a2n x2
Ax = .
. .. .. ..
.. . . . .
.
amn am2 amn xn
A = [aij ] Rmn
x = [xj ] Rn
a11 a12 a1n x1 row1 (A) x
a21 a22 a2n
x2
row2 (A) x
Ax = =
. .. .. .. . ..
.. .
. . . .
.
amn am2 amn xn rowm (A) x
A = [aij ] Rmn
x = [xj ] Rn
a11 a12 a1n x1 row1 (A) x
a21 a22 a2n x2
row2 (A) x
Ax = =
. .. .. .. . ..
.. .
. . . .
.
amn am2 amn xn rowm (A) x
x1 a11 x2 a12 xn a1n
x1 a21 x2 a22 xn a2n
=
. .. .. ..
.. . . .
x1 amn x2 am2 xn amn
A = [aij ] Rmn
x = [xj ] Rn
a11 a12 a1n x1 row1 (A) x
a21 a22 a2n x2
row2 (A) x
Ax = =
. .. .. .. . ..
.. .
. . . .
.
amn am2 amn xn rowm (A) x
x1 a11 x2 a12 xn a1n a11 a12 a1n
x1 a21 x2 a22 xn a2n a21 a22 a2n
= = x1 . + x2 . + + xn .
. .. .. ..
.. . . . . . ..
. .
x1 amn x2 am2 xn amn amn am2 amn
A = [aij ] Rmn
x = [xj ] Rn
a11 a12 a1n x1 row1 (A) x
a21 a22 a2n x2
row2 (A) x
Ax = =
. .. .. .. . ..
.. .
. . . .
.
amn am2 amn xn rowm (A) x
x1 a11 x2 a12 xn a1n a11 a12 a1n
x1 a21 x2 a22 xn a2n a21 a22 a2n
= = x1 . + x2 . + + xn .
. .. .. ..
.. . . . . . ..
. .
x1 amn x2 am2 xn amn amn am2 amn
Let A be m n.
h i
1 Note that for any m k matrix B = b1 bk
h i
AB = Ab1 Abk
(n)
2 What is Aei ?
Let A be m n.
h i
1 Note that for any m k matrix B = b1 bk
h i
AB = Ab1 Abk
(n)
2 What is Aei ? Ans: i th column of A
Let A be m n.
h i
1 Note that for any m k matrix B = b1 bk
h i
AB = Ab1 Abk
(n)
2 What is Aei ? Ans: i th column of A
3 What is AIn ?
Let A be m n.
h i
1 Note that for any m k matrix B = b1 bk
h i
AB = Ab1 Abk
(n)
2 What is Aei ? Ans: i th column of A
3 What is AIn ? Ans: A
Let A be m n.
h i
1 Note that for any m k matrix B = b1 bk
h i
AB = Ab1 Abk
(n)
2 What is Aei ? Ans: i th column of A
3 What is AIn ? Ans: A
4 If x is an m 1 matrix, what is Im x?
Let A be m n.
h i
1 Note that for any m k matrix B = b1 bk
h i
AB = Ab1 Abk
(n)
2 What is Aei ? Ans: i th column of A
3 What is AIn ? Ans: A
4 If x is an m 1 matrix, what is Im x? Ans: x
Let A be m n.
h i
1 Note that for any m k matrix B = b1 bk
h i
AB = Ab1 Abk
(n)
2 What is Aei ? Ans: i th column of A
3 What is AIn ? Ans: A
4 If x is an m 1 matrix, what is Im x? Ans: x
5 What is Im A?
Let A be m n.
h i
1 Note that for any m k matrix B = b1 bk
h i
AB = Ab1 Abk
(n)
2 What is Aei ? Ans: i th column of A
3 What is AIn ? Ans: A
4 If x is an m 1 matrix, what is Im x? Ans: x
5 What is Im A? Ans: A
Theorem
If E is an elementary matrix, the effect of multiplying E to the left of A is the
same as the effect of applying the corresponding row operation on A. The effect
of multiplying E to the right of A is the same as applying a corresponding
column operation on A.
Theorem
If E is an elementary matrix, the effect of multiplying E to the left of A is the
same as the effect of applying the corresponding row operation on A. The effect
of multiplying E to the right of A is the same as applying a corresponding
column operation on A. (CAUTION: Type III row vs. column operations)