Given a non-singular matrix $A$, is it possible to find $A^{-1}$ using Gaussian elimination, without LU and without Gauss–Jordan?
I know that I can use LU decomposition and then apply Gaussian elimination on $L$ and $U$. This would require :
Finding $L$ and $U$
Calculate $L*Y = e(i)$ , from here I'd get $Y$
Calculate $U*(current-column) = Y$ , from here I'd get each time the column
Or, I can use Gauss–Jordan method (without LU decomposition) where I put the $I$ matrix on the right of $A$, and then use the Gauss–Jordan elimination.
Both ways work great, but, is it possible to calculate the inverse of $A$ only with Gaussian elimination?
Regards
I will make a guess that the problem actually wants you to find an inverse of $A$ given a method to compute $A^{-1}b$ for any vector $b$, because that's what Gaussian elimination does.
Assume $A$ is a non-singular $n$-by-$n$ real matrix. Let $e_i$ be the $i$-th basis vector of the standard basis of $\mathbb R^n$. Use the given method (Gaussian elimination in this case) to solve for $x_i$ from $Ax_i = e_i$, $i = 1, 2, \ldots, n$. The matrix $[x_1 \ x_2 \ \ldots \ x_n]$ will be $A^{-1}$.