LU Factorization method is also known as Triangular method or LU Decomposition method. It uses the fact that if a square matrix, A=[aij] has non zero principal minors i.e
a11=0,a11a21a12a22=0,a11a21a31a12a22a32a13a23a33=0, etc.
then it can be factored into a multiple of a lower triangular matrix L and an upper triangular matrix U as A=LU. There are two main approaches for solving a linear system with LU factorization, they differ in the assumption of the diagonal elements for either L or U matrix. These methods are:
In the Doolittle method, we set the diagonal elements of the L matrix to be 1. On the other hand, the diagonal elements of the U matrix may take any value. We initialize L and U as:
L=1l21l3101l32001 and U=u1100u12u220u13u23u33