Why does elementary row operation on combination of Identity matrix and invertible matrix yields inverse matrix?
$$A = \begin{pmatrix}
1 & 3\\
4 & 2
\end{pmatrix}$$
if we combine $A$ with $I_{2\times 2}$ in which $I$ is an identity matrix, and do elementary row operation on it to get identity matrix on the other side, the opposite side(block) yields out the inverse of the matrix.
The question is, why is it true?
Consider a matrix in block form $(A|B)$. Let's do an elementary transformation. This amounts to multiplying the whole thing by an elementary matrix $E$ from the left. The result of that single operation is $$ (A'|B')=E(A|B)=(EA|EB). $$ If we assume that $B$ is invertible, then so is $B'$, because the elementary matrices are all invertible. We also observe that $B'^{-1}A'=B^{-1}A$, because $$ B'^{-1}A'=(EB)^{-1}(EA)=(B^{-1}E^{-1})(EA)=B^{-1}A.\qquad(*) $$ This easily generalizes to a sequence of elementary row operations $E_1,E_2,\ldots,E_n$. Namely, if $A_0=A, B_0=I$ and $A_{n}=E_nE_{n-1}\cdots E_2E_1A_0$ and $B_{n}=E_nE_{n-1}\cdots E_2E_1B_0$, then we have $$ B_{n}^{-1}A_{n}=B_0^{-1}A_0.\qquad(**) $$ Proof goes by induction on $n$, and $(*)$ is both the base case and the inductive step (don't you love it when that happens).
Anyway, if for some sequence of elementary matrices we have $A_{n}=I$, then ... well, you check what equation $(**)$ says about $B_n$ in that case.