0% found this document useful (0 votes)
182 views38 pages

Matrix Algebra: Types and Applications

This document provides an introduction to matrix algebra. It defines what a matrix is and explains that a matrix is a rectangular arrangement of numbers or variables that has no numerical value itself but rather stores information systematically. It then discusses various types of matrices including row matrices, column matrices, null matrices, square matrices, diagonal matrices, scalar matrices, identity matrices, and triangular matrices. It also covers basic matrix algebra topics such as equality of matrices, addition of matrices, and matrix multiplication.

Uploaded by

Legese Tusse
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
182 views38 pages

Matrix Algebra: Types and Applications

This document provides an introduction to matrix algebra. It defines what a matrix is and explains that a matrix is a rectangular arrangement of numbers or variables that has no numerical value itself but rather stores information systematically. It then discusses various types of matrices including row matrices, column matrices, null matrices, square matrices, diagonal matrices, scalar matrices, identity matrices, and triangular matrices. It also covers basic matrix algebra topics such as equality of matrices, addition of matrices, and matrix multiplication.

Uploaded by

Legese Tusse
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 38

UNIT ONE: MATRIX ALGEBRA

1.1 INTRODUCTION
Matrix is a rectangular arrangement of numbers or variables. A matrix has no numerical
value; it simply stores information in a systematic way. In this unit, you will learn the algebra
of matrix and its applications. With respect to applications, major emphasis is excreted on
solving system of linear equation, Markov process and input-output mode.
1.2 DEFINITION
A matrix is a rectangular array (or arrangement) of numbers (or variables) arranged in such a
way that each number has a definite position allotted to it.
If a matrix has “m” rows and “n” columns, “m x n” is called the order or the dimension of the
matrix. Read “m x n” as m by n.

The a11, a12 …

are called elements of the matrix


This is m x n matrix. It has m number of rows and n number of columns.
Columns

Note that every element in the matrix has define location. For example, a 23 is in the second
row and third column. Where is a32 located? At the third row and 2nd column. As a conviction,
the first number represents the row and the second number represents the column.

Question: Given A =

a) What is the order of A? Answer 2 X 3


b) How much is a13 element ? Answer 7
c) How much is a22 element ? Answer 4

A matrix, by definition, is simply an arrangement of numbers and has no numerical value.


1.3 TYPES OF MATRICES

1
1.3.1 Row Matrix –A matrix which has exactly one raw is called a raw matrix or a row
vector; its dimension is 1xn.
Example
This is a raw vector of order one by four, (1 X 4). We can simply say “a row vector of order
four.”
Question: If A = (5 6 7), what is the order of A?
Answer: A row vector of order 3.
1.3.2 Column Matrix –A matrix which has exactly one column is called a column matrix or a
column vector; its dimension is m x 1.

Example is a column matrix (vector) of order three.

Question: If B = , what is the order of B?

Answer: B is a column matrix (vector) of order 4


1.3.3 Null or Zero Matrix –A matrix each of whose elements is zero is known as a null or
zero matrix.

Example is 2 x 3 null matrix.

1.3.4 Square Matrix –A matrix whose number of rows is equal to the number of columns is
called square matrix.

Example:
Example: is a 2 x 2 square matrix. It can simply be referred to as “a square matrix

of order two.”
Question: which of the following is not a square matrix?

a) b) c)

d)

Answer: C is not a square matrix because it has three rows but only two columns.
1.3.5 Diagonal Matrix –A square matrix whose every element other than the diagonal
elements is zero is known as a diagonal matrix.

If A = , elements a11, a22 and a33 are diagonal

elements of matrix A.

2
In order to classify a matrix as a diagonal matrix;
a) It should be a square matrix; that is its number of rows should be equal to its number
of columns, and
b) All the not-diagonal elements should be zero. Note that the diagonal elements
themselves may or may not be zero. What is required is that the non-diagonal elements b
zero.
Example

A= , B= , C =

A, B and C are diagonal matrices


Question: Which of the following matrices are not diagonal matrices?

A= B= , C =

, D=

Answer:
- A is not a diagonal matrix because a13, which is a not-diagonal element is not zero.
- B is a diagonal matrix because it is a square matrix and its every non-diagonal element
are zero.
- C is not a diagonal matrix because it is not a square matrix.
- D is a diagonal matrix because it is a square matrix and its every not-diagonal element
are zero.
1.3.6 Scalar Matrix –A diagonal matrix whose diagonal elements are equal is called scalar
matrix.
Therefore, a scalar matrix must be a) a square matrix, b) a diagonal matrix and c) all its
diagonal elements must be equal.
Example:

All the above matrices are scalar matrix. Question: Which of the followings is not a scalar
matrix?

3
A= B= C =

Answer: Both A and B are not scalar matrices because A is not a square matrix and a 23
element of B is not zero. Matrix C is a scalar matrix.
1.3.7 Identify (unit) Matrix –A scalar matrix whose every diagonal element is equal to one is
called Identity or Unit matrix. Identity matrix is a) square matrix, b) diagonal matrix, c) scalar
matrix, and d) all its diagonal elements equal to 1. Therefore, there is only one unit matrix for
each square order; thus it is unique.
Example:

