Escolar Documentos
Profissional Documentos
Cultura Documentos
of Matrix Analysis
A matrix is a rectangular collection of numbers. If there are n rows and m columns, we write
the matrix as A n×m , and the numbers of the matrix are a i j , where i gives the row number
and j gives the column number. These are also called the dimensions of the matrix. We
i=n, j =m
compactly write A = (a i j )i=1, j =1 . In rectangular form
⎡ ⎤
a 11 a 12 ··· a 1m
⎢ a 21 a 22 ··· a 2m ⎥
A=⎢
⎣ ... .. .. ⎥ .
. ··· . ⎦
a n1 a n2 · · · a nm
If n = m, we say that the matrix is square. The square matrix in which there are all 1s along
the diagonal and 0s everywhere else is called the identity matrix:
⎡ ⎤
1 0 ··· 0
⎢0 1 ··· 0⎥
In := ⎢ ⎥
⎣ ... ... · · · ... ⎦
0 0 ··· 1
1. We add two matrices that have the same dimensions, A + B, by adding the respective
components A + B = (a i j + bi j ), or
⎡ ⎤
a 11 + b 11 a 12 + b 12 ··· a 1m + b 1m
⎢ a 21 + b 21 a 22 + b 22 ··· a 2m + b 2m ⎥
A+B =⎢
⎣ .. .. .. ⎥
⎦
. . ··· .
a n1 + b n1 a n2 + b n2 · · · a nm + b nm
432
Appendix A 433
⎡ ⎤
c a 11 c a 12 ··· c a 1m
⎢ c a 21 c a 22 ··· c a 2m ⎥
cA =⎢
⎣ ... .. .. ⎥ .
. ··· . ⎦
c a n1 c a n2 · · · c a nm
3. We may multiply two matrices A n×m and Bm×k only if the number of columns of A is
exactly the same as the number of rows of B. You have to be careful because not only is
A · B = B · A; in general, it is not even defined if the rows and columns don’t match
up. So, if A = A n×m and B = Bm×k , then C = A · B is defined and C = C n×k , and is
given by
⎡ ⎤⎡ ⎤
a 11 a 12 ··· a 1m b 11 b 12 ··· b 1k
⎢ a 21 a 22 ··· a 2m ⎥⎢ b 21 b 22 ··· b 2k ⎥
A·B =⎢
⎣ ... .. .. ⎥ ⎢ . .. .. ⎥ .
. ··· . ⎦⎣ .. . ··· . ⎦
a n1 a n2 · · · a nm b m1 a m2 · · · a mk
This gives the (i, j )th element of the matrix C . The matrix C n×k = (c i j ) has elements
written compactly as
m
cij = a ir br j , i = 1, 2, . . . , n, j = 1, 2, . . . , k.
r =1
n
n
= x i a i1 x i a i2 ··· x i a im .
i=1 i=1 i=1
m ⎤
⎢ a1 j y j ⎥
⎢ j =1 ⎥
⎡ ⎤⎡ ⎤ ⎢ m ⎥
a 11 a 12 ··· a 1m y1 ⎢
⎥
⎢ a2 j y j ⎥
⎢ a 21 a 22 ··· a 2m ⎥⎢ y 2 ⎥ ⎢ ⎥
T
A n×m Ym×1 =⎢
⎣ ... .. .. ⎥ ⎢ . ⎥ = ⎢ j =1
⎢
⎥.
⎥
. ··· . ⎦⎣ .. ⎦ ⎢ . ⎥
··· ⎢ . ⎥
a n1 a n2 a nm ym ⎢ m . ⎥
⎢
⎥
⎣ ⎦
anj y j
j =1
One way to calculate the determinant of a larger matrix is expansion by minors which
we illustrate for a 3 × 3 matrix:
a 11 a 12 a 13
det(A 3×3 ) =
a 21 a 22 a 23
a 31 a 32 a 33
a a 23
a a 23
a a 22
= a 11
22 − a 12
21 + a 13
21 .
a 32 a 33
a 31 a 33
a 31 a 32
1
To simplify notation we will drop the superscript T for the transpose of a single row matrix.