0% found this document useful (0 votes)
19 views37 pages

MODULE+2+ +Matrices+and+Determinant+2023+Updated

This document covers the fundamentals of matrices and determinants, including definitions, operations, and properties. It outlines intended learning outcomes such as performing algebraic operations with matrices and solving systems of equations using matrix methods. Key concepts include matrix addition, subtraction, scalar multiplication, multiplication rules, identity matrices, and properties of matrices.

Uploaded by

kkr5qwn9vp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views37 pages

MODULE+2+ +Matrices+and+Determinant+2023+Updated

This document covers the fundamentals of matrices and determinants, including definitions, operations, and properties. It outlines intended learning outcomes such as performing algebraic operations with matrices and solving systems of equations using matrix methods. Key concepts include matrix addition, subtraction, scalar multiplication, multiplication rules, identity matrices, and properties of matrices.

Uploaded by

kkr5qwn9vp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 37

MODULE 2 – Matrices and Determinants 1

Engr. Caesar P. Llapitan

Topics
I. Definition of a Matrix
II. Operations with Matrices
III. Matrices and Systems of Equations
IV. Inverse of Square Matrix
V. The Determinant of Square Matrix

Intended Learning Outcome


1. Define and illustrate the different terms and properties of matrices and determinants.
2. Perform algebra operations of matrices correctly.
3. Solve systems of equations using matrix method.
4. Evaluate the inverse of a matrix.
5. Evaluate the determinants of a matrix using expansion by cofactor and pivotal methods.

I. DEFINITION OF A MATRIX

If m and n are positive integers, then an m  n matrix (read “m by n”) is a rectangular array

a11 a12 a13 a1 n 


 
a21 a22 a23 a2n 
Am  n = a31 a32 a33 a3 n 
 
 
 
am1 am2 am3 amn 

in which each entry, aij , of the matrix is a number.


▪ aij is located on ith row and jth column
▪ m rows (horizontal) by n columns (vertical)
▪ Named using capital letters
▪ First subscript is row, second subscript is column

Terminology
▪ A matrix with m rows and n columns is called a matrix of order m  n.
▪ A square matrix is a matrix with an equal number of rows and columns. Since the
number of rows and columns are the same, it is said to have order n.
▪ The main diagonal of a square matrix are the elements from the upper left to the lower
right of the matrix.
▪ A row matrix is a matrix that has only one row.
▪ A column matrix is a matrix that has only one column.
▪ A matrix with only one row or one column is called a vector.

II. OPERATIONS WITH MATRICES

Equality
Two matrices are equal if and only if
▪ The order of the matrices are the same
▪ The corresponding elements of the matrices are the same
MODULE 2 – Matrices and Determinants 2
Engr. Caesar P. Llapitan

Addition
If A =  aij  and B = bij  are matrices of order m  n, then their sum is the m  n matrix
given by A + B = aij + bij 

▪ Order of the matrices must be the same


▪ Add corresponding elements together
▪ Matrix addition is commutative
▪ Matrix addition is associative

Examples:
 −1 2  1 3  ( −1 + 1 ) ( 2 + 3 )  0 5
+ = =
( 1 + 2 )   −1
1. 
 0 1   −1 2   ( 0 − 1 ) 3 

 1   −1  0 
2.  −3  +  3  = 0 
     
 −2   2  0 

2 1 0   0 1 
3. 4 0 −1  +  −1 3  = undefined
   
 3 −2 2   2 4 

Subtraction
▪ The order of the matrices must be the same
▪ Subtract corresponding elements
▪ Matrix subtraction is not commutative (neither is subtraction of real numbers)
▪ Matrix subtraction is not associative (neither is subtraction of real numbers)

Scalar Multiplication
If A =  aij  is an m  n matrix and c is a scalar, then the scalar multiple of A by c is the
m  n matrix given by cA = c  aij 

▪ The matrix can be any order


▪ Multiply all elements in the matrix by the scalar
▪ Scalar multiplication is commutative
▪ Scalar multiplication is associative

Examples:
Given
 1 2 4  2 0 0
A =  −3 0 −1  and B =  1 −4 3 
 2 1 2   −1 3 2 

Find: a) 3A b) -B c) 3A – B

Solution:
MODULE 2 – Matrices and Determinants 3
Engr. Caesar P. Llapitan

 1 2 4   3 ( 1 ) 3 ( 2 ) 3 ( 4 )   3 6 12 
 
a) 3 A = 3  −3 0 −1  =  3 ( −3 ) 3 ( 0 ) 3 ( −1 )  =  −9 0 −3 
 2 1 2   3 ( 2 ) 3 ( 1 ) 3 ( 2 )   6 3 6 

 −2 0 0 
b) − B = ( −1 ) B =  −1 4 −3 
 1 −3 −2 

 3 6 12   −2 0 0   1 6 12 
c) 3 A − B = 3 A + ( −1 ) B =  −9 0 −3  +  −1 4 −3  =  −10 4 −6 
   
 6 3 6   1 −3 −2   7 0 4 

Zero Matrix
▪ Matrix of any order
▪ Consists of all zeros
▪ Denoted by capital O
▪ Additive Identity for matrices
▪ Any matrix plus the zero matrix is the original matrix

Matrix Multiplication
Am×n × Bn×p = Cm×p

▪ The number of columns in the first matrix must be equal to the number of rows in
the second matrix. That is, the inner dimensions must be the same.
▪ The order of the product is the number of rows in the first matrix by the number of
columns in the second matrix. That is, the dimensions of the product are the outer
dimensions.
▪ Since the number of columns in the first matrix is equal to the number of rows in
the second matrix, you can pair up entries.
▪ Each element in row i from the first matrix is paired up with an element in column j
from the second matrix.
▪ The element in row i, column j, of the product is formed by multiplying these paired
elements and summing them.
▪ Each element in the product is the sums of the products of the elements from row i
of the first matrix and column j of the second matrix.
▪ There will be n products which are summed for each element in the product.

Consider the product of a 2×3 matrix and a 3×4 matrix. The multiplication is defined because
the inner dimensions (3) are the same. The product will be a 2×4 matrix, the outer dimensions.

 1 −8 4 −3 
1 −2 3    25 −5 −13 5 
   −3 6 7 2= 
4 5 −2     −23 −12 53 −10 
6 5 −1 4 
23 34 = 24

Note: Matrix Multiplication is not commutative


MODULE 2 – Matrices and Determinants 4
Engr. Caesar P. Llapitan

 1 −8 4 −3 
   1 −2 3 
 −3 6 7 2
4 5 −2
 = undefined
6  
 5 −1 4 
34 23

Thus
▪ Multiplication of real numbers is not commutative.
▪ The inner dimensions may not agree if the order of the matrices is changed.

Do not simply multiply corresponding elements together


▪ Since the order (dimensions) of the matrices doesn’t have to be the same, there may
not be corresponding elements to multiply together.
▪ Multiply the rows of the first by the columns of the second and add.

Example:

 −1 3   c11 c12 
 4 −2   −3 2  = c 
c22 
   −4 1   21
 5 0   2  2  c31 c32 
32 32

where:

c11 = − 1 ( −3 ) + 3 ( −4 ) = − 9 c21 = 4 ( −3 ) + ( −2 )( −4 ) = − 4 c31 = 5 ( −3 ) + ( 0 )( −4 ) = − 15


c12 = − 1 ( 2 ) + 3 ( 1 ) = 1 c22 = 4 ( 2 ) + ( −2 )( 1 ) = 6 c22 = 5 ( 2 ) + ( 0 )( 1 ) = 10

Therefore,

 −1 3   −9 1 
 4 −2    −3 2  =  −4 6 
   −4 1   
 5 0     −15 10 
 
32

There is no matrix division


▪ There is no defined process for dividing a matrix by another matrix.
▪ A matrix may be divided by a scalar.

