Notes of Algebra
Notes of Algebra
Matrix Algebra
1.1. Definition of a Matrix
An m n matrix is a rectangular array of real numbers, arranged in m rows and n columns. The elements of a matrix are
called the entries. The expression m n denotes the size of the
matrix.
21 a22 . . . a2n
A = ..
..
..
..
.
.
.
.
am1 am2 . . . amn
We write aij to represent the entry in the ith row and j th
column of A. For example, each of the following is a matrix,
A=
2 3 1
4 0 5
7
D = 1 ,
2
4 2
B = 1 7 ,
5 3
E=
4 3 0 ,
1 2 3
C=4 5 6
7 8 9
F=
1
0
0
0
0 1 0 0
1 0
I2 =
, I4 =
0 0 1 0
0 1
0 0 0 1
An upper triangular matrix is a square matrix with all entries below the main diagonal equal to zero. Similarly, a lower
triangular matrix is a square matrix with all entries above the
main diagonal equal to zero.
7 2 2 0
3
0
0
0 4 9 5
9 2 0
P=
0 0 0 8 , Q =
14 6 1
0 0 0 3
1.3. Addition and Scalar Multiplication with Matrices
6 3 2
7 0 4
+
5 6 3
4 2 4
=
11 9 1
11 2 0
4 1 6 7
2 4 9 5
,
then2A =
2
8 2 12 14
4 8 18 10
6
2
if A =
3
1
10
4
0
8
then AT =
6 2 3 1
10 4 0 8
For example,
5 1 4
3 6 0
9 4 8 2
30
34
27
6
7 6 1 0 =
15 24 18 6
2 5 3 4
A=
Then
AB =
6 9
4 6
3 12
2 8
,
,
1 2
B=
1 0
2 3
BA =
6 9
IA = A, BI = B
A(BC) = (AB)C
A(B + C) = AB + AC
(B + C)A = BA + CA
k(AB) = (kA)B = A(kB)
(AB)T = B T AT
4
1 1 0
A=1 0 1
1 0 0
Theorem 1.4. Let A be the adjacency matrix of a directed graph
with n vertices. The (i, j)-entry of Ar , r 1, is the number of
walks of length r from vj to vi.
As an application of Theorem 1.4, the number of walks of
length 3 in the directed graph of Figure 1 is given by the matrix
4 2 1
A3 = 3 2 1
2 1 1
v1
v2
v3
AB = (C1C2 . . . Cn )
x1
x2
..
.
xn
= x 1 C1 + x 2 C2 + . . . x n Cn
For example
5 1 4
3 6 0
1
5
1
4
3 = 1
+ (3)
+2
3
6
0
2