Beruflich Dokumente
Kultur Dokumente
y = 3, z = 5 and w = - 2.
MATRIX OPERATIONS
Transpose of a Matrix
The transpose of a matrix A, denoted by A¢, is obtained by interchanging the rows and columns of a matrix.
FG 2 6 3IJ
A matrix of the order m ¥ n would transpose to a matrix of the order n ¥ m. If B =
H1 2 0 K
, then
F2 1I
B¢ = G 6 JJ
GH 3 2 .
0K
The transpose of a row vector would be a column vector and vice versa. Further, the transpose of the
transpose of a given matrix would be the original matrix itself.
2 Quantitative Techniques in Management
FG 13 4 -1IJ
Here, C=A+B=
H-9 9 9K
F- 3
D=A–B= G
2 - 11 IJ
and
H9 5 -5 K
The Scalar Multiple of Matrix
Given a matrix A and a number k, called a scalar, a matrix kA is obtained by multiplying each element of
the matrix A by k.
FG 4 2 - 1 IJ and k = 4. Find kA.
Example 2 Given, A =
H- 5 4 2 K
FG 4 2 -1 I
J F 16 8 - 4 IJ
= G
Here, kA = 4
H-5 4 2K H - 20 16 8 K
Matrix Multiplication
Matrix multiplication is possible only if matrices are conformable for multiplication. Given two matrices A
and B, the matrix product AB is defined only if the number of columns in matrix A is equal to the number
of rows in matrix B. Thus, if matrix is of the order 3 ¥ 2 and matrix B of 2 ¥ 4, then they are conformable
for multiplication as AB. The resulting matrix would be of the order 3 ¥ 4; with number of rows the same
as the number of rows of matrix A and number of columns the same as that of matrix B. However, these
matrices are not conformable for multiplication as BA. Further, if both matrices, say A and B, are square
matrices of the same order, they can be multiplied BA as well as AB, but the result need not be the same.
When two matrices are conformable for multiplication, the ijth element of the resulting matrix would be
obtained as summation of the products of the elements of the ith row of the first matrix and jth column of
the second matrix.
Example 3 Multiply the matrices A and B as AB, given
F5
A=G
4 IJ and B = FG 60
2
4 5 8 I
JJ
H3 4 1K GH 7 2
1
7
3
9
-2 K
We have,
F 44 30 59 72IJ
C = AB = G
Here,
H 25 21 46 58K
C11 = 5 ¥ 6 + 4 ¥ 0 + 2 ¥ 7 = 44;
C12 = 5 ¥ 4 + 4 ¥ 2 + 2 ¥ 1 = and so on.
Appendix A1: Matrix Algebra 3
Determinant of a Matrix
With every square matrix, A, a number is associated which is called its determinant, which is represented
as det A, or | A | or D.
For a 1 ¥ 1 matrix A, | A | = a11
LMa 11 a12OP
For a 2 ¥ 2 matrix A =
Na 21 a22 Q
, | A | = a11 ¥ a22 – a21 ¥ a12
GH 1
0 5
-3 9 K
The elements are a11 = 4, a12 = 7 and a13 = 2, and the minor of each one of these is given below:
LM 0 5 OP , A = LM8 5 OP , A = LM8 0 OP
A11 =
N- 3 9 Q 12
N1 9 Q N1
13
-3 Q
Now, det A11 = 0 ¥ 9 + 3 ¥ 5 = 15, det A12 = 8 ¥ 9 – 1 ¥ 5 = 67, det A13 = (8) (– 3) – 1 ¥ 0 = – 24.
Finally,
| A | = (– 1)1 + 1 (4) (15) + (– 1)1 + 2 (7) (67) + (– 1)1 + 3 (2) (– 24) = – 457.
A matrix is called a singular matrix if its determinant is equal to zero, and non-singular otherwise. For
FG 2 7 IJ , then | A | = 2 ¥ 21 – 6 ¥ 7 = 0. Hence A is a singular matrix.
example, if A =
H 6 21K
Inverse of a Matrix
It is possible to find the inverse of a square matrix provided it is non-singular. The inverse of a given matrix
is indicated by A – 1 and the product of the matrix and its inverse gives identity matrix. Thus, AA – 1 = A – 1
A = I.
The steps of inverting a matrix are:
1. Find the determinant of the matrix, say A, | A |.
4 Quantitative Techniques in Management
2. Replace each element of the matrix by its minor. Next, obtain the signed cofactor for each element
of this matrix. A cofactor is defined as (– 1)i + j det Aij, in where det Aij is the determinant of the
minor and (– 1)i + j yields the sign.
3. Obtain transpose of the cofactors matrix. Call it adjoint matrix.
4. Multiply adjoint matrix by reciprocal of the determinant. It gives A – 1.
LM 4 1
-
3 1 3 4 OP
MM 6
5
2
3
1
2
2
3
1
2
6
5
PP
MM- 6 2 1 2
-
1 6 PP
MM 5 3 2 3 2 5 PP
N 4 1
-
3 1 3 4 Q
F 2 -5 14I
=G 8 JJ
GH - 7 1 -7
7 -7K
Adjoint matrix is:
F 2 8 -7 I
GG - 5 1 7J
J
H 14 -7 -7K
Now,
F2 8 -7 I F 2 / 21 8 / 21 - 1/ 3 I
A– 1 =
1 GG
-5 1 7 JJ = GG - 5/ 21 1/ 21 1/ 3 JJ
21
H
14 - 7 - 7 K H 2 /3 - 1/ 3 - 1/ 3 K
Here, x1, x2, ... xn are the variables and aij and bi’s are the constants. Thus, the above presented set is
involving m equations in n variables. In matrix notation, we can re-write the above as
MNaM
m1 am2 L amn
PQ MNxM PQ MNbM PQ
m m
or simply as AX = B.
Now, to solve a set of given equations simultaneously for the variables x1, x2 and so on, the number of
independent equations should be equal to the number of variables.
Thus, if there are m variables to be determined, there need to be m equations. We demonstrate two
methods of solving equations as follows. However, it may be mentioned here that the matrix of coefficients
on the LHS should be non-singular. There is no unique solution to the system if this matrix is singular.
(a) The method of inverse To solve a linear system AX = B that has m unknowns and m equations, we
first calculate A – 1. Then pre-multiply both sides by A–1. Thus, A – 1 AX = A – 1 B or X = A – 1B.
F
2 5 3 x1 I 33 F I F I
GG JJ
A = 3 4 1 X = x2 B = 25 GG JJ GG JJ
H
1 6 2 x3 K32 H K H K
F 2 / 21 8 / 21 - 1/ 3 I
We have earlier obtained A –1
as GG - 5/ 21 1/ 21 1/ 3 JJ
H 2 /3 - 1/ 3 - 1/ 3 K
F 2 / 21 8/ 21 - 1/ 3I F 33I F 2I
X = G - 5 / 21 1/ 3J G 25J = G 4J
Thus
GH 2 / 3 1/ 21
- 1/ 3
J G J GH 3JK
- 1/ 3K H 32K
Accordingly, x1 = 2, x2 = 4 and x3 = 3.
(b) The method of determinants In this method, we first calculate determinant of matrix A, say | A |
or D. Next, the first column of the matrix A is replaced by the values of the vector B: the RHS values. Call
this revised matrix as A1 and find its determinant |A1 | or D1. Similarly, replace the second, third, and so
forth columns by the RHS values one by one and calculate the determinants | A2 | or D2, | A3 | or D3 and so
forth. Finally, take the ratios of determinants to obtain the variable values as follows:
D1 D D
x1 = , x2 = 2 , x3 = 3 and so on.
D D D
6 Quantitative Techniques in Management