Identity Matrix
▪ Square matrix
▪ Ones on the main diagonal; Zeros everywhere else
▪ Denoted by I. If a subscript is included, it is the order of the identity matrix.
▪ I is the multiplicative identity for matrices
▪ Any matrix times the identity matrix is the original matrix.
▪ Multiplication by the identity matrix is commutative, although the order of the
identity may change

 1 0
Identity matrix of size 2 I = 
0 1 
MODULE 2 – Matrices and Determinants 5
Engr. Caesar P. Llapitan

 1 0 0
Identity matrix of size 3 I = 0 1 0 
 
0 0 1 

Properties of Matrices
Property Examples
▪ Commutativity of Addition A+B=B+A
▪ Associativity of Addition A + (B + C) = (A + B) + C
▪ Associativity of Scalar Multiplication (cd) A = c (dA)
▪ Scalar Identity 1A = A(1) = A
▪ Distributive c (A + B) = cA + cB
▪ Distributive (c + d) A = cA + dA
▪ Additive Identity A+O=O+A=A
▪ Associativity of Multiplication A (BC) = (AB) C
▪ Left Distributive A (B + C) = AB + AC
▪ Right Distributive (A + B) C = AC + BC
▪ Scalar Associativity / Commutativity c (AB) = (cA) B = A (cB) = (AB) c
▪ Multiplicative Identity IA = AI = A

Commutativity of Multiplication
▪ You cannot change the order of a multiplication problem and expect to get the same
product. AB ≠ BA
▪ You must be careful when factoring common factors to make sure they are on the
same side. AX + BX = (A + B)X and XA + XB = X(A + B) but AX + XB doesn't factor.

Zero Product Property


▪ Just because a product of two matrices is the zero matrix does not mean that one of
them was the zero matrix.

Multiplicative Property of Equality


▪ If A = B, then AC = BC. This property is still true, but the converse is not necessarily
true. Just because AC = BC does not mean that A = B.
▪ Because matrix multiplication is not commutative, you must be careful to either pre-
multiply or post-multiply on both sides of the equation. That is, if A = B, then AC =
BC or CA = CB, but AC ≠ CB.

Evaluating a Function using a Matrix


Consider the function f(x) = x2 - 4x + 3 and the matrix A

 1 2
A= 
3 4 

The initial attempt to evaluate the f(A) would be to replace every x with an A to get f(A) =
2
A - 4A + 3. There is one slight problem, however. The constant 3 is not a matrix, and you can't
add matrices and scalars together. So, we multiply the constant by the Identity matrix.
MODULE 2 – Matrices and Determinants 6
Engr. Caesar P. Llapitan

f(A) = A2 - 4A + 3I.

Evaluate each term in the function and then add them together.

 1 2   1 2   7 10 
A2 =   = 
 3 4   3 4   15 22 

 1 2   −4 −8 
−4 A = − 4  = 
 3 4   −12 −16 

 1 0 3 0
3I = 3  = 
0 1  0 3 

 7 10   -4 -8   3 0  6 2 
f ( A) =  + + = 
 15 22  -12 -16  0 3   3 9 

Factoring Expressions
Some examples of factoring are shown. Simplify and solve like normal, but remember that
matrix multiplication is not commutative and there is no matrix division.

2X + 3X = 5X
AX + BX = (A + B)X
XA + XB = X(A + B)
AX + 5X = (A + 5I)X
AX + XB does not factor

III. MATRICES AND SYSTEMS OF EQUATIONS

Common uses of matrix is to represent a system of linear equation. Each equation in the system
becomes a row. Each variable in the system becomes a column. The variables are dropped and
the coefficients are placed into a matrix.

The matrix derived from the coefficients and constant terms of a system of equations is called
the augmented matrix of the system.

The matrix containing only the coefficient of the system is called the coefficient matrix.

The system of linear equations


x+y-z=1
3x - 2y + z = 3
4x + y - 2z = 9

becomes the augmented matrix

x y z rhs
1 1 -1 1
3 -2 1 3
4 1 -2 9
MODULE 2 – Matrices and Determinants 7
Engr. Caesar P. Llapitan

Another example:

x − 4 y + 3z = 5  1 −4 3 5  1 −4 3 
− x + 3 y − z = −3   −1 3 −1 −3   − 1 3 −1 
   
2x − 4z = 6  2 0 −4 6   2 0 −4 
Augmented Matrix Coefficient Matrix

Elementary Row Operations


Elementary Row Operations are operations that can be performed on a matrix that will
produce a row-equivalent matrix. If the matrix is an augmented matrix, constructed from a
system of linear equations, then the row-equivalent matrix will have the same solution set as
the original matrix.

When working with systems of linear equations, there are three operations you can perform
which will not change the solution set.
1. Interchange two equations.
2. Multiply an equation by a non-zero constant.
3. Multiply an equation by a non-zero constant and add it to another equation, replacing
that equation.

When a system of linear equations is converted to an augmented matrix, each equation


becomes a row. So, there are now three elementary row operations which will produce a row-
equivalent matrix.
1. Interchange two rows
2. Multiply a row by a non-zero constant
3. Multiply a row by a non-zero constant and add it to another row, replacing that row.

Examples:
1. Interchange two rows

 0 1 3 4  −1 2 0 3 
 −1 2 0 3  m1 ⎯⎯⎯⎯⎯→ m2  0 1 3 4
  interchange  
 2 −3 4 1  row 1 and row 2  2 −3 4 1 

2. Multiply a row by a non-zero constant

2 −4 6 −2   1 −2 3 −1 
 1 3 −3 0  1
m1 = new m1  1 3 −3 0 
  2  
5 −2 1 2  5 −2 1 2 

3. Multiply a row by a non-zero constant and add it to another row, replacing that row

 1 2 −4 3   1 2 −4 3 
0 3 −3 0   0 3 −3 0 
  ( −2  m1 ) + m3 = new m3  
 5 −2 1 2   3 −6 9 −4 

Row-Echelon and Reduced Row-Echelon Forms


These are Row-equivalent forms of a matrix. One can easily solve a system of linear
equations when matrices are in one of these forms.
MODULE 2 – Matrices and Determinants 8
Engr. Caesar P. Llapitan

Row-Echelon Form
A matrix is in row-echelon form when the following conditions are met.
1. If there is a row of all zeros, then it is at the bottom of the matrix.
2. The first non-zero element of any row is a one. That element is called the leading one.
3. The leading one of any rows is to the right of the leading one of the previous rows.

Notes:
▪ The leading one of a row does not have to be to the immediate right of the leading
one of the previous row.
▪ A matrix in row-echelon form will have zeros below the leading ones.
▪ Gaussian Elimination places a matrix into row-echelon form, and then back
substitution is required to finish finding the solutions to the system.
▪ The row-echelon form of a matrix is not necessarily unique.

Reduced Row-Echelon Form


A matrix is in reduced row-echelon form when all of the conditions of row-echelon form are
met and all elements above, as well as below, the leading ones are zero.
1. If there is a row of all zeros, then it is at the bottom of the matrix.
2. The first non-zero element of any row is a one. That element is called the leading one.
3. The leading one of any row is to the right of the leading one of the previous row.
4. All elements above and below a leading one are zero.

Notes:
▪ The leading one of a row does not have to be to the immediate right of the leading
one of the previous row.
▪ A matrix in row-echelon form will have zeros both above and below the leading ones.
▪ Gauss-Jordan Elimination places a matrix into reduced row-echelon form.
▪ No back substitution is required to finish finding the solutions to the system.
▪ The reduced row-echelon form of a matrix is unique.

The following are in reduced row-echelon form:

 1 0 0  1 0 0 0
0 1 0   1 0 0 5 0 1 0 0   1 0
  0 0 1 2    0 1 
 1 0 1    0 0 0 1   

