is matrix ab = ba?
In general, AB = BA, even if A and B are both square. If AB = BA, then we say that A and B commute. For a general matrix A, we cannot say that AB = AC yields B = C. (However, if we know that A is invertible, then we can multiply both sides of the equation AB = AC to the left by A−1 and get B = C.)