Exercises 2 Matrices Operations
Exercises 2 Matrices Operations
Matrices Operations
Recall:
1) Some special matrices: Identity matrices, zero matrices, symmetric matrices,...
2) Operations: addition, multiplication with a scalar, transpose of a matrix, multiplication.
3) General properties: Associativity, commutativity...
Exercises:
1. Suppose that A, B, C, D, E are matrices with the following sizes: A : 4 × 5; B : (4 × 5); C : 5 × 2;
D : 4 × 2; E : 5 × 5. Determine (if exists) the size of each of the following matrices:
2. Let
3 0 1 5 2 6 1 3
4 −1 1 4 2
A = −1 2 , B =
,C = , D = −1 0 1 , E = −1 1 2 .
0 2 3 1 5
1 1 3 2 4 4 1 3
3. Write down the 2 by 2 matrices A and B that have entries aij = i + j and bij = (−1)i+ j . Multiply
them to find AB and BA. Is the product of A and B commutative?
4. True or false? Give a specific counterexample when false.
(a) If columns 1 and 3 of B are the same, so are columns 1 and 3 of AB.
(b) If rows 1 and 3 of B are the same, so are rows 1 and 3 of AB.
(c) If rows 1 and 3 of A are the same, so are rows 1 and 3 of AB.
(d) ( AB)2 = A2 B2 .
5. Which of the following matrices are guaranteed to equal ( A + B)2
1
7. Suppose A commutes with every 2 by 2 matrix, and in particular
a b 1 0 0 1
A= commutes with B1 = , B2 = .
c d 0 0 0 0
(a)
x1 − 3x2 + 5x3 = 7
9x1 − x2 + x3 = −1
x1 + 5x2 + 4x3 = 0
(b)
x1 − 3x3 + x4 =7
5x1 + x2 − 8x4 =3
2x1 − 5x2 + 9x3 − x4 =0
3x2 − x3 + 7x4 = 2
3. Inverses of matrices
Recall:
1) Equivalent definitions: A is invertible if one the following equivalent conditions holds.
i) There exists B such that AB = BA = I;
ii) The equation Ax = 0 has unique solution 0.
2) Find the inverse of a matrix
• Using elementary row transformations to bring [ A| I ] into [ I | A−1 ]. (Gauss-Jordan.)
Exercises:
2. Use the Gauss-Jordan method to invert the following matrices then solve the equations Ax = b
for b = (−1, 2, 7).
(a) (b)
1 0 0 2 −1 0
A1 = 1
1 1 , A2 = − 1 2 −1 ,
0 0 1 0 −1 2
2
(c) (e) (f)
1 1 1 1 1 −2
A3 = 1 2 2 , 5 5 5
A6 = 1 1 1
1 2 3 5 5 10
1 −4 1
5 5 10
(d)
√ √
0 0 1 √2 3√ 2 0
A4 = 0 1 1 , A5 = −4 2 2 0 ,
1 1 1 0 0 1
6. For which three numbers c is this matrix not invertible, and why not?
2 c c
A = c c c
8 7 c