Question
If A=
then find AB, BA.
Show that AB ≠ BA.
Solution

A is of type 2 x 3 and B is of type 3 x 2.
Since number of columns of A = number of rows of B =3
∴ AB is defined.
Again number of columns of B = number of rows of A = 2
∴ BA is defined.
Note 1. From above example, it is clear that though AB and BA are defined, yet AB ;≠ BA. Here A and B are of different types.
Note 2. Even if A and B are of same order, there are chances that AB≠ BA.
∴ we can say that matrix multiplication is not commutative.
Note 3. Even if AB ≠ BA in many cases, there are cases when AB = BA.