Professional Documents
Culture Documents
2.1 Introduction
In this unit we shall learn the symbols for matrices, and apply them in the statement
and solution of input-output problems and other problem involving linear systems.
The number of rows (m) & the number of columns (n) of the array give its order or its
dimension, M x n (reads “M” by “n”)
1|Page
X= 1 5 9 15 This is a 4 x 4 matrix
2 6 10 20 Element X44 = 45
3 7 11 30 X34 = 30
4 8 12 45 X42 = 8
X32 = 7
2.2.1 Types of Matrices
There are deferent types of matrices. These are
1. Vector matrix – is a matrix, which consists of just one row or just one column. It is an
m x 1 or 1 x n matrix.
e.g. W = -1 0 6 1x3
1.2. Column vector: is an m x 1 matrix i.e. a matrix with one column only
eg . 0
Z= 20
5 3x1
2. Square matrix: - a matrix that has the same number of rows & columns. It is also
called n-th order matrix
e.g. 2 x 2 , 3 x 3, nxn X= 1 2
3 4 2x2
3. Null or zero matrix: - is a matrix that has zero for every entry.
It’s generally denoted by Om x n e.g. Y = 0 0
0 0
4. Identity (unit) matrix: - a square matrix in which all of the primary diagonal entries
are
ones & all of the off diagonal entries are zeros. Its denoted by I.
e.g. I2 = 1 0 1 0 0 0
0 1 2x2 I2 = 0 1 0 0
0 0 1 0
0 0 0 1 4x4
2|Page
N.B. Each identity matrix is a square matrix
* Primary diagonal represents: a11, a22, a33, a44---------ann entries element
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.
5. Scalar matrix: - is a square matrix where elements on the primary diagonal are the
same.
“ An identity matrix is a scalar matrix but a scalar matrix may not be an identity
matrix”.
6. DIAGONAL MATRIX- a square matrix where elements on the primary diagonal are
consecutive and others zeros.
7. EQUAL MATRICES -Two matrices A & B, are said to be equal only if they are of the
same dimensions and if each element in A is identical to its corresponding element in B;
that is, if and only if aij = bij for every pair of subscripts i and j. If A = B, then B = A; or if
A≠B, then B ≠A.
1 2 1 2
A is equal to B = A
3 4 3 4
1 2 4 2
However; A is not equal to C = A
3 4 3 1
If A & B are two matrices, each of site m x n, then the sum of A & B is the m x n matrix
C whose elements are:
3|Page
j = 1, 2 ---------n C22 = a22 + b22
C12 = a12 + b12 etc
eg . 1 3 7 9 8 12
2 4 + 8 -10 = 10 –6
e.g. A= 1 2 B= 0 1
3 4 2 5
A–B= 1 1
1 -1
Matrix Multiplication
4|Page
If K is any real number & A is an M x n matrix, then the product KA is defined to
be the matrix whose components are given by K times the corresponding
component of A; i.e.
K A = K ai j (m x n)
e.g. If X = 6 5 7 , then 2X = (2 x 6) (2 x 5) (2 x 7)
2X = 12 10 14
1. XA = AX 3. X (A + B) = XA + XB
2. (X + Y) A = XA + YA 4. X (YA) = XY (A)
A= 1 2 3 B= 4 2 1
4 5 6 3 0 5
X=2 Y=4
1) XA = AX
Proof: XA = 2 1 2 3 AX = 1 2 3 2
4 5 6 4 5 6
XA = 2 4 6 AX = 2 4 6
8 10 12 8 10 6
Therefore XA = AX
2) (X + Y) A = (XA + YA)
5|Page
Proof:
(X + Y) A means first add X with Y and then multiply the result by matrix A.
The result of X + y is (2 + 4) = 6 then 6 will be multiplied by matrix A
6 1 2 3 becomes 6 12 18
4 5 6 24 30 36
Therefore (X + Y) A = 6 12 18
24 30 36
XA = 2 1 2 3 YA = 4 1 2 3
4 5 6 4 5 6
XA = 2 4 6 Y A= 4 8 12
8 10 12 16 20 24
XA + YA = 2 4 6 + 4 8 12
8 10 12 16 20 24
= 6 12 18
24 30 36
3) X (A + B) = XA + XB
Proof:
X (A + B) means add matrix A and B first and then multiply the result by a constant X
6|Page
A= 1 2 3 B= 4 2 1 A+B= 5 4 4
4 5 6 3 0 5 7 5 11
X (A + B) = 2 5 4 4
7 5 11
= 10 8 8
14 10 22
XA + XB means multiply matrices A and B by a constant number X independently
then add the results
XA = 2 1 2 3 XB = 2 4 2 1
4 5 6 3 0 5
XA = 2 4 6 XB= 8 4 2
8 10 12 6 0 10
= 10 8 8
14 10 22
4) X (YA) = XY (A)
Proof:
X (YA) means multiply the second constant number Y with matrix A first and then
multiply the first constant number X with the result.
YA = 4 1 2 3 X(YA) = 2 4 8 12
4 5 6 16 20 24
7|Page
= 4 8 12 = 8 16 24
16 20 24 32 40 48
XY (A) means multiply the two constant real numbers X and Y first and multiply
the result by matrix A.
XY = 2 X 4 XY (A) = 8 1 2 3
= 8 4 5 6
= 8 16 24
32 40 48
Therefore it is also true that X (YA) = XY (A) of columns in B
Vector-by-Vector multiplication
In multiplying two vectors always a row vector is written in the first position and the
column vector in the second position. Each component of a row vector is multiplied by
the corresponding component of the column vector to obtain a result known as
PARTIAL PRODUCT. The sum of all partial products is called INNER/DOT PRODUCT
of two vectors, and this is a number not a vector. In other words, Vector- by- Vector
results in a real number rather than a matrix.
E.g. Consider the product (AB) of the following row and column vectors.
2
5
A 3 4 2 6 ’ B=
7
0
3x2=6
4 x 5 = 20 partial products
-2 x 7 = -14
6x0=0
12 Inner/Dot Product
8|Page
Columns in A is equal to the number of rows in B, i.e. if A is an m x n matrix, B
should be an n x b.
Dimension of A.B
nxp
eg . A= 2 3 4 B= -1 7
6 9 7 2x3 0 8
5 1 3x2
AB = (2x – 1) + (3 x 0) + (4 x 5) (2 x 7) + (3 x 8) + (4 x 1)
= 18 = 42
(6x – 1) + (9 x 0) + (7 x 5) (6 x 7) + (9 x 8) + (7 x 1)
= 29 = 121
AB = 18 42
29 121
9|Page
Find BA =
B= -1 7 A= 2 3 4
0 8 6 9 7 2x3
5 1
3x2
B A
3 x 2 2 x 3 result 3 x 3 matrix
conformable
BA = (-1 x 2) + (7 x 6) (-1 x 3) + (7 x 9) (-1 x 4) + (7 x 7)
=40 60 45
(0 x 2) + (8 x 6) (0 x 3) + (8 + 9) (0 x 4) + (8 x 7)
= 48 72 56
(5 x 2) + (1 x 6) (5 x 3) + (1 x 9) (5 x 4) + (1 x 7)
16 24 27
BA = 40 60 45
48 72 56
16 24 27
# 2 on the other hand, the commutative law of multiplication doesn’t apply to matrix
multiplication. For any two real numbers X & Y, the product XY is always identical to
the product YX. But for two matrices A & B, it is not generally true that AB equals BA.
10 | P a g e
(in the product AB, we say that B is pre multiplied by A & that A is post multiplied by
B.)
# 3 In many instances for two matrices, A & B, the product AB may be defined while the
product BA is not defined or vice versa.
In some special cases, AB does equal BA. In such special cases A & B are said to be
Commute. A = 1 1 B= 2 2 AB = 4 4 BA = 4 4
1 1 2 2 4 4 4 4
2x2 2x2 2X2 2x2
A= 3 0 0 B= 0 0 0 AB = 0 0 0
2 0 0 7 –10 4 0 0 0
1 0 0 8 3 2 0 0 0
# 5 Also we can’t, in matrix algebra, necessarily conclude from the result aB = AC that
B= C even if A 0. Thus the cancellation law doesn’t hold, in general, in matrix
multiplication
e.g. A= 1 3 B= 4 3 C= 1 2
-2 –6 2 5 3 4
AB = AC = 10 14 but B C
-20 –28
Two square matrices are inverse of each other, if their product is the identity matrix.
11 | P a g e
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.
Still not all square matrices have inverse. If a matrix has an inverse, it is said to be
INVERTIBLE OR NON-SINGULAR. A matrix that doesn’t have an inverse is said to be
singular. An invertible matrix will have only one inverse; that is, if a matrix does have
an inverse, that inverse will be unique.
Now if the inverse matrix A-1 were known, we could multiply the matrices on each side
of the vertical line by A-1 as
AA-1 / A-1 I
Then because AA-1 = I & A-1I = A-1, we would have I / A-1. We don’t follow this
procedure, because the inverse is not known at this juncture, we are trying to determine
the inverse. We instead employ a set of permissible row operations on the augmented
matrix A / I to transform A on the left of the vertical line in to an identity matrix (I). As
the identity matrix is formed on the left of the vertical line, the inverse of A is formed on
the right side. The allowable manipulations are called Elementary row operations.
ELEMENTARY ROW OPERATIONS: are operations permitted on the rows of a
matrix.
In a matrix Algebra there are three types of row operations
12 | P a g e
Type 3: a multiple of any row can be added to any other row. / Add A-multiple
operation
In short the operation can be expressed as
1. Interchanging rows
2. The multiplication of any row by a non-zero number.
3. The addition / subtraction of (a multiple of) one row to /from another row
eg.1. A= 4 3 2 B= -2 6 7 interchanging
-2 6 7 4 3 2 rows
eg . A= 1 2 3 B= 1 2 C= 9 13
2 3 4 2x3 1 1 13 19 2 x 2
2 3 3x2
A= 2 3 4 B= 1 1 C= 13 19
1 2 3 2x3 1 2 9 13 2 x 2
2 3 3x2
Basic procedures to find the inverse of a square matrix
13 | P a g e
1. To set ones first in a column & next zeros (with in a given column)
2. To set zeros first in a matrix & next ones.
Therefore inverse of A is
A-1 = 1 –2
-1 3
14 | P a g e
Find inverse of A
Augmentation 3 2 1 0
1 1 0 1
-2R2 + R1
1 0 1 -2
1 1 0 1
Example:
1) A Manufacturing firm which manufactures office furniture finds that it has the
following variable costs per unit in dollar/unit
15 | P a g e
Material cost = (50 x 5) + (20 x 6) + (5 x 4) + (25 x 12)
= 690 br.
Labor cost = (30 x 5) + (15 x 6) + (12 x 4) + (15 x 12)
= $ 474.00
FOH cost = (30 x 5) + (15 x 6 ) + (8 x 4) + (20 x 12)
= $ 512
16 | P a g e