Compare to Gaussian elimination, LU decomposition can save computation when we solve repeatedly with different s. To solve , we can let and then first solve for and then for . Since and are triangular matrices, we can solve the above equation trivially by forward and back substitution.
Continue from above example
Let . To solve in , we can let . Then by forward substitution, . And then we can do back substitution in and .