You are on page 1of 8

Matrix

Introduction

A rectangular array of numbers arranged in horizontal andMatrix


vertical lines enclosed between round or square brackets is called
a matrix. Some example of the matrix is given below:

1 2
X=[ ]
3 4
⎡1 2⎤
Y=⎢ 5 1 ⎥
⎣7 4⎦
3 2 5
Z=[ ]
4 6 5
Each member in the array is called an element. An element appearing in the th
i row and jth column of a matrix called its (i,j)th
element.

In the above examples, the order of matrix X is 2×2, Y is 3×2 and Z is 2×3. So, if the matrix contains rows and b column,
then it is of order a×b.

Multiplication of Matrices

Let A and B be two matrices and product of A and B is denoted by AB.The products of AB can be defined or not according
to its order. Matrices A and B are said to be compatible for product AB if and only if numbers of the column in A is equal to a
number of rows in B. If this condition is not satisfied then the product of A and B cannot be performed.
if A and B are conformable for the product AB, then the number of rows if A followed by the number of columns in B gives
the order of product AB.

If two matrices A and B are conformable for the product AB, it is not necessary that they are also conformable for the
product BA. If A and Bare square matrices of the same order, then they are compatible for the product AB as well as BA.
The element in row i and column j of the product AB are obtained by multiplying the elements in the tih row of A by the
corresponding elements in the jth column of B and adding up the resulting products.

(i, j)t h element of AB = Sum of the products of the elements of the tih row of A with the corresponding elements of the jth
column of B.

Let A=[ ] and B =[ 11 ]


a11 a12 b b12
a21 a22 b21 b22

Here, order of AB will be 2×2. If cij denotes the elements of AB,then

AB=[ ]
c11 c12
c21 c22
where, c11 = 1st row of A×1st column of B = a11b11 + a12a21

c12 = 1st row of A×2nd column of B = a11b12 + a12b22

c21 = 2 nd row of A×1st column of B = a21b11 + a22b21

c22 = 2nd row of A×2nd column of B = a21b12 + a22b22

a11 b11 + a12 b21 a11 b12 + a12 b22


∴ AB = [ ]
a21 b11 + a22 b21 a21 b12 + a22 b22
Examples:

3 5 3
(1) Let A=[ ] and B=[ ] be the two martices.
−1 3 8
Since A is order 2×2 and B is order 2×1, therefore, AB is defined and it is a matrix of order 2×1.

3 5 3 3.3 + 5.8 49
AB =[ ][ ] =[ ] =[ ]
−1 3 8 −1.3 + 3.8 21
Note that b is of order 2×1 and A is of order 2×2, therefore, BA is not defined.

[ ] [ ]
1 3 3 2
(2) Let A =[ ] and B =[ ] be two matrices.
5 0 6 3
Since A is of order 2×2 and B is of order 2×2, therefore, AB is defined ad it is a matrix of order 2×2.

1 3 3 2 1.3 + 3.6 1.2 + 3.3 21 11


AB =[ ][ ] =[ ] =[ ]
5 0 6 3 5.3 + 0.6 5.2 + 0.3 15 10
Also b is of order 2×2 and A is of 2×2, therefore, BA is defined and it is a matrix of order 2×2.

3 2 1 3 3.1 + 2.5 3.3 + 2.0 13 9


BA =[ ][ ] =[ ] =[ ]
6 3 5 0 6.1 + 3.5 6.3 + 3.0 21 18
Observe that AB ≠ BA

Some properties of matrix multiplication

(a) Multiplication of matrices is, in general, not commutative, i.e. AB ≠ BA, in general.
(i) When the matrix AB is defined, it is not always necessary that BA can also be defined. For example, if the matrix A is m ×
n and the matrix B is in n × p, AB exists whereas BA does not exist because p ≠ m.
(ii) When both the matrices AB and BA are defined, it is not always necessary that they should be of the same type. For
example, if the matrix A is m × n and the matrix B is n × m, both AB and BA exist but the matrix AB is m × m while the matrix
BA is n × n.
(iii) When A and B are square matrices of the same order, both AB and BA exist, but they are not necessarily equal.

