Can someone give me a hint how to find all $n\times n$ matrices $A,B$ over an arbitrary field, such that they commute, i.e. such that $AB=BA$ ?
I found this problem in some lectures notes where the trace of a matrix was discussed, so my guess is, that I should use it - but I have no idea how (although I know that $tr(AB)=tr(BA)$). Manually writing this out and trying to solve a huge system just doesn't seem like a good strategy.