The commutator of square matrices, $$[A,B]:=AB - BA,$$ can be viewed as a function $[\cdot,\cdot]:\mathbb{R}^{n \times n} \times \mathbb{R}^{n \times n} \rightarrow \mathbb{R}^{n \times n}$ (or $\mathbb{C}^{n \times n} \times \mathbb{C}^{n \times n} \rightarrow \mathbb{C}^{n \times n}$) that takes two matrices as input and returns a matrix as output.
Questions:
- What is known about the image of this function?
- What matrices are in the image, and what algebraic and topological structures does the image have?
Stated another way, what are the characteristics of the set of matrices $M$ that can be written in the form $M=AB-BA$ for some $A,B$?
Clearly, a necessary condition is that the trace of a matrix in the image of the commutator must be zero, since $\text{trace}(AB)=\text{trace}(BA)$. However, it is not clear (to me) whether this condition is sufficient to characterize the set (I suspect it is not).
Much information can be found online about the image of the group-theoretic commutator, but I am interested in the ring-theoretic commutator, which is different, and in particular, I am interested in the special case where the commutator is applied to square matrices that are real or complex valued.