1 2 1 2
Let A =[ ] and B =[ ]
3 4 4 3
1 2 1 2 1+8 2+6 9 8
Then AB =[ ][ ] =[ ] =[ ]
3 4 4 3 3 + 16 6 + 12 19 18
1 2 1 2 1+6 2+8 7 10
BA =[ ][ ] =[ ] =[ ]
4 3 3 4 4+9 8 + 12 13 20
Thus AB ≠ BA.
(b) Multipication of matrices is associative i.e if A, B and C are matrices conformable for multiplication, then (AB)C
= A(BC)

1 3 2 4 −3 4
Let A =[ ], B=[ ] and C=[ ]
−2 0 5 1 6 0
1 3 2 4 2 + 15 4+3 17 7
Then AB =[ ][ ] =[ ] =[ ]
−2 0 5 1 −4 + 0 −8 + 0 −4 −8
17 7 −3 4 17 7 −51 + 42 68 + 0 −9 68
(AB)C =[ ][ ] =[ ][ ][ ]
−4 −8 6 0 −4 −8 12 − 48 −16 + 0 −36 −16
2 4 −3 4 −6 + 24 8+0 18 8
BC =[ ][ ] =[ ] =[ ]
5 1 6 0 −15 + 6 20 + 0 −9 20
1 3 18 8 1 3 18 − 27 8 + 60 −9 68
A(BC) =[ ][ ] =[ ][ ] =[ ]
−2 0 −9 20 −2 0 −36 + 0 −16 + 0 −36 −16
(c) Multiplication of matrices is distributive with respect to addition i.e. if A, B and C are matrices conformable for
the requisite addition and multiplication, then A(B+C) = AB+AC and (A + B)C = AC+ BC.

⎡1 1⎤
Let A =⎢ 2 1 ⎥, B =[
0 −1 1 0
] and C =[ ]
⎣1 2⎦ 1 2 2 1

0 −1 1 0 1 −1
Then B + C =[ ] +[ ] =[ ]
1 2 2 1 3 3

⎡ ⎤ ⎡ ⎤ ⎡ ⎤
⎡ 1 1 ⎤ 1 −1 ⎡ 1 + 3 −1 + 3 ⎤ ⎡ 4 2 ⎤
A(B+C) =⎢ 2 1 ⎥ [ ] =⎢ 2 + 3 −2 + 3 ⎥ =⎢ 5 1 ⎥ ........(i)
⎣1 2⎦ 3 3 ⎣1 + 6 −1 + 6 ⎦ ⎣ 7 5 ⎦
⎡1 1⎤ 1 0 ⎡1 + 2 0 + 1 ⎤ ⎡3 1⎤
AC =⎢ 2 1 ⎥ [ ] =⎢ 2 + 2 0 + 1 ⎥ =⎢ 4 ⎥
⎣1 2⎦ 2 1 ⎣1 + 4 0+2 ⎦ ⎣ 5 2⎦
⎡ 1 1 ⎤ o −1 ⎡ o + 1 −1 + 2 ⎤ ⎡ 1 1 ⎤
AB =⎢ 2 1 ⎥ [ ] =⎢ 0 + 1 −2 + 2 ⎥ =⎢ 1 0 ⎥
⎣1 2⎦ 1 2 ⎣0 + 2 −1 + 4 ⎦ ⎣ 2 3 ⎦
⎡1 1⎤ ⎡3 1⎤ ⎡4 2⎤
AB + AC =⎢ 1 0 ⎥ + ⎢ 4 1 ⎥ =⎢ 5 1 ⎥ ...........(ii)
⎣2 3⎦ ⎣5 2⎦ ⎣7 5⎦
From (i) and (ii) A(B+C) = AB + AC.
Similarly we can verify (A+B)C = AC + BC.
(d) If A is a square matrix and I is a null matrix of the same order, then AI = IA = A

