Problem: Is there exist matrices $A, B$ that makes $AB= $$\bigl( \begin{smallmatrix} 7 & -1 \\ 9 & 3 \end{smallmatrix} \bigr)$, $ BA= $$\bigl( \begin{smallmatrix} 7 & -3 & 3\\ 3 & 1 &1\\ 3&-7&2 \end{smallmatrix} \bigr)$.
I want to use offset standard type to compute it, but it doesn't make sense.
Some advanced classmates solve it by some methods in the linear transformation, but I can't understand it clearly.
However, I guess that my teacher want us to solve it by some matrices method.
Thanks for your thinking.
From $(AB)A=A(BA)$ you’ll get a system of six linear equations with the components of $A$ as unknowns. Now try to solve it.
My CAS gives me — module typos — that any linear combination of $$\begin{pmatrix}13&-9&6\\ 9&27&0\end{pmatrix}\text{ and } \begin{pmatrix}41&-45&21\\ 56&0&27\end{pmatrix}$$ is a solution.
This was brute force, here’s a more elegant solution. As $AB$ and $BA$ have rank $2$ and rank of $A$ is at most $2$, the rank of $A(BA)$ and of $(AB)A$ is at most $2$, hence the rank of their difference is at most $4$. Therefore the kernel of $(AB)A-A(BA)$ is at least two-dimensional.