Here, A is 3 × 3 and B is 3 × 3.
Hence, both AB and BA are defined and each will be 3 × 3 matrix. Let

where Cij means the product of the element at ith row of A with the element at jth column of B.
For example, C23 = product of the second row of A with the third column of B. That is,

Similarly, we can find other elements of C.
We can also say that by the product of the first row of A with the three columns of B, we shall get the three elements of the first row of C. That is,
R1C1, R1C2, R1C3
and similarly take the second row of A and multiply with all the columns of B and we will get the three elements of the second row of C, i.e. R2C1, R2C2, R2C3 and elements of the third row of C will be R3C1, R3C2, R3C3. Therefore

Similarly, BA can also be computed.