Lemma: if $\operatorname{tr}(Z)=0$,then there exist $X$, $Y$, $|Y|\not=0$ satisfy $Z=XY-YX$.
It's an old problem but I can't prove it.
Lemma: if $\operatorname{tr}(Z)=0$,then there exist $X$, $Y$, $|Y|\not=0$ satisfy $Z=XY-YX$.
It's an old problem but I can't prove it.
It is easy to see that the vector space of trace zero matrices is equal to the space of commutators $[X,Y]=XY-YX$, using commutators of matrices $E_{ij}$ having entry $1$ at position $(i,j)$ and otherwise only zero entries. We have, for $j\neq k,m$, \begin{align*} [E_{jk},E_{kj}] & =E_{jj}-E_{kk},\\ [E_{jm},E_{mk}] & = E_{jk}. \end{align*} Here $[X,Y]=XY-YX$ is the commutator. This proof can be found in texts on Lie algebras, showing that $[\mathfrak{sl}(n),\mathfrak{sl}(n)]=\mathfrak{sl}(n)$.
Edit: To show that already every $A\in \mathfrak{sl}(n)$ is a commutator needs a further argument, see here.
A proof is given in this paper : On matrices of trace zero by A. A. Albert and Benjamin Muckenhoupt. Link to the paper. You could also have a look at this discussion (which is related) : Solutions to the matrix equation $\mathbf{AB-BA=I}$ over general fields.