$AB-BA=I$ having no solutions

The following question is from Artin's Algebra.

If $A$ and $B$ are two square matrices with real entries, show that $AB-BA=I$ has no solutions.

I have no idea on how to tackle this question. I tried block multiplication, but it didn't appear to work.


Solution 1:

Let a $n\times n$ matrix. Take trace of both sides $$\operatorname{trace}(AB-BA)= \operatorname{trace}(I)\Rightarrow \operatorname{trace}(AB)- \operatorname{trace}(BA) =n\Rightarrow0=n$$

Solution 2:

As you should have known by now, for real matrices, the equation $AB-BA=I$ has no solution because the LHS has zero trace but the RHS is not traceless. The same conclusion holds for complex matrices. For other fields, an in-depth discussion can be found in the answers to a related question. In particular, it has been proven that a square matrix $M$ is a commutator (i.e. $M=AB-BA$ for some square matrices $A$ and $B$) if and only if $M$ is traceless:

A.A. Albert and Benjamin Muckenhoupt (1957), "On matrices of trace zeros". Michigan Math. J., 4(1):1-3.

It follows that $AB-BA=I_n$ has a solution if and only if $I_n$ is traceless over the underlying field.