Understanding Matrix Operations
Understanding Matrix Operations
APPLICATIONS
A matrix is a rectangular array of numbers, parameters, or
am1 a m2....................amn
If a matrix has m rows and n columns thus, m by n is called order (dimension) of a matrix
In matrix A, the subscript numbers represents the row and the column on which an entry (member) is located. On the
matrixA , from the above example;
a11 means, ‘a’ is located on the first row and first column of matrix A,
a21 means ‘a’ is located on the second row and first column of matrix A,
amn means ’a’ is located on the mthrow and nthcolumn.
Example:
Equal Matrix: two matrices are equal, if and only if, they have the same order and each entry in one
matrix is identical with the corresponding entry of the other matrix. For two matrices to be equal,
they must be of the same size and have all the same entries in the same places.
E.g. Y = 1 2 Z= 1 2
3 4 3 4
Cont.…
t
Symmetric matrix: a matrix is said to be symmetric if A = A .
E.g. A = 8 2 1
2 3 4
1 4 5
N.B: Every scalar matrix is a diagonal matrix; whereas a diagonal matrix need not be a scalar matrix. Every unit
matrix is a scalar matrix; whereas a scalar matrix need not be a unit matrix.
MATRIX OPERATIONS AND PROPERTIES
Matrix equality: two matrices are said to be equal if and only if they have the same dimension and
corresponding elements of each matrix are equal.
3 0 3 -4 3 0
E.g. A= 1 -4 B= 1 0 C= 1 -4
a. A ≠B; A = C; B ≠C.
Transpose of a matrix: If the rows and columns of a matrix are interchanged the new matrix is known as the
transpose of the original matrix. If the original matrix is denoted by A, the transpose is denoted by A or At.
Transposition means interchanging the rows or columns of a given matrix. That is, the rows become columns and
the columns become rows.
E.g B=3 5 6 9
0 11 13 8
6 8 3 4
The transpose of matrix B, denoted by B' or Bt is given as:
3 0 6
Bt = 5 11 8
6 13 3
9 8 4
The dimension of B is changed from 3x4 to 4x3.
4x3.
A= 1 3 A = 1 0 2
0 4 3 4 8 (2x3)
2 8 (3x2)
Properties of the transpose
The following properties are held for the transpose of a matrix:
Property 1: (A ) =A
tt
Addison and subtraction of matrices: Two matrices A and B can be added or subtracted if and only if they have
the same order, which is the same number of rows and columns. That is, the number of columns of matrix A is
equal to the number of columns of matrix B, and the number of rows of matrix A is equal to the number of rows
of matrix B. Two matrices of the same order are said to be conformable for addition and subtraction. The sum
and subtraction of two matrices of the same order is obtained by adding together or subtracting corresponding
elements of the two matrices.
If A= (aij) and B= (bij), then C = A+B is the matrix having a general element of the form; Cij = aij + bij. D = A-B → Cij
= aij - bij .
Example:
A= 2 0 B= 3 6
-5 6 4 1
2+3 0+6 5 6
1 5 10 2
If A= 6 7 B=
8 9 8 6
A+B is not defined, since orders of A and B are not the same
Properties of matrix addition
a. Commutative law: A+B = B+A
b. Associative law: (A + B) + C = A + (B + C)
c. Existence of identity: A+ 0 = 0 + A = A.
NB:The subtraction (difference) of two matrices of the same order is obtained by subtracting corresponding elements.
A-B ≠ B-A, thus matrix subtraction is not commutative.
(A-B) –C ≠ A- (B-C); matrix subtraction is not Associative.
Matrix Multiplication
Two matrices A and B can be multiplied together to get AB if the number of columns in A is equal to the number of
rows in B
A B
nx s
mxn
Inner dimension
Outer dimension
a. If two matrices have the same inner dimension, then we can get the product of the matrices. The resulting matrix
will have a dimension equal to the outer dimensions of the two matrices. There are two types of matrix
multiplication: multiplication by a scalar and multiplication by a matrix.
i. Scalar multiplication: in this type of multiplication, we multiply the scalar by each element of the given matrix.
3 4 0
E.g. If B = 1 2 5
3 4 1
3 4 0 15 20 0
(5). B = (5) 1 2 5 = 5 10 25
3 4 1 15 20 5
Properties of matrix multiplication
Property 1: The distributive law is valid in matrix multiplications.
A (B+C) = AB + AC
(B+C)A = BA + CA
Property 2: The associative law is valid in matrix multiplication.
(AB)C = A(BC) = ABC
Property 3: If I is an identity matrix, then;
AI = IA =A
In general, as long as the order of the matrix is maintained, matrix multiplication is associative, but matrix
multiplication is not commutative except for:
The multiplication of a matrix with an identity matrix;
i.e. A.I = I. A =A
The multiplication of a matrix with its inverse;
i.e., A.A-1 = A-1.A = I
Example:
a. Interest at the rates of 0.06, 0.07 and 0.08 is earned on respective investments of $3000, $2000 and $4000.
1. Express the total amount of interest earned as the product of a row vector by a column vector.
2. Compute the total interest by matrix multiplication.
Solution:
Given: Let the interest rate matrix be I and investment matrix be B.
1) I = 0.06 0.07 0.08 (1x3 3000
B= 2000
4000 (3x1)
Total interest = (Interest rate matrix) (Investment matrix) = I.B.
3000
I.B = 0.06 0.07 0.08 2000
4000
= (0.06x 3000) + (0.07x2000) + (0.08x4000) Total interest = 640 (1x1)
= $ 640
Example 2: Let a firm manufacturing office furniture finds that it has the following variable
costs, in dollars
Desk Chair Table Cabinet
50 20 15 25 Material
V= 30 15 12 15 Labor
30 15 8 20 Overhead
That is, the manufacture of each desk requires materials costing $50, labor costing $30, and overhead of $30. Each
chair requires material costing $20, and so on.
An order for 5 desks, 6 chairs, 4 tables, and 12 cabinets has just been received. This information is organized in a
column vector, as
5 Desks
Q= 6 Chairs
4 Tables
12 Cabinets
The total material, total labor, and total overhead cost associated with filling this order can be computed as follows:
50 20 15 25 5 730 Material
C = VQ= 30 15 12 15 6 = 468 Labor
30 15 8 20 4 512 Overhead
1) TG Furniture Factory (3F) produces three types of executive chairs namely A, B and C. The
following matrix shows the sale of executive chairs in two different cities.
Executive chairs
A B C
C1 400 300 200
Cities
C2 300 200 100 (2x3)
If the cost of each chair (A, B and C) is Birr 1000, 2000 and 3000 respectively, and the selling price is Birr 1500,
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.
Solution:
Given: Let the quantity matrix be q
Let the price matrix be p
Let the unit cost matrix be v;
1. 400 300 200 1500 1000
q = 300 200 100 p= 3000 V = 2000
4000 3000
Total cost = (unit cost) (Quantity)
= 400 300 200 1000
300 200 100 2000
3000
= 1,600,000
1,000,000
Total cost = Birr 1,600,000 + Birr 1,000,000 = Birr 2,600,000
Total profit =Total Revenue - Total Cost
b)
Total Revenue = (price) (quantity)
= 3 2 1 -2 1 0
1 1 -1 3 = 0 1
Example: Find the inverse of 2 2 3
B= 0 1 1
4 0 3
1 0 0 3/ 2 -3 -1/ 2
0 1 0 2 -3 -1
0 0 1 -2 4 1
Thus; 3/ 2 -3 -1/ 2
B -1 = 2 -3 -1
-2 4 1
MATRIX APPLICATIONS
SOLVING SYSTEM OF LINEAR EQUATIONS
1 2 -3 X 11
3 2 1 Y = 1
2 1 -5 Z 11
Z -1/ 26 3/ 26 -2/ 13 11
x -1
z -2
B)The Gauss-Jordan Method:
You have noticed that bottom row entries are all zeros except the constants’ column (which is -
5/ 2) resulting in no solution case
ii) Number of equations (m) greater than number of variables (n)
The intention to convert A / B → I / S will result either in:
1. An n by n identity matrix above m-n bottom rows that are all zeros,
giving the unique solution.
2. A row that is all zeros except in the constants’ column indicating that
there are no solutions.
3. A matrix in a form different from (1) and (2) indicating an unlimited
solution.
Example-1
2x1 -3x2 = 6
x1 +5x2 = 29
3x1 - 4x2 = 11
Solution:
1st → write the expanded form;
2 -3 x1 6
= 1 5 . = 29
3 -4 x2 11
…………………………………………………………...
4R2+R3;
1 0 9
0 1 4 ↔ Unique solution
0 0 0 Thus; x1 = 9, and x2 = 4
iii) Number of equations (m) less than number of variables (n)
The attempt to convert matrix (A/B) (I/S), when m
<n, will result either in:
1. A row which is all zeros except in the constant
column, indicating that there are no solutions.
2. A matrix in a form different from (1), indicating that
there are unlimited number of solutions.
Example;
4x1+ 6x2- 3x3= 12
6x1+9x2- 9/2x3= 20
Cont.…
Solution:
1st→ 4 6 -3 12
6 9 -9/ 2 20
2nd→R1/ 4;
1 3/ 2 -3/ 4 3
6 9 -9/ 2 20
3rd→-6R1+R2;
1 3/ 2 -3/ 4 3
0 0 0 2 ↔ No solution case!
Solving Word Problems
Steps:
up an equation.
problem.
Example-1
A manufacturer produces two products p and q. Each unit of
and 950 units of raw material B. How many units of P and q can
.................................................................................
1 0 45
0 1 10
x = 45 x = 45 units
y 10 y = 10 units
Step -4: Cross- Checking
20x+30y =1200 10x+50y = 950
20(45)+30(10) =1200 10(45)+50(10)=950
1200 =1200 950 = 950
Example -2
Attendance records indicated that 1600 people attended a football
game and the total ticket receipt was 2800 birr. The admission price
was 1.50 birr for students and 2.50 birr for others. Determine the
number of students and non-students who attended the game.
Solution:
Given: Attendants Total
Students Non-students receipt
Admission price ……. 1.50 birr 2.50 birr 2800 birr
Number of People - - 1600
Step -1: Let S and N represent the number of students and non –
students who attended the same respectively.
Step- 2: Develop the equations;
Number of people: S+N = 1600
Receipt : 1.50 S+ 2.50 N = 2800
Cont..
Step- 3: Apply the Gaussian method;
1 1 . S = 1600
1.5 2.5 N 2800
A / B → I / S
1 1 1600
1.5 2.5 2800
-1.5 R1 + R2 ;
1 1 1600
0 1 2800
-R2 + R1 ;
1 0 1200 Number of students(S) = 1200.
0 1 400 Number of non-students (N) = 400
END OF THE CHAPTER
THANKYOU INADVANCE!!!
CHAPTER- 4
INTRODUCTION
MATHEMATICS OF FINANCE
Mathematics of finance is concerned with the analysis of time-value
of money.
The fundamental premise behind such analysis is the concept that
entails the value of money changes overtime.
Putting it in simple terms, the value of one birr today is not the
same after a year.
Suppose, if you deposit Birr 1000 at a bank for some period, you will
find the sum grows to a higher sum at the time of withdrawal.
The rationale behind is that the banks reinvest the deposits received at
some other profitable ventures and hence, it is using depositors’ money.
As a result, it pays interest on depositors’
money as compensation.
Thus, in one way or another as value of money
changes overtime we find a difference between
the present and future value of money.
In sum, the difference arises because a rational
being is assumed to invest/use money available
on productive activity that result in a higher
future sum and, the difference between the
present and future value of money is referred to
as time-value of money.
Mathematics of finance has an important implication
in organizations as transactions and business
dealings are mostly pecuniary(financial matters).
Such matters as lending and borrowing money for
various purposes, leasing materials, accumulating
funds for future use, sell of bonds are some of the
cases that involves the concept of time value of
money, Likewise, finance mathematics is equally
important in our personal affairs.
For example, we might be interested in owning a house, in
financing our educational fees, having a car, having enough
retirement funds etc.
All these cases and others involve financial matter.
In doing so, the unit is organized in to three main sections.
The first section advances to our study of simple interest and, We
further explore about compound interest and annuities in the
second and third sections respectively
SECTION ONE: - SIMPLE INTEREST
year?
Solution
Given values in the problem
3 – Years loan = Principal = Birr 5000
Interest rate = i = 10% = 0.1
Number of years (n) = 3 years
a. I = p i n
I = 5000 x 0.1 x 3
I = Birr 1500
b. The amount to be repaid at the end of the third
year is the maturity (future) value of the specified
money (Birr 5000).
Accordingly, F = P + I
F = 5000 + 1500
F = Birr 6500
Or, using alternative approach,
F=P+I
Then, substitute I = P i n in the expression to obtain
F = P + Pin
F = P (1 + in)
Consequently, using this formula we can obtain
F = 5000 (1+ (0.1x3)
F = 5000 x 1.3
F = Birr 6500
Example 4.2
A person “lends” Birr 10,000 to a corporation by
purchasing a bond from the corporation. Simple
interest is computed quarterly (four times a year) at a
rate of 2% per quarter, and a check for the interest is
mailed each quarter to all bondholders. The bonds
expire at the end of 5 years, and the final check
includes the original principal plus interest earned
during the last quarter. Compute the interest earned
each quarter and the total interest, which will be
earned over the five-year life of the bonds.
Dear student, please try to solve before going to the solution part.
Solution
Given values in the problem, P = Birr 10,000 i = 2% per quarter n = 5
years
Required: Interest per quarter and interest over the five-year periods
Interest per quarter (one quarter) = Pin
= 10000 x 0.2 x 1
= Birr 200
There, at each quarter the interest earned on Birr 10,000 is Birr 200.
shall not make adjustment on the rate given as well as the period.
have to be consistent.
yearly rate will be 2x4 = 8%. By using this annual rate, we can
I = Pin
Where, P = Principal
F = Compound amount
A period, for this purpose, can be any unit of time.
within a year is/are used in order to find the interest rate per
and is compounded more than once a year, the interest rate per
the
m = compounded monthly = 12
i = j / m = 0.12 / 12 = 0.01
F.
Then, F = P (1 + i) n
= 30,000 (1.01)120
= 30,000 (1.01)120
Cont.
• Having the understanding of how compound interest
works and computation of future value, in
subsequent example, we will consider how to
determine the number of periods it will take for P
birr deposited now at i percent to grow to an
amount of F birr.
4.2.2 Present Value of a Compound Amount
As we have considered in the simple interest case and as
extended in the compound amount as well, future (maturity)
value is the value of the present sum of money at some future
date (time).
Conversely, present value (or simply principal) is the current
birr or dollar value equivalent of the future amount.
It is the sum of money that is invested initially and that is
expected to grow to some amount in the future at a specified
rate.
Cont..
If we put the present and future (maturity) values on a continuum as shown below, we can
observe that they are inverse to one another. And, future value is always greater than the
present value or the principal since it adds/ earns interest over specified time-period.
0 1 2 3 . . . n
Present Value (P) Future Value
(Compound Amount)
Fn n
P Fn (1 i ) Fn P(1 i) n
(1 i) n
Cont..
Future value is obtained by compounding
technique and the expression (1 + i) n
is called
compound factor.
Present value is obtained by discounting
techniques and the expression (1 + i) -n
is referred
to as the compound discount factor.
The formula for present value of compound amount
is simply derived from compound amount formula
by solving for P.
Examples 4.11
ii. The time between payments is constant such as a year, half a year,
interest.
Birr 1000
Birr 1100
Birr 1210
Birr 1331
Total Future Value = Birr 4641
The first payment earns interest for the remaining 3 periods. Therefore, the compound amount
of it at the end of the term of annuity is given by,
F = P (1 + i) n = 1000 (1 + 0.1)3 = Birr 1331
In the same manner, the second payment earns interest for two periods (years). So,
F= 1000 (1+0.1)2 = 1210
The 3rd payment earns interest for only one period. So,
F=1000(1+0.1)1 = 1100
No interest for the fourth payment since it is made at the end of the term. Thus, its value is
1000 itself. In total, the maturity value amounts to Birr 4641.
This approach of computing future value of ordinary annuity is complex and may be tiresome in
case the term is somewhat longer. Thus, in simple approach we can use the following formula
for sum of ordinary annuity (Future Value).
(1 i) n - 1
Fn R
i
(1 0.1) 4 - 1
F4 1000
0.1
Solution
The known values in the problem are,
R = 1000, j = 6% = 0.06 , m = semi-annual = twice a year
i = 0.06 ÷ 2 = 0.03
n =4
(1 i ) n 1
F4 =? F4 =R
i
(1 0.03) 4 1
= 1000
0.03
= 1000 (1.03) 4 1 / 0.03
= 1000 x 4. 183627
F = Birr 4183.63
#2 Solution
R = Birr 50
t = 6 years
m = quarterly = 4 times a year
n = t x m = 6 x 4 = 24 quarters
j = 6% = 0.06
i = j ÷m = 0.06 ÷ 4 = 0.015
(1 0.015) 24 1
F 24 = 50
0.015
= 50 (1.01524 1) 0.015
F 24 = Birr 1431.68
i
(1 i ) n 1
That is,
i (1 i) n 1 i
Fn n R
(1 i) 1 i (1 i) n 1
Cont..
Then, is the sinking found formula.
i
R Fn n
(1 i) 1
i
R Fn n
(1 i ) 1
0.08
R 12,000,000 10
(1 0.08) 1
0.08
R 12,000,000 10
(1.08) 1
0.08
R 12,000,000
1.158925
R = B irr 828,353.86
Cont..
On the other hand, the amount of interest, I, is obtained by computing the difference between
the maturity value (Fn =12,000,000) and the sum of all periodic payments made. Thus,
I = Fn - R (10)
= 12,000,000 – 823,353.86 (10)
= 12,000,000 – 8,283,538.6
= Birr 3,716,461.4
4.3.3 Mortgage Payments and Amortization
Mortgage payment is an arrangement where by regular
zero.
1 (1 i) n
P R
i
Now, we progress to isolate R on one side. It involves solving for R
in the above present value of ordinary annuity formula. Hence,
multiply both sides by the interest rate i to obtain:
P i = R [1 – (1 + i) –n]
Further, we divide both sides by [1 – (1 + i) –n
] and the result will
be the mathematical expression or formula for computing
mortgage periodic payments as follows.
i
R P n
1 (1 i )
i
R P n
1 (1 i )
I = Birr 6021.405
THE END!!!