Professional Documents
Culture Documents
Matrices (QM) Ii
Matrices (QM) Ii
Matrices (QM) Ii
1.1: Introduction:
A matrix is a set of number of quantities arranged in the form of vows and columns.
It is an array of numbers arranged in rows and columns. Matrices are very powerful tools for
presenting and analyzing many problems in business and economics. Matrices also provide an
effective method of solving systems of linear equations discussed in the previous chapter. In this
chapter, we shall examine different properties of matrices, operation of matrices, and their
applications in solving linear systems and modeling of different economic problems.
Example: If a co. sells four of its products P, Q,R,S from its three retail outlets, A.B & C in
a certain period of time the its sales units can be arranged in a matrix form as follows.
Products in units
P Q R S
Retail: A 40 20 15 55
B 33 27 22 47
C 42 34 19 50
The above matrix has one row and two columns, its dimension is a ‘one by two ‘matrix. The
subscript attached to each element of the matrix denotes the position of that element in the
1|Page
particular row and column of the matrix. For instance, 𝑎11 implies that the above element is in
the first row and first column of the matrix A.
𝑏11
B = 𝑏
[ 21 ] 1
𝑏31
Matrix B has three rows and one column. It is a ‘three by one matrix’ matrix. We can also call it a
column matrix. Subscripts attached such as, ‘𝑎31 ’ shows the element is in the third row of the
first column.
𝑐11 𝑐12
C = [𝑐 𝑐22 ] 2
21
Matrix C is a two by two matrix, that is, it has two rows and two columns.
𝑑11 𝑑12 𝑑13
D = [𝑑21 𝑑22 𝑑23 ] 3
𝑑31 𝑑32 𝑑33
Matric D has three rows and three columns; it is a ‘three by three’ matrix. Matrices which have
the same number of rows and columns such as matrix C and D, are called square matrices.
Matrices which have only one row, for instance matrix A, are called row matrices. Similarly,
matrices that have only one column, such as matrix B are called column matrices. Matrices can
have dimensions higher than the dimensions shown above and may have different number of
rows and columns that is, not necessarily square matrices.
The transpose of a matrix is obtained by interchanging row by column. Suppose we have matrix
A, its transpose is symbolically denoted by 𝐴𝑇 . Suppose we have the following matrix:
𝑎11 𝑎12
A = 𝑎
[ 21 𝑎22 ] = 3×2 matrix 4
𝑎31 𝑎32
2|Page
𝑎11 𝑎21 𝑎31
Its transpose, 𝐴𝑇 = [𝑎 𝑎22 𝑎32 ] = 2×3 matrix 5
12
Sometimes it is not possible to multiply any two given matrices due to failure to meet the
compatibility condition. Suppose we have matrices A and X as given below:
𝑎11 𝑎12
A = [𝑎21 𝑎22 ], X= [𝑥11 𝑥12 ]
𝑎31 𝑎32
It is easy to observe that the product matrix AX is not obtainable because the two matrices are
not compatible. In such a situation, Chiang and Wainwright (2005) noted that it may be
permissible to multiply A by 𝑋 𝑇 (which is now a column matrix) although the original lag matrix
X was a row matrix. That is:
𝑎11 𝑎12 𝑎11 𝑥11 + 𝑎12 𝑥12
𝑥11
A𝑋 𝑇
= [𝑎21 𝑎22 ] [ ] = [𝑎21 𝑥11 + 𝑎22 𝑥12 ]
𝑥12 6
𝑎31 𝑎32 𝑎31 𝑥11 + 𝑎32 𝑥12
Properties of Transposes
(𝐴𝑇 )𝑇 = A
(𝐴 + 𝐵)𝑇 = 𝐴𝑇 + 𝐵 𝑇 7
(𝐴𝐵)𝑇 = 𝐵 𝑇 𝐴𝑇
In words, we can state the properties as follows: The first one says that the transpose of the
transposed matrix is the original matrix. The second property states that the transpose of a sum
is the sum of the transposes. The third property is that the transpose of the product is the product
of transposes in a reversed order. We can use the following examples to illustrate the above
properties:
3|Page
Example 6
10 8 2 6
Given that A = [ ], and B = [ ],
5 3 4 3
Verify the following properties of transposes
(𝐴𝑇 )𝑇 = A
Solution
10 5
𝐴𝑇 = [ ]
8 3
We transpose it again
(𝐴𝑇 )𝑇 = [10 8
] = A
5 3
10 8 2 6
A+ B = [ ] + [ ]
5 3 4 3
10 + 2 8 + 6 12 14
A+ B = [ ] = [ ]
5+4 3+3 9 6
12 9
(A + B)T = [ ]
14 6
Also
10 5
𝐴𝑇 = [ ]
8 3
2 4
𝐵𝑇 = [ ]
6 3
10 5 2 4 12 9
𝐴𝑇 + 𝐵 𝑇 = [ ]+[ ] = [ ]
8 3 6 3 14 6
Therefore, (𝐴 + 𝐵)𝑇 = 𝐴𝑇 + 𝐵 𝑇
10 8 2 6 10 × 2 + 8 × 4 10 × 6 + 8 × 3 52 84
Finally, AB = [ ][ ] = [ ] = [ ]
5 3 4 3 5×2+3×4 5×6+ 3×3 22 39
(𝐴𝐵)𝑇 = [52 22
]
84 39
2 4 10 5 2 × 10 + 4 × 8 2×5+ 4×3 52 22
𝐵 𝑇 𝐴𝑇 = [ ][ ] = [ ] = [ ]
6 3 8 3 6 × 10 + 3 × 8 6×5+3×3 84 39
4|Page
Therefore, (𝐴𝐵)𝑇 = 𝐵 𝑇 𝐴𝑇
-
Examples : A= 2 1 B, 2 2 5
-
0 3 3 0 1
-
1 0 1
(a) Diagonal matrix
This is a square whose all entries are zero, a part from those on the major
diagonal. Example.
D= 2 0 0
-
0 1 0
0 0 1
Example.
Given D= 4 0 0 D1 = 4 0 0
- -
0 1 0 0 1 0
0 0 2 0 0 2
I2 = 1 0 , I3 1 0 0
0 1 0 1 0
0 0 1
(f). A null or zero matrix. This is a matrix whose all entries are equal to zero.
5|Page
This is a matrix whose all entries are equal to zero.
Examples A = 0 0 0 and B= 0 0 O
0 0 0
(g). Scalar matrix; this is a matrix having only one entry. example matrix P =(-1), q = (3)
Matrices can be added, subtracted from one another multiply by a scalar, divided by a
constant. All these operations are collectively called matrix Algebra.
(a). Additional and subtraction of matrices can be added together or subtracted from on
another if and only if they are of the same order. The given operation is performed with
corresponding entries.
Examples
_
Given A = 2 4 1 and B= 1 -2 4
- _
3 1 0 2 3 1
6|Page
= 1 2 5
5 2 -1
_ -
A-B = 2 4 1 _ 1 2 4
-
3 -1 0 2 3 1
= 3 6 -3
-
1 4 1
P = A B C D
700 600 300 180
400 840 480 620
200 1600 280 260
The total revenue matrix resulting from the same activities is given by
Q = A B C D
700 640 800 300
420 1200 960 1240
220 1900 600 300
R= A B C D
a 40 500 b
20 c d 620
20 300 e 40
7|Page
Solution Do it but take note that π= TR – TC.
Solution: 4 8 = 16 32
4A 4X 1 2 4 8
Example: 2 3 4 -1 2
Given A= 4 1 B= 3 4 1
- -
1 2
Find AB
AB = (12 X 4) + 3 X 3) (2X -1) + (3X4) (2X2) + (3X1)
(4 X 4) + (1 X 3) (4X-1) + (1 X 4) (4 X 2) + (1 X1)
(-1 X 4) + (-1 X 3) (-1X-1) + (-2X 4) (-1X2) + (-2X1)
-
AB = 8+9 2 + 12 4+3 17 10 7
-
16 + 3 4+4 8+1 = 19 0 9
- - -
4–6 1+8 2 +-2 -10 7 -4
8|Page
Solution
AB 4 8 2 1 = (4 x 2) + 8 x 2) 4 x 1 + (8 x 2)
1 2 2 2 (IVS) + (2 x 2) ( I x 1) + (2 x 2)
= 8 + 16 4 + 16
2+4 1+4
= 24 20
6 5
Example
BBA electronics has four retail stores A, B, C, and D in Lira. Store has 35 TVS, 60 music
systems, 55 DVD Played and 40 mobile phones. 80 65, 50 and 35 respectively are in store
B, 29, 36, 24 and 32 are store C and 62, 49, 54 and 33 are in store D.
Required
i) Express the present inventory of BBA electronics in a matrix form
ii) suppose the price are 400, 300, 250 and 500 in thousands of shillings for a TV,
music system, DVD Player and mobile phone respectively, determined the
value of BBA inventory in all the four company stores.
Solution: Items
i) TV MS DVD MP
Stores A 35 60 35 45
B 80 65 50 38
C 29 36 24 32
D 62 49 54 33
ii) We can write the prices as a column vector matrix as follows
TV 400,000
MS 300,000 To set the total value of the inventory, we can
DVD 250,000 multiply the inventory matrix by the price
MP 500,000 matrix as below
9|Page
Items Price
A 35 60 55 45 400,000 400 x 35 + 300 X 60+ 250 X 55 + 500 X 45
B 80 65 50 38 300,000 = 400 x 80 x 300 x 65 + 250 x 50 + 500 x 38
C 29 36 24 32 250,000 400 x 29X 300 x 36 + 250 x 24 + 50 x 32
D 62 49 53 33 500,000 400 X 62 + 300 X 49 x 250 x 54 + 50 x 33
(a) The determinate of a 2 x 2 matrix the differences between the production of the
entries on the major diagonal and the products of the entries of the minors
diagonal.
-
Example: Given A = 2 1
4 2
-
The I A I 2 1 = (2 X 2) - (4x -1)=4- -4
4 2 =8
Solution 4 1 1 4 1
-
3 2 1 3 2
- -
1 3 2 1 3
OR
Example 8
2 1 3
Find the determinant of: A = [4 5 6]
7 8 9
Solution
5 6 4 6 4 5
|𝐴| = 2| | − 1| | + 3| |
8 9 7 9 7 8
|𝐴| = 2[(5 × 9) − (8 × 6) ] − 1[(4 × 9) − (7 × 6) ] + 3[(4 × 8) − (7 × 5) ]
|𝐴| = −6 +6 – 9
|𝐴| = −9
In the above problem, we used row one as the basis of expansion. Alternatively we could also
use the first column as the basis of expansion. Expansion by the first column will yield this result:
|𝐴| = 2 |5 6| − 4 |1 3 1 3
| + 7| |
8 9 8 9 5 6
|𝐴| = 2[(5 × 9) − (8 × 6) ] − 4[(1 × 9) − (8 × 3) ] + 7[(1 × 6) − (5 × 3) ]
11 | P a g e
Therefore, expansion by the first column yields identical result as expansion by the first row. In
general, given the matrix:
when expanding by the first column, equation 15.9 can be restated as shown in equation 10.
The sub second-order determinant associated with each element of the first column of matrix D
is isolated by deleting all elements of D in row and column which intersect on that element of
the first column. For instance, the second order determinant (the minor) associated with 𝑑21 is
got by deleting the second row and the first column of matrix D. The following minors are
associated with the elements in the first column of D:
Cofactors
When we attach some prescribed algebraic signs to minors, we obtain cofactors. The rule for
attaching the algebraic signs is as follows: For the minor |𝑀𝑖𝑗 |, if (−1)𝑖+𝑗 = 1, then the cofactor
takes the same sign as the minor. That is; |𝑀𝑖𝑗 | = |𝐶𝑖𝑗 |. Conversely, if (−1)𝑖+𝑗 = − 1, then the
cofactor takes the opposite sign as the minor. Alternatively, if 𝑖 + 𝑗 = an even number, then the
cofactor takes the same sign as the minor, and if 𝑖 + 𝑗 = an odd number, then the cofactor takes
the opposite sign as the minor.
Example 9
2 1 3
In the determinant|4 5 6|, the minor of the element 4 is:
7 8 9
|𝑀21 | = |1 3
| = (1× 9) – (8× 3) = –15
8 9
However, the cofactor of that same element is:
|𝐶21 | = (−1)2+1 |1 3|
8 9
12 | P a g e
1 3
|𝐶21 | = (−1)3 | | = −1 ×–15 = 15
8 9
Therefore, the cofactor takes an opposite sign as the minor because 2 +1 = 3 (an odd number).
The relationship between minors and cofactors established above shows that equation 10 can be
alternatively given by equation 15.11
As noted earlier, whenever 𝑖 + 𝑗 = an even number, the minor will have the same sign as the
cofactor as seen with the first and the third terms of equation 11 and 12. Conversely, the signs
attached to the second term in equation 11 and 12 are different because 𝑖 + 𝑗 = an odd number.
It is to be noted that the principles laid down here for determinants of matrices applies to
matrices of higher dimensions, and lower dimensions especially the 2× 2 matrices. For instance,
given a 2× 2 matrix of the form:
𝑎11 𝑎12
A = [𝑎 𝑎22 ]
21
Based on the above principle of determinant, expansion by the first row of equation 15.3 results
to:
13 | P a g e
1.6: The inverse of a matrix.
The inverse of a matrix is also a matrix having the same order as the original matrix. It can
be determine only for square matrices. Given a square matrix A. its inverse is a matrix
denoted by A-1. The inverse of a matrix is a matrix that can be multiplied by the original
matrix so as to get an identify matrix I.
(a) The inverse of a 2 x 2 matrix. for any 2 x 2 matrix the fit procedures is following (i)
1st find the determined of a given matrix.
(ii) Inter change the entries on the major diagnoal and change the signs of the
entries on the minor diagonal of the given matrix. this results into a new matrix.
(iii) obtained the inverse by dividing the matrix obtained is (i)
-
Examples: Given A = 2 1 Find A-1 hence show that A-1 is an identify matrix.
4 3
Solution
i) IAI = (2 X 3) – (-1 X 4) = 6- -4 = 10.
ii) The new matrix is 3 1
-
4 2
1 3 1
iii) A-1 = 10 -
4 2
-
1 3 1 2 1 1 10 0 1 0
iv) A-1 x A = 10 -
4 2 4 3 10 0 10 0 1
OR
i. We obtain the cofactor matrix for matrix A
ii. We then transpose the cofactor matrix, the transpose of a cofactor matrix is normally
called the adjoin of matrix A.
iii. Finally we divide the adjoin of matrix A by |𝐴| to obtain the inverse of A.
14 | P a g e
Given the matrix
𝑎11 𝑎12
A = [𝑎 𝑎22 ] 16
21
|𝑐11 | |𝑐12 |
C = [ ] 17
|𝑐21 | |𝑐22 |
|𝑐11 | |𝑐21 |
𝐶𝑇 = Adj A = [ ] 18
|𝑐12 | |𝑐22 |
Example 10
3 4
Find the inverse of A = [ ]
2 8
|𝐴| = (3×8) – (2×4) = 16
|𝑐11 | |𝑐12 | 8 −2
C = [ ] = [ ]
|𝑐21 | |𝑐22 | −4 3
8 −4
𝐶𝑇 = Adj A = [ ]
−2 3
8⁄ −4⁄
8 −4
] = [ 16 16]
−1 𝐴𝑑𝑗 𝐴 1
𝐴 = = [
|𝐴| 16 −2 3 −2⁄ 3⁄
16 16
For 2× 2 matrices, it is easy to note the relationship between matrix A and its adjoin matrix, the
transpose of its cofactor matrix. That is; for the adjoin matrix, there will be an interchange in the
values in the major diagonal, and change in algebraic signs of the values in the minor diagonal as
seen in example 10 . The product of matrix A and its inverse 𝐴−1 yields an important result as
shown below:
8⁄ −4⁄ 8 −2 −4 3
A𝐴−1 = [
3 4
] [ 16 16] = [3 × ⁄16 + 4 × ⁄16 3 × ⁄16 + 4 × ⁄16]
2 8 −2⁄ 3⁄ 2 × 8⁄16 + 8 × −2⁄16 2 × −4⁄16 + 8 × 3⁄16
16 16
15 | P a g e
24⁄ − 8⁄ −12⁄ + 12⁄
A𝐴 −1
= [ 16 16 16 16]
16⁄ − 16⁄ −8⁄ + 24⁄
16 16 16 16
1 0
A𝐴−1 = [ ]
0 1
The above result is not by coincidence but it is one important property of inverses of matrices.
1 0
The matrix [ ] is called an identity matrix. Whenever we multiply a given matrix by its inverse,
0 1
we get an identity matrix. Identity matrices are square matrices with values 1 in its major diagonal
and values 0 in all other places. An example of identity matrix is:
1 0 0
B = [0 1 0]
0 0 1
Example 11
4 −2 1
Find the inverse of the matrix B = [7 3 0]
2 0 1
Solution
3 0 7 0 7 3
|𝐵| = 4| | + 2| | + 1| |
0 1 2 1 2 0
|𝐵| = 4× 3 + 2×7 + 1× −6 = 20
3 0
|𝐶11 | = | | = 3
0 1
|𝐶12 | = 7 0
−1 | | = −7
2 1
7 3
|𝐶13 | = | | = −6
2 0
−2 1
|𝐶21 | = −1 | | = 2
0 1
|𝐶22 | = 4 1
| | = 2
2 1
16 | P a g e
4 −2
|𝐶23 | = −1 | | = −4
2 0
−2 1
|𝐶31 | = | | = −3
3 0
4 1
|𝐶32 | = −1 | | = 7
7 0
4 −2
|𝐶33 | = | | = 26
7 3
3 −7 −6
C = [ 2 2 −4]
−3 7 26
3 2 −3
𝐶𝑇 = [−7 2 7]
−6 −4 26
𝐶𝑇
𝐵 −1 = |𝐵|
3 2 3
−1 1
𝐵 = [−7 2 7]
20
−6 −4 26
3⁄ 2⁄ −3⁄
20 20 20
𝐵 −1 = −7⁄ 2⁄ 7⁄
20 20 20
−6⁄ −4⁄ 26⁄
[ 20 20 20 ]
Readers should verify that B𝐵 −1 = I where I is an identity matrix
Introduction
Matrixes can be used to find solution to a set of linear simultaneous equations. This text
covers two methods that are used these are.
17 | P a g e
(i). Determinant or cramer’s rule method for both methods, the system of linear
simultaneous equation is first written in matrix form.
-
9 7 8 x 5
-
3 2 4 * y = 11
5 6 12 z 0
Where
9 7 8 x 5
-
3 2 4 y 11
5 6 12 z 0
is a coefficient’s matrix is the constants’ matrix
The same approaches is also applicable to simultaneous equation with only two unknown
for example
Given 5x + y =10 and 2x +2y = 12
This can be re-arrange as;
5x + y =10
2x + 2y = 12
Where
5 1 x 10
2 2 y = 1
18 | P a g e
Where
5 1 x and 10
2 2 y 12
is a coefficient’s matrix is the constants’ matrix
is the unknown matrix
Examples I:
Using the Cramer’s rule, solve the following simultaneous equation.
5x + y = 10
2x + 2y = 6
Solution
(a) Write the system of equation in a matrix form
5x + y = 10 to 5 1 x 10
2x + 2y =6 2 2 y 6
(c) To get the values of x, replace the coefficient of x by the constants’ matrix to get
the new matrix as below:
10 1
6 2
19 | P a g e
(d) the value of x is got as follows
x = (0 x 2) – (6 x 1) = 20 – 6 = 14 = 7 = 1.75
8 8 8 4
-
4 3 2 x 7
1 1 0 y = 5
3 0 4 z 4
Major = (4 x 14 x 4) + (3 x 0 x 3) + (-2x 1 x 0) = 16
Minors = (3 x 1 x 4 ) + (4 x 0 x 0) + (-2 x 1 x 3) = 6
ICI = 16 – 6 = 10
(g) x is got as below replace the coefficient of x by the constant matrix:
x= 7 3 -2 the determinate of the numerator is equal
5 1 0 to
4 0 4
10
20 | P a g e
(h) the determinate of the numerator is equal to
7 3 -2 7 3
5 1 0 5 1
4 0 4 4 0
Major = ( 4 x 5 x 4) + 7 x 0 x 3) + (-2x 1 x 4) = 7z
Minors = ( 7 x 1 x 4) + (4 x 0 x 4)+ (-2 x 5 x 3) -2
ICI = 72 - -2 = 74
y = 74 = 7.4
10
e) t= 4 3 7
1 1 5
3 0 4
10
The determinant of the numerator is equal to
4 3 7 4 3
1 1 5 1 1
3 0 4 3 0
21 | P a g e
Majors = (4 x 1 x 4) + (3 x 5 x 3) + (7 x 1 x 0) = 6
Minors (3x 1 x 4) + (4 x 5 x 0) + (7 x 1 x 3) = 33
ICI = 61 – 33 = 28
Z = 28 = 2.8
10
x = -2.4, Y = 7.4 and Z = 2.8 respectively
But also
IX = R---------------------------------------------------(v)
Therefore, under this method, the values of the unknowns are got by multiplying the
constants’ matrix by the inverse of the coefficient matrix
22 | P a g e
Example: Given the following linear equations
3x – 4y = 20
2x + y = -10, find x and y using the matrix inverse method.
Solution
The above equation can be written into a matrix form as
-
3 4 x 20
-
2 1 y 10
-
We can find the inverse of the coefficient matrix as let A= 3 4
2 1
IAI = (3 X 1) – (-4 X2) = 11
Therefore the inverse of A = A-1 is equal to
1 1 4
-
11 2 3
Given that
AX = C
it then follows hat
X = A-1C
Therefore
X = 1 1 4 20
- -
Y 11 2 3 10
- -
X = (1 X 20) + (4 X -10) = 20 – 40 = 20 = 1.82
11 11 11
23 | P a g e