Solution:
Key idea: To show two matrices are different, compute both and find one position where the entries differ. Here i is the imaginary unit, with i2=−1.
Step 1 — Part (a): find AB.
We multiply row by column and then use i2=−1.
AB=[i⋅0+0⋅i0⋅0+(−i)⋅ii⋅i+0⋅00⋅i+(−i)⋅0]
AB=[0−i2i20]
AB=[01−10]
Step 2 — Part (a): find BA.
Now B comes first, so we use the rows of B and the columns of A.
BA=[0⋅i+i⋅0i⋅i+0⋅00⋅0+i⋅(−i)i⋅0+0⋅(−i)]
BA=[0i2−i20]
BA=[0−110]
Step 3 — Part (a): compare.
The (1,2) entry of AB is −1 but that of BA is 1. So AB=BA (in fact BA=−AB).
Step 4 — Part (b): find AB.
We multiply row by column.
AB=[0⋅1+0⋅01⋅1+0⋅00⋅0+0⋅01⋅0+0⋅0]
AB=[0100]
The (2,1) entry is 1, so AB is not the zero matrix.
Step 5 — Part (b): find BA.
Now B comes first.
BA=[1⋅0+0⋅10⋅0+0⋅11⋅0+0⋅00⋅0+0⋅0]
BA=[0000]
Every entry is 0, so BA=O.
Watch out: Part (b) shows that a product of two non-zero matrices can be the zero matrix, which never happens with ordinary numbers.
Therefore, (a) AB=[01−10] and BA=[0−110], so AB=BA; (b) AB=[0100], which is not O, while BA=O.