A square matrix admits an decomposition if all its leading principal minors are nonzero. Otherwise, a permutation matrix P may be needed, leading to We will write:
, where:
- L is lower triangular i.e. all entries above the main diagonal are zero,
- U is the upper triangular, i.e. all entries below the main diagonal are zero.
is called an LU Decomposition of M. It’s an useful trick for computational reasons; it is much easier to compute the inverse of an upper or lower triangular matrix than general matrices. Since inverses are useful for solving linear systems, this makes solving any linear system associated to the matrix much faster as well.
The determinant -- a very important quantity associated with any square matrix -- is very easy to compute for triangular matrices.