The following matrices are NOT in reduced row-echelon form:

 1 0 0  1 0 0  1 0 0  1 0 3
0 0 0  0 0 1  0 2 0  0 1 0 
       
0 1 0  0 1 0  0 0 1  0 0 1 

Gaussian Elimination
▪ Write a system of linear equations as an augmented matrix
▪ Perform the elementary row operations to put the matrix into row-echelon form
▪ Convert the matrix back into a system of linear equations
▪ Use back substitution to obtain all the answers
MODULE 2 – Matrices and Determinants 9
Engr. Caesar P. Llapitan

Example:
Solve:
x 2 + x 3 − 2 x 4 = −3
x 1 + 2 x2 − x 3 =2
2 x 1 + 4 x2 + x 3 − 3 x4 = −2
x 1 − 4 x2 − 7 x 3 − x4 = −19
Solution:
▪ Augmented matrix:
0 1 1 −2 −3 
 1 2 −1 0 2 

2 4 1 −3 −2 
 
 1 −4 −7 −1 −19 

▪ Interchange m1 and m2
 1 2 −1 0 2 
0 1 1 −2 −3 

2 4 1 −3 −2 
 
 1 −4 −7 −1 −19 

▪ ( −2m1 ) + m3 = new m3
 1 2 −1 0 2 
0 1 1 −2 −3 

0 0 3 −3 −6 
 
 1 −4 −7 −1 −19 

▪ ( −1 m1 ) + m4 = new m4
 1 2 −1 0 2 
0 1 1 −2 −3 

0 0 3 −3 −6 
 
0 −6 −6 −1 −21 

▪ ( 6 m2 ) + m4 = new m4
 1 2 −1 0 2 
0 1 1 −2 −3 
 
0 0 3 −3 −6 
 
0 0 0 −13 −39 

1   1 
▪   m3  = new m3 and  −  m4  = new m4
2   13 
 1 2 −1 0 2 
0 1 1 −2 −3 
 
0 0 1 −1 −2 
 
0 0 0 1 3
MODULE 2 – Matrices and Determinants 10
Engr. Caesar P. Llapitan

The given system of equations is now


x 1 + 2 x2 − x 3 =2
x 2 + x 3 − 2 x 4 = −3
x 3 − x4 = −2
x4 = 3

Therefore: x4 = 3 x3 = 1 x2 = 2 x1 = −1

Gauss-Jordan Elimination
▪ Write a system of linear equations as an augmented matrix
▪ Perform the elementary row operations to put the matrix into reduced row-echelon
form
▪ Convert the matrix back into a system of linear equations
▪ No back substitution is necessary

Example:
Solve
x − 2y + 3z = 9
−x + 3 y = −4
2 x − 5 y + 5 z = 17

Solution:
▪ Augmented matrix:
 1 −2 3 9 
 −1 3 0 −4 
 
 2 −5 5 17 

▪ m1 + m2 = new m2
 1 −2 3 9 
0 1 3 5 
 
 2 −5 5 17 

▪ ( −2m1 ) + m3 = new m3
 1 −2 3 9 
0 1 3 5 

0 −1 −1 −1 

▪ m2 + m3 = new m3
 1 −2 3 9 
0 1 3 5 
 
0 0 2 4 

1 
▪   m3  = new m3
2 
MODULE 2 – Matrices and Determinants 11
Engr. Caesar P. Llapitan

 1 −2 3 9 
0 1 3 5 
 
0 0 1 2 

▪ ( 2 m2 ) + m1 = new m1
 1 0 9 19 
0 1 3 5 
 
0 0 1 2 

▪ ( −3  m3 ) + m2 = new m2
 1 0 9 19 
0 1 0 −1 
 
0 0 1 2 

▪ ( −9  m3 ) + m1 = new m1
1 0 0 1 
0 1 0 −1 
 
0 0 1 2 

Therefore, z=2 y = -1 x=1

Pivoting
▪ Pivoting is a process which automates the row operations necessary to place a matrix
into row-echelon or reduced row-echelon form
▪ In particular, pivoting makes the elements above or below a leading one into zeros

Gauss Jordan Elimination Through Pivoting

The system of linear equations

3x + 2y - 4z = 3
2x + 3y + 3z = 15
5x - 3y + z = 14

becomes the augmented matrix


x y z rhs
3 2 -4 3
2 3 3 15
5 -3 1 14

The goal when solving a system of equations is to place the augmented matrix into reduced
row-echelon form, if possible.

There are three elementary row operations that you may use to accomplish placing a matrix
into reduced row-echelon form.
Each of the requirements of a reduced row-echelon matrix can satisfied using the elementary
row operations.
MODULE 2 – Matrices and Determinants 12
Engr. Caesar P. Llapitan

▪ If there is a row of all zeros, then it is at the bottom of the matrix.


Interchange two rows of a matrix to move the row of all zeros to the bottom.

▪ The first non-zero element of any row is a one. That element is called the leading one.
Multiply (divide) the row by a non-zero constant to make the first non-zero element
into a one.

▪ The leading one of any row is to the right of the leading one of the previous row.
Multiply a row by a non-zero constant and add it to another row, replacing that row.
The point of this elementary row operation is to make numbers into zeros. By making
the numbers under the leading ones into zero, it forces the first non-zero element of any
row to be to the right of the leading one of the previous row.

▪ All elements above and below a leading one are zero.


Multiply a row by a non-zero constant and add it to another row, replacing that row.
The point of this elementary row operation is to make numbers into zero. The difference
here is that you're clearing (making zero) the elements above the leading one instead of
just below the leading one.

The Pivot Process


▪ The objective of pivoting is to make an element above or below a leading one
into a zero.

The "pivot" or "pivot element" is an element on the left-hand side of a matrix that you want
the elements above and below to be zero.
• You can multiply a row by a non-zero constant and add it to a non-zero multiple of
another row, replacing that row.

Let's take the example we had before, and clear the first column.

x y z rhs
3 2 -4 3
2 3 3 15
5 -3 1 14

Helpful Hints
▪ Although you do not have to pivot on a one, it is highly desirable. Pivoting on a one
means that you're multiplying by 1 (which is easy to do).
▪ It is nice to pivot on the main diagonal, but not absolutely necessary. Some people like
to start in the upper left and work their way down to the lower right.
▪ As long as you pivot only once per row and column, the columns which have been
cleared will remain cleared.
▪ Since the point of pivoting is to clear the pivot column, picking a column which already
has zeros in it saves time because you don't have to change the row that contains the
zero.

Selecting a Pivot
▪ Pick the column with the most zeros in it.
▪ Use a row or column only once
▪ Pivot on a one if possible
▪ Pivot on the main diagonal
MODULE 2 – Matrices and Determinants 13
Engr. Caesar P. Llapitan

▪ Never pivot on a zero


▪ Never pivot on the right-hand side

Since there is no one in the first row, we have two options: Either we divide the first row by
three and work with fractions, or we pivot on the three and get large numbers. You have the
option to use. Let us pivot on the three in R1C1. Go ahead and circle that as the pivot element.

x y z rhs
*3 2 -4 3
2 3 3 15
5 -3 1 14

The idea is to make the boxed (yellow) numbers into zero. Using the combined row
operation (this is not an elementary operation), that could be done by 3R2 - 2R1 → R2 and 3R3 -
5R1 → R3.

The only row not being changed is the row containing the pivot element (the 3). The whole
point of the pivot process is to make the boxed values into zero. Go ahead and rewrite the pivot
row and clear (make zero) the pivot column.

x y z rhs
*3 2 -4 3
0
0

To replace the values in row 2, each new element is obtained by multiplying the element
being replaced in the second row by 3 and subtracting 2 times the element in the first row from
the same column as the element being replaced.

x y z rhs
*3 2 -4 3
2 3 3 15
5 -3 1 14

