For the following matrices, verify that A(B C)=(A B) C : \mathrm{A}=\left[\begin{array}{lll} 1 & 2 & 5 \\ 0 & 1 & 3 \end{array}\right], \mathrm{B}=\left[\begin{array}{lll} 2 & 3 & 0 \\ 1 & 0 & 4 \\ 1 & -1 & 2 \end{array}\right] \text { and } \mathrm{C}=\left[\begin{array}{l} 1 \\ 4 \\ 5 \end{array}\right]
For the following matrices, verify that A(B C)=(A B) C : \mathrm{A}=\left[\begin{array}{lll} 1 & 2 & 5 \\ 0 & 1 & 3 \end{array}\right], \mathrm{B}=\left[\begin{array}{lll} 2 & 3 & 0 \\ 1 & 0 & 4 \\ 1 & -1 & 2 \end{array}\right] \text { and } \mathrm{C}=\left[\begin{array}{l} 1 \\ 4 \\ 5 \end{array}\right]

Solution:

We have A=\left(\begin{array}{lll}1 & 2 & 5 \\ 0 & 1 & 3\end{array}\right), B=\left(\begin{array}{ccc}2 & 3 & 0 \\ 1 & 0 & 4 \\ 1 & -1 & 2\end{array}\right). and C=\left(\begin{array}{l}1 \\ 4 \\ 5\end{array}\right)
Now if number of columns in left matrix is equals to the number of rows in right matrix, multiplication of two matrices is possible.

Next discuss the order of the matrices which are given.
The order of matrix \boldsymbol{B} is \mathbf{3} \times \mathbf{3}, matrix \boldsymbol{A} is \mathbf{2} \times \mathbf{3} and matrix \boldsymbol{C} is 3 \times 1
Thus the multiplications we can proceed as
(i) The multiplication A B is possible.
A B=\left(\begin{array}{lll} 1 & 2 & 5 \\ 0 & 1 & 3 \end{array}\right)\left(\begin{array}{ccc} 2 & 3 & 0 \\ 1 & 0 & 4 \\ 1 & -1 & 2 \end{array}\right)=\left(\begin{array}{lll} 9 & -2 & 18 \\ 4 & -3 & 10 \end{array}\right)

(ii) The multiplication \boldsymbol{B} \boldsymbol{C} is possible.
B C=\left(\begin{array}{ccc} 2 & 3 & 0 \\ 1 & 0 & 4 \\ 1 & -1 & 2 \end{array}\right)\left(\begin{array}{l} 1 \\ 4 \\ 5 \end{array}\right)=\left(\begin{array}{c} 14 \\ 21 \\ 7 \end{array}\right)

(iii) The multiplication \boldsymbol{A}(\boldsymbol{B} \boldsymbol{C}) is possible.
A(B C)=\left(\begin{array}{lll} 1 & 2 & 5 \\ 0 & 1 & 3 \end{array}\right)\left(\begin{array}{c} 14 \\ 21 \\ 7 \end{array}\right)=\left(\begin{array}{l} 91 \\ 42 \end{array}\right)

(iv) The multiplication (\boldsymbol{A} \boldsymbol{B}) \boldsymbol{C} is possible.
(A B) C=\left(\begin{array}{lll} 9 & -2 & 18 \\ 4 & -3 & 10 \end{array}\right)\left(\begin{array}{l} 1 \\ 4 \\ 5 \end{array}\right)=\left(\begin{array}{l} 91 \\ 42 \end{array}\right)
From (iii) and (iv) it can be observed that both the matrices \boldsymbol{A}(\boldsymbol{B} \boldsymbol{C}) and (\boldsymbol{A B}) \boldsymbol{C} are of same order \mathbf{2} \times \mathbf{1} and the corresponding elements are same.

Therefore by equality of two matrices we can say here that our matrices are equal.
Hence (A B C)=A(B C).