3.4 Multiplication of Matrices
A matrix A is said to be conformable for multiplication with a matrix B if the number of columns of A is equal to the number of rows of B.
Thus, if A and B are given two matrices of order m-by-n and n-by-p respectively, then the product of matrices A and B is denoted by AB and its order will be m-by-p.
The order of AB is m-by-p = number of rows of A by number of columns of B.
lightbulb
Remember!
Number of rows of A → A m-by-n must be same → B n-by-p → Number of columns of B
Product AB is of order m-by-p
Let us explain the concept of multiplication of matrices with the help of an example from our daily life.
Talmeez purchased 7 books and 6 pencils at the rate of Rs. 20 and Rs. 3 per article respectively from shop No. 1 and he purchased same number of books and pencils at the rate of Rs. 22 and Rs. 4 per article respectively from Shop No. 2. Majid purchased 5 books and 8 pencils from Shop No. 1 at the same rate Talmeez purchased. Majid purchased same number of books and pencils from Shop No. 2 at the same rate Talmeez purchased.
We show their purchase in the form of tables.
Table 1
| Books | Pencils |
|---|
| Talmeez | 7 | 6 |
| Majid | 5 | 8 |
Table 2
| Shop No. 1 | Shop No. 2 |
|---|
| Rate per book | 20 | 22 |
| Rate per pencil | 3 | 4 |
Amount paid by Talmeez at Shop No. 1.
7×20+6×3=158 rupees ...(i)
Amount paid by Talmeez at Shop No. 2
7×22+6×4=178 rupees ...(ii)
Amount paid by Majid at shop No. 1
5×20+8×3=124 rupees ...(iii)
Amount paid by Majid at shop No. 2
5×22+8×4=142 rupees ...(iv)
We show entries of the two tables in the form of matrices.
Table 1
[7568]
Table 2
[203224]
Calculations given above is shown in the form of matrix.
[7×20+6×35×20+8×37×22+6×45×22+8×4] see(i),(ii),(iii)and (iv)
=[158124178142]
For example, A=[9473],B=[2568]
Now, AB=[9473][2568]
Example 5
If A=[250−3],B=[−21], then find:
(i) AB, if possible. (ii) BA, if possible.
Solution (i) Number of columns in matrix A=2
Number of rows in matrix B=2
Thus, AB is possible
Now AB=[250−3][−21]
=[2×(−2)+0×15×(−2)+(−3)×1]
=[−4+0−10−3]=[−4−13]
(ii) BA=[−21][250−3]
Number of columns in matrix B=1
Number of rows in matrix A=2
Thus, BA is not possible
lightbulb
Skilled Practice!
If A=[53] and B=[−21], then find AB and its order.