A= , B= , C =

A is called identity matrix of order 2


B is called identity matrix of order 3
C is called identity matrix of order 4
Identity matrix has some similar characteristics as the number 1 in common algebra. If A is a
non-Zero (null) matrix and I is an identity matrix and if A and I are conformable for
multiplication, then
AxI=IxA=A

Example If A = and I= , then

A.I = = =

I.A = = =

Therefore, AI = IA = A
Reminder:
Reminder: The rule of matrix multiplication is discussed in 2.4.5 below.
1.3.8 Triangular Matrix –A matrix whose every element above (or below) the diagonal is
equal to zero is called triangular matrix. Specifically, a square matrix whose a ij = 0 wherever

4
i<j is called lower triangular matrix.
matrix. Analogously, a square matrix whose aij = 0 whenever i>j
is called upper triangular matrix.
matrix.
Example (1)

A= B =

C=

D= E=

All the above matrices are lower triangular matrixes because their elements above the
diagonal are equal to zero. Note that their a12, a13, a14 … a23, a24, a25 … a34, a35, a36 … are zero.
That is, every element whose row number is less than its column number (a ij, where i<j) is
equal to zero.
Example 2

A= , B =

C=

D= E=

All the above matrices are upper triangular matrices because their every element below the
diagonal is zero. Note that in each case a21, a31, a32, a41, a42, a43 … are equal to zero. That is aij =
0 whenever i>j.
Note that a square zero matrix (D) and identity matrix (E) can be classified as both upper and
lower triangular matrices because they fulfill both conditions.
Question: Which of the following matrices are not triangular and why?

A= B= C =

D=

Answer:
Answer: A is a lower triangular matrix
B is an upper triangular matrix
C is not a triangular matrix because it is not a square matrix
D is not a triangular matrix because a31 element is not zero.

5
Therefore, the answer is C and D.
1.4 ALGEBRA OF MATRICES
1.4.1 Equality of Matrices –Two matrices A and B are said to be equal if and only if:
a) A and B are of the same order, and
b) Every corresponding elements in A and B are same.
Therefore, a matrix is equal to itself only.
Examples:

a) If A = and B= , then

A = B because every element of A is equal to the corresponding element of B.

b) If M = and N= , then

M  N because the a22 element of M is l while the corresponding a 22 element of N is 2 and the
a23 element of M is 2 while the corresponding a23 element of N is 1.
Note that although every element of M is also element of N the two are not equal because of
the differences in the locations of the elements.
1.4.2 Addition of Matrices –Two or more matrices can be added if and only if they are of the
same order; otherwise, they are said to be non-conformable for addition. If they are
conformable for addition, their sum will be the matrices formed by adding each corresponding
element. If they are non-conformable for addition, the sum of the matrices does not exist.
Generally, if

A= and B =

Then

A+B=

Examples:
Examples:

1. If M = and N=

M + N does not exist because M is 2 x 3 while N is 2 x 2. They are said to be non-


conformable for addition.

6
2. If A = and B = , A and B are conformable for

addition
because both are of the same order, 2 x 3.

A+B= =

If two or more matrices, say A, B and C, are conformable for addition (that is if they are
of the same order), then:
i) Matrix addition is commutative
A+B=B+A
ii) Matrix addition is associative
(A + B) + C = A + (B + C) = A + B + C
iii) If 0 denotes a null matrix of the same order as that of A, then
A+0=0+A=A

Examples: Let A = , B= , C= , and O =

a) A + B = =

b) B + C =

c) (A + B) + C = + = =

d) A + (B + C) = + = =

e) A + B + C = + +

7
=

Therefore, (A + B) + C = A + (B + C) = A + B + C =

f) A + O = + = =

g) O + A = + = =

Therefore, A + 0 = 0 + A = A
If A + B = B + A = 0, then A is the additive inverses of B that of A.
Example:

Let A = and B= , then

A+B= =

B+A= =

A is additive inverse of B and B is additive inverse of A.

Check Your Progress Questions


1. Which of the following matrices are equivalent?

A= , B= , C =

2. Let M = , N= , and L =

Then find
i) M + N ii) M + L iii) N + M iv) N + L
1. B and C are equivalent

2. i) M + N = ii) M + L does not exist

iii) N + M = iv) N + L does not exist

8
1.4.3 Subtraction of Matrices –A matrix can be subtracted from another matrix if both are of
the same order; otherwise, they are said to be non-conformable for subtraction. If they are
conformable for subtraction, the difference between the two matrices will be the matrix
obtained by subtracting each corresponding element.
Generally, if

A= and B =

Then A – B =

B – A =

Example:

Let A = and B= , then

A–B= =

B–A= =

