Jethro's Braindump

LU Decomposition

The key problem of Linear Algebra is solving the equation Ax=b. We know that with Gaussian elimination, we can decompose A=LU, where L is a lower-triangular matrix and U is an upper triangular matrix. An example speaks a thousand words:

Ax=[211 460 272][u v w]=[5 2 9]=b

We have that:

Ux=[211 082 001][u v w]=[5 12 2]=c

And the process from getting from A to U is GFEA=U:

GFE=[1 1 11][1 1 11][11 21 1]=[1 21 111]

We have that E1F1G1U=LU=A:

E1F1G1=[1 21 1][1 1 11][1 1 11]=[1 21 111]=L

The A=LU decomposition is exactly the matrix that solves Ax=b. Each triangular system requires n22 steps each, compared to the O(n3) system of factoring A.

The triangular factorization can be written A=LDU where L and U have 1s on the diagonal, and D is the diagonal matrix of pivots:

A=[12 34]=[11 31][12 2]=[1 31][1 2][12 1]=LDU

This factorization is uniquely determined by A.