Link to originalVandermonde Matrix
Let the pairs of data points be
Let then
Coefficients solve linear system of equations
where the matrix is called Vandermonde and is non-singular if are distinct
Link to originalLinear System
Consider system in linear system form
Link to originalForward 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
Link to originalBackward 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
Link to originalGauss 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
Link to originalMatrix 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
Link to originalInverse of Matrix for Row Operations
If then
Link to originalLower Upper Decomposition of a Square Matrix
Let be a matrix then
where
is upper triangular
is unit lower triangular (ones on diagonal)
Link to originalSolving 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
Link to originalPivoting Gaussian Elimination or Lower Upper Decomposition
Let
If there exists pivot for some then
Reorder rows (equations) to ensure for all
Link to originalPartial Pivoting
Let
For creating zeros in th column
Find whereso is the largest value in that column below
Then
Link to originalStability of Gaussian Elimination with Partial Pivoting
Gaussian Elimination with partial pivoting cannot fail if is non-singular
Proof
Let be at the -th stage so
Then
Hence if and only if
Hence pivot is zero so is singular
If is non-singular then all pivots are non-zero
Link to originalPartial 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