If 0 denotes a null matrix of the same order as the matrix A, then A – 0 = A and 0 – A = -A
(See the examples under 2.3.3 above.)
1.4.4 Multiplication of a Matrix by a Constant
It is possible to multiply a matrix by a constant number. In doing so, the constant multiplies
every element of the matrix. If K is a constant number, then:

K= =

Example: 2 = =

Prove yourself that the following statements are correct.


i) K (A+ B) = KA + KB

9
ii) (K1 + K2) A = K1 A + K2 A
iii) (K1.K2) A = K1 (K2.A)
1.4.5 Multiplication of Matrices
The product of two matrices, A and B, is defined only if the number column of A is the same
as the number of rows of B.
B. That is, in order to multiply two matrices, the first matrix must
have as many columns as the second matrix has rows. Matrices that fulfill this condition are
said to be conformable for multiplication.
multiplication. Otherwise, multiplication is impossible and the two
matrices are said to be non-conformable for multiplication.
If A is a matrix of order (m x n) and B is another matrix of order (n x p), then multiplying A
to B is possible because the number of columns of A is “n” which is the same as the number
of rows of B. The product matrix, AB, will be of (m x p) order. That is, the product matrix
will have the same number of rows as the first matrix and the same number of columns as the
second matrix.
Matrices A x B = AB
Orders mxn nx p = mxp

That n, the number of columns of A is the same to n, the number of rows of B confirms is AB
exists and therefore A and B are conformable for multiplications. AB will be a matrix of order
m x p.
Question:
If A is a 3 x 4 matrix and B is a 4 x 5 matrix, then what will be the order of a) AB, and b) that
of BA?
Answer:
a) AB exists because the number of columns of A is 4, which is the same as the number
of rows of B. Therefore, AB will have same number of rows as A (3) and the same
number of columns as B (5), which means the order of AB is 3 x 5.
Matrix A x B = AB
Order 3x4 4x5 3x5
b) BA does not exist because the number of columns of B is 5, which is different from
the number of rows of B(3). Thus, B and A are not conformable for multiplication
Matrix B x A =
Order 4x5 3x4

10
1.4.5.1 Rules of Matrix Multiplication:
Multiplication: In multiplying two matrices (that are conformable
for multiplication), you have to employ the strict rule of adding the products of elements of
the rows of the first matrix and elements of the columns of the second matrix.
matrix. That is, you
“go” along the rows of the first matrix and down the columns of the second matrix. Columns
of the product matrix.

The sum of products of elements of the 1st row of the 1st matrix and elements of the 1st column
of the 2nd matrix forms the 1st row 1st column of the product matrix. Likewise, the sum of
products of elements of 1st row of the 1st matrix and elements of 2nd columns of the 2nd matrix
forms the 1st row-2nd column of the product matrix and so on. The crucial point here is matrix
multiplication is row by column.

If x = ,

then
2x3 2x2 2x2
C11 = a11 (b11) + a12 (b21) + a13 (b31)
C12 = a11 (b12) + a12 (b22) + a13 (b32)
C21 = a21 (b11) + a22 (b21) + a23 (b31)
C22= a21 (b12) + a22 (b22) + a23 (b32)
Note that since the first matrix is of 2 x 3 order and the second of 3 x 2 order, their
product matrix is a 2 x 2 matrix.
Examples:

1. Given A = and B= , find AB and BA

Solutions:

AB = = =

Orders 2 x 2 2x2 2x2

BA = = =

Order 2x2 2x2 2x2

11
2. Given = , Solve for X and Y.

2x2 2x1 2x1


Solution:

If = ,

2x2 2x1 2x1

By solving simultaneously, we get x = 1 and y = -2

Check:

= =

2x2 2x1 2x1

3. Convert = in a system

of linear equations
3x3 3x1 3x1
Solution:

= can be written as:

2x – 3y + 3z = -8
3x + 2y + 2z = 10
x – y – 2z = 1
4. Convert the following system of linear equations into extended matrix form.
5X1 – 2X2 + X3 = 10
-3X1 + 7X2 – 2X3 = 15

Solution

1.4.5.2 Properties of Matrix Multiplication


i) Matrix multiplication is associative. That is, if matrices A, B and C are conformable
for multiplication, then A (B C) = (AB) C

12
Example:

Let A = , B= and C=

A (BC) = =

(AB) C = =

Therefore, A (BC) = (AB) C


ii) Matrix multiplication is distributive.
distributive. That is, if matrices A,B and C are conformable for
addition and multiplication, then
A (B + C) = AB + AC, and
(A + B) C = AC + BC

Examples: Let A = , B= , and C=

a) A (B + C) = =

AB + AC = + =

Therefore, A (B + C) = AB + AC

b) (A + B) C = =

AC + BC = + =

Therefore, (A + B) C = AC + BC
iii)
iii) Matrix multiplication is not always commutative.
commutative. That is, AB is not necessarily equal to
BA. There are three possible cases. Case I.
I. Under certain conditions, AB may be equal to

BA Example: Let A = and B= , then

