Linear System
Consider system in linear system form
Forward Substitution
Let be a lower triangular matrix so for all
Let be in Linear System formAs is lower triangular then using a procedure called Forward Substitution then
where this only works if for all
Backward Substitution
Let be a upper triangular matrix so for all
Let be in Linear System formAs is upper triangular then using a procedure called Backward Substitution then
where this only works if for all
Gauss Elimination (GE)
Let be a matrix
Gaussian Elimination is a systematic way to introduce zeroes into lower triangular part of
by subtracting multiples of previous rows (equations)Pseudocode
Let be a matrix
For columns
For rowsend
endNote that the diagonal element used to eliminate the rows below is called the pivot
Matrix for Row Operations
Let row operation be
Then it can be done by pre-multiplication of a lower triangular matrix
where is at the th position in the matrix
with known as the multipliersNote that consecutive row operations use data resulting from previous transformations
Inverse of Matrix for Row Operations
If then
Lower Upper Decomposition of a Square Matrix
Let be a matrix then
where
is upper triangular
is unit lower triangular (ones on diagonal)
Solving Linear Systems via Lower Upper Decomposition
Let System be
- Factorise where is unit lower triangular and is upper triangular
- Solve using Forward Substitution
- Solve using Backward Substitution
- Hence solves
Pivoting Gaussian Elimination or Lower Upper Decomposition
Let
If there exists pivot for some then
Reorder rows (equations) to ensure for all
Partial Pivoting
Let
For creating zeros in th column
Find whereso is the largest value in that column below
Then
Partial Pivoting through Permutation
Swapping row and row is same as pre-multiplication by
with rows and row swapped known as
Note that has same rows as