- Published on
Notes on Strang Lecture - 2
Gaussian elimination
This lecture covers Gaussian elimination for solving systems of linear equations - transforms a matrix into an upper triangular form through row operations.
The elimination process
Consider solving the system where
In matrix form as:
Step 1: First pivot elimination
The first pivot (the coefficient in position ) is not . We eliminate below the first pivot:
Here we performed the operation: Row 2 → Row 2 - 3×Row 1
Step 2: Second pivot elimination
Continue eliminating below the second pivot:
We performed: Row 3 → Row 3 - 2×Row 2
This upper triangular matrix is denoted as .
When elimination fails
Elimination can fail when:
- There is a 0 at a pivot position, and
- We cannot perform row exchanges to fix it
Elimination matrices
The elimination process can be represented using matrices. These matrices encode the row operations performed during elimination.
Note on matrix multiplication
For a matrix
with rows , and , and a row vector . The operation:
is a linear combination of the rows of .
Example elimination matrix
For our previous example, the elimination matrix that transforms Row 2 by subtracting 3 times Row 1 is:
Similarly, the elimination matrix for the second step (eliminating below the second pivot) is:
The complete elimination process
The complete elimination (LU decomposition) can be written as a sequence of matrix multiplications:
Where is the upper triangular matrix obtained after elimination.