I found a problem in my textbook and I have tried solving it, but I had no succes. The problem is:
Let $A$ and $B$ be $n \times n$ matrices with complex number entries. Given that $AB−BA$ is invertible and $(A−B)^2=I_n$, where $I_n$ is the identity matrix, prove that $tr(A)=tr(B)$ and that $n$ is even. How should I approach this problem? I have tried to actually compute the inverse of $AB−BA$ from $(A−B)^2$ but I had no succes. I can also say that the eignevalues of $A-B$ are $+1$ or $-1$, but how does that help?