To replace the 3 in R2C2, you would take 3(3) - 2(2) = 9 - 4 = 5.


To replace the 3 in R2C3, you would take 3(3) - 2(-4) = 9 +8 = 17.
To replace the 15 in R2C4, you would take 3(15) - 2(3) = 45 - 6 = 39.
To replace the -3 in R3C2, you would take 3(-3) - 5(2) = -9 - 10 = -19.
To replace the 1 in R3C3, you would take 3(1) - 5(-4) = 3 + 20 = 23
To replace the 14 in R3C4, you would take 3(14) - 5(3) = 42 - 15 = 27.

Here's how the process looks.


x y z rhs
pivot row, copy 3 pivot row, copy 2 pivot row, copy -4 pivot row, copy 3

pivot column, clear 0 3(3) - 2(2) = 5 3(3) - 2(-4) = 17 3(15) - 2(3) = 39

pivot column, clear 0 3(-3) - 5(2) = -19 3(1) - 5(-4) = 23 3(14) - 5(3) = 27
MODULE 2 – Matrices and Determinants 14
Engr. Caesar P. Llapitan

Or, if you remove the comments, the matrix after the first pivot looks like this.

x y z rhs
3 2 -4 3
0 5 17 39
0 -19 23 27

It is now time to repeat the entire process. We go through and pick another place to pivot.
We would like it to be on the main diagonal, a one, or have zeros in the column. Unfortunately,
we can't have any of those. But since we have to multiply all the other numbers by the pivot, we
want it to be small, so we'll pivot on the 5 in R2C2 and clear out the 2 and -19.

x y z rhs
3 2 -4 3
0 *5 17 39
0 -19 23 27

Begin by copying down the pivot row (2nd row) and clearing the pivot column (2nd
column). Previously cleared columns will remain cleared.

x y z rhs
0
0 *5 17 39
0 0

Here are the calculations to find the next iteration. Pay careful attention to the 3rd row
where we're subtracting -19 times a value. Since we're subtracting a negative, I went ahead and
wrote it as plus 19.

x y z rhs
5(3) - 2(0) = 15 pivot column, clear 0 5(-4) - 2(17) = -54 5(3) - 2(39) = -63
pivot row, copy 0 pivot row, copy 5 pivot row, copy 17 pivot row, copy 39
previously cleared 0 pivot column, clear 0 5(23) + 19(17) = 438 5(27) + 19(39) = 876

And the resulting matrix


x y z rhs
15 0 -54 -63
0 5 17 39
0 0 438 876

Notice that all the elements in the first row are multiples of 3 and all the elements in the last
row are multiples of 438. We'll divide to reduce the rows.
MODULE 2 – Matrices and Determinants 15
Engr. Caesar P. Llapitan

x y z rhs
5 0 -18 -21
0 5 17 39
0 0 1 2

That had the added benefit of giving us a 1, exactly where we want it to be to pivot. So, we'll
pivot on the 1 in R3C3 and clear out the -18 and 17. Circle your pivot and box the other numbers
in that column to clear.

x y z rhs
5 0 -18 -21
0 5 17 39
0 0 *1 2

Copy down the pivot row and clear the pivot column. Previously cleared columns will
remain cleared as long as you don't pivot in a row or column twice.

x y z rhs
0 0
0 0
0 0 *1 2

Notice that each time there are fewer calculations to perform. Here are the calculations for
this pivot. Again, since the value in the pivot column in the first row is -18 and we're subtracting,
then it is written as + 18.

x y z rhs
1(5) +18(0)= 5 previously cleared 0 pivot column, clear 0 1(-21) + 18(2) = 15
previously cleared 0 1(5) - 17(0) = 5 pivot column, clear 0 1(39) - 17(2) = 5
pivot row, copy 0 pivot row, copy 0 pivot row, copy 1 pivot row, copy 2

And the resulting matrix


x y z rhs
5 0 0 15
0 5 0 5
0 0 1 2

Notice that the first and second rows are multiples of 5, so we can reduce those rows.

x y z rhs
1 0 0 3
0 1 0 1
0 0 1 2
MODULE 2 – Matrices and Determinants 16
Engr. Caesar P. Llapitan

And the final answer is x = 3, y = 1, and z = 2. You can also write that as an ordered triplet {(3, 1,
2)}.

Summary
▪ Pick your pivot element wisely.
▪ Picking a column with zeros in it means less pivoting.
▪ Picking a one as the pivot makes the numbers smaller, the multiplication easier, and
leaves the non-zero elements in a cleared column the same (less pivoting)
▪ Pivoting on the main diagonal means you won't have to switch rows to put the matrix
into reduced row-echelon form.
▪ Do not pivot on a zero.
▪ Do not pivot on the right-hand side.
▪ Only use a row or column once
▪ Take the product with the pivot minus the product without the pivot

Types of Solutions
There are three types of solutions which are possible when solving a system of linear
equations
Independent
▪ Consistent
▪ Unique Solution
▪ A row-reduced matrix has the same number of non-zero rows as variables
▪ The left-hand side is usually the identity matrix, but not necessarily
▪ There must be at least as many equations as variables to get an independent solution.

x y z rhs
1 0 0 3
0 1 0 1
0 0 1 2

When you convert the augmented matrix back into equation form, you get x = 3, y = 1, and z =
2.

Dependent
▪ Consistent
▪ Many solutions
▪ Write answer in parametric form
▪ A row-reduced matrix has more variables than non-zero rows
▪ There doesn't have to be a row of zeros, but there usually is.
▪ This could also happen when there is less equation than variables.

x y z rhs
1 0 3 4
0 1 -2 3
0 0 0 0

▪ The first equation will be x + 3z = 4. Solving for x gives x = 4 - 3z.


▪ The second equation will be y - 2z = 3. Solving for y gives y = 3 + 2z.
▪ The z column is not cleared out (all zeros except for one number) so the other
variables will be defined in terms of z.
MODULE 2 – Matrices and Determinants 17
Engr. Caesar P. Llapitan

Therefore, z will be the parameter t and the solution is


x = 4 - 3t, y = 3 + 2t, z = t

Inconsistent
▪ No Solution
▪ A row-reduced matrix has a row of zeros on the left side, but the right-hand side
isn't zero.
x y z rhs
1 0 3 4
0 1 -2 3
0 0 0 2

There is no solution here. You can write that as the null set Ø, the empty set { }, or no solution.

IV. THE TRANSPOSE OF A MATRIX

The transpose of a matrix is formed by writing its column as rows.

Examples:

2
1. A = 8   At =  2 8 9 
9 

 1 2 0  1 2 0
2. B =  2 1 0   B =  2 1 0 
t
symmetric matrix
0 0 1  0 0 1 

0 1 
0 2 1 
3. C =  2 4   Ct =  
 1 −1   1 4 −1 

Properties of Transpose
If A and B are matrices (with orders such that the given matrix operations are defined) and
c is a scalar, then the following are true:

1. (A ) t t
=A

2. ( A + B )t = At + Bt Transpose of sum
3. ( cA )t = c ( At ) Transpose of a scalar multiple

4. ( AB )t = Bt At Transpose of a product
( ABC )t = C t Bt At
MODULE 2 – Matrices and Determinants 18
Engr. Caesar P. Llapitan

Examples:
Given
 2 1 −2  3 1 
A =  −1 0 3  and B =  2 −2 
 0 −2 1   3 0 

2 1 −2   3 1   2 1 

AB =  −1 0 3   2 −2  =  6 −1 
 0 −2 1   3 0   −1 2 

2 6 −1 
( AB )t =  
 1 −1 2 

 2 −1 0 
3 2 3   2 6 −1 
B A =
t t
  1 0 −2  =  
 1 −2 0   −2 3 1   1 −1 2 
 

V. THE INVERSE OF A SQUARE MATRIX

