Let A=[[2,4],[3,2]], B=[[1,3],[-2,5]], C=[[-2,5],[3,4]]. Find each of the following: (i) A+B (ii) A-B (iii) 3A-C (iv) AB (v) BA.
Hint. Add/subtract entry by entry for (i)-(iii); for (iv)-(v) use row-times-column multiplication, remembering order matters.
Since A, B, and C all share order 2x2, addition and subtraction work entry by entry. (i) A+B = [[2+1,4+3],[3-2,2+5]] = [[3,7],[1,7]]. (ii) A-B = [[2-1,4-3],[3+2,2-5]] = [[1,1],[5,-3]]. (iii) 3A-C = [[6-(-2),12-5],[9-3,6-4]] = [[8,7],[6,2]]. (iv) For AB, each entry is a row-of-A times a column-of-B: AB = [[21+4-2, 23+45],[31+2-2, 33+25]] = [[-6,26],[-1,19]]. (v) BA = [[12+33, 14+32],[-22+53, -24+52]] = [[11,10],[11,2]], which is different from AB, since matrix multiplication does not commute.
✦ (i) [[3,7],[1,7]] (ii) [[1,1],[5,-3]] (iii) [[8,7],[6,2]] (iv) AB=[[-6,26],[-1,19]] (v) BA=[[11,10],[11,2]] — note AB is not equal to BA.
