1 LU decomposition

Suppose we have the system of equations

A X = B .

The motivation for an L U decomposition is based on the observation that systems of equations involving triangular coefficient matrices are easier to deal with. Indeed, the whole point of Gaussian elimination is to replace the coefficient matrix with one that is triangular. The L U decomposition is another approach designed to exploit triangular systems.

We suppose that we can write

A = L U

where L is a lower triangular matrix and U is an upper triangular matrix. Our aim is to find L and U and once we have done so we have found an L U decomposition of A .

Key Point 5

An L U decomposition of a matrix A is the product of a lower triangular matrix and an upper triangular matrix that is equal to A .

It turns out that we need only consider lower triangular matrices L that have 1s down the diagonal. Here is an example. Let

A = 1 2 4 3 8 14 2 6 13 = L U where L = 1 0 0 L 21 1 0 L 31 L 32 1 and U = U 11 U 12 U 13 0 U 22 U 23 0 0 U 33 .

Multiplying out L U and setting the answer equal to A gives

U 11 U 12 U 13 L 21 U 11 L 21 U 12 + U 22 L 21 U 13 + U 23 L 31 U 11 L 31 U 12 + L 32 U 22 L 31 U 13 + L 32 U 23 + U 33 = 1 2 4 3 8 14 2 6 13 .

Now we use this to find the entries in L and U . Fortunately this is not nearly as hard as it might at first seem. We begin by running along the top row to see that

U 11 = 1 , U 12 = 2 , U 13 = 4 .

Now consider the second row

L 21 U 11 = 3 L 21 × 1 = 3 L 21 = 3 , L 21 U 12 + U 22 = 8 3 × 2 + U 22 = 8 U 22 = 2 , L 21 U 13 + U 23 = 14 3 × 4 + U 23 = 14 U 23 = 2 .

Notice how, at each step, the equation being considered has only one unknown in it, and other quantities that we have already found. This pattern continues on the last row

L 31 U 11 = 2 L 31 × 1 = 2 L 31 = 2 , L 31 U 12 + L 32 U 22 = 6 2 × 2 + L 32 × 2 = 6 L 32 = 1 , L 31 U 13 + L 32 U 23 + U 33 = 13 ( 2 × 4 ) + ( 1 × 2 ) + U 33 = 13 U 33 = 3 .

We have shown that

A = 1 2 4 3 8 14 2 6 13 = 1 0 0 3 1 0 2 1 1 1 2 4 0 2 2 0 0 3

and this is an L U decomposition of A .

Task!

Find an L U decomposition of 3 1 6 4 .

Let

3 1 6 4 = L U = 1 0 L 21 1 U 11 U 12 0 U 22 = U 11 U 12 L 21 U 11 L 21 U 12 + U 22

then, comparing the left and right hand sides row by row implies that U 11 = 3 , U 12 = 1 , L 21 U 11 = 6 which implies L 21 = 2 and L 21 U 12 + U 22 = 4 which implies that U 22 = 2 . Hence

3 1 6 4 = 1 0 2 1 3 1 0 2

is an L U decomposition of 3 1 6 4 .

Task!

Find an L U decomposition of 3 1 6 6 0 16 0 8 17 .

Using material from the worked example in the notes we set

3 1 6 6 0 16 0 8 17 = U 11 U 12 U 13 L 21 U 11 L 21 U 12 + U 22 L 21 U 13 + U 23 L 31 U 11 L 31 U 12 + L 32 U 22 L 31 U 13 + L 32 U 23 + U 33

and comparing elements row by row we see that

U 11 = 3 , U 12 = 1 , U 13 = 6 , L 21 = 2 , U 22 = 2 , U 23 = 4 L 31 = 0 L 32 = 4 U 33 = 1

and it follows that

3 1 6 6 0 16 0 8 17 = 1 0 0 2 1 0 0 4 1 3 1 6 0 2 4 0 0 1

is an L U decomposition of the given matrix.