Topic2 Matrices
Topic2 Matrices
Introduction
Matrix algebra is an important tool of decision making in the problems of business and
economics under the assumptions of linearity.
Objectives
Objectives by the end of this topic you should be able to:
i) Define and explain the various types of matrices
ii) undertake basic operations of matrix algebra
iii) apply algebra in solution of simultaneous linear equations
iv) evaluate the use matrix algebra in various managerial situations
ii) do matrices operations
iii) apply matrices in solving business problems
Learning activities
Learning Activity 2.1: Reading
Read the provided topic notes on matrices. You have also been provided some links to the
mathematics for business resources.
Learning Activity 2.2: topic questions.
Attempt the topic questions at the end of the topic
Assessment
The attempted topic questions in activity 2.2 will be graded
Topic Resources
Attached topic resources
URL Links
https://www.researchgate.net/publication/
281838644_An_Introduction_to_Business_Mathematics/download
Sir. Moses@Zetech
Topic 2 Notes.
MATRICES
A matrix is a rectangular array of items or numbers. These items or numbers are arranged in
rows and columns to represent some information.
The position of an element in one matrix is very important as well be seen later; therefore, an
element is located by the number of the row and column which it occupies.
The size of a matrix is defined by the number of its rows (m) and column (n).
are (2 x 2) and (3 x 3) matrices since A has 2 rows and 2 columns and B has 3 rows and 3
columns.
A matrix A with three rows and four columns is given by one of:
Properties of matrices
Equal Matrices
Two matrices A and B are said to be equal, that is
If and only if they are identical if they both have the same number of rows and columns and
the elements in the corresponding locations in the two matrices should be the same, that is, a ij
= bij for all i. And j.
Example
Sir. Moses@Zetech
Column Matrix or column vector
A column matrix, also referred to as column vector is a matrix consisting of a single column.
For example, x =
Row matrix or row vector
It is a matrix with a single row
For example,
Transpose of a Matrix
The transpose of an mxn matrix A is the nxm matrix A T obtained by interchanging the rows
and columns of A.
A = aij
Example
Find the transposes of the following matrices
Sir. Moses@Zetech
Solution
Square Matrix
A matrix A is said to be square when it has the same number of rows as columns
e.g.
2 5
A= 37 is a square matrix of order 2
Diagonal matrices
It is a square matrix with zeros everywhere in the matrix except on the principal diagonal
e.g.
[ ]
1 0 0
[ ]
I 2= 1 0
0 1
and I3 = 0 1 0
0 0 1
2 × 2 unit matrix 3 × 3 unit matrix
Sir. Moses@Zetech
Sub matrix
The sub matrix of the matrix A is another matrix obtained from A by deleting selected row(s)
and/or column(s) of the matrix A.
OPERATION ON MATRICES
Matrix addition and subtraction
We can add any number of matrices (or subtract one matrix from another) if they have the
same sizes. Addition is carried out by adding together corresponding elements in the
matrices. Similarly, subtraction is carried out by subtracting the corresponding elements of
two matrices as shown in the following example
Example: Given A and B, calculate A + B and A – B
If it is assumed that A, B, C are of the same order, the following properties are fulfilled:
a) Commutative law: A+B =B+A
b) Associative law: (A + B) + C = A + (B + C) = A + B + C
Sir. Moses@Zetech
Example
Matrix Multiplication
a) Multiplication of two vectors
Let row vector A represent the selling price in shillings of one unit of commodity P, Q, R respectively
and let column vector B represent the number of units of commodities P, Q, R sold respectively. Then
the vector product A B will be equal to the total sales value
i. e. A B =Total sales value
Rules of multiplication
i. The row vector must have the same number of elements as the column vector
ii. The first vector is a row vector and the second is a column vector
iii. The corresponding elements in each vector are multiplied together and the results
obtained are added. This addition is always a single number
Going back to the example given before
Sir. Moses@Zetech
ii. The general method of multiplication is that the elements in row m of the first
matrix are multiplied by the corresponding elements in columns n of the second
matrix and the products obtained are then added giving a single number.
We can express this rule as follows
Let A =
Then A B = D =
A = 2 x 2 matrix B = 2 x 3 matrix D = 2 x 3 matrix
Where
d11 = a11 b11 + a12 b21
d12 = a11 b12 + a12 b22
Example I
Example II
Matrix X gives the details of component parts used in the make-up of two products P 1 and P2
matrix Y gives details of products made on each day of the week as follows:
Matrix Y
Products
P 1 P2
[]
Matrix X Mon 1 2
Parts Tues 2 3
A B C Wed 3 2
Products
[
P1 3 4 2
P2 2 5 3 ] Thur
Fri
2
1
2
1
Use matrix multiplication to find the number of component parts used on each day of the
week.
Solution:
After careful consideration, it will be easy to decide that the correct order of multiplication is
YXX (Note the order of multiplication). This multiplication is compatible and also it gives
the desired answer.
Sir. Moses@Zetech
5 x 2 matrix 2 x 3 matrix = 5 x 3 matrix
Interpretation
On Monday, number of component parts A used is 7, B is 14 and C is 8. in the same way, the
number of component parts used for other days can be interpreted.
Determination of a 2 x 2 matrix
i. Determinant of a 4 x 4 matrix
Sir. Moses@Zetech
Simplify 3 x 3 determinants as in ii and then evaluate the 4 x 4 determinants.
Inverse of a matrix
If for an n (n square matrix A, there is another n (n square matrix B such that there product is
the identity of the order n X n, In, that is A X B = B X A = I, then B is said to be inverse of
A. Inverse if generally written as A-1
Hence AA-1 = I
Note: Only non-singular matrices have an inverse and therefore the inverse of a singular
matrix is non-defined.
Sir. Moses@Zetech
Similarly
Hence the cofactor of element a 11 is m11 = -3, cofactor of a12 is –m12 = +2 the cofactor of
element a13 is +m13 = 3 and so on.
Matrix of cofactors of A =
=
The determinant of a n×n matrix
Sir. Moses@Zetech
The determinant of a n×n matrix can be calculated by adding the products of the element in
any row (or column) multiplied by their cofactors. If we use the symbol ∆ for determinant.
Then ∆ = aA + bB + cC
or
= dD + eE + fF e.t.c
i.e. change rows into columns and columns into rows (transpose)
is written as
Where ∆ = aA + bB + cMC
50[/c=
The determinant of a n×n matrix
The determinant of a n×n matrix can be calculated by adding the products of the element in
any row (or column) multiplied by their cofactors. If we use the symbol ∆ for determinant.
Then ∆ = aA + bB + cC
or
Sir. Moses@Zetech
= dD + eE + fF e.t.c
i.e. change rows into columns and columns into rows (transpose)
is written as
Where ∆ = aA + bB + cC
Hence inverse of
is found as follows
∆ = (4 –3) + (2 2) + (3 ( 3) = 1
A = -3 B=2 C=3
D=9 E = -6 F = -8
G = -16 H = 11 I = 14
Solution of simultaneous equations
In order to determine the solutions of simultaneous equations, we may use either of the
following 2 methods
i. The cofactor method
ii. Cramers rule
Sir. Moses@Zetech
The cofactor method
This method requires that we obtain
a) The minors and cofactors
b) The adjoint of the matrix
c) The inverse of the matrix
d) Multiply the original by the inverse on both sides of the matrix equation
Example
Solve the following
a) 4x1 + x2 – 5x3 = 8
-2x1 + 3x2 + x3 = 12
3x1 – x2 + 4x 3 = 5
Solution
a) From a, we have
A X b
We need to determine the minors and the cofactors for the above matrix
Definition
A minor is a determinant of a sub matrix obtained when other elements are detected as shown
below.
A cofactor is the product of (-1) i + j and a minor where
i = Ith row i = 1, 2, 3 …….
j = Jth row j = 1, 2, 3 …….
Sir. Moses@Zetech
Cofactor of 3 (a31) = (-1) 3+1
=
Therefore
Sir. Moses@Zetech
by multiplying the inverse on both sides of * we have,
X1 = 2, X2 = 5, X3 = 1
Sir. Moses@Zetech
Solutions of x1 and x2 obtained this way are said to have been derived using Cramers rule,
practice this method over and over to internalize it. It is advisable for exam situation since it
is shorter.
Example
Solve the following systems of linear simultaneous equations by Cramers’ rule:
i) 2x1 – 5x2 = 7
x1 + 6x2 = 9
ii) x1 + 2x2 + 4x3 = 4
2x1 + x3 = 3
3x2 + x3 = 2
Solutions
i. 2x1 – 5x2 = 7
x1 + 6x2 = 9
can be expressed in matrix form as
Sir. Moses@Zetech
and by cramers’ rule
Sir. Moses@Zetech
Therefore x = 2 y=3
Topic questions
1. Let A =
Find A2
2. A florist sells flowers in dozens and each dozen consists of two varieties namely; white roses and
red roses. White roses cost sh.75 each whereas red roses cost sh.150 each. The selling prices for white
roses and red roses are sh.105 and sh.175 each respectively.
Required:
Given that the daily total cost per dozen of the roses is sh.1200 and assuming that all roses bought in a
day are sold, use matrix algebra to determine:
(i). the number of white roses and red roses that should be packed in each dozen.
Sir. Moses@Zetech
(ii) The daily profit earned from each dozen of the flower.
References
A Asano (2013) An Introduction to Mathematics for Economics (Cambridge: Cambridge
University Press) ISBN–13: 9780521189460
Budnick F.S 2001: Applied mathematics for business, economic and social sciences.
E T Dowling (2009) Schaum’s Outline of Mathematical Methods for Business and
Economics
(New York: McGraw–Hill) ISBN–13: 9780071635325
E T Dowling (1990) Schaum’s Outline of Calculus for Business, Economics, and the Social
Sciences (New York: McGraw–Hill) ISBN–13: 9780070176737
Larson, R. E. and Hostetlerk, R. P., 1993. Precalculus – A Graphic Approach; D. C Health
and Company,
Margaret, L. L., Hornsby, E. J. and Miller, C. D. 1995. Introductory Algebra; Harper
Collins
College Publishers,
Sir. Moses@Zetech