AB = =

BA = =

Thus, in this case AB = BA. Note that in this example AB =BA = A because B is an identity
matrix of the same order as A. (See the properties of identity matrix under 2.3.7 above).

13
Specifically, if either or both matrices are scalar matrix, then AB = BA (for more explanations
and examples, see section 2.4.6)
Case II.
II. It is possible that AB is defined (conformable for multiplication) while BA does not
exist (not conformable for multiplication)
Example:

Let A = and B=

AB exists because the orders 2 x 2 and 2 x 3 are conformable for multiplication, AB will
be of order 2 x 3. Therefore,

AB = =

BA does not exist because the orders 2 x 3 and 2 x 2 are not conformable for multiplications.
Therefore

BA = does not exist

Case III.
III. It is possible that both AB and BA exist but they are different matrices. That is both
AB and BA are defined but AB is not equal to BA (AB  BA)

Example 1. Let A = and B= , then

AB = =

BA = =

Both AB and BA exist, but AB  BA


Example 2.

Let A = (2 4) and B = , find AB and BA.

Solution:
Solution: AB = = = (-2) = -2

1x2 2x1 1x1


If A is a row vector and B is a column vector and if AB exist, then the product matrix will be
a constant number,

BA = = =

14
2x1 1x2 2x2
When a column vector is multiplied to row vector the product will be matrix.
Therefore, if A and B are vectors and one is a row vector while the other is column vector,
then AB  BA.
Reminder: Matrix multiplication is associative and distributive but not necessarily
commutative.
1.4.6 Multiplication of a Matrix by a scalar
A scalar is a square and diagonal matrix whose every diagonal elements are equal (See 2.3.6
above). When multiplication is possible, multiplying a matrix by a scalar produces the same
result as multiplying the matrix by the constant diagonal element of the scalar.

Let K be a scalar and A be a square matrix of the same order as K, then KA = AK

Let K = and A=

KA = =

AK = = =

Therefore, KA = AK. Note that multiplying matrix A by the constant number K produces the
same result.

KX =

Example (1) Given A = and B= , evaluate AB and BA.

Solution:
Solution:

AB = = =

BA = = =

Note that the result is the same as multiplying A by 3

15
3 = =

however, KA may not be equal to AK if A is not a square matrix

Let K= , then

KA = ; K is of 2 x 2 order, A is 2 x 3 and therefore KA is a 2

x3
matrix.
AK does not exit because a 2 x 3 matrix (A) cannot be multiplied by a 2 X 2 matrix since they
are not conformable for multiplication
Therefore, in this case KA  AK.
Check your progress
1. What are the two conditions for equality of matrices?
2. What condition should be fulfilled in order to add two or more matrices, or to subtract
one from the other?
3. State the rules of matrix multiplication
4. Is matrix multiplication associative?
5. Is matrix multiplication distribute?
6. Is matrix multiplication commutative?

7. Given A =

a) 3A – 2B
b) Matrix X such that (2A – B) + X = 0, where 0 denotes a null square matrix of
order 2

8. Evaluate 10 

Answer
1. They have to be of the same order and the corresponding elements of each matrix must
be equal (see section 2.4.1.)
2. They have to be of the same order (see section 2.4.2.)
3. In order to multiply to matrices., say A and B, the number of columns of A must be
equal to the number of row of B and the product AB will have as many rows as A and

16
as many columns as B. while multiply A by B, we go along the rows of A and down
the columns of B; that is, we multiply row elements by column elements and add them
to form the corresponding row-column element. (see section 2.4.5.1)
4. Yes A (BC) = (AB) C
5. Yes A (B + C) = aB + AC, and (A + B) C = AC + BC
6. Not always. In some cases matrix multiplications is commutative but there are many
cases in which this is not true. That is A x B and B x A may or may not be equal
depending on the specific case. (See section 2.4.5.2)

7. a) 3A – 2B = 3

b) (2A – B) + X = 0
=
=

3 + X11 = 0 , X11 = -3 6 + X12 = 0 , X12 = -6


0 + X21 = 0 , X21 = 0 -6 + X22 = 0 , X22 = 6

Therefore, X=

Alternatively,
(2A – B) + X = 0
X = -2A + B

X = -2

8. 10 

1.4.7 Power of a Matrix


If A is square matrix, the A2, A3, A4 ….are defined.

If A = , then

A2 = =

17
Example Given A = , find A2 and A3

Solution A2 = = =

A3 = = =

1.4.8 Transpose of a Matrix


Let A be a matrix. The matrix obtained from A by interchanging its rows and columns is
called the transpose of A. Transpose of A is denoted by A or AT
Only square matrices can be powered

Example Given B = find B2

Solution B2 does not exist because a 2 x 3 and a 2 x 3 matrices are not conformable for
Multiplications

If A = , then A=

Example:

1. If A = ,A= 2. If B = (1 2 3) , B =

3. If C = , C = 4. If D = , D =

