Escolar Documentos
Profissional Documentos
Cultura Documentos
MATRICES
II.A. MATRIX REPRESENTATIONS:
1. Definition:
A rectangular array of elements arranged in m horizontal rows and n vertical columns is
referred to as a matrix of order m by n (or m n ).
NOTES:
a) The number of elements in a matrix of order m by n is the product mn.
b) The elements of a matrix can be numbers (real or complex), functions, integrals,
symbols, or even matrices.
c) A matrix is given a name (typically an upper-case letter), and the elements are
arranged in a rectangular array enclosed in brackets.
d) We can refer to matrix A that is of order m by n using the short-hand notation Amn .
e) A matrix of order 1 by 1 is a scalar. Thus, A11 [a] is the scalar a.
Example 1:
2 1
A22
is a 2 by 2 matrix of real numbers. It has 2(2) = 4 elements.
3 0
i
0
i
B23
is a 2 by 3 matrix of complex numbers.
2i 4 6i 3
C 33
dy
2x
dx
sin x
tan 5 x
e5x
cosh x
xdx
3 is a 3 by 3 matrix of functions.
3i
D22
1 2
1
2
4 3
is a 2 by 2 matrix of matrices.
1 0
2 1 4 0 0
Amn
a11 a12
a
21 a22
.
.
.
.
ai1 ai 2
.
.
.
.
am1 am 2
.
.
.
.
.
.
.
.
. a1 j
. a2 j
. .
. .
. aij
. .
. .
. amj
.
.
.
.
.
.
.
.
. a1n
. a2 n
. .
. .
.
. ain
. .
. .
. amn
Example 2:
Let matrix A have 3 rows and 2 columns, and typical element a, then A has the shorthand notation: A32 [aij ]32 , and the general form:
A32
a11 a12
a21 a22 .
a31 a32
Example 3:
Let A [aij ]33 where aij 2i 3 j . Find A.
Solution:
a11 2(1) 3(1) 1
1 4 7
Thus, A 1 2 3 .
3
0 3
Practice 1:
1. Give an example of a 2 by 4 matrix of real numbers.
2. Give an example of a 1 by 5 matrix of real numbers.
3. Give an example of a 3 by 1 matrix of real numbers.
4. Let A [aij ]24 where aij 2ij . Find A.
b11 b12
5. Write the matrix B b21 b22
b31 b32
b13
b23 in short-hand notation.
b33
Example 4:
4. Matrix of Rows
We can represent the general matrix Am n as a matrix of rows, as follows.
Let:
R1 a11 a12 . . a1 j . . a1n
R2
21
.
.
Ri ai1
.
.
Rm am1
a22 . . a2 j
ai 2 . . aij
. . a2 n
. . ain
am12 . . amj
. . amn
then
Amn
R1
R
2
.
.
is an m by 1 column matrix referred to as matrix of rows.
Ri
.
.
Rm
5. Matrix of Columns
We can represent the general matrix
Let:
a1 j
a11
a12
a1n
a
a
a
a
2j
21
22
2n
.
.
.
.
.
.
.
.
C1
; C2
;..., C j
;..., Cn
aij
ai1
ai 2
ain
.
.
.
.
.
.
.
.
amj
am1
am 2
amn
then
Amn C1 C2 . . C j
columns.
Practice 2:
1. Write the following matrix as a matrix of rows and as a matrix of columns:
1 3 6 0 1
A 2 2 2 2 2 .
1 1 1 0 0
2. Give an example of a row vector of 3 elements.
3. Give an example of a column vector of 2 elements.
Example 5:
The following are square matrices:
A22
0 6 2
4 3
; B33 1 3 5.
5 1
1 4 4
Ann
a11 a12
a
21 a 22
.
.
.
.
ai1 ai 2
.
.
.
.
a n1 a n 2
.
.
.
.
.
.
.
.
. a1i
. a2j
. .
. .
. aii
. .
. .
. a nj
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
a1n
a 2 n
.
.
.
ain
.
.
a nn
Example 6:
In Example 5, above, diagonal elements of matrix A are 4 and -1.
3. Diagonal Matrices:
A square matrix is said to be a diagonal matrix if and only if (iff) all of its non-diagonal
elements are zeros.
Example 7:
The matrix D33
4 0 0
0 1 0 is a diagonal matrix.
0 0 9
-1
9].
4. Scalar Matrices:
A scalar matrix is a diagonal matrix whose diagonal elements are equal.
Example 8:
S = diag[2
2] is a 4 by 4 scalar matrix.
5. Identity Matrix:
A scalar matrix whose diagonal elements are all equal to 1 is called the identity matrix.
The matrix I nn
1 0 . . 0
0 1 0 . 0
. . 0 1 0
0 . . 0 1
Example 9:
1 0
What is the matrix: I 22 ? (Answer: I 22
. )
0 1
Practice 3:
1. Give an example of a 3 by 3 square matrix that is not diagonal.
2. Give an example of a 3 by 3 square matrix that is diagonal.
3. What is the matrix diag[1 2 3 4]?
4. How many elements are in a square matrix of order n by n?
5. How many diagonal elements does an n by n square matrix have?
6. Is the matrix diag[0 0 0 0] a zero matrix (that is, a matrix all of its elements are
zeroes)?
7. Describe the elements of a general n by n diagonal matrix.
8. What are the identity matrices I 33 , I 44 ?
9. Can you find a non-square scalar or diagonal matrix?
10. Can you find a non-square identity or scalar matrix?
11. Can any of the diagonal elements of the identity matrix be zero?
12. Can any of the diagonal elements of a diagonal matrix be zero?
13. Can any of the diagonal elements of a scalar matrix be zero?
Example 10:
0 0 0
0 0
Is
0 0 0 ?
0
0
0 0 0
Two matrices A [aij ] & B [bij ] can be added or subtracted from each other (that is,
they conform to addition) only if they are of the same order. The result of addition is a
matrix C [cij ] of the same order as A or B, where cij aij bij .
Example 11:
2 0
3 4
1 0
;B
;C
Let A
.
1 1
6 5
0 2
Find A-B+C.
2 0 3 4 1 0 0 4
A BC
.
1 1 6 5 0 2 5 4
Properties of Addition:
Let A, B and C be matrices of the same order, then:
(i)
(ii)
(iii)
(iv)
(v)
Example 12:
1 1
Find the additive inverse of the matrix A
.
5 3
1 1
Additive inverse of A is the matrix A
.
5 3
Example 13:
In Example 11, above, find 3A-2iB.
8i
2 0
3 4 6 0 6i 8i 6 6i
3 A 2iB 3
2i
.
1 1
6 5 3 3 12i 10i 3 12i 3 10i
1.A = A
-1.A =-A
A A
( A B) A B
( ) A A A
(A) ( ) A ( ) A
A(B) ( AB).
(ii)
(iii)
cij ai1b1 j ai 2 b2 j ... aik bkj ... ain bnj aik bkj .
k 1
2 1 1 x
Find the product: AX 3 5 0 y .
5 2 1 z
Solution:
2 1 1 x
AX 3 5 0 y
5 2 1 z
2
1 1 2 x y z
x 3 y 5 z 0 3x 5 y .
5
2 1 5 x 2 y z
Example 15:
2 1 1 x a
Find the product: AX 3 5 0 y b .
5 2 1 z c
Solution:
The resulting matrix has 3 rows and 2 columns.
2 1 1 x
2
1 1 2 x y z
First column is 3 5 0 y x 3 y 5 z 0 3x 5 y .
5 2 1 z
5
2 1 5 x 2 y z
2 1 1 a
2 1 1 2a b c
Second column is 3 5 0 b a 3 b 5 c 0 3a 5b .
5 2 1 zc
5 2 1 5a 2b c
Practice 4:
1. Find the products AB and BA whenever possible. Also find 3A, and 4B-iA if
possible.
3
(i) A 2 1; B
2
4
(ii) A 3 0 5; B 3
2
1
(iii) A
3
1
(iv) A
3
2
2 1
;
B
1 0
4
2
1
0
1
;
B
0 1 0
4
2. Can we perform the following products? What are the resulting matrices?
(i)
A22 I 22
(ii)
Ann I nn
(iii) Amn I nn
(iv) I nn Anm .
Example 16:
2
Let A 3 2; B . Find AB and BA, if possible.
3
Example 17:
4 2
3 4
;B
Let A
6
8
Can you find another example of non-zero matrices A and B whose product is zero?
Example 18:
Let A be an n by n matrix and O be an n by n zero matrix. Find AO and OA.
Let A be an m by n matrix and O be an n by p zero matrix. Find AO and OA if possible.
Example 19:
4 2
1 1
2 2
;B
;C
Let A
5. Transpose of a Matrix:
The transpose of matrix Amn is a matrix B of order n by m, and is denoted by AT . It is
obtained from A by interchanging the rows and columns of A.
Thus, if A [aij ]mn then AT [a ji ]nm .
Example 20:
Find the transpose of each of the matrices in Example 14.
Example 21:
Verify Properties (i), (ii), (iii) of the transpose for matrices A and B of Example 19.
Example 22:
Decide if the given matrix is symmetric, skew-symmetric, or neither:
1 1 1
cos sin
A
; B 1 1 1.
sin cos
1 1 1
Answer:
Matrix A is not symmetric (not equal to its transpose), and is not skew-symmetric (not
equal to negative of its transpose).
Matrix B is symmetric ( B B T ).
Example 23:
Give an example of a 3 by 3 skew-symmetric matrix. What do you notice about the
diagonal elements.
Answer:
The diagonal elements of a skew-symmetric matrix are all zero.
The following is a 3 by 3 skew-symmetric matrix.
a b
0
0 a b
T
A a 0 c ; A a 0 c ; A AT .
b c 0
b c
0
Example 24:
2 2
Let A
. Tr(A) = 2+(-1) = 1.
0 1
7. Orthogonal Matrices:
A square matrix A is said to be orthogonal iff AAT AT A I .
We will encounter orthogonal matrices in later Chapters. In particular, orthogonal
matrices are employed in orthogonal transformations.
Example 25:
a) Decide if the identity matrix (of any order) is orthogonal.
b) Decide if the following matrices are orthogonal:
1 1 1
cos sin
A
; B 1 1 1.
sin cos
1 1 1
Solution:
a) Since I ( I T ) I , therefore I is orthogonal.
cos sin T cos sin
b) A
;A
; AA T I . Thus, A is orthogonal.
sin cos
sin cos
Matrix B is symmetric. Thus, B B T and BB T B 2 . For the given matrix, it is easy to
see that B 2 I . Hence, B is not orthogonal.
8. Integral Powers of Matrices:
A square matrix A raised to an integral power is defined as follows.
A0 I
A1 A
A 2 AA
A3 A 2 A
A n A n 1 A
Am An Am n
( A m ) n A mn
( AB ) n An B n .
Example 26:
3 1
Let A
. Find A 2 .
2 7
What is I n ?
Solution:
3 1 3 1 11 10
A2
.
2 7 2 7 20 51
Example 27:
1 1
0 4
A
0 0
0 0
0
6
0
0
5
7
is a 4 by 4 upper-triangular matrix.
0
1 0
0 4
B
0 0
2 0
0
0
0
0
0
0
is a 4 by 4 lower-triangular matrix.
0
2. Real Matrices:
A matrix A is said to be real if all of its elements are numbers.
Example 28:
1 7 2
B
is a 2 by 3 real matrix.
0 4 9
3. Complex Matrices:
A matrix A is said to be complex if at least one of its elements is a complex number.
Note that since real numbers are also complex numbers, it follows that all matrices are
complex matrices.
Example 29:
3i 1 i
A
is a 2 by 2 complex matrix.
2 7 4i
Example 30:
3i 1 i
Find the conjugate of the matrix A
.
2 7 4i
Solution:
3i 1 i
A
.
2 7 4i
Note:
If A A then A is a real matrix.
Practice 5:
a) Give an example of a real matrix. State its order.
b) Give an example of a complex matrix. State its order.
c) Give an example of two 3 by 3 lower-triangular matrices. Find their products.
d) Give an example of two 3 by 3 upper-triangular matrices. Find their products.
e) If A2 A then matrix A is a square matrix called IDEMPOTENT. For example,
matrix I is idempotent. Can you give another example of an idempotent matrix?
f) If A 2 O then matrix A is a square matrix called NILPOTENT. For example,
matrix O is nilpotent. Can you give another example of a nilpotent matrix?
Example 31:
0 5
Reduce the matrix A
to the identity matrix.
3 2
Solution:
1 0
Using row operations, we need to reduce A to I
.
0 1
We proceed with one column at a time, starting with the first column of A. We call the
column selected the pivot column. In the pivot column, we choose a pivot element. This
is a nonzero element with respect to which we create zeroes in all other entries of the
pivot column.
For the above matrix A, choose the first column to be the pivot column.
Since the element a11 = 0, we cannot use it as a pivot element. Therefore, we interchange
3 2
rows 1 and 2, to get:
.
0 5
Now, we can choose a11 3 as the pivot element.
In order to produce the first column of I, we divide row 1 by 3. Thus we get:
1 2 / 3
.
0
5
Now, the element a 21 is already zero, and nothing further is to be done with column 1.
Next, choose column 2 as a pivot column, with a 22 as the pivot element.
1 2 / 3
Divide row 2 by 5 to obtain:
.
1
0
Next, we need to reduce element a12 2 / 3 to zero. This is accomplished with respect
to the pivot element with the following row operation:
Row 1 becomes Row 1 +(2/3) times Row 2.
1 0
We thus obtain:
.
0 1
Practice 6
Use elementary row operations to reduce the given matrix to the identity, if possible:
0 5 4
2 1
; B 1 5 1 .
A
4 0
2 5 1
6. Elementary Matrices:
An elementary matrix is a square matrix obtained by performing a single elementary row
operation on the identity matrix.
1 0 0
Example 32: I 33 0 1 0 .
0 0 1
Interchanging Row 1 and Row 3 of I 33 results in the elementary matrix:
0 0 1
E1 0 1 0 .
1 0 0
Multiplying Row 2 of I 33
1 0 0
by 7 results in the elementary matrix E 2 0 7 0 .
0 0 1
1 0 0
E3 0 1 0 .
6 0 1
Note:
If an elementary row operation is performed on A then the resulting matrix can be written
as EA, where E is an elementary matrix created by the same row operation.
3 1 0
For instance, if A 1 2 4 and Rows 1 and 3 are interchanged, the resulting matrix
1 5 3
1 5 3
0 0 1
Practice 7:
In Example 31, what elementary matrices are multiplied with matrix A to produce I ?
Note:
Each matrix is row equivalent to one and only one Reduced Row Echelon Form.
3 4 1 3 4 1 3 0 0
0 0 2 ; 0 3 2 ; 0 0 0 .
0 0 0 0 0
5 0 0 0
Example 34: The following matrices are in Reduced Row Echelon Form:
1 0 1 1 0 0 1 0 0
0 1 2 ; 0 1 0 ; 0 0 0 .
0 0 0 0 0 1 0 0 0
Assignment 2
Q1: Explain why in matrix algebra ( A B) 2 is not in general equal to A2 2 AB B 2 .
Q2: Expand ( A B)3.
0 i
2 3 4
n
Q3: Let A
. Compute A , A , A . Find a rule for A . (Try treating the cases
i
0
1 0 1 0
b) 0 1 1 0
0 0 0 1
1 0 0 0
c) 0 2 0 0
0 0 1 1
1 0 1 1
d) 0 1 1 1
0 0 0 0