Professional Documents
Culture Documents
Exercise Session #2
Matrices. Arithmetic operations with matrices. Diagonal and triangular
matrices. Rank and trace of a matrix. Projection matrices and their
properties.
where 1 ≤ i ≤ m and 1 ≤ j ≤ p.
Multiplication of two matrices is defined if and only if the number of columns of the left
matrix is the same as the number of rows of the right matrix.
Problem 2. Compute the following:
1 1 1 0 −1 −1
(a) A · B, where A = 2 2 2 , and B = −1
0 1 .
3 3 3 −1 −1 0
6 5
1 5 1
(b) A · B, where A = , and B = 4
3.
−1 −2 1
2 1
Definition 2.
(a) If all entries of A below the main diagonal are zero, A is called an upper triangular
matrix :
a11 a12 a13
A = 0 a22 a23 .
0 0 a33
(b) If all entries of A above the main diagonal are zero, A is called a lower triangular
1
matrix :
a11 0 0
A = a21 a22 0 .
a31 a32 a33
(c) If all entries outside the main diagonal are zero, A is called a diagonal matrix :
a11 0 0
A = 0 a22 0 .
0 0 a33
2
Problem 6. Check whether the matrix
2 −2 −4
A = −1 3 4
1 −2 −3