Calculate the commutator [A,B] of the matrices
Ans.
The commutator is calculated by definition as
Carrying out the first matrix multiplication gives
and the second multiplication is
Finally, subtracting the two yields
Since the commutator is non-zero, we say that A and B do not commute.