I've two doubts:
1) If $A,B$ are square matrices and $AB=I_n$, but not necessary $BA=I_n$, is true that $A$ is invertible and $A^{-1}=B$?
2) If $AB=B$, then $A=I_n$.
Well, I know that the second afirmation if false, but I don't know why. Look:
Consider $A = \left( {\begin{array}{*{20}{c}} 1 & 0 \\ 0 & { - 1} \\ \end{array}} \right),$ $B = \left( {\begin{array}{*{20}{c}} 1 & 0 \\ 0 & 0 \\ \end{array}} \right)$, here $AB=B$ but $A\neq I_n$.
Someone can help me?