Check that LU equals A
Check a factorisation by multiplying and comparing every entry with A. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.
is an entry-by-entry statement: for every,. Checking it means multiplying and comparing, not inspecting.
Two steps, in this order.
1. Shape. must be lower triangular with ones on its diagonal; must be upper triangular. If either fails, stop — the pair is not a candidate. 2. Every entry. Multiply out and compare all entries.
Passing step 1 says nothing about step 2. A pair can be perfectly shaped and multiply to a completely different matrix.
What each entry tests. With no row exchange, tests one multiplier per row; the diagonal tests the pivots; the rest test combinations. A pair that agrees on three of four entries is wrong, not nearly right — there is no partial credit for a factorisation.
The diagonal of mixes multipliers and pivots:
Two errors can cancel here — too large an with too small a gives the right sum and the wrong factors. And the entry has no multiplier in it at all, so it cannot detect one.
What makes the check decisive. is unit lower triangular, hence invertible. So has exactly one solution for given: multiply by. That means
so a proposed pair is either exactly right or wrong at some entry. There is no "close". This also gives a second way to check — compute and compare with — which is worth using when the numbers are awkward.
Genuine.,,.
Near miss. Same, but:
Three entries agree and the pair is wrong. The disagreement is at, which is where the extra pivot contributes — so the second pivot is the number to look at.
Where the sign shows up. Flip's multiplier to and, then: now two entries disagree, and both are in row 2. The row of the product tells you which row of is wrong.
- Check a factorisation by multiplying and comparing every entry with A
- Explain why matching shapes and matching diagonals are necessary but not sufficient
- Say which row of L a disagreement in row i of LU implicates
- State that a factorisation is exact, so there is no partial credit
<ol class="steps"> <li>Is a factorisation of?</li> <li>Why is comparing shapes alone never enough?</li> <li>A proposed pair disagrees only at entry. Which number should you recheck?</li> <li>If is not unit lower triangular, can have two solutions for?</li> </ol>
Answers
1. Yes:. 2. Shape is necessary and says nothing about values; a correctly shaped pair multiplies to a different matrix all the time. 3., because equals times the first pivot alone. 4. Yes. Without ones on the diagonal is not pinned, and gives other pairs with the same product.