Any matrix A for which A = A1 is called a symmetric matrix. Examples 3 and 4 are
symmetric matrices.
1.5 ELEMENTARY OPERATION
The following types of row or column operations are called elementary operations.
i) Interchanging any two rows (or columns);
ii) Multiplying any row (or column) by a non-zero constant number; and
iii) Adding a multiple of one row (column) to a multiple of another row (column).
An elementary operation should be either row or column operation, not both at the same time.
If an elementary operation is conducted, it should involve every element of the row (or
column). It is prohibited to operate on some elements of a row (or column) and ignore some
elements of the same row (or column).

18
A new matrix formed by elementary operation can easily be restored back to its original
matrix by “undoing” the operations. Therefore, although the new matrix is not equivalent to
the old one, the information stored is the old matrix are retrievable from the new one, this is
why the system remains intact.
Notations: “ ” denotes interchanging. For example, R1  R2 reads as row 1 and row 2 are
interchanged.
“ ” denotes replacement. For example, 2R1 – R2  R2 reads as 2 times row
one minus row 2 replaces row 2. that is the old R1 minus the old R2
Although elementary operation can be conducted either on rows or columns, we focus on row
operations only because they are appropriate for our purposes. However, the principle is the
same for both operations.
Example:

1. Given , change a12 element to zero. Using elementary row operation.

Solution: To make a12 element, 5, become 0, we can multiply the 2 nd row by 5 and subtract
the product (5 x 1 = 5) from 5; and the same operation should involve the whole row.
R1 – 5R2  R1 3 – 5 (2) 5 – 5 (1) = -7 0
R2  R1 2 1 2 1

2. Given Change a21 element to zero

Solution:
Solution:

-7 0 –7 0

2 (-7) + 7 (2) 2 (0) + 7 (1) = 0 7

3. Given , change the matrix to an upper triangular matrix, using

elementary row operation.


Solution: We need the a21, a31, and a32 elements be equal to zero. Let’s first make a21 and a31
elements be equal to zero.

19
Now, we have make a32 element, 13, zero.

Check your progress

1. If A = by elementary operation, what row operation was conducted?

2. Convert M = into an upper triangular matrix, using

elementary row operations.

3. Convert N = into a lower triangular matrix, using

elementary row operations.


4. Make the a22 element of matrix M equal to 1
Answers
1. The first and second rows are interchanged (R1 R2)
2. Different outcomes are possible, one of which is the following.
R1  R2
R1-2R1 R2
3R2 R3 R3
This operations make a21 and a31 equal to zero.
R1  R1
R2  R2
13R2 + 7R3  R3 These operations make a32 equal to zero.

An upper triangular matrix is obtained.

3. Different outcomes are possible of which the following is one.


R1 – R3  R1 This is to make a13 and a23 equal to zero.
2R2 – 3R3 R2
R3  R3
4R1 + 3R2  R1
R2  R2 This is to make a12 equal to zero.
R3  R3

20
4. Different elementary operations may produce the required outcome; the following is
one of them
R1R1 This is to make a22 element equal to one
R2 – R3  R2
R3R3

Solving system of Linear Equations


As explained above, information stored in matrix will not be distorted by elementary
operations; hence, the original setting is retrievable. This can easily be demonstrated by
system of linear equations.

For example:

can be written in extended matrix form as

By writing the coefficient matrix and the constant vector side-by side, we get.

Now, let’s change the coefficient matrix to an upper triangular matrix using elementary
operations. That is, we need to make a21, a22 and a31 elements equal to zero.

=>

, Then convert this into algebraic form of system

of linear equation
2x – 3y + 3Z = -8
5y + 8z = 7

21
43z = -43

Note that 2x-3y + 3z = -8


3x + 2y + 2z = 10
x – y – 2z = 1

2x – 3y + 3z = -8
and 5y + 8z = 7
43z = -43

have the same solutions, because the second system is obtained by elementary row operation.
Thus, solving the second system solves the first system and solving the second one is by far
easier than solving the first system.

From the third equations 43z = -43, we get z = -1. We substitute z = -1 into the second
equation.
5y + 8(-1) = 7
5y = 15
y=3

We substitute = -1 and y = 3 into the first equation, we get


2x – 3(3) + 3(-1) = -8
2x – 9 – 3 = -8
2x = 4
x=2
Therefore, the solution set is
Question- Solve the following system of linear equations by reducing the coefficient matrix to
upper diagonal matrix.
X+y+z=7
X + 2y + 3z = 16
X + 3y + 4z = 22

22
after few row elementary operation we may get

x+y+z=7
y + 2z = 9
z=3

y + 2(3) = 9 => y = 3
x + 3 + 3 = 7 => x = 1

Therefore, the solution set is {1, 3, 3}


Note that the upper or lower triangular matrices obtained through elementary operations are
not unique. Depending on the type of operations used one can produce many different
triangular matrices from a single original matrix. However, if the system has a unique
solution, then all of them will lead to that unique solution.

Check your progress


