]]>
LearnNext
##### Get a free home demo of LearnNext

Available for CBSE, ICSE and State Board syllabus.
Call our LearnNext Expert on 1800 419 1234 (tollfree)
OR submit details below for a call back

clear

# Multiplication of Matrices

6,253 Views
Have a doubt? Clear it now.
live_help Have a doubt, Ask our Expert
format_list_bulleted Take this Lesson Test

#### Multiplication of Matrices - Lesson Summary

In multiplication we multiply the elements in a row of the first matrix by the elements in a column of the second matrix.

We have two matrices X and Y.

X =  x 11 x 12 x 13 x 21 x 22 x 23 Y = y 11 y 12 y 21 y 22 y 31 y 32

We will first multiply the elements in the first row of X to the corresponding elements in the first column of Y.And we multiply the elements in the first row X to the elements in the second column of Y. We will write the sum of the products of the elements.

In similar manner, we multiply the elements in the other rows and columns.

Finally, we get the matrix as shown.

= x 11 y 11 + x 12 y 21 + x 13 y 31 x 11 y 12 + x 12 y 22 + x 13 y 32 x 11 y 11 + x 22 y 21 + x 23 y 31 x 21 y 12 + x 22 y 22 + x 23 y 32

The multiplication operation is possible only when the number of columns of the first matrix, X, is equal to the number of rows of the second matrix, Y.

If we have two matrices, X and Y, with orders m x p and p x n, respectively, then their product is of the order m x n.

X = [xik]mxp = x 11 x 12 x 13 â‹¯ x 1k â‹¯ x 1p x 21 x 22 x 23 â‹¯ x 2k â‹¯ x 2p â‹® â‹® â‹® â‹® â‹® â‹® â‹® x i1 x i2 x i3 â‹¯ x ik â‹¯ x ip â‹® â‹® â‹® â‹® â‹® â‹® â‹® x m1 x m2 x m3 â‹¯ x mk â‹¯ x mp

1 â‰¤ i â‰¤ m; 1 â‰¤ k â‰¤ p

Y =     [ykj]pxn    = y 11 y 12 y 13 â‹¯ y 1j â‹¯ y 1n y 21 y 22 y 23 â‹¯ y 2j â‹¯ y 2n â‹® â‹® â‹® â‹® â‹® â‹® â‹® y k1 y k2 y k3 â‹¯ y kj â‹¯ y kn â‹® â‹® â‹® â‹® â‹® â‹® â‹® y p1 y p2 y p3 â‹¯ ypj â‹¯ y pn

1 â‰¤ k â‰¤ p; 1 â‰¤ j â‰¤ n

The product of these matrices be equal to matrix Z, which is of the order m by n.

Z = [zij]mxn  =  z 11 z 12 z 13 â‹¯ z 1j â‹¯ z 1n z 21 z 22 z 23 â‹¯ z 2j â‹¯ z 2n â‹® â‹® â‹® â‹® â‹® â‹® â‹® z i1 z i2 z i3 â‹¯ z ij â‹¯ z in â‹® â‹® â‹® â‹® â‹® â‹® â‹® z m1 z m2 z m3 â‹¯ zmj â‹¯ z mn       1 â‰¤ i â‰¤ m; 1 â‰¤ j â‰¤ n

zij = xi1y1j + xi2y2j + xi3y3j + ..... + xikykj + .... + xipypj =  âˆ‘ k=1 p   xikykj

In the expression, Zij represents the element in the ith row and jth column of matrix Z.

The multiplication operation over two matrices does not satisfy the commutative property.

X x Y â‰  Y x X (Not always)

Case 1: XY defined, YX not defined.

X = 1 2 3 4 5 6 2x3

Y = 1 2 7 3 4 8 5 6 9 3x3

No. of columns of X =3=No. of rows of Y

No. of columns of Y = 3 â‰  2 = No. of rows of Y

Product YX is not possible.

Case 2: Sometimes, product XY and YX are both defined, but XY does not necessarily equal YX.

XY : Defined, YX: Defined but XY â‰  YX

X = 1 1 2 3 1 5 1 3 2 3x3

