I have that $$AB = \begin{bmatrix} -1 & 0 \\ 0 & 1 \end{bmatrix}$$ and I am asked to find $BA$. We know that $A$ and $B$ are $2\times 2$ matrices with real number entries.
Please could I ask how people might approach this problem?
So far, I have that the solutions are given by $A^{-1}B^{-1}$. We can establish from the initial information that $A$ and $B$ are both invertible. Is there a way of showing that this set of solutions is finite or infinite?
I know that $A$ and $B$ are invertible since $\det(BA)=\det(A)\det(B)$ is non-zero. Credit goes to the poster who provided such an eloquent explanation to get my current level of understanding.
Let $AB=C$ with $C=\pmatrix{ -1 & 0 \cr 0 & 1 \cr}$. Since $0\neq \det(C)=\det(A)\det(B)$, both $A$ and $B$ are invertible. Conjugating $AB=C$ with $A$ yields $$ BA=A^{-1}(AB)A=A^{-1}CA. $$
Note that there are several choices for $A$ and $B$ with $AB=C$. For example, $A=I$, $B=C$, or $B=I$ and $A=C$. Another possibility is $$ A=\pmatrix{ 0 & 1 \cr 1 & 0 \cr},\quad B=\pmatrix{ 0 & 1 \cr -1 & 0 \cr}. $$