Solve 5x + 6y – 3z = -16
x – 5y + 2z = 17
3x – 2y + z = 10
Answer: {1, -2, 3}

1.6 THE MULTIPLICATIVE INVERSE OF A MATRIX

Two matrices are multiplicative inverse of each other if their product is identify matrix.
Inverse of A is denoted as A-1
A.A-1 = A-1.A = I

If A = , then A-1 = because

A, A-1 = = = ,

and

23
A-1, A = = -

Important points:
points:
i) Only square matrices can have a multiplicative inverse. Non square matrices do not
have inverse.
ii) Not all square matrices do have inverse. A matrix will no inverse is called singular.
singular.
iii) If an inverse exists, it is unique. That is, a matrix cannot have more than one inverse.

Gauss-Jordan Inversion Method


Write side by side the matrix you want to inverse and an identity matrix of the same order.
Applying necessary row operations on both matrices to convert the matrix you want to inverse
into identity matrix. The former identity matrix will become the inverse of your initial matrix.
Thus, you start as (A/I) and end up with (I/A-1)

Example 1. Find the inverse of

Solution

Therefore, inverse of is

Check

24
=

= =

Example 2. Find the inverse of

3R1 – 2R2  R1

no further row operation can provide an identity matrix


because every element of the first row equals zero.

Therefore, has no inverse. It is singular. Note that a square zero matrix has no

inverse because O.A = O  I

1.7 APPLICATION OF GAUSS-JORDAN INVERSION METHOD

One important application of Gauss-Jordan inversion method is that it helps to easily solve
systems of linear equation of any number of rows and columns.

1.7.1 Solving n x n system of linear equations.


equations. That is, when the number of equations equal
to the number of variables. For example,
a11 X1 + a12 X2 + a13 X3 = b1
a21 X1 + a22 X2 + a23 X3 = b2
a31 X1 + a31 X2 + a33 X3 = b3
Can be converted into expanded matrix form as:

25
=

or equivalently, it can be written as


Ai = b, where A represents the coefficient matrix, X –the variable vector and b-the constant
vector.
(A-1) Ax = b (A-1) by multiplying both sides by A-1 (inverse of A), we get X = A-1b
Recall the Gauss-Jordan inversion method discussed under 2.6 above. We start as (A/I)
and end with (I/A-1). If we start with (A/b), will end with I/A -1.b and this gives the solution
for the system since X = A -1.b.Therefore, in order to solve an n x n system of linear
equations, write the coefficient matrix and constant vector side by side as:

and then convert the coefficient matrix into an


identity matrix using row elementary operation involving the
constant vector.
In doing so, one of the following outcomes will occur.

a) An n x n identity matrix with a unique solution, like

Indicating that the system has a unique solution

and X1 = ,
X2 = and X3 = . The solution set is { , , }
For example if you get

then X1 = 3, X2 = 4, X3 = 2. The solution set is {3, 4,

2}
b) A row whose every element in the coefficient matrix equal to zero, while non-zero in
the constant vector. This indicates that the system has no solution.

This first row can be interpreted as X 1 = , the


second as
X2 = , and the third as 0 = . The statement

0 = is absurd. This indicates that the system is inconsistent. The solution set
therefore is
For example, if you get

26
, then solution set is .

c) A matrix in a form different from (a) and (b) indicates that there are unlimited number
of solutions. In such cases a row (rows) with all zeros including the constant column
appears.

There is no way to make a23 equal to zero. This


indicates that a22 and a23 are interrelated.
Therefore, the solution of the system is
X1 =

X2 + X3 =
By assuming values for either X2 or X3, we can have many different solutions.
For example if:

X1 = 3
X2 + 2X3 = 4

If X2 = 1, then the solution set is {3,1,3/2}


IfX2 = 2 => {3, 2, 1}
X2 = 3 => {3, 3, ½}…etc.
Exercise 1: Solve the following system of linear equation using Gauss-Jordan method.
2x + 3y – 5z = 17
3x – 4y + 2z = -2
4x – 2y + 3z = 0

Our objective is to convert

the coefficient matrix into an identity matrix of order 3, using


row operations only.

27
Therefore, X = 2, Y = 1 and Z = -2 2, 1, -2

Check:
2(2) + 3(1) – 5(-2) = 17
3(2) – 4(1) + 2(-2) = -2
4(2) – 2(1) + 3(-2) = 0

Exercise 2. Solve:
3x – 2y + 4z = 29
2x + 3y – z = -4
-5x – 5y + 3z = 7
Solution:

Start with after appropriate

row operations you will end with

indicating that the solution is X = 3, Y = -2 and Z = 4, that

is 3, -2, 4

1.7.2 Solving m x n system of linear equations,


equations, where m >n. That is, when the number of
equations is greater than the number of variables. In this case as well unique, multiple,
or no solution are possible.

28
a) If the system has unique solution, you will get an identity matrix of n x n with
unique solution and the remaining m – n rows will be equal to zero both in the
coefficient matrix and the constant vector.
If, for example, the system consists of 5 equation and three variables, and of you get

