# Is matrix subtraction commutative?

##### 2 Answers

Matrix subtraction is not commutative because you have to subtract term by term your two matrices and the order in the subtraction counts. So:

For example, consider:

No, but it is not too difficult to show that it is anticommutative.

For

#c_(ij) = a_(ij) - b_(ij)#

Thus:

#c_(ij) = -(b_(ij) - a_(ij)) = a_(ij) - b_(ij)#

or

#C = -(B - A)#

which we should expect from knowing that subtraction is itself anticommutative.

So, if you realize that you subtracted the two matrices in the wrong order for some reason, just take the negative of your resultant matrix. For instance:

#stackrel(B)overbrace([(1,2,3),(4,5,6),(7,8,9)]) - stackrel(A)overbrace([(1,2,4),(4,7,6),(7,8,2)])#

#= stackrel(-C)overbrace([(0,0,-1),(0,-2,0),(0,0,7)])#

Then, if it wasn't what you wanted to do, you can fix it!

#-(stackrel(B)overbrace([(1,2,3),(4,5,6),(7,8,9)]) - stackrel(A)overbrace([(1,2,4),(4,7,6),(7,8,2)])) = -stackrel(-C)overbrace([(0,0,-1),(0,-2,0),(0,0,7)])#

#= stackrel(A)overbrace([(1,2,4),(4,7,6),(7,8,2)]) - stackrel(B)overbrace([(1,2,3),(4,5,6),(7,8,9)])#

#= stackrel(C)overbrace([(0,0,1),(0,2,0),(0,0,-7)])#