2.4 Elementary Matrices
Definition
An n n matrix is an elementary matrix when it can be obtained from the identity matrix I n by a single elementary
row operation.
Ex 1 Which of the matrices below are elementary? For those that are, describe the corresponding elementary row
operation.
Theorem 2.12 Representing Elementary Row Operations
Let E be the elementary matrix obtained by performing an elementary row operation on I m . If that same elementary
row operation is performed on an m n matrix A , then the resulting matrix is the product EA .
Definition
Let A and B be m n matrices. Matrix B is row-equivalent to A when there exists a finite number of elementary
matrices E1 , E2 , ...Ek such that B = Ek Ek −1...E2 E1 A .
Ex 2 Find a sequence of elementary matrices that can be used to write the matrix in row-echelon form.
0 3 −3 6
A = 1 −1 2 −2
2 −2 6 −6
Ex 3 Rewrite B as the product of elementary row operations and A. Check your work in the previous example
Theorem 2.13 Elementary Matrices Are Invertible
If E is an elementary matrix, then E −1 exists and is an elementary matrix.
Theorem 2.14 A Property of Invertible Matrices
A square matrix A is invertible if and only if it can be written as the product of elementary matrices.
Theorem 2.15 Equivalent Conditions
If A is an n n matrix, then the statements below are equivalent.
1. A is invertible.
2. Ax = b has a unique solution for every n1 column matrix b .
3. Ax = 0 has only the trivial solution.
4. A is row-equivalent to I n .
5. A can be written as the product of elementary matrices.
Ex 4 Find a sequence of elementary matrices whose product is the nonsingular matrix
1 2 3
A = 2 5 6
1 3 4
Definition
A square matrix A is idempotent whenever A2 = A .
Ex 5 Determine whether the matrix is idempotent
0 1 0
1 0 0
0 0 1
2.6 More Applications of Matrix Operations
Definition
A cryptogram is a message written according to a secret code.
To begin, assign a number to each letter in the alphabet (with assigned 0 to a blank space), as shown.
Then convert the message to numbers and partition it into uncoded row matrices, each having n entries
Ex 1 Write the uncoded row matrices of size 1 3 for the message QUIZ ON MONDAY.
To encode a message, choose an n n invertible matrix A and multiply the uncoded row matrices (on the right) by A
to obtain coded row matrices.
1 2 2
7 9 to encode the message QUIZ ON MONDAY.
Ex 2 Use the invertible matrix A = 3
−1 −4 −7
2 3
to decode the cryptogram 85 120 6 8 10 15 84 117 42 56 90 125 60 80 30 45 19 26
3 4
Ex 3 Use A−1 for A =
3.1 The Determinant of a Matrix
Definition
a
The determinant of the matrix A = 11
a21
a12
is det ( A) = A = a11a22 − a12 a21 .
a22
Ex 1 Find the determinant of the matrix
6 1
A=
4 −8
Definition
If A is a square matrix, then the minor M ij of the entry aij is the determinant of the matrix obtained by deleting the
i th row and j th column of A . The cofactor Cij of the entry aij is Cij = ( −1)i + j M ij .
Ex 2 Find minors M 21 and M 22 and the cofactors C21 and C 22 of the matrix
−3 4 2
A = 6 3 1
4 −7 −8
Definition
If A is a square matrix of order n 2 , then the determinant of A is the sum of the entries in the first row of A
multiplied by their respective cofactors. That is, det ( A) = A =
n
a C = a C + a C + ... + a C .
j =1
1j
1j
11 11
12
12
1n
1n
Note: Use any row or any column to calculate the determinant. Choose a row or column that contains the most 0’s on it
Ex 3 Find the determinant of A.
5 −2 1
7 0
A= 4
−3 4 −1
Theorem 3.1 Expansion by Cofactors
Let A is a square matrix of order n . Then the determinant of is det ( A) = A =
n
a C = a C + a C + ... + a C
j =1
ij
ij
i1
i1
i2
i2
in
n
(expansion using row ith) or det ( A ) = A = aij Cij = a1 j C1 j + a2 j C2 j + ... + anj Cnj (expansion using column jth)
i =1
Ex 4 Find the determinant of A.
1 5 2 10
4 1 −1 2
A=
2 −6 11 12
3 0 7 0
Ex 5 Find the values of for which the determinant is zero.
1
0
0
3
2 2 − 2
Recall: A square matrix is upper triangular when it has all zero entries below its main diagonal, and lower triangular
when it has all zero entries above its main diagonal, as shown in the diagram below. A matrix that is both upper and
lower triangular is a diagonal matrix.
in
Theorem 3.2 Determinant of a Triangular Matrix
If A is a triangular matrix of order n , then its determinant is the product of the entries on the main diagonal. That is,
det ( A) = A = a11a22 a33. ...ann
Ex 6 Find the determinant by using a triangular matrix.
5 −2 1
A = 4 7 0
−3 4 −1