Elimination Methods

Possible approaches for the solution of the following system of equations with coefficient matrix $A$.
1 Cramer's rule.

$\displaystyle 6x_1-3x_2+ x_3$ $\displaystyle =$ $\displaystyle 11$  
$\displaystyle 2x_1+ x_2 -8x_3$ $\displaystyle =$ $\displaystyle -15$  
$\displaystyle x_1 -7x_2+x_3$ $\displaystyle =$ $\displaystyle 10$  

\begin{indisplay}
A=\left[
\begin{array}{rrr}
6 & -3 & 1 \\
2 & 1 & -8 \\
1 & -7 & 1 \\
\end{array} \right],
\end{indisplay}

Let's denote the matrix by $A_j$ in which the right-hand-side vector are substituted to the $j^{th}$ column of $A$ matrix. e.g., the solution for $x_1$ is expressed as:

\begin{indisplay}
x_1=\frac{det (A_1)}{det (A)}=\frac{det\left\vert
\begin{array...
...\
1 & -7 & 1 \\
\end{array} \right\vert}=\frac{-285}{-285}=1
\end{indisplay}

Similarly, the solutions $x_2$ and $x_3$ can be written.
This method is very convenient when the number of unknowns is as few as 3-5. However, it is not feasible for systems with a large number of unknowns since determinant calculation requires many multiplication operations. For example, calculating a $20 \times 20$ determinant with Cramer's rule requires $\approx 10^{20}$ multiplications!
2 Inverse matrix. Another solution is to use the $A^{-1}$ matrix, which is the inverse of the A matrix. Multiplying both sides of the equation $A\vec{x}=\vec{b}$ by $A^{-1}$ and considering that $A^{-1}$$A=1$,
$\displaystyle A^{-1} A\vec{x}$ $\displaystyle =$ $\displaystyle A^{-1} \vec{b}$  
$\displaystyle \underbrace{A^{-1} A}_1\vec{x}$ $\displaystyle =$ $\displaystyle A^{-1} \vec{b}$  
$\displaystyle \vec{x}$ $\displaystyle =$ $\displaystyle A^{-1} \vec{b}$  

However, this approach is also not reasonable since calculating matrix inverses requires a large number of operations.


Subsections