Calculate the LU decomposition of a matrix into lower and upper triangular matrices
LU factorization (or LU decomposition) is a matrix factorization method that breaks down a matrix A into the product of two matrices:
\[ A = LU \]
where:
LU factorization has numerous applications in:
Consider the matrix:
\[ A = \begin{bmatrix} 4 & 3 \\ 6 & 3 \end{bmatrix} \]
Its LU factorization would be:
\[ L = \begin{bmatrix} 1 & 0 \\ 1.5 & 1 \end{bmatrix} \]
\[ U = \begin{bmatrix} 4 & 3 \\ 0 & -1.5 \end{bmatrix} \]