I don't understand the problem with this proof:
Let $A$ and $B$ be (2x2) Matrices such that $A^2 = AB$ and $A \ne 0$
If $A^2 = AB$, then $A^2 - AB = 0$
Thus $A(A-B) = 0$, and because $A \ne 0$, A can be eliminated such that $A-B = 0$ and thus $A = B$
I assume it stems from issues factoring matrices, but my problem could be because I don't fully grasp how to generally prove that $A^2=AB$ doesn't necessitate that $A = B$
Thanks for any help in advance!
Look at the two matrices $A=\begin{bmatrix}1&0\\0&0\end{bmatrix}$ and $B=\begin{bmatrix}0&0\\0&1\end{bmatrix}$. Both are non zero but $AB$ is the zero matrix. Matrix multiplication is very different from number multiplication, you can't just "divide" by a matrix because it is not zero.