Gaussian elimination
From CFD-Wiki
(Difference between revisions)
(capitalized Phi) |
|||
Line 1: | Line 1: | ||
== Gauss Elimination == | == Gauss Elimination == | ||
- | We consider the system of linear equations '''<math> A\ | + | We consider the system of linear equations '''<math> A\phi = B </math>''' or <br> |
:<math> | :<math> | ||
\left[ | \left[ | ||
Line 74: | Line 74: | ||
\begin{matrix} | \begin{matrix} | ||
{b_1^' } \\ | {b_1^' } \\ | ||
- | { | + | {b_2^' } \\ |
. \\ | . \\ | ||
- | { | + | {b_n^' } \\ |
\end{matrix} | \end{matrix} | ||
Line 84: | Line 84: | ||
</math> <br> | </math> <br> | ||
- | + | The solution to the original system is found via '''back substitution'''. The solution to the last equation is | |
+ | |||
:<math> | :<math> | ||
- | \ | + | \phi_n = b_n^'/a_{nn}'. |
- | </math> | + | </math> |
- | + | ||
+ | This result may now be substituted into the second to last equation, allowing us to solve for <math>\phi_{n-1}</math>. Repetition of this substitution process will give us the complete solution vector. The back substitution process may be expressed as | ||
+ | |||
+ | :<math> | ||
+ | \phi_i = {1 \over {a_{ii}^' }}\left( {b_i^' - \sum\limits_{j = i + 1}^n {a_{ij}^' \phi_j } } \right), | ||
+ | </math> | ||
- | + | where <math>i=n,n-1,\ldots,1</math>. | |
- | <i | + |
Revision as of 22:30, 16 December 2005
Gauss Elimination
We consider the system of linear equations or
To perform Gaussian elimination starting with the above given system of equations we compose the augmented matrix equation in the form:
After performing elementary raw operations the augmented matrix is put into the upper triangular form:
The solution to the original system is found via back substitution. The solution to the last equation is
This result may now be substituted into the second to last equation, allowing us to solve for . Repetition of this substitution process will give us the complete solution vector. The back substitution process may be expressed as
where .