This indicates that there is unique solution and


b) If the system has no solution, then you will get an absurd row –a row with zeros in
the coefficient matrix and non-zero number in the constant vector.

The third row is absurd and it indicates that the system has no solution.

c) A matrix different from (a) and (b) indicates that there are unlimited number of
solutions, since some of the variables are interrelated.

Here

Either X2 or X3 is a free variable that can be assigned a value and therefore their will be
unlimited number of solutions.

1.7.3 Solving m x n system of linear equations where m < n. That is, when the number of
equations is less than the number of variables. In such cases either the system will have
infinitive solutions or no solution at all; unique solution is impossible under such conditions.
a) A row whose every element other than the one in the constant vector indicates that
there is no solution.

Indicates that the system has no solution because the fourth row is absurd.
For example; if your final outcome is

29
Then, the solution set is

because of the 4th row.

b) A matrix, which is of different form than (1) indicates that there are unlimited
number of solutions. For example:

Indicate that

Thus, either X3 or X4 should be free.

1.8 MARKOV CHAIN

Markov was a mathematician whose name has been given to a process in which the future
state is completely determined by the present state and not at all by the way the present state
arose.

Assume that there are two companies X and Y that produce and sell the same type of
commodities. They compete for customers and the following change occur due to the
promotional companies.

After one period


X Y
one period
Before

X 0.4 0.6
Y 0.7 0.3

The interpretation of the numbers in the table is very important.


0.4 indicates that 40% of X’s customers before one period remain loyal to X after one period
as well. 0.6 indicates to that 60% of X’s previous customers have now shifted to Y. 0.7
indicates that 70% of Y’s previous customers shifted to X, while 0.3 indicates that 30% Y’s
previous customers remain loyal to Y. Thus, the table represents “transition” of customers

from one firm to another. The matrix is called transition matrix

Note that the rows add to one. (0.4 + 0.6 = 1 and 0.7 + 0.3 = 1)

30
Let’s assume that the initial market share between X and Y is 0.2 and 0.8. That is, 20% of the
total market is served by X, while 80% of the market is controlled by Y. Given the above
transition matrix their relative market share after one period, two periods, three periods, etc.
will be:
Initial state (0.2 0.8)

After one period (0.2 0.8)

After two periods (0.64 0.36) = (0.508 0.492)

After three periods (0.508 0.492) = (0.5476 0.4428)

After four periods (0.5476 0.4428) = (0.60236 0.39852)

This process is called Markov Process. Note our transition matrix in this example has been
constant as we moved from a state to state. Such a process is called stationary Markov
process.

If this process is repeated for infinite number of times, will the relative share of the two
companies change from state to state or will they maintain an equilibrium after which no
change in relative share occurs despite the transition matrix? The answer is, there is an
equilibrium state known as a steady state, where no change takes place in relative share
despite or transition in customers.
At the steady state:

(X , Y) = (X , Y)

Where X and Y are the market shares of X and Y at the steady state. Thus, solving

X+Y=1 , by definition
0.4x + 0.7y = X by matrix multiplication
0.6x + 0.3y = Y by matrix multiplication

Will give us the value of X and Y.


X+Y=1

31
-0.6x + 0.7y = 0
0.6x – 0.7y = 0

Therefore X = 7/13 = 0.538


Y = 6/13 = 0.462
If the two companies are at this ratio, the given transition matrix will not produce any
change.
Example
10% of the population own an automobile and 90% do not. Based on past experience 5
percent of non- owners become owners and 1% of owners become non-owners each year.
a) What will be the percent of owners and non owners next year?
b) What is the steady state?

Solution:
The transition table will be

O N
O 0.99 0.01
N 0.05 0.95

32
Wherefore, the transition matrix is
a) Initial state 0.1 0.9

After one year (0.1 0.9) = (0.144 0.864)

That is, next year 14.4% of the population will own an automobile while 86.4% will
not have any.
b) To calculate the steady state

(X1 X2) = (X1 X2),

where X1 is the percent that own and X2 that do not.

X1 + X2 = 1 X1 = 1/6 = 0.17
0.99X1 + 0.05X2 = X1 X2 = 5/6 = 0.83
0.01X1 + 0.95X2 = X2
A chain in which one totally absolves the other is called Absorbing Markov chain.
chain.
Example:
Assume that, in a year, 0.01% of the non drug-abusers become abusers but all the abusers
remain abusers. What will be the steady state?
Answer:

(X Y) = (X Y), where X-Drug abusers, Y- Non- abusers.

The outcome will be (1 0), all will be drug abusers at the steady state.

1.9 INPUT-OUTPUT ANALYSIS (INTRODUCTARY)

The input-output analysis, initially developed by professor W. Leontief (an American


economist of Russian origin), is another import application of matrix algebra. Input-output
analysis describes the economy as flow of goods and services between the different sectors of
the economy plus the final consumption. Thus, by adjusting the transition matrix (here it is
called the technical coefficient matrix) the planner can achieved the required proportion
between the different sectors of the economy.

