Direct approach of LU factorisation

Let $\v l_k$ be the columns of $L$ and $\v u_k^T$ be the rows of $U$. By matrix multiplication, $$ \begin{align*} A = \sum_{k=1}^{n} \v l_k \v u_k^T. \end{align*} $$

Let $A^{(0)} = A$.

  1. Take $\v u_1^T=$ first row of $A^{(0)}$ and $\v l_1 = \frac{1}{A_{11}^{(0)}}\times$ first column of $A^{(0)}$. Then $$ \begin{align*} A^{(1)} := A^{(0)} - \v l_1 \v u_1^T = \pmat{0 & 0 & \ldots & 0 \\ 0 & * & \ldots & * \\ \vdots & \vdots & \ddots & \vdots \\ 0 & * & \ldots & * }. \end{align*} $$

  2. Take $\v u_2^T=$ second row of $A^{(1)}$ and $\v l_2 = \frac{1}{A_{22}^{(1)}}\times$ second column of $A^{(1)}$. Then $$ \begin{align*} A^{(2)} := A^{(1)} - \v l_2 \v u_2^T = \pmat{0 & 0 & 0 & \ldots & 0 \\ 0 & 0 & 0 & \ldots & 0 \\ 0 & 0 & * & \ldots & * \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & * & \ldots & * }. \end{align*} $$

And so on.

This takes $O(n^3)$ computations. With a better algorithm, we can get $O(n^{\log_2 7}) \approx O(n^{2.8})$.

Example (direct approach of LU factorisation)

Column pivoting in LU factorisation open_in_new

The LU algorithm fails if $A_{kk}^{(k-1)} = 0$. To avoid this and to improve numerical stability, we exchange rows so that the element of largest magnitude in column $k$ is at the pivotal position $(k,k)$. This pre-multiplies a permutation matrix.

We obtain a factorisation $$ \begin{align*} PA = LU \implies A = P^T LU \end{align*} $$ where $P$ is the product of all permutation matrices multiplied.

Example (column pivoting in LU factorisation)