1 2 1 0
Let A =[ ] and I =[ ]
3 4 0 1
1 2 1 0 1+0 0+2 1 2
Then,AI =[ ][ ] =[ ] =[ ]
3 4 0 1 3+0 0+4 3 4
1 0 1 2 1+0 2+0 1 2
IA| =[ ][ ] =[ ] =[ ]
0 1 3 4 0+3 0+4 3 4
∴ AI = IA = A
Here, I is a multiplicative identity.
Note that results which are different from the result obtained in the case of numbers are given by multiplication of
matrices.Examples of these result are given below:
(i) If AB is a null matrix, it does not imply that at least one of the matrices A and B must be a zero matrix.

1 1 1 0
Let A =[ ] and B =[ ]
1 1 −1 0
1 1 1 0 1−1 0+0 0 0
Then AB =[ ][ ] =[ ] =[ ]
1 1 −1 0 1−1 0+0 0 0
Thus AB is a zero matrix though neither A or B is zero matrix.
(ii) Cancellation law for the multiplication of the matrices may not hold.

1 −1 4 5 2 7
Let A =[ ] , B =[ ] and C =[ ].
2 −2 3 3 1 5
1 −1 4 5 4−3 5−3 1 2
Then AB =[ ][ ] =[ ] =[ ].........(i)
2 −2 3 3 8−6 10 − 6 2 4
1 −1 2 7 2−1 7−5 1 2
AC =[ ][ ] =[ ] =[ ] ..........(ii)
2 −2 1 5 4−2 14 − 10 2 4
From (i) and (ii) AB = AC.
It follows that AB = AC does not necessarily imply that B = C. Thus cancellation law for the multiplication of matrices may
not hold.

Determinants
We can call determinants of order 2 if we arrange 4 numbers in 2 rows and 2 columns between two vertical lines.

∣a b ∣
It is written as ∣ ∣.
∣c d∣
and its value is defined as ad - bc. To get this value, we take the product of diagonal elementsa and d and subtract from it
te product of the diagonal elements can add.
We denote the determinant by Δ, read as delta.

∣a b ∣
∴ Δ =∣ ∣ = ad - bc
∣c d∣
If we arrange 9 numbers in 3 rows and 3 columns between two verticles lines, we get a determinant of order 3.

∣a b c∣

It is written as d e f ∣∣ and its value is defined as

∣g h i∣
∣ e f ∣ ∣d f ∣ ∣d e ∣
Δ = a∣ ∣ -b∣ ∣ +c∣ ∣
∣h i ∣ ∣ g i ∣ ∣ g h ∣
= a(ei - hf) -b(di - gf) +c(dh - ge)
= aei - ahf - bdi + bgf + cdh - cge
This is called the expansion of the determinant along its first row. To get this value, we start with the elementa in the top
left-hand corner. We delete the other element of row and column in which a occurs and multiply a by the second order
determinant that remains. We proceed in the same way to get the determinants to be multiplied by B and. Thea, band c are
taken to be alternatively positive and negative.
The determinant can be similarly expanded by the elements of the first column as

∣ e f ∣ ∣ b c ∣ ∣b c ∣
Δ =a∣ ∣ -d∣ ∣ +c∣ ∣
∣h i ∣ ∣h i ∣ ∣ f ∣
= a(ei - hf) -d(bi - hc) +g(bf - ec)
= aei - ahf - dbi + dhc + gbf - gec, which gives the same value.
By this, we can assume the same values of the determinant by expanding it along row or column.

Matrix and its determinant

Determinant of the matrix is defined as the determinant which has the same elements in the same position as the matrix.
For example :

Let A = [ ] be the 2x2 square matrix.


a11 a12
a21 a22
Then the determinant of A is defined as,

∣ a11 a12 ∣
|A| =∣ ∣
∣ a21 a22 ∣
= a11a22 - a21a12

Singular and non-singular matrices