Consider, for example, the following input-output model for a closed economy which consists
of three sectors only –agriculture, industry and services.

33
Input
Agriculture Industry Service Final Consumption
Agriculture 0.2 0.2 0.3 0.3
Out put Industry 0.3 0.2 0.2 0.3
Service 0.1 0.1 0.2 0.6
Labor 0.7 0.1 0.2

The meanings of the numbers:


Of the total agricultural output 20% is used as input for the agriculture itself (like in the form
of seed, manure, etc.), 20% is used as input for the industry (like cotton to textile, skin to the
tannery, etc) and 30% is used as input for the service (like for Hotels and Restaurants etc.) and
the remained 30% is directly consumed.

Of the total industrial output 30% is used as input for agriculture (like tractors, fertilizers,
tools, etc), 20% as industrial inputs (like spare parts, energy…etc) 20% for the service (like
machines and tools needed in the service sector, and 30% the industrial out put is directly
consumed.

Likewise, 10% of the service output goes to agriculture in the form of input (like training for
farmers, health service…etc.) 10% to the industry and 20% for the service sector itself. 60%
the service output is consumed directly.

Lastly, 70% of the total labor force is engaged in agriculture, while 10 and 20 percent of it is
engaged in the industry and service respectively.

Now, we can actually run the Markov process to determine the share of each sector in the
national economy.

Then, the task of the planner will be to achieve the required proportion between the three
sectors by adjusting a) the final consumption, b) the labor supply, and c) the technology
matrix.

34
Example: A hypothetical and simple input-output model of a closed economy is given
by the table below. Calculate the share of agriculture, industry and service at a steady
state. Here final consumption is taken as input as well.
Input
Agriculture Industry Service
Output Agriculture 0.6 0.2 0.2
Industry 0.3 0.4 0.3
Service 0.2 0.3 0.5

Solution:
Solution: Let X1 be the share of agriculture
X2 be the share of industry, and
X3 be the share of service

X1 + X2 +X3 = 1
0.6X1 + 0.3X2 + 0.2X3 = X1
0.2X1 + 0.4X2 + 0.3X3 = X2
0.2X1 + 0.3X2 + 0.5X3 = X3
X1 + X2 +X3 = 1
-0.4X1 + 0.3X2 + 0.2X3 = 0
0.2X1 - 0.6X2 + 0.3X3 = 0
0.2X1 + 0.3X2 – 0.5X3 = 0

35
X1 = 21/55 = 0.38
X2 = 16/55 = 0.29
X3 = 18/55 = 0.33

CHECK YOUR PROGRESS (WORK OUT)


1. (3 7) = ________________

2. If (3 - 5) then X equals___________.

3. (2 3 5) = _______________.

4. Solve for X, Y and Z

5. Solve for the variables

6. The inverse of is _____________.

7. Rewrite the following algebraic system of linear equations in matrix form of system
of linear equations.

8. Solve the following systems of linear equations using Gauss-Jordanian method

36
9. Given an initial state as (0.8 0.2) and a transition matrix as , derive

Markov’s chain for


a) the initial state
b) after one period
c) after two periods
d) after three periods

10. Find the steady state if the transition matrix is

11. The effect of competition between four firms, in terms of share of customers is given
in the table below.

AFTER ONE PERIOD


Firm 1 Firm 2 Firm 3 Firm 4
Firm 1 0.4 0.3 0.1 0.2
Before one
Period

Firm 2 0.2 0.4 0.4 0.1


Firm 3 0.3 0.1 0.1 0.1
Firm 4 0.2 0.2 0.2 0.6

a) Explain the meanings of the member in the table.


b) Calculate the steady state

37
12. A hypothetical input-output model of a closed economy is given by the table below

INPUT
Industry Service
Agricultur
e
Agriculture 0.5 0.2 0.3
Output

Industry 0.3 0.3 0.4


Service 0.2 0.3 0.5 a) E
x
plain the meanings of the numbers in the table
b) Calculate the share of agriculture, industry and service at a steady state.

13. In a small town there are three shops that sell identical types of shirts, trousers and
shoes. In January 2001, the first shop sold 30 shirts and 20 pairs of trousers for 1700
Birr while the second shop sold 20 shirts, 10 pairs of trousers and 10 pairs of shoes for
1700 Birr. The third shop sold 10 shirts, 30 pairs of trousers and 30 pairs of shoes for
3600 Birr. How much is the average price of a shirt, a pair of trousers a pair of shoes in
the town?

14. There are three competing firms in a market. The following table shows the outcome of
their competition on market share (transition matrix).
 Comment on each firm’s marketing strategy.
 Calculate the steady state.
After one period
Firm 1 Firm 2 Firm 3
Before one

Firm 1 0.3 0.5 0.2


Period

Firm 2 0.5 0.4 0.1


Firm 3 0.2 0.1 0.7

38

You might also like