Matrix multiplication is not commutative
Let A be an m ? k matrix and B be a k ? n matrix.
AB is defined, but unless n = m, BA is not defined!
If n = m, then AB is an m ? m matrix and BA is a k?k matrix.
So, unless m = k, these matrices have different sizes!
But even if m = n = k, AB and BA may be different!