Hi all! I was wondering what the necessary condition is for two arbitrary matrices, say A and B, to commute: AB = BA. I know of several sufficient conditions (e.g. that A, B be diagonal, that they are symmetric and their product is symmetric etc), but I can't think of a necessary one. Thanks in advance!