Professional Documents
Culture Documents
Lecture02 12.03.2021
Lecture02 12.03.2021
MAT 261E
yaraneri@itu.edu.tr
(b) Determine which of the following matrix expressions are defined, and find their sizes:
(d) Given matrices X, Y, Z, and U, suppose that the following matrix expressions are defined
(AX)D, DT Y, Y B, Z T − A, (B − DT )U T GT .
(e) Find all possible triple products of D, G and H. That is, find products DGH, DHG, GHD, ... whenever
possible.
Solution: (a):
(F T )13 + (E)31 + (DT )32 = (−1) + (−1) + 7 = 5.
(EA)23 = 4; (F B)21 = −3.
(b):
AT |{z}
|{z} B , C + |{z}
|{z} D , (|{z} H T ) |{z}
G − |{z} H , (|{z}
D |{z}
E ) |{z}
G
4×3 3×2 2×2 2×3 3×1 3×1 1×3 2×3 3×3 3×1
| {z } | {z } | {z } | {z }
4×2 undefined 3×1 2×1
| {z }
3×3
D |{z}
|{z} C , C |{z}
|{z} D + |{z}
E , |{z} BT
D − |{z}
2×3 2×2 2×2 2×3 3×3 2×3 2×3
| {z } | {z } | {z }
undefined 2×3 2×3
| {z }
undefined
(c):
3 −2 1 −2 −3 0
(B − DT )C = 18 −8 ; F G = 0 ; GH = 0 0 0
17 6 2 2 3 0
HG = −2 ; HE = 11 7 12 ; HF G = 2
Ergün Yaraneri
MAT 261E
yaraneri@itu.edu.tr
(d):
(|{z}
A X) |{z}
D =⇒ |{z}
X
3×4 2×3 4×2
DT Y
|{z} and Y |{z}
B =⇒ |{z}
Y
3×2 3×2 2×3
Z T − |{z} Z T =⇒ |{z}
A =⇒ |{z} Z
3×4 3×4 4×3
T T T T
B − |{z}
(|{z} D ) U |{z}
G =⇒ |{z}
U =⇒ |{z}
U
3×2 3×2 1×3 2×1 1×2
| {z }
3×2
(e): There are six triple products DGH, DHG, GDH, GHD, HDG, and HGD. Among these there is only one
product which is defined, namely DGH. And one see that
2 3 0
DGH =
10 15 0
Problem 2. The following is a list of statements about square matrices. In each case, either show that the
statement is generally true or find specific matrices for which the statement is not true:
(a) A2 = I =⇒ A = I or A = −I
(b) (A − B)(A − B) = A2 − B 2 ⇐⇒ AB = BA
(c) B = A2 − 5A + I =⇒ AB = BA
(d) AB = 0 =⇒ BA = 0
0 1
Solution: (a): False. Take for example A = and see that A2 = I2 .
1 0
(b): True. Using distributivity of matrix product over matrix addition we compute that
Solution: Let X = ~x1 ~x2 ~x3 where ~xi denotes the columns of the matrix X. Let
1 0 −1 2 1 0 0
A = 0 −1 3 −1 and I3 = 0 1 0 .
1 0 −1 1 0 0 1
This means, for instance, that the second column ~x2 of the matrix X must be the solution of the linear system
1 0 −1 2 0
0 −1 3 −1 ~x2 = 1 .
1 0 −1 1 0
We must solve the above 3 linear systems. As the coefficient matrices of the all 3 systems are the same (which is
the matrix A), we may solve them simultaneously as follows:
1 0 −1 2 1 0 0
0 −1 3 −1 0 1 0 .
1 0 −1 1 0 0 1
The above matrix contains augmented matrices of all 3 systems, for instance
the first 4 columns and the column
6
1 0 −1 2 0 0
of the above matrix is the augmented matrix 0 −1 3 −1 1 of the second linear system A~x2 = 1 .
1 0 −1 1 0 0
Hence these 3 systems can be solved simultaneously as follows:
1 0 −1 2 1 0 0 1 0 −1 2 1 0 0
0 −1 (−1)R1 + R3 → R3
3 −1 0 1 0 0 1 −3 1 0 −1 0
(−1)R2
1 0 −1 1 0 0 1 0 0 0 −1 −1 0 1
1 0 −1 2 1 0 0
(−1)R3 0 1 −3 1 0 −1 0
0 0 0 1 1 0 −1
The first column of X :
1 0 −1 2 1
The first column of X is the solution of the system whose augmented matrix is 0 1 −3 1 0 so that it is
0 0 0 1 1
Ergün Yaraneri
MAT 261E
yaraneri@itu.edu.tr
−1 + r
−1 + 3r
, where r is an arbitrary real number.
r
1
The second column of X :
1 0 −1 2 0
The second column of X is the solution of the system whose augmented matrix is 0 1 −3 1 −1 so that
0 0 0 1 0
s
−1 + 3s
it is , where s is an arbitrary real number.
s
0
The third column of X :
1 0 −1 2 0
The third column of X is the solution of the system whose augmented matrix is 0 1 −3 1 0 so that it
0 0 0 1 −1
2+t
1 + 3t
is , where t is an arbitrary real number.
t
−1
Consequently,
(−1 + r) s (2 + t)
(−1 + 3r) (−1 + 3s) (1 + 3t)
X= , where r, s, t arbitrary real numbers.
r s t
1 0 −1
Find A.
−1 0 0
Solution: As the there is no zero entry on its diagonal, the diagonal matrix 0 2 0 is invertible.
0 0 −3
Multiplying by its inverse from left, we easily solve the problem:
Ergün Yaraneri
MAT 261E
yaraneri@itu.edu.tr
−1
−1 0 0 0 2 3 −1 0 0 0 2 3
0 2 0 (AT + 2I) = 2 4 0 =⇒ AT + 2I = 0 2 0 2 4 0
0 0 −3 0 0 3 0 0 −3 0 0 3
−1 0 0 0 2 3
=⇒ AT + 2I = 0 12 0 2 4 0
0 0 − 13 0 0 3
0 −2 −3
=⇒ AT + 2I = 1 2 0
0 0 −1
0 −2 −3
=⇒ AT = 1 2 0 − 2I
0 0 −1
0 −2 −3 2 0 0
=⇒ AT = 1
2 0 − 0 2
0
0 0 −1 0 0 2
−2 −2 −3
=⇒ AT = 1 0 0
0 0 −3
Consequently,
T
−2 −2 −3 −2 1 0
A= 1 0 0 = −2 0 0 .
0 0 −3 −3 0 −3
Find A.
3 1 1 3
Solution: Note that the matrices and are invertible, and their inverse can be calculated easily
2 1 1 2
as follows:
−1 −1
3 1 1 1 −1 1 −1 1 3 1 2 −3 −2 3
= = and = = .
2 1 (3 − 2) −2 3 −2 3 1 2 (2 − 3) −1 1 1 −1
Thus,
3 1 2 −1 1 3 3 3
A− =
2 1 1 3 1 2 2 2
Ergün Yaraneri
MAT 261E
yaraneri@itu.edu.tr
−1 −1
2 −1 3 1 3 3 1 3
=⇒ A− =
1 3 2 1 2 2 1 2
2 −1 1 −1 3 3 −2 3
=⇒ A− =
1 3 −2 3 2 2 1 −1
|
{z }
1 1
0 0
2 −1 1 1 −2 3 −1 2
=⇒ A− = =
1 3 0 0 1 −1 0 0
−1 2 2 −1 1 1
=⇒ A= + = .
0 0 1 3 1 3
−1 2
Problem 6. Given M = , express both of M and M −1 as a product of elementary matrices.
3 −4
Solution:1
−1 2 1 0 −1 2 1 0 −1 0 −2 −1
ε1 = 3R1 + R2 → R2 ε2 = (−1)R2 + R1 → R1
3 −4 0 1 0 2 3 1 0 2 3 1
1 0 2 1 1 1 0 2 1 −1 2 1
ε3 = (−1)R1 ε4 = R2 3 1 . Hence, M = 3 1 .
0 2 3 1 2 0 1 2 2 2 2
Since M −1 = ε4 (I)ε3 (I)ε2 (I)ε1 (I), taking the inverses of both sides yields
M = ε−1 −1 −1 −1
1 (I)ε2 (I)ε3 (I)ε4 (I)
0 1 0
Problem 7. Given A = 1 0 2 , find A−1 , express both of A and A−1 as products of elementary matrices.
0 0 5
1
The solution is not unique as the elementary row operations one applies may differ.
Ergün Yaraneri
MAT 261E
yaraneri@itu.edu.tr
Solution:
0 1 0 1 0 0 0 1 0 1 0 0
ε1 : − 52 R3 + R2
→ R2
1 0 2 0 1 0 1 0 0 0 1 − 25
ε2 : 15 R3 1
0 0 5 0 0 1 0 0 1 0 0 5
0 0 0 1 − 25 2
1 0 1 −5
ε3 : R1 ↔ R2 0 1 0 1 0 0 Hence, A−1 = 1 0 0
1 1
0 0 1 0 0 5 0 0 5
Note that I = ε3 ε2 ε1 (A) = ε3 (I)ε2 (I)ε1 (I)A = E3 E2 E1 A where Ei is the elementary matrix εi (I) for each
i = 1, 2, 3. Consequently,
A−1 = E3 E2 E1 and A = E1−1 E2−1 E3−1 where
1 0 0 1 0 0 0 1 0
E1 = 0 1 − 25 , E2 = 0 1 0 , E3 = 1 0 0
0 0 1 0 0 15 0 0 1
1 0 0 1 0 0 0 1 0
E1−1 = 0 1 52 , E2−1 = 0 1 0 , E3−1 = 1 0 0
0 0 1 0 0 5 0 0 1
2 −1 0 2
Problem 8. Given the matrix A = 3 1 −1 1 , write A in the form A = P R where P is an invertible
−1 0 1 1
matrix and R is a reduced row-echelon matrix.
0 0 1 2 0 0 1 2 1 0 0 1
ε : −2R1 + R2 → R2
0 1 2 4 6 0 1 0 0 ε8 : R1 ↔ R3 0 1 0 0 = R.
ε7 : R1 + R3 → R3
1 0 −1 −1 1 0 0 1 0 0 1 2
Therefore we may (you should) find P by applying the inverses of elementary row operations that are used when
we are finding R to the identity matrix I3 in reverse order.
Solution: The reduced row echelon form of the matrix must be the identity matrix I3 .
2 a −5 0 (a − 4) 1
(−2)R2 + R1 → R1
1 2 −3 1 2 −3
(−3)R2 + R3 → R3
3 (2a − 2) b 0 (2a − 8) (b + 9)
0 (a − 4) 1
(−2)R1 + R3 → R3 1 2 −3 .
0 0 (b + 7)
Consequently, a 6= 4 and b 6= −7.