Professional Documents
Culture Documents
3-Matrix Algebra
3-Matrix Algebra
MATRIX ALGEBRA 1 / 19
1 Matrix
2 Inversion Algorithm
MATRIX ALGEBRA 2 / 19
Matrix
Outlines
1 Matrix
2 Inversion Algorithm
MATRIX ALGEBRA 3 / 19
Matrix
Matrix
Consider the set Rm×n of all matrices of size m × n (m rows, n
columns). Let
a11 a12 ··· a1n
a21 a22 ··· a2n
A = .. .. .. ≡ [aij ]
. . .
am1 am2 ··· amn
b11 b12 ··· b1n
b21 b22 ··· b2n
B = .. .. .. ≡ [bij ] ∈ Rm×n
. . .
bm1 bm2 · · · bmn
in which aij ( bij , resp.) is called the element in the ith row, jth
column of A (B, resp.), i = 1, 2, · · · , m , j = 1, 2, · · · , n .
MATRIX ALGEBRA 4 / 19
Matrix
for i = 1, 2, · · · , m , j = 1, 2, · · · , p .
MATRIX ALGEBRA 5 / 19
Matrix
b1j
b2j
..
.
row i →
ai1 ai2 · · · ain =
bnj
↑
column j
↑
column j
n
a vector u = (u1 , u2 , · · · , un ) ∈ R as a
Moreover, by identifying
u1
u2
column matrix, u = .. ∈ Rn×1
.
un
MATRIX ALGEBRA 6 / 19
Matrix
MATRIX ALGEBRA 8 / 19
Matrix
Au = u1 c1 + u2 c2 + · · · + un cn
MATRIX ALGEBRA 9 / 19
Matrix
Remark
It is noted that the matrix multiplication is (i) associative,
A (BC ) = (AB) C , α (AB) = (αA) B = A (αB) , for all α ∈ R , (ii)
distributive with respect to the addition, A (B + C ) = AB + AC ,
(B + C ) A = BA + CA , (α + β) A = αA + βA , and
α (A + B) = αA + αB , for all α, β ∈ R , but it is NOT
commutative, i.e., AB 6= BA in general. For example, with
0 1 0 0
A= ,B =
0 0 1 0
1 0 0 0
we have AB = 6= BA = . Whenever AB = BA ,
0 0 0 1
we say that A and B are commutative.
For example, every square matrices A ∈ Rn×n are commutative with
zero matrix, , and with the identity matrix of size n, In , because
A0 = 0A = 0 and AIn = In A = A .
MATRIX ALGEBRA 10 / 19
Matrix
Definition 1.
Let A, B ∈ Rn×n . We say that B is the inverse matrix of A, noted
B = A−1 , when AB = BA = In . The two matrices are called
invertible.
By definition, A is also the inverse matrix of B, A = B −1 , and then,
−1
(A−1 ) = A.
Example 1.
1 −1 1
Consider the two matrices, A = −1 2 1 and
−2 3 1
−1 4 −3 1 0 0
B = −1 3 −2 . We have AB = BA = 0 1 0 = I3
1 −1 1 0 0 1
−1 −1
Hence, A = B and B = A .
MATRIX ALGEBRA 11 / 19
Matrix
MATRIX ALGEBRA 12 / 19
Matrix
Example 2
By changing the first and third row,
1 2 3 1 0 0 7 8 9 0 0 1
[A| I3 ] = 4
5 6 0 1 0 → 4 5 6
0 1 0
7 8 9 0 0 1 1 2 3 1 0 0
= [B| E ], we get
0 0 1 1 2 3 7 8 9
EA = 0 1 0 4 5 6 = 4 5 6 = B
1 0 0 7 8 9 1 2 3
= [B| E ], we get
1 0 0 1 2 3 1 2 3
EA = −4 1 0 4 5 6 = 0 −3 −6 = B
0 0 1 7 8 9 7 8 9
MATRIX ALGEBRA 14 / 19
Matrix
Outlines
1 Matrix
2 Inversion Algorithm
MATRIX ALGEBRA 16 / 19
Inversion Algorithm
Inversion Algorithm
[ A| In ] → [ In | B] (1)
MATRIX ALGEBRA 17 / 19
Inversion Algorithm
Example 3. Let
1 −1 1
A = −1 2 1
−2 3 1
By performing
1 −1 1 1
0 0
[ A| I3 ] = −1 2 1 0
1 0 →
−2 3 1 0
0 1
1 −1 1 1 0 0 1 0 3 2 1 0
0 1 2
1 1 0 → 0 1 2 1 1 0
0 1 3 2 0 1 1 −1 1
0 0 1
1 0 0 −1 4 −3
→ 0 1 0 −1 3 −2 = [I3 | A−1 ]
0 0 1 1 −1 1
MATRIX ALGEBRA 18 / 19
Inversion Algorithm
−1 4 −3
we get A−1 = −1 3 −2
1 −1 1
If in the ith step of the Gauss-Jordan algorithm, the ith element of
row i and all elements below are zeros, this matrix can not convert
into the identity matrix and then is not invertible.
Example 4. Let
1 3 −4
A = 1 5 −1
3 13 −6
1 3 −4 1 0 0
Perform [A| I3 ] = 1 5 −1 0 1 0
3 13 −6
0 0 1
5
1 0 − 17 3
1 3 −4 1 0 0 2
2
− 2
0
→ 0 2 3 −1 1 0 → 0 1 32 − 21 12 0
0 4 6 −3 0 1 0 0 0 −1 −2 1
Matrix A can not convert into the identity matrix and not invertible.
MATRIX ALGEBRA 19 / 19