Show that the order of the matrices must be even.

Let $A,B$, two matrices with the order of $n\times n$.
Given that $AB + BA = 0$ and $A,B$ are invertible (meaning, there are $A^{-1}, B^{-1}$).
Prove that $n$ must be even number.

\eqalign{ & AB + BA = 0 \cr & AB = - BA \cr & \left| {AB} \right| = \left| { - BA} \right| \cr & \left| {AB} \right| = {( - 1)^n}\left| {BA} \right| \cr}

Assuming $n$ is odd, then:
$$\left| {AB} \right| = - \left| {BA} \right|$$

I don't see something wrong with the last equation.
Maybe I'm missing something, or it's not the right way..

-

$$\det (AB)=\det(BA)=\det A\det B$$
You get $ABA^{-1} = -B$, so $\det B = \det(ABA^{-1}) = \det(-B) = (-1)^n \det(B)$. So if $\det B \neq 0$ what can you say about $n$?