Matrix Algebra (Recap) (for MSc & PhD Business, Management & Finance Students) Lecturer: Farzad Javidanrad First Draft: Sep. 2013 Revised: Sep. 2014 Basic level
Matrix Algebra (Recap)(for MSc & PhD Business, Management & Finance Students)
Lecturer: Farzad Javidanrad
First Draft: Sep. 2013
Revised: Sep. 2014
Basic level
Linear Transformation
โข Matrix Algebra developed in relation to linear transformations such as the following:
๐๐ฅ + ๐๐ฆ = ๐๐๐ฅ + ๐๐ฆ = ๐
Where ๐, ๐, ๐ and ๐ are real numbers. This transformation introduces a function(mapping) by which an ordered pair ๐ฅ, ๐ฆ in ๐ฅ๐๐ฆ plane transformed (associated) to another ordered pair (๐, ๐) in ๐๐๐ plane.
๐ ๐ฟ
๐๐
๐ ๐ถ
This linear transformation can be done through the coefficients of ๐ฅ and ๐ฆ . The square array ๐ ๐๐ ๐
represents this
transformation which is one among many other transformations. Such an array is called matrix.
Matrix Algebra
โข Definition: A matrix is a rectangular or square array of elements (usually numbers) arranged in rows and columns.
โข Matrices are usually shown by capital and bold letters such as A, B, etc. Matrix A with 3 rows and 2 columns is shown by ๐จ๐ร๐ and matrix B with m rows and n columns is shown by ๐ฉ๐ร๐. Their elements are shown by small letters with an index indicating the position of the element in the matrix.
โข ๐ด3ร2 =
๐11๐21๐31
๐12๐22๐32
๐ต๐ร๐ =
๐11๐21โฎ๐๐1
๐12๐22โฎ๐๐2
๐13โฆ๐23โฆโฎ โฏ๐๐3โฏ
๐1๐๐2๐โฎ
๐๐๐
Matrix Algebra
โข There are other ways of showing a matrix:
๐ฉ = ๐๐๐ ๐ร๐๐๐ ๐ฉ๐ร๐
The Order of a Matrix:
โข The size and the shape of a matrix is given by its orderwhich is the multiplication of number of rows and number of columns.
โข In the previous examples the order of A is 3 ร 2 and the order of B is ๐ ร ๐.
โข If ๐ = ๐ then the matrix is called a square matrix of order ๐ (๐๐ ๐).
Vectors & Scalars
โข A matrix with just one row or one column is called vector.
๐ด1ร3 = 2 โ10 3.5 is a row (horizontal) vector.
๐ต4ร1 =
2โ1.657.25
is a column (vertical) vector.
โข In matrix algebra any real number is called scalar. So, a scalar in matrix algebra is a 1 ร 1 matrix.
Types of MatricesNull (zero) Matrix:
If all elements of a matrix is zero the matrix is called null or zero matrix and it is shown by ๐ .
๐ด2ร2 =0 00 0
๐ถ2ร3 =0 0 00 0 0
Diagonal Matrix:
A square matrix which have at least one nonzero element on its main diagonal and zeros elsewhere is a diagonal matrix.
๐ด3ร3 =3 0 00 โ1 00 0 2
Main Diagonal๐ = ๐ โ ๐๐๐ โ ๐
๐ โ ๐ โ ๐๐๐ = ๐
Types of MatricesIdentity (unit) Matrix:
A diagonal matrix whose all elements on the main diagonal are equal to one is called identity or unit matrix. A unit matrix is usually shown by letter I and its order.
๐ผ2ร2 = ๐ผ2 =1 00 1
๐ผ3ร3 = ๐ผ3 =1 0 00 1 00 0 1
Scalar Matrix:
In a diagonal matrix if all elements are equal the matrix is called a scalar matrix.
๐ด3ร3 =3 0 00 3 00 0 3
Types of MatricesTranspose Matrix:For a matrix ๐จ๐ร๐ the transpose is defined as ๐จโฒ๐ร๐ (in some books ๐จ๐ร๐
๐ป ) where the rows and columns are interchanged.
๐ด2ร4 =
1 43 โ210
โ31.2
โ ๐ดโฒ4ร2 =143โ2
1โ3
01.2
โข Transposed of a row vector is a column vector and vice versa.
๐3ร1 =154
โ ๐โฒ1ร3 = 1 5 4
Properties of Transpose Matrix:
By the definition of transpose matrix we can conclude ๐จโฒ โฒ = ๐จ.
By the definition, ๐ฐโฒ = ๐ฐ. This property is true for all diagonal matrices.
For a square matrix ๐จ, if ๐จโฒ = ๐จ , then ๐จ is a symmetric matrix. 1 0.50.5 3
๐๐จ โฒ = ๐๐จโฒ
Types of MatricesTriangular Matrices:
If all elements above the main diagonal of a square matrix are zero the matrix is called โlower triangular matrixโ.
e.g. ๐ด =2 0 00 โ1 04 3 5
if ๐ < ๐ , ๐๐๐ = 0
Alternatively, If all elements under the main diagonal of a square matrix are zero the matrix is called โupper triangular matrixโ.
e.g. ๐ต =1 โ3 1 2
0 4 70 0 โ6
if ๐ > ๐ , ๐๐๐ = 0
Types of MatricesSymmetric Matrix:
A square matrix is symmetric if ๐จ = ๐จโฒ. This means that the elements above the main diagonal in the matrix are the mirror image of elements under the main diagonal (the main diagonal works as a mirror)
๐ด3ร3 =3 1.2 21.2 โ1 0
2 0 2
Equality in matrices:
โข Two matrices ๐จ and ๐ฉ are equal if they have the same order and their corresponding elements are equal.
๐จ = ๐ฉ โ ๐๐๐๐๐ ๐จ = ๐๐๐๐๐(๐ฉ)
โ๐, ๐ โ ๐๐๐ = ๐๐๐
Matrix OperationScalar Multiplication:
If ๐ is a scalar then
๐. ๐จ = ๐. ๐๐๐ ๐ร๐
This means that all elements of the matrix are multiplied by the scalar ๐.
Matrix Addition & Subtraction:
Addition and subtraction are defined for the matrices of the same order. It is not possible to add or subtract matrices from different orders. In both cases the corresponding elements are added or subtracted:
๐จ๐ร๐ ยฑ ๐ฉ๐ร๐ = ๐๐๐ ยฑ ๐๐๐ ๐ร๐
Matrix Operations
e.g. ๐ด =3 1 โ22 4 1
and ๐ต =7 โ10 45 0 3
๐ด + ๐ต =10 โ9 27 4 4
๐ด โ ๐ต =โ4 11 โ6โ3 4 โ2
Properties of Addition & Subtraction:
๐จ + ๐ฉ = ๐ฉ + ๐จ Commutative law
๐จ ยฑ ๐ฉ ยฑ ๐ช = ๐จ ยฑ ๐ฉ ยฑ ๐ช Associative law
๐. ๐จ ยฑ ๐ฉ = ๐๐จ ยฑ ๐๐ฉ (๐ is a scalar)
๐จ ยฑ ๐ฉ โฒ = ๐จโฒ ยฑ ๐ฉโฒ can be extended to โnโ matrices
Matrix Operationsโข Matrix Multiplication:Multiplication of two matrices ๐จ and ๐ฉ, in the form of ๐จ ร ๐ฉ or ๐จ๐ฉ, is possible if the number of columns in ๐จ is equal to the number of rows in ๐ฉ. The result of this multiplication is another matrix ๐ช where the number of its rows is equal to the number of rows in ๐จ and number of its columns is equal to the number of columns in ๐ฉ; that is:
๐จ๐ร๐ ร ๐ฉ๐ร๐ = ๐ช๐ร๐
Elements of ๐ช can be calculated by adding some multiplications; multiplications of the elements in the i-th row of ๐จ by the corresponding elements in the j-th column of ๐ฉ, that is:
๐ช๐๐ = ๐=1๐ ๐๐๐๐๐๐ where
๐ = 1,2,โฏ ,๐๐ = 1,2,โฏ , ๐
Matrix Operations
โข For example, matrix ๐จ๐ร๐ =๐ ๐ ๐๐ ๐ ๐๐ โ ๐
cannot be multiplied by a
horizontal vector ๐ฟ๐ร๐ = ๐ฅ ๐ฆ ๐ง but it can be multiplied by its
transpose which is a vertical vector; ๐ฟโฒ๐ร๐ =๐ฅ๐ฆ๐ง
and the result is:
AX =๐ ๐ ๐๐ ๐ ๐๐ โ ๐
๐ฅ๐ฆ๐ง
=
๐๐ฅ + ๐๐ฆ + ๐๐ง๐๐ฅ + ๐๐ฆ + ๐๐ง๐๐ฅ + โ๐ฆ + ๐๐ง
โข In the above example:
๐ฟ๐ฟโฒ = ๐ฅ2 + ๐ฆ2 + ๐ง2 which is a scalar but ๐ฟโฒ๐ฟ =
๐ฅ2 ๐ฅ๐ฆ ๐ฅ๐ง
๐ฆ๐ฅ ๐ฆ2 ๐ฆ๐ง
๐ง๐ฅ ๐ง๐ฆ ๐ง2
which is a symmetric matrix, why?
Matrix OperationsProperties of Matrix Multiplication:
In general, ๐จ๐ฉ โ ๐ฉ๐จ if both exist, but there are special cases that
this property is not true.
If ๐ฐ is an identity matrix ๐ฐ๐ฉ = ๐ฉ๐ฐ = ๐ฉ.
๐จ ๐ฉ + ๐ช = ๐จ๐ฉ + ๐จ๐ช and ๐ฉ + ๐ช ๐จ = ๐ฉ๐จ + ๐ช๐จ
๐จ ๐ฉ๐ช = ๐จ๐ฉ ๐ช
If ๐จ๐ฉ exist then ๐จ๐ฉ โฒ = ๐ฉโฒ๐จโฒ (this can be extended to more than 2
matrices, i.e.: ๐จ๐ฉ๐ช โฒ = ๐ชโฒ๐ฉโฒ๐จโฒ
From ๐จ๐ฉ = ๐ we cannot conclude necessarily that ๐จ = ๐๐๐ ๐ฉ = ๐.*
From ๐จ๐ฉ = ๐จ๐ช we cannot conclude necessarily that ๐ฉ = ๐ช.**
Determinant of a Matrix
โข Consider the system of simultaneous equations ๐๐ + ๐๐ = ๐๐๐ + ๐ ๐ = ๐
Where ๐, ๐,โฆ . , ๐, ๐ are constants of the system. If the coefficients of ๐ and ๐ in the first equation (i.e. ๐ and ๐ )have a linear relationship with the coefficients of the second equation (i.e. ๐ and ๐ ), the system either does not have a unique solutions for ๐ and ๐ (when ๐, ๐ also have the same linear relationship) or there is no solution at all (the system is not solvable as the equations are in contrary with each other).
โข If ๐
๐=
๐
๐โ ๐๐ = ๐๐ or ๐๐ โ ๐๐ = 0 it means the
coefficients have a linear relationship and there is no unique solutions for ๐ฅ and ๐ฆ. The value of ๐๐ โ ๐๐determines whether a system of simultaneous equations have a unique solutions or not.
Determinant of a Matrix
o For the system of simultaneous equations A: 2๐ฅ + 3๐ฆ = 124๐ฅ + 6๐ฆ = 24
and
B: 2๐ฅ + 3๐ฆ = 124๐ฅ + 6๐ฆ = โ18
we have:
2
4=3
6โ 2 ร 6 = 3 ร 4 ๐๐ 2 ร 6 โ 3 ร 4 = 0
So, both systems fail to provide unique solutions for ๐ฅ and ๐ฆ but the difference between them is that system A provides infinite solutions (because there are, in fact, one equation with two variables, which geometrically means two lines coincide) but the equations in system B are in contrary with each other (geometrically means they are two parallel lines and do not cross each other).
x
y2๐ฅ + 3๐ฆ = 124๐ฅ + 6๐ฆ = 24
2๐ฅ + 3๐ฆ = 12
4๐ฅ + 6๐ฆ = โ18
x
y
Infinite solutions
No solution
Determinant of a Matrix
โข for matrix ๐จ๐ร๐ =๐ ๐๐ ๐
, the value of ๐๐ โ ๐๐ is called
โdeterminantโ of the matrix and it is shown by det ๐จ or simply ๐จ .
๐จ๐ร๐=๐ ๐๐ ๐
โ det ๐จ = ๐จ = ๐๐ โ ๐๐
โข To every square matrix we can correspond a scalar which is called the determinant of the matrix. So, determinant of a matrix represents a function.
โข What about if the square matrix is ๐ ร ๐ or even ๐ ร ๐?
In order to obtain the determinant of matrices of higher orders than 2 we need to introduce two concepts:
Minors
Cofactors
Determinant of Matrices of Higher Orders than 2
โข Minors: For every element (such as ๐๐๐) of a square matrix there
is a corresponding determinant, called โminor of ๐๐๐โ (shown by
๐๐๐) derived from ignoring the elements in the same row and
column of ๐๐๐ (i.e. ๐ and ๐).
โข For matrix
๐11 ๐12 ๐13๐21 ๐22 ๐23๐31 ๐32 ๐33
, minors are:
Minor of ๐11 = ๐11 =๐22 ๐23๐32 ๐33
= ๐22๐33 โ ๐23๐32
Minor of ๐12 = ๐12 =๐21 ๐23๐31 ๐33
= ๐21๐33 โ ๐23๐31
Minor of ๐13 = ๐13 =๐21 ๐22๐31 ๐32
= ๐21๐32 โ ๐22๐31
Minor of ๐21 = ๐21 =๐12 ๐13๐32 ๐33
= ๐12๐33 โ ๐13๐32
Determinant of Matrices of Higher Orders than 2
โข Minor of ๐22 = ๐22 =๐11 ๐13๐31 ๐33
= ๐11๐33 โ ๐13๐31
โข โฆโฆโฆโฆโฆโฆโฆโฆโฆโฆโฆโฆ
โข โฆโฆโฆโฆโฆโฆโฆโฆโฆโฆโฆโฆ
โข Minor of ๐33 = ๐33 =๐11 ๐12๐21 ๐22
= ๐11๐22 โ ๐12๐21
โข Cofactors: Cofactors of each element ๐๐๐, shown by ๐ถ๐๐, are minors with a
sign depending on the row and column of the element. i.e.:
๐ถ๐๐ = โ1 ๐+๐๐๐๐
So,
the cofactor of ๐11 is ๐ช๐๐ = โ1 1+1๐11 = ๐11 = ๐22๐33 โ ๐23๐32And
the cofactor of ๐23 is๐ช๐๐ = โ1 2+3๐23 = โ๐23= โ(๐11๐32 โ ๐12๐31) = โ๐11๐32 + ๐12๐31
Determinant of Matrices of Higher Orders than 2
โข The matrix of cofactors can be shown as:
๐ถ =
๐ถ11 ๐ถ12 ๐ถ13๐ถ21 ๐ถ22 ๐ถ23๐ถ31 ๐ถ32 ๐ถ33
=
๐11 โ๐12 ๐13
โ๐21 ๐22 โ๐23
๐31 โ๐32 ๐33
Now, we can define and calculate the determinant of a matrix with order higher than two.
Definition: Determinant of a ๐ ร ๐ matrix is the summation of products between elements of any row (or any column ) and their corresponding cofactors. i.e.:
For a matrix ๐จ๐ร๐ we can write:
๐จ = ๐11. ๐ช๐๐ + ๐12. ๐ช๐๐ +โฏ+ ๐1๐ . ๐ช๐๐ Based on the 1st row
๐จ = ๐1๐ . ๐ช๐๐ + ๐2๐. ๐ช๐๐ +โฏ+ ๐๐๐ . ๐ช๐๐ Based on the nth column
Determinant of Matrices of Higher Orders than 2
o Find the determinant of ๐ =
๐ ๐ ๐๐ ๐ ๐๐ โ ๐
.
Based on the elimination of rows and columns using the elements of the first row we have:
๐จ = ๐.๐ ๐โ ๐
โ ๐.๐ ๐๐ ๐
+ ๐.๐ ๐๐ โ
= ๐ ๐๐ โ ๐โ โ ๐ ๐๐ โ ๐๐ + ๐(๐โ โ ๐๐)
= ๐๐๐ โ ๐๐โ โ ๐๐๐ + ๐๐๐ + ๐๐โ โ ๐๐๐
o The determinant of the unit matrix of order ๐ is:
๐ฐ๐ร๐ = ๐ฐ๐ =
10
0โฆ1โฏ
00
โฎ โฎ โฏ โฎ0 0โฆ 1
๐ฐ๐ = ๐ฐ๐โ๐ = โฏ = ๐ฐ๐ = 1 , why?
Sarrusโ Rule
โข For a matrix ๐ =๐ ๐ ๐๐ ๐ ๐๐ โ ๐
can be calculated through following steps:
1. Add the first 2 columns of the matrix to the right of the 3rd column:
๐ ๐ ๐๐ ๐ ๐๐ โ ๐
๐๐๐
๐๐โ
2. Subtract the sum of the products along the green arrows from the sum of
products along the blue arrows:
๐จ = ๐๐๐ + ๐๐๐ + ๐๐โ โ (๐๐๐ + ๐๐โ + ๐๐๐)
โข Note: It is also possible to add the first 2 rows of the matrix to the bottom of
the 3rd row:๐ ๐ ๐๐ ๐ ๐๐ โ ๐๐ ๐ ๐๐ ๐ ๐
(+) (-)
(+) (-)๐จ = ๐๐๐ + ๐๐๐ + ๐๐โ โ (๐๐๐ + ๐๐โ + ๐๐๐)
Properties of Determinants1) Transposing a matrix does not change its determinant: ๐จ = ๐จโฒ
๐ ๐๐ ๐
=๐ ๐๐ ๐
= ๐๐ โ ๐๐
2) If all elements of a row (or column) of a square matrix are zero the determinant of that matrix is zero. Why?
๐ 0 2๐ 0 3๐ 0 4
= 0
3) If two rows (or columns) of a square matrix have the same values or make a linear relationship with each other the determinant of the matrix is zero.
๐ ๐ ๐๐ ๐ ๐๐ โ ๐
=๐ ๐ ๐๐๐ ๐๐ ๐๐๐ โ ๐
= 0
Properties of Determinants4) If the elements in a row (or in a column) of a square matrix multiplied by a constant the determinant of the matrix is multiplied by that constant but if the entire elements of a matrix multiplied by a constant the determinant of the matrix multiplied by that constant to the power of the order of the matrix, i.e.
If ๐ =๐ ๐ ๐๐ ๐ ๐๐ โ ๐
then
๐. ๐ ๐ ๐๐. ๐ ๐ ๐๐. ๐ โ ๐
= ๐. ๐จ and ๐. ๐ ๐. ๐ ๐. ๐๐. ๐ ๐. ๐ ๐. ๐๐. ๐ ๐. โ ๐. ๐
=
๐3.๐ ๐ ๐๐ ๐ ๐๐ โ ๐
๐๐ ๐. ๐จ = ๐3. ๐จ
If matrix ๐จ was from
order of ๐ then
๐. ๐จ = ๐๐. ๐จ
Properties of Determinants5) For the square matrices ๐จ and ๐ฉ with the same orders
๐จ๐ฉ = ๐จ . ๐ฉ
6) If two rows (or two columns) of a square matrix are interchanged the determinant of the matrix is multiplied by -1.
๐ ๐๐ ๐
= โ๐ ๐๐ ๐
๐๐๐ก๐๐๐โ๐๐๐๐๐๐ ๐ก๐ค๐ ๐๐๐ค๐
7) If the elements of a row (or a column) of a square matrix is the sum of two row (column) vectors, the determinant of the matrix can be written as the sum of two determinants; each corresponded to one of the vectors, i.e.:
๐ + ๐ ๐ + ๐๐ ๐
=๐ ๐๐ ๐
+๐ ๐๐ ๐
๐ + ๐ ๐๐ + ๐ ๐
=๐ ๐๐ ๐
+๐ ๐๐ ๐
8) Adding or subtracting a scalar multiple of a row (or a column) to another row (column) does not change the determinant of the matrix.
๐ + ๐. ๐ ๐๐ + ๐. ๐ ๐
=๐ ๐๐ ๐
+ ๐.๐ ๐๐ ๐
=
0
๐ ๐๐ ๐
9) Determinant of a triangular, diagonal and scalar matrix is the multiplication of the elements on the main diagonal.
Triangular matrix :1 4 30 โ2 50 0 3
= 1 ร โ2 ร 3 = โ6
Diagonal matrix: 1 0 00 โ2 00 0 3
= 1 ร โ2 ร 3 = โ6
Scalar Matrix:โ2 0 00 โ2 00 0 โ2
= โ2 ร ๐ผ3 = โ2 3 ร ๐ฐ๐1
= โ8
Properties of Determinants
โข The last two properties are sometimes used to facilitate the calculation of determinant of a matrix.
o If ๐จ =2 3 โ11 4 0โ3 5 4
find ๐จ .
According to the property No. 8, if we substitute the last row (๐ 3) by 4๐ 1 + ๐ 3 (multiplying the first row by 4 and adding it to the third row) the result of the determinant does not change. So:
2 3 โ11 4 0โ3 5 4
=2 3 โ11 4 05 17 0
= โ1 ร1 45 17
= 3
โข These type of operations are called elementary row/column operations and they are useful to solve a system of simultaneous equations . These types of operations will be discussed later.
Properties of Determinants
โข The concept of inverse is very important in all branches of algebra. Inverse of a real number, inverse of a function are just different aspects of this concept.
โข In matrix algebra the inverse of a square matrix ๐จ, which is shown by ๐จโ๐(read ๐จ inverse), is the matrix of the same order such that:
๐จ๐จโ๐ = ๐จโ๐๐จ = ๐ฐ
Where ๐ฐ is an identity matrix of the same order.
Note: Not all square matrices have an invers but if a square matrix is invertible, the inverse matrix is unique.
Some properties of inverse matrices are as following:
๐จโ๐โ๐
= ๐จ
๐จ๐ฉ โ๐ = ๐ฉโ๐๐จโ๐
๐จโฒ โ๐ = ๐จโ๐โฒ
๐จ๐จโ๐ = ๐ฐ โ ๐จ . ๐จโ๐ = 1 โ ๐จโ๐ =1
๐จ
Invers of a Matrix
A square matrix ๐จ is invertible if and only if ๐จ โ 0. This is necessary and sufficient condition for a square matrix to have an inverse. If ๐จ โ 0, the matrix is called non-singular and singular otherwise.
To find the inverse of a function we can follow one of these methods:
a) Using the Definition:
o Find the inverse of the matrix ๐จ =2 45 5
.
As ๐จ = โ10, so, the inverse exists. According to the definition, if
๐จโ๐ =๐ ๐๐ ๐
then : ๐๐จโ๐ =2 45 5
๐ ๐๐ ๐
=1 00 1
= ๐ฐ. By
multiplication we have:2๐ + 4๐ 2๐ + 4๐5๐ + 5๐ 5๐ + 5๐
=1 00 1
By solving the system of four simultaneous equations with four variables we will have : ๐ = โ0.5 , ๐ = โ0.5 , ๐ = 0.5 and ๐ = โ0.5.
Finding the Inverse of a Square Matrix
So, ๐จโ๐ =โ0.5 โ0.50.5 โ0.5
. This method can be difficult for matrices of
orders bigger than two.
b) Gauss Method (Gaussian Elimination Method):
A prerequisite for using this method is to know the concept of elementary raw (column) operations. If a matrix is associated to a system of simultaneous linear equations (called coefficients matrix) elementary raw (column)operations help to solve the system and find the set of solutions easily. They can be also used to calculate the determinant of a square matrix or to find its inverse, in case the matrix is invertible.
Three types of these operations are:
I. Row (column) Switching: A row (column) in a matrix can be switched with another row (column), i.e. ๐ ๐ โ ๐ ๐ (๐ถ๐ โ ๐ถ๐)
Finding the Inverse of a Square Matrix
II. Row (column) Multiplication: all elements in a row (column) can be multiplied by a non-zero scalar and be replaced by that, i.e. ๐. ๐ ๐ โ ๐ ๐ (๐. ๐ถ๐ โ ๐ถ๐)
III. Row (column) Addition/Subtraction: A row (column) can be replaced by the sum of that row (column) and a multiple of another row (column), i.e. ๐ ๐ ยฑ ๐. ๐ ๐ โ ๐ ๐ (๐ถ๐ ยฑ ๐. ๐ถ๐ โ ๐ถ๐)
โข The third elementary operation (no. III) does not change the determinant of a matrix. Why?(Hint: focus on the properties of determinants)
โข In order to find the inverse of a square matrix ๐จ through the Gaussian elimination method we attach an identity matrix ๐ฐ (of the same order) to ๐จ and then by using a sequence of elementary row operations on both of them matrix ๐จ step by step transforms to an identity matrix and the identity matrix transforms to ๐จโ๐, i.e.
๐จ โฎ ๐ฐ โ ๐ฐ โฎ ๐จโ๐
Why?(Hint: focus on the relationship between ๐จ, ๐ฐ and ๐จโ๐)
Finding the Inverse of a Square Matrix
o Find the inverse of the matrix ๐จ =2 3 41 6 9โ1 0 1
, if it is invertible.
Applying an elementary column operation, ๐จ can be easily calculated:
๐ถ3 + ๐ถ1 โ ๐ถ1 : 2 3 41 6 9โ1 0 1
โ6 3 410 6 90 0 1
; so, based on the
expansion of the last row ๐จ = 6. Therefore, matrix ๐จ is invertible.
To find ๐จโ๐, we need to make ๐จ โฎ ๐ฐ and then follow the following sequence of elementary row operations:2 3 41 6 9โ1 0 1
1 0 00 1 00 0 1
๐ 1โ๐ 21 6 92 3 4โ1 0 1
0 1 01 0 00 0 1
โ2๐ 1+๐ 2โ๐ 2๐ 1+๐ 3โ๐ 3
1 6 90 โ9 โ140 6 10
0 1 01 โ2 00 1 1
โ19 ๐ 2โ๐ 2
1 6 90 1 14
9
0 6 10
0 1 0โ19
29 0
0 1 1
โ6๐ 2+๐ 1โ๐ 1โ6๐ 2+๐ 3โ๐ 3
1 0 โ13
0 1 149
0 0 23
23
โ13 0
โ19
29 0
23
โ13
1
Finding the Inverse of a Square Matrix
1 0 โ13
0 1 149
0 0 23
23
โ13
0โ19
29
023
โ13
1
32๐ 3โ๐ 3
1 0 โ13
0 1 149
0 0 1
23
โ13
0โ19
29
0
1โ12
32
โ14
9๐ 3+๐ 2โ๐ 2
1
3๐ 3+๐ 1โ๐ 1 1 0 0
0 1 00 0 1
1 โ12
12
โ53
1 โ73
1 โ12
32
โข If the matrix ๐จ in the above example was representing a coefficients matrix in the system of simultaneous equations such as the following
2๐ฅ + 3๐ฆ + 4๐ง = 5๐ฅ + 6๐ฆ + 9๐ง = 0โ๐ฅ + ๐ง = โ4
the system could be written in the matrix form as ๐จ๐ฟ = ๐ฉ, i.e.
2 3 41 6 9โ1 0 1
๐ฅ๐ฆ๐ง
=50โ4
โข And by using ๐จโ๐, the unique set of solutions for the variables can be found, because:
๐จ๐ฟ = ๐ฉโน ๐จโ๐๐จ๐ฟ = ๐จโ๐๐ฉโน ๐ฟ = ๐จโ๐๐ฉ
Finding the Inverse of a Square Matrix
๐จโ๐๐ฐ
So, ๐ฅ๐ฆ๐ง
=
1 โ1
2
1
2โ5
31 โ7
3
1 โ1
2
3
2
50โ4
=31โ1
โ ๐ฅ = 3๐ฆ = 1๐ง = โ1
.
โข The same elementary raw operations could be used to reach to the same results:
๐จ ๐ฉ โ ๐จโ๐๐จ ๐จโ๐๐ฉ โ ๐ฐ ๐ฟ
c) Adjoint (Adjugate) Matrix Method:
Recall from the definition of determinant of a 3 ร 3 matrix :
๐จ = ๐11. ๐ช๐๐ + ๐12. ๐ช๐๐ + ๐13. ๐ช๐๐
And we know that if elements in a row (column) are multiplied by non-associated cofactors the sum of these products is zero. Using these properties, the multiplication of square matrix ๐จ by its transposed cofactor matrix (called adjoint matrix, shown by adj(A))yields a scalar matrix:
Finding the Inverse of a Square Matrix
Based on the elements of the 1st row
๐จ. ๐๐๐ ๐จ =
๐11 ๐12 ๐13๐21 ๐22 ๐23๐31 ๐32 ๐33
๐ถ11 ๐ถ21 ๐ถ31๐ถ12 ๐ถ22 ๐ถ32๐ถ13 ๐ถ23 ๐ถ33
=๐จ 0 00 ๐จ 00 0 ๐จ
= ๐จ . ๐ฐ๐
So, ๐จ. ๐๐๐ ๐จ = ๐จ . ๐ฐ
or
๐ฐ =๐จ. ๐๐๐(๐จ)
๐จ
By multiplying both sides by ๐จโ๐, we have:
๐จโ๐ =๐๐๐(๐จ)
๐จ
=1
๐จ. ๐๐๐ ๐จ =
1
๐จ
๐ถ11 ๐ถ21 ๐ถ31๐ถ12 ๐ถ22 ๐ถ32๐ถ13 ๐ถ23 ๐ถ33
Finding the Inverse of a Square Matrix
o Find the inverse of matrix ๐จ =4 โ12 โ3
.
As ๐จ = โ10, the matrix is invertible. The cofactor matrix for ๐จ can be easily
found as ๐ช =โ3 โ21 4
and its transposed is ๐ชโฒ =โ3 1โ2 4
.
So,
๐จโ๐ =1
โ10
โ3 1โ2 4
=0.3 โ0.10.2 โ0.4
โข Clearly, the adjoint of a 2 ร 2 matrix can easily be obtained by interchanging the elements on the main diagonal (without changing the sign) and change the sign of elements on the other diagonal (without changing their place), i.e.
๐ฉ =๐ ๐๐ ๐
โ ๐๐๐ ๐ฉ =๐ โ๐โ๐ ๐
So,
๐ฉโ๐ =
๐
๐ฉ
โ๐
๐ฉโ๐
๐ฉ
๐
๐ฉ
Finding the Inverse of a Square Matrix
โข Apart from the matrixโs inverse method, Cramerโs rule provides a simple method of solving a simultaneous equations.
โข According to this rule, the value of any variable in the system of equation (provided that the system has a unique solution for each variable), can be obtained through the division of two determinants, i.e.:
๐ฅ =๐จ๐ฅ๐จ
, ๐ฆ =๐จ๐ฆ๐จ
and ๐ง =๐จ๐ง๐จ
Where ๐จ๐ฅ , ๐จ๐ฆ and ๐จ๐ง are specific determinants. If in ๐จ the
column vector associated to the coefficients of any of variables is replaced by the column vector of constants, we can obtain these specific determinants.
Cramerโs Rule
โข For example, for the system of equation2 3 41 6 9โ1 0 1
๐ฅ๐ฆ๐ง
=50โ4
the
Cramerโs rule can be applied as:
๐ฅ =
5 3 4
0 6 9
โ4 0 12 3 4
1 6 9
โ1 0 1
= 3 , ๐ฆ =
2 5 4
1 0 9
โ1 โ4 12 3 4
1 6 9
โ1 0 1
= 1
and
๐ง =
2 3 5
1 6 0
โ1 0 โ42 3 4
1 6 9
โ1 0 1
= โ1
Cramerโs Rule