Linear… algebra?

Let $A\in M_n(k)$ be an $n\times n$ matrix with coefficients in $k$ a field of characteristic $0$. Then $\mathrm{tr}(A)=0$ if and only if there exist matrices $X,Y\in M_n(k)$ such that $A = [X,Y]=XY-YX$.