The inverse of a square matrix A, denoted by A-1, is the matrix so that the product of A and
A-1 is the Identity matrix. The identity matrix that results will be the same size as the matrix A.

A(A-1) = I or A-1(A) = I

There are a couple of exceptions, though. First of all, A-1 does not mean 1/A. Remember,
"There is no Matrix Division!" Secondly, A-1 does not mean take the reciprocal of every element
in the matrix A.

Requirements to have an Inverse


1. The matrix must be square (same number of rows and columns).
2. The determinant of the matrix must not be zero. This is instead of the real number not
being zero to have an inverse; the determinant must not be zero to have an inverse.

A square matrix that has an inverse is called invertible or non-singular. A matrix that does
not have an inverse is called singular.

A matrix does not have to have an inverse, but if it does, the inverse is unique.

Properties of Inverse Matrices


If A is an invertible matrix, k is a positive integer, and c is a scalar, then the following are
true:
1. (A ) = A
−1 −1

2. (A ) = A  A  A
k −1 −1 −1 −1
A −1 ; that is, k factor

3. ( cA ) = c1 A ; c  0
−1 −1 −1

4. (A ) =(A )
t −1 −1 t
MODULE 2 – Matrices and Determinants 19
Engr. Caesar P. Llapitan

Finding the Inverse the Hard Way


( )
The inverse of a matrix A will satisfy the equation A A−1 = I .
1. Adjoin the identity matrix onto the right of the original matrix, so that you have A on
the left side and the identity matrix on the right side. It will look like this  A I  .
2. Row-reduce (using pivoting) the matrix until the left side is the Identity matrix. When
the left side is the Identity matrix, the right side will be the Inverse  I A−1  . If you are
 
unable to obtain the identity matrix on the left side, then the matrix is singular and has
no inverse.
3. Take the augmented matrix from the right side and call that the inverse.

Example:
Find A-1 given that
 1 −1 0 
A =  1 0 −1 
 −6 2 3 

Solution:
 1 −1 0 1 0 0 
 A I  =  1 0 −1 0 1 0 
 −6 2 3 0 0 1 

▪ ( −1 m1 ) + m2 = new m2
 1 −1 0 1 0 0 
0 1 −1 −1 1 0 

 −6 2 3 0 0 1 

▪ ( 6 m1 ) + m3 = new m3
 1 −1 0 1 0 0 
0 1 −1 −1 1 0 
 
0 −4 3 6 0 1 

▪ ( 4 m2 ) + m3 = new m3
 1 −1 0 1 0 0 
0 1 −1 −1 1 0 
 
0 0 −1 2 4 1 

▪ −1  m3 = new m3
 1 −1 0 1 0 0
0 1 −1 −1 1 0 

0 0 1 −2 −4 −1 

▪ m3 + m2 = new m2
MODULE 2 – Matrices and Determinants 20
Engr. Caesar P. Llapitan

 1 −1 0 1 0 0
0 1 0 −3 −3 −1 
 
0 0 1 −2 −4 −1 

▪ m2 + m1 = new m1
 1 0 0 −2 −3 −1 
 I A −1  0 1 0 −3 −3 −1 
  
0 0 1 −2 −4 −1 

Therefore,

 −2 −3 −1 
A −1
=  −3 −3 −1 
 −2 −4 −1 

Shortcut to the Finding the Inverse of a 2×2 Matrix


The inverse of a 2×2 matrix can be found by
1. Switch the elements on the main diagonal
2. Take the opposite of the other two elements
3. Divide all the values by the determinant of the matrix (since we haven't talked about the
determinant, for a 2×2 system, it is the product of the elements on the main diagonal
minus the product of the other two elements).

Example for the shortcut


Let's go with an original matrix of
7 -2
3 5

Step 1, switch the elements on the main diagonal would involve switching the 5 and 7.

5 -2
3 7

Step 2, take the opposite of the other two elements, but leave them where they are.

5 2
-3 7

Step 3, find the determinant and divide every element by that. The determinant is the product
of the elements on the main diagonal minus the product of the elements off the main diagonal.
That means the determinant of this matrix is 7(5) - (-3)(2) = 35 + 6 = 41. We divide every element
by 41.

The inverse of the original matrix is


5/41 2/41
-3/41 7/41
MODULE 2 – Matrices and Determinants 21
Engr. Caesar P. Llapitan

There is no division by a matrix. You may multiply or divide a matrix by a scalar (real
number) and the determinant is a scalar.

Why was it we needed an inverse?


One of the major uses of inverses is to solve a system of linear equations. You can write a
system in matrix form as AX = B .

Now, pre-multiply both sides by the inverse of A. Make sure you meet these two conditions.
1. You must place the inverse of the matrix adjacent to the matrix. That is because Inverses
need to be next to each other (very loose mathematically, but think back to functions)
in order to undo each other.
2. If you multiply by putting something in front of the left side (pre-multiply), it has to go
in front of the right side. If you put something behind (post-multiply) the left side, it has
to go behind the right side.
▪ A −1 ( AX ) = A −1 ( B )  pre-multiply both sides by A−1
▪ ( A A) X = A
−1 −1
B  use the associative property to regroup factors

▪ I X = A−1 B  when you multiply inverses together, they become the identity
matrix
▪ X = A−1 B  the identity matrix is like multiplying by 1.

If AX = B, then X = A−1 B

The Inverse of a Product


If A and B are invertible matrices of order n, then AB is invertible and

( AB )−1 = B −1 A−1

Solving Systems of Linear Equations


Consider the system of linear equations

3x + 2y - 5z = 12
x - 3y + 2z = -13
5x - y + 4z = 10

Write the coefficients in an A matrix.


x y z
3 2 -5
1 -3 2
5 -1 4

Write the variables in an X matrix.


x
y
z

Write the constants in a B matrix.


MODULE 2 – Matrices and Determinants 22
Engr. Caesar P. Llapitan

12
-13
10

Verify that AX = B
This step isn't really needed, but I wanted to show you that this thing really does work.

AX will be a (3×3) × (3×1) = 3×1 matrix. The B matrix is also a 3×1 matrix, so at least the dimensions
work out right.

Here's A times X.

 3 2 −5   x   3 x + 2 y − 5 z 
 1 −3 2   y  =  1 x − 3 y + 2 z 
    
5 −1 4   z   5 x − 1 y + 4 z 

Notice that turns out to be the left side of the system of equations. The B is the right-hand
side, so we have achieved equality. You can write a system of linear equations as AX = B.

So, if you can write a system of linear equations as AX = B where A is the coefficient matrix,
X is the variable matrix, and B is the right-hand side, you can find the solution to the system by
X = A−1 B .

Place the coefficient matrix into [A] on the calculator and the right-hand side into [B].

If you asked the calculator to find the inverse of the coefficient matrix, it would give you this for
A−1 .

 5 / 44 3 / 88 1 / 8 
 −3 / 44 −37 / 88 1 / 8 
 
 −7 / 44 −13 / 88 1 / 8 

You could do that, and then multiply that by B, but it would be easier just to put the whole
expression into the calculator and get the answer directly. Even what is shown below is more
work than is necessary.
X = A−1 B
 x   5 / 44 3 / 88 1 / 8   12   191 / 88 
 y  =  −3 / 44 −37 / 88 1 / 8   −13  = 519 / 88 
      
 z   −7 / 44 −13 / 88 1 / 8   10   111 / 88 

Hence, x = 191/88, y = 519/88, and z = 111/88.

VI. THE DETERMINANT OF A SQUARE MATRIX

A determinant is a real number associated with every square matrix. The determinant of a
square matrix A is denoted by "det A" or [ A ].

The line below shows the two ways to write a determinant.


MODULE 2 – Matrices and Determinants 23
Engr. Caesar P. Llapitan

3 1 3 1
= Det
5 2 5 2

