Professional Documents
Culture Documents
A A ... A A A .. A A .. .. .. .. A A .. A: Square Matrix
A A ... A A A .. A A .. .. .. .. A A .. A: Square Matrix
1 1 0 1 1
e.g. A25
1 1 1 0 0
d11 0 0
D 0 d 22 0 . Notice that all dij 0, if i j
0 0 d 33
1 0 0
I 0 1 0
0 0 1
Trace of a matrix Tr( A ) is the sum of all its
n
diagonal elements. Tr( A ) aii .
i 1
2i 0 2
e.g. C33 1 i i 1 i
2 i 3i 3
2 i 1 i 2 i
C t D33 0 i 3i
2 1 i 3
1 i p -i
e.g. i 1 , i 1
0 1 0 i 1 0
1 , 2 i 0 , 3 0 1
1 0
uij aij i j
= 0, otherwise
3 1 2 0 9
0 2 2 1 4
e.g. U 0 0 3 0 1
0 0 0 1 9
0 0 0 0 4
A lower triangular matrix L has all items above
the diagonal zero.
lij aij i j
= 0, otherwise
e.g.
3 0 0 0 0
1 2 0 0 0
L 3 2 3 0 0
8 3 1 1 0
1 1 2 1 4
1 0 -1 5 3
2 -2 3 4 6
b= -1 1 2 0 7
0 1 2 -3 -4
1 -1 2 -2 3
and its Hessenberg form is:
e.g.
0 2 0 0 1
5 0 0 0 3
A 0 0 0 0 6
2 0 0 0 0
0 0 0 1 0
Its storage has to be designed, preferably, in some
form of list structure such as
A B
X where each element unit is a matrix
C D
such as
1 1
2 3 4 3 2 2 2
A ,B ,C
4 1 4 0 5
3 2
3 0 3
D 2 2 0
1 3 4
2 3 4 3 2
4 1 4 0 5
with the original X 1 1 3 0 3
2 2 2 2 0
3 2 1 3 0
2 0 3 -2 0 -3
Thus, A 1 1 9 , -A = -1 1 -9
4 3 5 -4 -3 -5
a. uj
j u1 u2 u3 ... un on an n-component
vector
n 1
b. ( j 1 )u
j 1
j 2u1 3u2 4u3 ... nun1
n
c. u v
k 3
k k 2 u3 v1 u4 v2 ... un vn 2
Similarly, on matrices
d. ai
ij a1 j a2 j a3 j ... amj
a ( a
i j j
ij
i j
i2 ai 3 ai4 ... ain )
e. = a12 ( a13 a23 ) ( a14 a24 a34 )
+ ... + (a1n a2n ... amn )
n
f. a
k 1
ik kjb ( ai1b1 j ai 2b2 j ... ainbnj )
This is an inner product of two vectors:
i-th row of a and the j-th column of b .
ai. | b. j
b1 j
b
2j
b3 j
(ai1 ai2 ai3 ... aij ... ain )
...
...
bnj
3. 1 Matrix multiplication
e.g.
1 2 3 1 0 1
A 2 1 1 and B 2 2 3
2 0 2 1 1 2
Then
2 1 11
C 1 3 3
4 2 6
Note that in matrix multiplication AB BA
usually. If they are equal they are said to be
commutative. In our case,
2 1 11 3 2 1
AB 1 3 3 , BA= -8 6 10
4 2 6 -3 -3 2
AI IA A if I is a n n identity matrix.
A1 0 0 B1 0 0 A1 B1
0 A2 0 0 B2 0 A2 B2
0 0 A3 B3 A3 B3
0 0
Therefore, AB I BA
4. Inverse of a matrix.
d11 0 0 0
0 d 22 0 0
D then
0 0 .. 0
0 0 0 d nn
1 / d11 0 0 0
0 1 / d 22 0 0
1
D
0 0 .. 0
0 0 0 1 / d nn
A real matrix A is orthogonal if At A1 .
Orthonormal matrices constitute an important
class of matrices in physical sciences.
a11 a12
a. A we want its inverse
a
21 a 22
b11 b12
B such that AB I
b b
21 22
2 1 1 x1 x2 x3
A 0 1 1 Assume, A1 y1 y2 y3
1 1 2 z z2 z3
1
2 1 1 x1 x2 x3
AA1 0 1 1 y1 y2 y3 I 3
1 1 2 z z2 z3
1