I try to solve a question but can't find a way.
Given $A,B$ are $4\times4$ matrices and $$ A-A^2B-2I = 0 \quad\text{and}\quad 3BA^2+A^2-3A = 0 $$ I need to prove that $A,B$ are invertible and to find $\det A$.
I succeeded to find that $A$ is invertible using $A(I-AB) = 2I$.
But I can't find why $B$ is invertible no matter how I do algebraic manipulations.
Please help, even a hint will help, because I have no clue.
Observe that $3BA^2+A^2-3A=0$ implies $3BA+A-3I=0$, from which we get $$ (3B+I)A=3I $$ which, by using the fact that for an invertible matrix $M$ we have $MM^{-1}=M^{-1}M=I$, we achieve $$ A(3B+I)=3AB+A=3I \implies AB=I-\frac{1}{3}A. $$ Now, replace for $AB$ in $A-A^2B-2I=0$ and enjoy the rest of the journey for yourself!