Determinant of a 2 × 2 Matrix
The determinant of a 2 × 2 matrix is found much like a pivot operation. It is the product of
the elements on the main diagonal minus the product of the elements off the main diagonal.

a b
= ad − bc
c d

Properties of Determinants
▪ The determinant is a real number, it is not a matrix.
▪ The determinant can be a negative number.
▪ It is not associated with absolute value at all except that they both use vertical lines.
▪ The determinant only exists for square matrices (2×2, 3×3 ... n×n). The determinant of a
1×1 matrix is that single value in the determinant.
▪ The inverse of a matrix will exist only if the determinant is not zero.

Expansion using Minors and Cofactors


The definition of determinant that we have so far is only for a 2×2 matrix. There is a shortcut
for a 3×3 matrix, but I firmly believe you should learn the way that will work for all sizes, not
just a special case for a 3×3 matrix. The method is called expansion using minors and cofactors.
Before we can use them, we need to define them.

Minors (Mij)
A minor for any element is the determinant that results when the row and column of that
element are deleted.

The notation Mij is used to stand for the minor of the element in row i and column j. So M21
would mean the minor for the element in row 2, column 1.

Consider the 3×3 determinant shown below. I've included headers so that you can keep the
rows and columns straight, but you wouldn't normally include those. We're going to find some
of the minors.
C1 C2 C3
R1 1 3 2
R2 4 1 3
R3 2 5 2

Finding the Minor for R2C1


The minor is the determinant that remains when you delete the row and column of the
element, you're trying to find the minor for. That means we should delete row 2 and column 1
and then find the determinant.

C2 C3
R1 3 2
= 3(2) - 5(2) = 6 - 10 = -4
R3 5 2
MODULE 2 – Matrices and Determinants 24
Engr. Caesar P. Llapitan

As you can see, the minor for row 2 and column 1 is M21 = -4.

Finding the Minor for R3C2


This time, we would delete row 3 and column 2.

C1 C3
R1 1 2
= 1(3) - 4(2) = 3 - 8 = -5
R2 4 3

So, the minor for row 3, column 2 is M32 = -5.

Matrix of Minors
The matrix of minors is the square matrix where each element is the minor for the number
in that position.

Here is a generic matrix of minors for a 3×3 determinant.

C1 C2 C3
R1 M11 M12 M13
R2 M21 M22 M23
R3 M31 M32 M33

Let's find the matrix of minors for our original determinant. Here is the determinant.

C1 C2 C3
R1 1 3 2
R2 4 1 3
R3 2 5 2

Here is the work to find each minor in the matrix of minors.

C1 C2 C3

1 3 4 3 4 1

R1 5 2 2 2 2 5

= 2 - 15 = -13 =8-6=2 = 20 - 2 = 18

3 2 1 2 1 3

R2 5 2 2 2 2 5

= 6 - 10 = -4 = 2 - 4 = -2 = 5 - 6 = -1

3 2 1 2 1 3

R3 1 3 4 3 4 1

=9-2=7 = 3 - 8 = -5 = 1 - 12 = -11
MODULE 2 – Matrices and Determinants 25
Engr. Caesar P. Llapitan

Finally, here is the matrix of minors. Again, you don't need to put the labels for the row and
columns on there, but it may help you.

C1 C2 C3
R1 -13 2 18
R2 -4 -2 -1
R3 7 -5 -11

Cofactors
The cofactor cij is given by

i+ j
cij = ( −1 ) Mij

A cofactor for any element is either the minor or the opposite of the minor, depending on
where the element is in the original determinant.
▪ If the row and column of the element add up to be an even number, then the cofactor is
the same as the minor.
▪ If the row and column of the element add up to be an odd number, then the cofactor is
the opposite of the minor.

Sign Chart
Here is the sign chart for a 2×2 determinant.

C1 C2
R1 + -
R2 - +

Here is the sign chart for a 3×3 determinant.

C1 C2 C3
R1 + - +
R2 - + -
R3 + - +

Matrix of Cofactors
The matrix of cofactors is the matrix found by replacing each element of a matrix by its
cofactor. This is the matrix of minors with the signs changed on the elements in the C -
positions.
C1 C2 C3
R1 -13 -2 18
R2 4 -2 1
R3 7 5 -11

Determinant by Cofactor Expansion


Let A be a square matrix of order n. Then the determinant of A is given by
MODULE 2 – Matrices and Determinants 26
Engr. Caesar P. Llapitan

n
A=  aijCij = ai 1Ci 1 + ai2Ci2 + ai 3Ci 3 + + ainCin (ith row expansion)
j =1
n
A=  aijCij = a1 jC1 j + a2 jC2 j + a3 jC3 j + + anj Cnj (jth column expansion)
i =1

Here are the steps to go through to find the determinant.


1. Pick any row or column in the matrix. It does not matter which row or which column
you use; the answer will be the same for any row. There are some rows or columns that
are easier than others, but we'll get to that later.
2. Multiply every element in that row or column by its cofactor and add. The result is the
determinant.

Examples:
1. Determine the determinant of the matric by cofactor expansion along the first row.
1 3 2
4 1 3
2 5 2
Solution:

From the sign chart, we see that 1 is in a positive position, 3 is in a negative position and 2 is
in a positive position. By putting the + or - in front of the element, it takes care of the sign
adjustment when going from the minor to the cofactor.

1 3 4 3 4 1
+1 -3 +2
5 2 2 2 2 5
= 1 ( 2 - 15 ) - 3 ( 8 - 6 ) + 2 ( 20 - 2 )
= 1 ( -13 ) - 3 ( 2 ) + 2 (18)
= -13 - 6 + 36
= 17

Note: it doesn't really matter which row or column you use.

Let's try it again, but this time expands on the second columns. As an effort to save time,
the minors for that column (from the matrix of minors) were 2, -2, and -5. The original
elements were 3, 1, and 5. The 3 and 5 are in negative positions.

Determinant = - 3 (2) + 1 (-2) - 5 (-5) = -6 -2 + 25 = 17

Expand on any row or any column, you'll get 17.

However, you can't do diagonals. If we try the main diagonal, you get

+ 1 (-13) + 1 (-2) + 2 (-11) = -13 -2 - 22 = -37

2. Determine the determinant of the given matrix by cofactor expansion


 1 −2 3 0 
 −1 1 0 2 
A= 
0 2 0 3 
 
 3 4 0 −2 
MODULE 2 – Matrices and Determinants 27
Engr. Caesar P. Llapitan

Solution:
Expanding along the third column
A = 3C13 + 0C23 + 0C33 + 0C43

 −1 1 2   −1 1 2 
C13 = ( −1 )
1 +3  0 2 3 = 0 2 3 
   
 3 4 −2   3 4 −2 

Expanding by cofactor in the second row


3 1 2 4  −1 2 5  −1 1 
C13 = 0 ( −1 )   + 2 ( −1 )   + 3 ( −1 )  
4 −2   3 −2   3 4
= 0 + 2 ( 1 )( −4 ) + 3 ( −1 )( −7 )
= 13

Therefore, A = 3 ( 13 ) = 39

Some rows or columns are better than others


1. Pick the row or column with the most zeros in it.
Since each minor or cofactor is multiplied by the element in the matrix, picking a row
or column with lots of zeros in it means that you will be multiplying by a lot of zeros.
Multiplying by zero doesn't take very long at all. In fact, if the element is zero, you don't
need to even find the minor or cofactor.
2. Pick the row or column with the largest numbers (or variables) in it.
The elements in the row or column that you expand along are not used to find the
minors. The only place that they are multiplied is once, in the expansion. If you pick the
row or column with the smallest numbers, then every minor will be the product of larger
numbers.
3. If you pick a row or column that has variables in it, then you will only have to multiply
by the variables once, during the expansion.

The Adjoint of a Matrix


If A is a square matrix, then the matrix of cofactors of A has the form

 c11 c12 c1 n 