Y = 2 1 5 1 4 2 3 4 1 3x3

XY = 2+1+6 1+4+8 5+2+2 6+1+15 3+4+20 15+2+5 2+3+6 1+12+8 5+6+2

= 9 13 9 22 27 22 11 21 13

YX = 2+3+5 2+1+15 4+5+10 1+12+2 1+4+6 2+20+4 3+12+1 3+4+3 6+20+2

= 10 18 19 15 11 26 16 10 28

XY â‰  YX

Case 3: Multiplication of diagonal matrices of same order will commute

A = 1 0 0 0 2 0 0 0 3 3x3

B = 2 0 0 0 3 0 0 0 5 3x3

AB = 2 0 0 0 6 0 0 0 15 3x3

BA = 2 0 0 0 6 0 0 0 15 3x3

Case 4: XY = O (null matrix) may not always imply that either X = O or Y = O

Ex: X = 0 0 00 2 0 0 0 0           Y =  1 0 0 0 0 0 0 0 3

XY =     0 0 00 2 0 0 0 0       x     1 0 0 0 0 0 0 0 3      =  0 0 0 0 0 0 0 0 0

The multiplication property over matrices satisfies the associative law and the distributive law.

For any matrices X, Y and Z,

(X x Y) x Z = X x (Y x Z)

Ex:

A = 2 4 -1 3 1 5 6 2 1             B =  7 4 2 5 1 -3       C =   2 -3 1 4 3 2

(A x B) x C = A x (B x C)

Now L.H.S = (A x B) x C

A x B =  2 4 -1 3 1 5 6 2 1     x 7 4 2 5 1 -3   =  14+8-1 8+20+3 21+2+5 12+5-15 42+4+1 24+10-3

A x B = 21 31 28 2 47 31

(A x B) x C = 21 31 28 2 47 31 x 2 -3 1 4 3 2       = 42+124 -63+93 21+6256+8 -84+6 28+4 94+124 -141+93 47+62     = 166 30 8364 -78 32 218 -48 109

R.H.S = A x (B x C)

B x C  =   7 4 2 5 1 -3  x 2 -3 1 4 3 2

B x C  =   7 4 2 5 1 -3  x 2 -3 1 4 3 2      =  14+16 -21+12 7+84+20 -6+15 2+10 2-12 -3-9 1-6

B x C = 30 -9 1524 9 12 -10 -12 -5

A x (B x C)   =     2 4 -1 3 1 5 6 2 1     x 30 -9 1524 9 12 -10 -12 -5

= 60+96+10 -18+36+12 30+48+5 90+24-50 -27+9-60 45+12-25 180+48-10 -54+18-12 90+24-5

= 166 30 83 64 -78 32 218 -48 109

(A x B) x C = A x (B x C)

Both the matrices are equal. We can see that the multiplication satisfies the associative law.

According to the distributive law for any matrices X, Y and Z,

X x (Y + Z) = X x Y + X x Z

(X + Y) x Z = X x Z + Y x Z

Ex: (A x B) x C = A x C + B x C

A = 4 2 -13 1 0 5 4 2       B = 1 0 45 -1 3 2 1 6     C = 5 1 4

(A + B) x C

A + B = 4 2 -13 1 0 5 4 2     +  1 0 45 -1 3 2 1 6

(A + B) x C =  5 2 38 0 3 7 5 8      x   5 1 4

= 25+2+12 40+0+12 35+5+32   = 39 52 72

A x C + B x C

A x C = 4 2 -13 1 0 5 4 2       x   5 1 4  = 20+2-4 15+1+0 25+4+8 =  18 16 37

B x C = 4 2 -13 1 0 5 4 2     +  5 1 4  =  5+0+16 25-1+12 10+1+24 =  21 36 35

A x C + B x C = 18 16 37   + 21 36 35  = 39 52 72

The distributive law is applicable to the multiplication of matrices.

Multiplicative identity exists for any square matrix.

If X is a square matrix, there exists an identity matrix, I, of similar order such that

X = [xij]nxn , I = [iij]nxn

X x I = I x X = X