Professional Documents
Culture Documents
2
SECTION ONE: MATRIX CONCEPTS
Section Objectives : Up on completing this section, you
will be able to:
Know the definition and meaning of a matrix.
Matrix - rectangular array of numbers, parameters, Denoted by a single letter in bold face type.
or variables each of which has a carefully ordered
First subscript in a matrix refers to the row
place within the matrix.
The numbers (parameters or variables) are referred and the second subscript refers to the column.
to as elements of the matrix. A general matrix of order m x n is written as:
The numbers in the horizontal like are called rows;
the numbers in a vertical line are called columns.
Elements enclosed in parentheses, brackets, or
braces to signify that they must be considered as a
whole and not individually.
11/20/2022 11/20/2022
1
11/20/2022
Matrix …
5 6
11/20/2022 11/20/2022
The above 3x3 = 9 general matrix has 9 elements, Dimension of a matrix is defined as
arranged in three rows and three columns.
All elements have double subscripts which give the
the number of rows and columns.
address or placement of the element in the matrix; Based on their dimension (order),
First subscript identifies the row and the second matrices are classified in to the
identifies the column in which the element appears
following types:
a23 is the element which appears in the second row
and the third column and a32 is the element which
appears in the third row and the second column.
11/20/2022 11/20/2022
2
11/20/2022
Vector matrix – is a matrix, which consists of just one Column matrix/Column Vector: is a matrix with
row or just one column. It is an m x 1 or 1 x n one column and can have many rows.
matrix.
Row matrix/Row Vector: is a matrix that has only one
row and can have many columns.
11/20/2022 11/20/2022
It is also called n-th order matrix, 2x2, 3x3, nxn
3
11/20/2022
N.B. Each identity matrix is a square matrix G. A null matrix (zero matrix): a matrix is called a
* Primary diagonal represents: a11, a22, a33, a44- null matrix if all its elements are zero. Denoted by
--------ann entries element 0mxn
A x I = A & I x A = A that is, the product of any
given matrix & the identity matrix is the given
matrix itself.
Thus, the identity matrix behaves in a matrix
multiplication like number 1 in an ordinary
arithmetic.
11/20/2022 11/20/2022
15 16
H. A symmetric matrix: a matrix is said to be I. Idempotent matrix: this is a matrix having the property
symmetric if A = At. that 𝐴 =A.
4
11/20/2022
1. Matrix equality: two matrices are said to be 2. Transpose of a matrix: If the rows and columns of a
equal if and only if they have the same matrix are interchanged the new matrix is known as
dimension and corresponding elements of each the transpose of the original matrix.
matrix are equal. If the original matrix is denoted by A, the transpose
is denoted by 𝐴 or 𝐴 .
Transposition means interchanging the rows or
5
11/20/2022
11/20/2022 11/20/2022
6
11/20/2022
11/20/2022 11/20/2022
c. Existence of identity: A+ 0 = 0 + A = A.
Note: The subtraction (difference) of two
11/20/2022 11/20/2022
7
11/20/2022
11/20/2022 11/20/2022
Two matrices A and B can be multiplied together to If two matrices have the same inner dimension,
get AB if the number of columns in A is equal to the then we can get the product of the matrices.
number of rows in B.
The resulting matrix will have a dimension
equal to the outer dimensions of the two
matrices.
There are two types of matrix multiplication:
11/20/2022 11/20/2022
8
11/20/2022
11/20/2022 11/20/2022
Laws … Laws ….
35 36
11/20/2022 11/20/2022
9
11/20/2022
Laws… Laws…
37 38
11/20/2022 11/20/2022
Laws … Laws…
39 40
11/20/2022 11/20/2022
10
11/20/2022
Laws ….
41 42
11/20/2022 11/20/2022
If A & B are two matrices, the product AB is defined If A is a matrix of dimension n x m (which has m
if and only if the number of Columns in A is equal to columns) & B is a matrix of dimension p x q (which
the number of rows in B, i.e. if A is an m x n matrix, has p rows) and if m and p aren’t the same product
B should be an n x b. A.B is not defined.
If this requirement is met., A is said to be That is, multiplication of matrices is possible only if
conformable to B for multiplication. The matrix the number of columns of the first equals the number
resulting from the multiplication has dimension of rows of the second.
equivalent to the number of rows in A & the number If A is of dimension n x m & if B is of dimension m x
columns in B p, then the product A.B is of dimension n x p
11/20/2022 11/20/2022
11
11/20/2022
Matrix by matrix …
45 46
11/20/2022 11/20/2022
(A + B) C = AC + BC Distributive property
11/20/2022 11/20/2022
12
11/20/2022
Examples
49 50
In general, as long as the order of the matrix is 1. Interest at the rates of 0.06, 0.07 and
maintained, matrix multiplication is associative, but 0.08 is earned on respective investments of
matrix multiplication is not commutative except for: $3000, $2000 and $4000.
a) The multiplication of a matrix with an identity
a) Express the total amount of interest
matrix;
earned as the product of a row vector by a
i.e. A.I = I. A =A
column vector.
b) The multiplication of a matrix with its inverse;
b) Compute the total interest by matrix
i.e., A.A-1 = A-1.A = I
multiplication.
11/20/2022 11/20/2022
51 52
11/20/2022 11/20/2022
13
11/20/2022
53 54
Finfine Furniture Factory (3F) produces three types If the cost of each chair (A, B and C) is
of executive chairs namely A, B and C. The
Birr 1000, 2000 and 3000 respectively,
following matrix shows the sale of executive chairs
in two different cities. and the selling price is Birr 2500, 3000
and 4000 respectively;
a) Find the total cost of the factory for the
total sale made.
b) Find the total profit of the factory.
11/20/2022 11/20/2022
55 56
11/20/2022 11/20/2022
14
11/20/2022
Special pro…..
57 58
11/20/2022 11/20/2022
3. In many instances for two matrices, A & B, the 4. Another un usual property of matrix multiplication
product AB may be defined while the product BA is that the product of two matrices can be zero
is not defined or vice versa. even though neither of the two matrices themselves
are zero:
In some special cases, AB does equal BA. In
we can’t conclude from the result AB = 0 that at least
such special cases A & B are said to be
one of the matrices A or B is a zero matrix
commute.
11/20/2022 11/20/2022
15
11/20/2022
5. Also we can’t, in matrix algebra, necessarily If A is a square matrix of order n, then a square
conclude from the result AB = AC that B= C even if A matrix of its inverse (A-1) of the same order n is said
0. to be the inverse of A, if and only if A x A-1 = I =
Thus the cancellation law doesn’t hold, in general, in A-1 x A
matrix multiplication Two square matrices are inverse of each other, if
their product is the identity matrix.
AA-1 = A-1 A = I
Not all matrices have an inverse. In order for a
matrix to have an inverse, the matrix must, first of
all, be a square matrix.
11/20/2022 11/20/2022
Still not all square matrices have inverse. Lets begin by considering a tabular format where
If a matrix has an inverse, it is said to be INVERTIBLE OR the square matrix A is AUGMENTED with an identity
NON-SINGULAR.
A matrix that doesn’t have an inverse is said to be singular. matrix of the same order as A / I i.e. the two
An invertible matrix will have only one inverse; that is, if a matrices separated by a vertical line
matrix does have an inverse, that inverse will be unique. -1
Now if the inverse matrix A were known, we could
Note:
a) Inverse of a matrix is defined only for square matrices multiply the matrices on each side of the vertical line
b) If B is an inverse of A, then A is also an inverse of B by A-1 as
c) Inverse of a matrix is unique AA-1 / A-1 I
d) If matrix A has an inverse, A is said to be invertible & not
all Square matrices are invertible.
11/20/2022 11/20/2022
16
11/20/2022
67 68
11/20/2022 11/20/2022
17
11/20/2022
11/20/2022 11/20/2022
11/20/2022 11/20/2022
18
11/20/2022
11/20/2022 11/20/2022
11/20/2022 11/20/2022
19
11/20/2022
77 78
11/20/2022 11/20/2022
79 80
11/20/2022 11/20/2022
20
11/20/2022
81 82
11/20/2022 11/20/2022
83 84
11/20/2022 11/20/2022
21
11/20/2022
MATRIX APPLICATIONS
Inverse method:
85
I. n by n systems 86
11/20/2022 11/20/2022
22
11/20/2022
89 90
Step 2. Find inverse of the coefficient matrix Step 3. Multiply the coefficient inverse with the vector
of constant
Now we are familiar how to find an inverse for any
square matrix.
Assuming once first method find the inverse for
matrix
11/20/2022 11/20/2022
91 92
11/20/2022 11/20/2022
23
11/20/2022
11/20/2022 11/20/2022
24
11/20/2022
97 98
11/20/2022 11/20/2022
99 100
Change first the primary diagonal entry Next change the remaining numbers in the
from the first row into positive one. first column into zero, this case number 2
Possible operation is exchange row one Now multiply the 1st row by –2 & add the
with row two. result to row –2
11/20/2022 11/20/2022
25
11/20/2022
101 102
Then proceed to column 2 and change the Now change the remaining number with in
primary diagonal entry i.e. –1 into 1 the same column (column –2) into zero i.e.
Multiply the 2nd row by –1 (-1R2) number 2
Multiply 2nd row by –2 and add the result
to the 1st row
11/20/2022
Therefore X = 2 and Y = 0 11/20/2022
103 104
26
11/20/2022
105 106
Note:
An equation is an expression that has an equal sign (=) in
between. For example, 4+3 = 7.
An expression consists of variables like x or y and constant
terms which are conjoined together using algebraic operators.
For example, 2x + 4y - 9 where x and y are variables and 9
is a constant.
As far as we look there is usually one solution to an equation.
But it is not impossible that an equation cannot have more than
one solution or an infinite number of solutions or no solutions at
all.
Having no solution means that an equation has no answer
whereas infinite solutions of an equation mean that any value
for the variable would make the equation true.
11/20/2022 11/20/2022
107 108
27
11/20/2022
109 110
Summarizing our results for solving an “n” by “n” system, 2. A row that is all zeros except in the constant column,
we start with the matrix. indicating that there are no solutions,
(A/B), & attempt to transform it into the matrix (I/C) one of
the three things will result.
1. an “n” by “n” matrix with the unique solution.
11/20/2022 11/20/2022
111 112
11/20/2022 11/20/2022
28
11/20/2022
11/20/2022 11/20/2022
115 116
11/20/2022 11/20/2022
29
11/20/2022
3. A matrix in a form different from (1) & (2), Our attempts to transform (A/B) into (I/C) in
indicating that there are an unlimited number the case where m < n will result in:
of solutions 1. A raw which is all zeros except in the constant
columns, indicating that there are no solutions, or
2. A matrix in a form different from number one
above indicating that there are an unlimited number
of solutions.
“Every system of linear equations has either No
solution, Exactly one solution or infinitely many
11/20/2022 solutions.” 11/20/2022
Example
Solve the following systems of linear equations Solution for an “n” by “n” system
119 120
11/20/2022 11/20/2022
30
11/20/2022
Solution … Solution …
121 122
11/20/2022 11/20/2022
11/20/2022 11/20/2022
31
11/20/2022
11/20/2022 11/20/2022
Word problems
127 128
Steps
1. Represent one of the unknown quantities by a letter
usually X & express other unknown quantities if there is
any in terms of the same letter like X1, X2 etc
2. Translate the quantities from the statement of the
problem in to algebraic form & set up an equation
3. Solve the equation (s) for the unknown that is
represented by the letter & find other unknowns from the
solution
4. check the findings according to the statement in the
problem
11/20/2022 11/20/2022
32
11/20/2022
Example … Solution …
131 132
33
11/20/2022
133 134
11/20/2022 11/20/2022
Example 3: Solution …
135 136
34
11/20/2022
137 138
11/20/2022 11/20/2022
1. A certain manufacturer produces two product P & q. Each unit This model is a forecasting
of product P requires (in its production) 20 units of row model.
material A & 10 units of row material B. each unit of product
of requires 30 units of raw material A & 50 units of raw Probabilistic (stochastic)
maternal B. there is a limited supply of 1200 units of raw model.
material A & 950 units of raw material B. How many units of
P & Q can be produced if we want to exhaust the supply of A Russian Mathematician
raw materials? : Ans. 45 units of P and 10 units of Q called Andrew Markov
2. Attendance records indicate that 80,000 South Koreans around 1907 develops this
attended the 2002 world cup at its opening ceremony. Total model.
ticket receipts were Birr 3,500,000. Admission prices were Markov chains are models,
Birr 37.5 for the second-class and Birr 62.50 for the first
class. Determine the number of South Koreans who attended which are useful in studying
the football game at first class and second class. the evolution of certain
11/20/2022 systems over repeated trials. 11/20/2022
35
11/20/2022
These repeated trials are often successive time periods 1. The system condition (outcome) state in any given
where the state (outcome condition) of the systems in any period depends on its state in the Preceding period
particular time period can’t be determined with certainty. & on the transition probabilities
Therefore, a set of transition probabilities is used to 2. The transition probabilities are constant overtime
describe the manner in which the system makes transition 3. Change in the system will occur once & only once
from one period to the next. each period eg. If it’s a week, its only once in a
Hence,. We can predict the probabilities of the system week
being in a particular state at a given time period. 4. The transition period occurs with regularities
We can also talk about the long run or equilibrium or * if we start with days, we use the day until we reach
steady state. our end.
11/20/2022 11/20/2022
36
11/20/2022
This probability is known as transition The probabilities of the system being in any
1.
probability, symbolized by Pij. state at any given future time period
It is the likelihood that the system which is 2. The long run (equilibrium) or steady state
currently in state i will move to state j in the probabilities.
next period. The set of transition probabilities are
From these inputs the model makes two necessary for both prediction (time period n, &
predictions usually expressed as vectors. steady state), but the initial state is needed for
only the first prediction.
11/20/2022 11/20/2022
Example
147 148
11/20/2022 11/20/2022
37
11/20/2022
Solution… Solution …
149 150
11/20/2022 11/20/2022
11/20/2022 11/20/2022
38
11/20/2022
11/20/2022 11/20/2022
155 156
11/20/2022 11/20/2022
39
11/20/2022
Prediction: Exercises
157 158
Long run: only the transition matrix 1. A division of the ministry of public health has conducted
At specified time:- the transition matrix & a simple survey on the public attitude to wards smoking .
From the results of the survey the department concluded
state vector. Hence unless the transition
that currently only 20% of the population smokes
matrix is affected, the long run state will cigarette & every month 10% of non-smokers become
not be affected. smokers where as 5% of smokers discontinue smoking.
Moreover, we can’t know the number of Required:
years, weeks to attain the long run state / 1. Write the current & transition matrices
point but we can know the share 2. What will be the proportion of the non-users (non-
smokers) & users (smokers) in the long run
11/20/2022 11/20/2022
Solution
159 160
11/20/2022 11/20/2022
40
11/20/2022
Exercise Solution
161 162
2. A population of 100,000 consumers make the following 2) Given: 20,000 purchase brand A
purchases during a particular week: 20000 purchase Brand A,
35,000 Brand B & 45000 purchase neither Brand. From a 35,000 purchase brand B
market study, it is estimated that of those who purchase Brand
A, 80% will purchase it again next week, 15% will purchase 45,000 purchase neither brand
brand B next week, & 5% will purchase neither brand. Of Total consumers = 100,000 (20,000 + 35,000 + 45,000)
those who purchase B, 85% will purchase it again next week,
12% will purchase brand A next week, & 3% will purchase Let VA represents the share of brand A purchasers
neither brand. Of those who purchase neither brand, 20% will VB represents the share of Brand B purchasers
purchase A next week, 15% will purchase Brand B next week,
& 65% will purchase neither brand next week. If this VN represent the share of neither brand purchasers
purchasing pattern continues, will the market stabilize? What
will the stable distribution be?
Yes. The share of A, B and C is = (0.4 0.5 0.1)
respectively 11/20/2022 11/20/2022
Solution …. 2
163 164
41
11/20/2022
11/20/2022 11/20/2022
11/20/2022 11/20/2022
42
11/20/2022
11/20/2022 11/20/2022
43
11/20/2022
Solution …3 Solution …3
173 174
11/20/2022 11/20/2022
11/20/2022 11/20/2022
44