c c22 c2n 
 21
 
 
cm1 cm2 cmn 

The transpose of this matrix is called the adjoint A and is denoted by Adj (A). That is

 c11 c21 cm1 


c c22 cm2 
Adj ( A ) =  12
 
 
 c1 n c2n cmn 

Example:
Find the adjoint of
MODULE 2 – Matrices and Determinants 28
Engr. Caesar P. Llapitan

 −1 3 2

A =  0 −2 1 
 1 0 −2 

Solution:

 −2 1 0 1 0 −2 
+ − + 
 0 2 1 −2 1 0 
 3 4 1 2 
2 −1 2 −1 3  
Cofactors of A =  − + −  = 6 0 3
 0 −2 1 −2 1 0   
   7 1 2 
+ 3 2 −1 2 −1 3 
− +
 −2 1 0 1 0 −2 

4 6 7 
Adj (A) =  1 0 1 
 2 3 2 
Inverse of a Matrix
Let's consider our original determinant as a matrix this time.

1 3 2
4 1 3
2 5 2

Find the matrix of minors as explained above.

 −13 2 18 
 −4 −2 −1 
 
 7 −5 −11 

Turn it into a matrix of cofactors by changing the signs on the appropriate elements based
on the sign chart.

 −13 -2 18 
 4 −2 1 
 
 7 5 −11 

Find the adjoint by transposing the matrix of cofactors.

To transpose a matrix, you switch the rows and columns. That is, the rows become columns
and the columns become rows.

 −13 4 7 
 −2 −2 5 
 
 18 1 −11 
MODULE 2 – Matrices and Determinants 29
Engr. Caesar P. Llapitan

Finally divide the adjoint of the matrix by the determinant of the matrix. In this problem,
the determinant is 17, so we'll divide every element by 17. The resulting matrix is the inverse of
the original matrix.

 −13 / 17 4 / 17 7 / 17 
 −2 / 17 −2 / 17 5 / 17 
 
 18 / 17 1 / 17 −11 / 17 

The inverse of a matrix is found by dividing the adjoint of the matrix by the determinant of
the matrix. If you check it with your calculator, you can verify that the inverse actually is the
adjoint divided by the determinant.

Since the inverse is the adjoint divided by the determinant, we can see why the inverse
doesn't exist if the determinant is zero. That would cause division by zero, which is undefined.

Larger Order Determinants


Let's find the determinant of a 44 system.

C1 C2 C3 C4
R1 3 2 0 1
R2 4 0 1 2
R3 3 0 2 1
R4 9 2 3 1

Pick the row or column with the most zeros in it. In this case, that is the second column.

For each element in the original matrix, its minor will be a 3×3 determinant. We'll have to
expand each of those by using three 2×2 determinants.

This is why we want to expand along the second column. The minors are multiplied by their
elements, so if the element in the original matrix is 0, it doesn't really matter what the minor is
and we can save a lot of time by not having to find it. In the second column, you won't need to
find two of the minors because their corresponding element in the second column is zero.

4 1 2 3 0 1
−2 3 2 1 +0 ? −0 ? +2 4 1 2
9 3 1 3 2 1

We could actually fill in those middle two minors, but since they're multiplied by 0, it
doesn't really matter what they are. In fact, you could just as easily skip them. Now, there are
two 3x3 determinants left to find.

In the first 33 determinant, there are no zeros, so pick the row or column with the largest
numbers. That would be column 1, so expand along the first column.

Notice the 4 is in a positive position. The sign charts begin over with each new determinant.
The position of the number in the original matrix does not matter, only its position in the
current matrix.
MODULE 2 – Matrices and Determinants 30
Engr. Caesar P. Llapitan

4 1 2
2 1 1 2 1 2
3 2 1 = +4 −3 +9 = 4 ( 2 − 3 ) − 3 ( 1 − 6 ) + 9 ( 1 − 4 ) = − 16
3 1 3 1 2 1
9 3 1

Consider the other 3×3 matrix. In this one, there is a 0 in the row 1 and column 2. Either one
of those would be a good pick for expansion, but since row 1 has slightly larger numbers, we'll
expand along the first row.

