Linear Algebra
Linear Algebra
1 Matrix Operations
Jiwen He
[email protected]
math.uh.edu/∼jiwenhe/math2331
Matrix Addition
Theorem: Properties of Matrix Sums and Scalar Multiples
Zero Matrix
Matrix Multiplication
Definition: Linear Combinations of the Columns
Row-Column Rule for Computing AB (alternate method)
Theorem: Properties of Matrix Multiplication
Identify Matrix
Matrix Power
Matrix Transpose
Theorem: Properties of Matrix Transpose
Symmetric Matrix
Matrix Notation
Matrix Notation
Two ways to denote m × n matrix A:
1 In terms of the columns of A:
A = a1 a2 · · · an
2 In terms of the entries of A:
a11 ··· a1j ··· a1n
.. ..
. .
A= i1a ··· aij · · · ain
.. .. ..
. . .
am1 ··· amj ··· amn
Zero Matrix
0 ··· 0 ··· 0
.. ..
. .
0 ···
0= 0 ··· 0
.. .. ..
. . .
0 ··· 0 ··· 0
Matrix Multiplication
Matrix Multiplication
Multiplying B and x transforms x into the vector Bx. In turn, if
we multiply A and Bx, we transform Bx into A (Bx). So A (Bx) is
the composition of two mappings.
Therefore,
and by defining
Solution:
4 −2 4 −2
2 −3
Ab1 = 3 −5 , Ab2 = 3 −5
6 −7
0 1 0 1
−4 2
= −24 = 26
6 −7
−4 2
=⇒ AB = −24 26
6 −7
which is .
If A is m × n and B is n × p, then AB is m × p.
Jiwen He, University of Houston Math 2331, Linear Algebra 9 / 19
2.1 Matrix Operations Addition Multiplication Power Transpose
i.e.,
b1j
b2j
ai1 ai2 · · · ain .. = (AB)ij
.
bnj
2 −3
2 3 6 0 28 −45
1 =
−1 0 1 2
4 −7
2 −3
2 3 6 0 28 −45
1 =
−1 0 1 2 −4
4 −7
28 −45
So AB = .
2 −4
Theorem (Multiplication)
Let A be m × n and let B and C have sizes for which the indicated
sums and products are defined.
c. (B + C ) A = BA + CA (right-distributive law)
WARNINGS
Properties above are analogous to properties of real numbers.
But NOT ALL real number properties correspond to matrix
properties.
1 It is not the case that AB always equal BA.
(see Example 7, page 98)
2 Even if AB = AC , then B may not equal C .
(see Exercise 10, page 100)
3 It is possible for AB = 0 even if A 6= 0 and B 6= 0.
(see Exercise 12, page 100)
Matrix Power
Powers of A
Ak = A
| ·{z
· · A}
k
Example
3
1 0 1 0 1 0 1 0
=
3 2 3 2 3 2 3 2
1 0 1 0
= =
3 2 21 8
Matrix Transpose
Transpose of A
If A is m × n, the transpose of A is the n × m matrix, denoted by
AT , whose columns are formed from the corresponding rows of A.
Example
1 6 7
1 2 3 4 5
2 7 6
A= 6 7 8 9 8 =⇒ AT =
3 8 5
7 6 5 4 3 4 9 4
5 8 3
Solution:
1 2
1 2 0 0 1 =
AB =
3 0 1
−2 4
T
(AB) =
1 3 7 3 10
1 0 −2
AT B T = 2 0 = 2 0 −4
2 1 4
0 1 2 1 4
1 3
1 0 −2
B T AT = 2 0 =
2 1 4
0 1
Solution: By Theorem,
(ABC )T = ((AB) C )T = C T ( )T
= CT ( )= .
Jiwen He, University of Houston Math 2331, Linear Algebra 19 / 19