Gaussian Elimination

Recall that any nonsingular matrix A can be reduced to upper triangular matrix U with all non-zero diagonal elements by elementary row operations.

Recall also that the elementary row operations can be realized by multiplication of the original matrix A by the so called elementary matrices.

Moreover, we can reduce A to U by first applying elementary row operations of the second type (permutation of rows), and then applying elementary row operations of type 1. In other words, P1,,Pk and E1,,Em such that E1EmP1PkA=U.
Denoting E1=L, we obtain the well known permuted LU factorization of a nonsingular matrix:

PA=LU

Once the permuted LU factorization is obtained, it is easy to solve Ax=b.

  1. PAx=Pb=b~LUx=b~
  2. Solve Ly=b~ by forward substitution
  3. Solve Ux=y by back substitution