example for Singular and non-singular matrices
A square matrix A is to be singular if its determinant |A| =0 and non-singular if |A|≠ 0.

9 6 6 2
If A =[ ] and B =[ ],
8 6 9 3
9 6
Then |A| =[ ] = 9.6 - 8.6= 54 - 48 = 6.
8 6
6 2
|B| =[ ] =6.3 - 9.2 =18 - 18 = 0
9 3
∴ Ais a non-singular matrix and B is a singular matrix.

The inverse of a Matrix

Let A be the square matrix. If there exists a matrix B such that AB =BA = I, then B is called the inverse of A. The inverse of A
is denoted by A-1. Therefore, B = A-1

Thus, AA-1 = A-1A = I


Note that B is the inverse of A, then A is the inverse of B.

Requirements that are necessary for the existence of the inverse of a matrix:

(a) The matrix must be a square matrix.


In order that both the products AB and BA may be defined, either (i) A and B must be a square matrix of the same order or
(ii) A and B must be of order m x n and n x m respectively.

In A and B are orders m x n and n x m respectively, then the order of AB will be m x m and the order of BA will be n x n. And
hence AB ≠ BA.
So, for AB = BA, A and B must be a square matrix of the same order.
(b) The equation AB = BA = I must be satisfied.

(c) The matrix must be nonsingular.


The process of finding the inverse of a matrix.

For example :

∣2 1∣
|A| =∣ ∣ = 2.3-5.1 =6-5 =1
∣5 3∣
3 −1
Then, A-1 =
1
[
|A| −5
]
2
3 −1
=
1
1
[ ]
−5 −2
3 −1
=[ ]
−5 2
Thus the inverse of a non-singular matrix A =

[ ] can be found by the following steps:


a c
b d
(i) Find |A| = ad - bc.Note that if |A| = 0, we cannot find A-1

.....
(ii) Exchange the elements in the leading diagonal and obtain[ ]
d
..... a
d −c
(iii) change the sign of the elements in the order diagonal and obtain[ ]
−b a
d −c
(iv) Find A-1 by using the following formula: A-1 =
1
|A|
[ ]
−b a
Some properties of inverses:
(a) The inverse of the product of two non -singular matrices is equal to the product of the inverse taken in the reverse order.
-1 = B-1A -1.
i.e. If A and B are non-singular square matrices of the same order, then AB is also non-singular and (AB)

(b) The operations of transposing and inverting a non-singular matrix is commutative .i.e. (A')-1 = (A-1)'.

4 1
Let A =[ ]
7 2
4 7
Then A' = [ ]
1 2
4 1
Now, |A| =[ ] = 8 - 7 = 1 and
7 2
2 −1 2 −1
|A'| =
1
|A|
[ ] =[ ] and
−7 4 −7 4
2 −7
(A-1)' = [ ] ........(i)
−1 4
2 −7 2 −7
(A')-1 = 1
|A|
[ ] =[ ] .........(ii)
−1 4 −1 4
From (i) and (ii),(A')-1 = (A-1)'.
A solution of a system of linear equations by using inverse.

Suppose that we are required to solve the following 2 linear equtions in 2 unknown x and y.:
a11x + a12y = b1

a21 + a22 = b2

In matrix form the equations can be written as

[ ] [ ] =[ 1 ]
a11 a12 x b
a21 a22 y b2
Which can again be written as a single matrix equation

AX =B .............(i)

Where A =[ ], X =[ ] and B=[ 1 ]


a11 a12 x b
a21 a22 y b2
If A is non-singular, A-1exists.

∴ Pre-multiplying (i) by A-1, we have

A-1(AX) = A-1B

or (A-1A)X = A-1B

or IX = A-1B

or X = A-1B, which gives the solution of the equation.

Note: Since A-1 is a unique the above solution is also unique. If, however, the matrixAis singular,

i.e. |A| = 0, then A-1 does not exist and hence the above method fails to give any unique solution.

You might also like