Let ∘ be a binary operation on a set S. The elements a and b of S commute (under the operation ∘) if a∘b = b∘a. For example, multiplication on the set of all real 2×2 matrices is not commutative, but if A and B are diagonal matrices, then A and B commute.