3 0 1
1 2 ? ? 4 1
4 1 2 = +3 −0 −1 = 3 ( 1 − 4 ) − 0 ( doesn't matter ) + 1 ( 8 − 3 ) = − 4
2 1 ? ? 3 2
3 2 1

When you go to find the determinant, remember that there were elements from the original
4×4 matrix that were times each of those 3×3 determinants. The first one was -2 and the second
one was +2.

Determinant = -2 (-16) + 2 (-4) = 32 - 8 = 24

Worst case scenario


▪ To find a 3  3 determinant with no zeros, you have to find three 2  2 determinants.
▪ To find a 4  4 determinant with no zeros, you have to find four 3  3 determinants, each
of which then becomes three 2  2 determinants for a total of twelve 2  2 determinants.
▪ To find a 5  5 determinant with no zeros, you have to find five 4  4 determinants, each
of which then becomes four 3  3 determinants, each of those becoming three 2  2
determinants for a total of sixty 2  2 determinants.

Upper Triangular Matrix


An upper triangular matrix is one in which all the non-zero elements are either on or above
the main diagonal. That is, all the non-zero values are in the upper triangle. Everything below
the diagonal is a zero.

Lower Triangular Matrix


A lower triangular matrix is one in which all the non-zero elements are either on or below
the main diagonal. That is, all the non-zero values are in the lower triangle. Everything above
the diagonal is zero.

Diagonal Matrix
A diagonal matrix is one in which all the non-zero elements are on the main diagonal.
Everything off the main diagonal is a zero. The determinant of a triangular matrix or a diagonal
matrix is the product of the elements on the main diagonal.

Elementary Row Operations


Let A and B be square matrix.
1. If B is obtained from A by interchanging two rows of A, then B = − A .
2. If B is obtained from A by adding a multiple of a row of A to another row of A, then
B = A.
3. If B is obtained from A by multiplying a row of A by a non-zero constant c, then B = c A
.
Example:
Find the determinant of
MODULE 2 – Matrices and Determinants 31
Engr. Caesar P. Llapitan

2 −3 10
A= 1 2 −2
0 1 −3

Solution:
Rewrite A in triangular form.
a. Interchange m1 and m2
1 2 −2
= − 2 −3 10
0 1 −3

b. (-2  m1) + m2 = new m2


1 2 −2
= − 0 −7 14
0 1 −3

c. Factor out -7 of m2
1 2 −2
= 7 0 −1 2
0 1 −3

d. (-1  m2) + m3 = new m3


1 2 −2
= 7 0 1 −2
0 0 −1

A = 7 ( 1 )( 1 )( −1 ) = − 7

Elementary Column Operations


It follows the same procedure as in elementary row operations.

Examples:
1.
2 1 −3 1 2 −3
4 0 1 =−0 4 1
0 0 2 0 0 2

2. Find the determinant of A using elementary column operations

−1 2 2
A= 3 −6 4
5 −10 −3

Solution:

(2  n1) + n2 = new n2
MODULE 2 – Matrices and Determinants 32
Engr. Caesar P. Llapitan

−1 0 2
= 3 0 4
5 0 −3

Therefore, by co-factor expansion on column 2:

A = 0C12 + 0 C22 + 0 C32 = 0

Conditions that yield a Zero Determinant


If A is a square matrix and any of the following conditions is true, then det A = 0.
1. An entire row is zero.
2. Two rows or columns are equal.
3. A row or column is a constant multiple of another row or column.

Remember, that a matrix is invertible, non-singular, if and only if the determinant is not
zero. So, if the determinant is zero, the matrix is singular and does not have an inverse.

Examples:

0 0 0 1 −2 4 1 2 −3
1. 2 4 −5 = 0 0 1 2 =0 2 −1 −6 = 0
3 −5 2 1 −2 4 −2 0 6

2. Find the determinant of


1 4 1
A = 2 −1 0
0 18 4

Solution:
-2  m1 + m2 = new m2
1 4 1
A = 0 −9 −2 = 0
0 18 4

3. Find the determinant of


−3 5 2
A = 2 −4 −1
−3 0 6

Solution:
Step 1:
2  n1 + n3 = new n3
−3 5 4
A = 2 −4 3
−3 0 0

Step 2:
Expanding by co-factor along the 3rd row
MODULE 2 – Matrices and Determinants 33
Engr. Caesar P. Llapitan

5 −4
A = ( −3 )( −1 )
4
−4 3
= − 3 ( 15 − 16 )
=3

4. Evaluate the determinant of


2 0 1 3 −2
−2 1 3 2 −1
A = 1 0 −1 2 3
3 −1 2 4 −3
1 1 3 2 0

Further Properties of Determinants


1. Determinant of a product
If A and B are square matrices of order n, then AB = A B .

2. Determinant of an invertible matrix


A square matrix A is invertible (non-singular) if and only if A  0 .

3. Determinant of an inverse matrix


If A is invertible, then

1
A−1 =
A

4. Determinant of a transpose
If A is a square matrix, then

A = At

Cramer's Rule
Solve the system of linear equations

3x + 5y = 12
2x - 4y = 9

Let D be the determinant of the coefficient matrix.


x y
3 5
D= = - 22
2 -4

Let Dx be the determinant of the coefficient matrix where the x column has been replaced
by the constants from the right-hand side.
MODULE 2 – Matrices and Determinants 34
Engr. Caesar P. Llapitan

rhs y
12 5
Dx = = - 93
9 -4

Let Dy be the determinant of the coefficient matrix where the y column has been replaced
by the constants from the right-hand side.

x rhs
3 12
Dy = =3
2 9

As long as D, the determinant of the coefficient matrix, is not 0, then x = Dx/D and y = Dy/D.
In this case, D = -22, so Cramer's Rule will work and

x = Dx/D = -93/-22 = 93/22


y = Dy/D = 3/-22 = - 3/22

o Cramer's rule is named after Gabriel Cramer who lived from 1704 - 1752. He is not the
one who developed the technique originally, however, as the Chinese were known to
have used the method before him.

Extending Cramer's Rule to Larger Systems


Cramer's Rule can be extended to larger systems in the same manner. Simply replace each
column in the coefficient matrix by the right-hand side, and then divide that determinant by
the determinant of the coefficient matrix.

For a 3×3 system then let Dz be the determinant of the coefficient matrix where the z column
has been replaced by the constants from the right-hand side.

Benefits of Cramer's Rule


▪ Determinants can be found on a calculator for large systems
▪ If you need just one variable, you can find it with Cramer's Rule, whereas with the other
techniques you would have to find all of the variables.

Problems with Cramer's Rule


▪ Takes a long time to re-enter each matrix into the calculator to find the determinant.
Best suited for a computer or calculator program.
▪ Requires a square system.
▪ Doesn't always work. If the determinant of the coefficient matrix is zero, the technique
fails and it is either no solution or many solutions.
▪ If D = 0 and Dx = 0 and Dy = 0 then there are many solutions. You won't be able to tell
what the solutions are from Cramer's Rule, but there are many solutions. This is the
dependent case.
▪ If D = 0, but at least one of the other determinants is not zero, then there is no solution.
This is the inconsistent case.

Evaluation of the Determinant by the Pivotal Element Method


Steps:
1. If the given determinant of order n has an element unity, use this as the pivotal element.
Otherwise choose some convenient element, say aij . Reduce this to unit by dividing
MODULE 2 – Matrices and Determinants 35
Engr. Caesar P. Llapitan

either the ith row or the jth column by aij and then balancing by multiplying the
determinant also by aij .
2. Cross out the row and column through aij .
3. From each element of the resulting determinant of order n – 1, subtract the product of
the elements in which the row and column containing aij are not met by the row and
column containing that element.
i+ j
4. Then the value of the determinant is ( −1 ) times the value of the new determinant.

Example:
 3 −2 4 2 
2 1 −3 5 
D=
 −4 0 −1 −2 
 
 −5 3 2 4

Solution:

3 -2 4 2
2 1 -3 5
D =
-4 0 -1 -2
-5 3 2 4

3 – (-2)(2) 4 – (-3)(-2) 2 – (-2)(5)


1+1
D = (-1) -4 – (2)(0) -1 – 0(-3) -2 – 0(5)
-5 – (2)(3) 2 – (3)(-3) 4 – (3)(5)

7 -2 12
D = -4 -1 -2
-11 11 -11

7 -2 12
D = 11 -4 -1 -2
-1 1 -1

7 – (-2)(-1) 12 – (-2)(-1)
D = 11(-1)5
-4 – (-1)(-1) -2 – (-1)(-1)

5 10
D = - 11
-5 -3

Therefore,
D = -(11)[-15 + 50] = -385

Exercises
I. What is the row-echelon form of a matrix? What is a leading entry?

II. (a) What is the augmented matrix of a system? What are leading variables?
(b) What are the elementary row operations on an augmented matrix?
MODULE 2 – Matrices and Determinants 36
Engr. Caesar P. Llapitan

(c) How do we solve a system using the augmented matrix?


(d) Write the augmented matrix of the following system of linear equations.
x + y − 2z = 3
x + 2y + z = 5
3 x − y + 5z = 1
(e) Solve the system in part (d).

III. Suppose you have used Gaussian elimination to transform the augmented matrix of a linear
system into row-echelon form. How can you tell whether the system has exactly one
solution? no solution? infinitely many solutions?

IV. What is the reduced row echelon form of a matrix?

V. (a) How do Gaussian elimination and Gauss-Jordan elimination differ?


(b) Use Gauss-Jordan elimination to solve the linear system in part II (d).

VI. Matrices A matrix is given.


(a) State the dimension of the matrix.
(b) Is the matrix in row-echelon form?
(c) Is the matrix in reduced row-echelon form?
(d) Write the system of equations for which the given matrix is the augmented matrix.
 1 2 −5 
1.  
0 1 3 
1 0 8 0
2. 0 1 5 −1 

0 0 0 0 
0 1 −3 4
3. 1 1 0 7 

 1 2 1 2 
1 3 6 2
4. 2 1 0 5 

0 0 1 0 
1 8 6 −4 
0 1 −3 5 
5. 
0 0 2 −7 
 
1 1 1 0

VII. Matrix Operations

Let
 1 2 4
A = 2 0 −1  B= 
 −2 1 0 

1 / 2 3  1 4 
C =  2 3 / 2 
 D = 0 −1 
 −2 1   2 0 
MODULE 2 – Matrices and Determinants 37
Engr. Caesar P. Llapitan

 4 0 2
 2 −1 
E =  F =  −1 1 0  G = 5 
 −1 / 2 1   7 5 0 

Carry out the indicated operation, or explain why it cannot be performed.


1. 2C + 3D 5. 5B − 2C
2. GA 6. AG
3. BC 7. CB
4. (C + D) E 8. F (2C − D)

VIII. Matrix Equations


Solve the matrix equation for the unknown matrix X, or show that no solution exists, where

2 1   1 −2  0 1 3
A=  B=  C = 
3 2  −2 4   −2 4 0 

1. A + 3X = B
2. 2(X − A) = 3B
3. AX = B

IX. Determinants and Inverse Matrices


Find the determinant and, if possible, the inverse of the matrix.

3 0 1 
1.  2 −4 0 
 
4 −2 1 

1 0 0 1
0 2 0 2 
2. 
0 0 3 3
 
0 0 0 4

 2 −3 4 −2 
3 4 2 5 
3. 
 −5 −2 3 −4 
 
 −3 2 0 −5 

You might also like