Euler Hall — free maths guides

Read L and U from a completed elimination with no row exchange

Read U as the matrix elimination ended on, with the pivots on its diagonal. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

UU is the final matrix;LL is the multipliers

Run elimination onAA with no row exchange and keep two records:

- *UU** is whatever matrix you end on. Its diagonal holds the pivots. - *LL** is the multipliers, each in the slot it cleared, with ones on its diagonal and zeros above it.

That is the whole procedure. It is a bookkeeping exercise, not a new calculation.

The check that takes ten seconds. MultiplyLULU and compare withAA. If any entry is wrong, the multiplier that cleared that row is wrong — the(i,1)(i,1) entry ofLULU isℓi1\ell_{i1} times the first pivot and nothing else.

*UU is notAA reduced by hand and then tidied.** It is the exact matrix the algorithm produced, including any zero row a singular matrix leaves behind.

WhyUU's pivot is the current one, and why the factors multiply back

Where the pivots come from. Each elimination step subtracts a multiple of the pivot row as it now stands, not as it originally stood. The pivot itself was fixed when the column was cleared, and it never changes again — soUU's diagonal entries are the pivots of the moment each column was cleared.

WhyLU=ALU=A. Rowii ofAA is reconstructed from rows ofUU weighted by rowii ofLL:

row i of A=ℓi1(row 1 of U)+⋯+ℓi,i−1(row i−1 of U)+1⋅(row i of U).\text{row }i\text{ of }A=\ell_{i1}(\text{row 1 of }U)+\cdots+\ell_{i,i-1}(\text{row }i-1\text{ of }U)+1\cdot(\text{row }i\text{ of }U).

That equation is just elimination read backwards: elimination took rowii ofAA and removed multiples of the pivot rows to get rowii ofUU, so putting them back gives rowii ofAA.

Why no row exchange is needed here. Every statement above assumes the pivot row stays where it is. One swap and the factors becomePA=LUPA=LU with a permutationPP in front — a different factorisation, and a later section.

Worked example: read both factors off one elimination

A=[210451223]A=\begin{bmatrix}2&1&0\\4&5&1\\2&2&3\end{bmatrix}

Column 1. Pivot22.ℓ21=4/2=2\ell_{21}=4/2=2,ℓ31=2/2=1\ell_{31}=2/2=1. Subtracting leaves

[210031013].\begin{bmatrix}2&1&0\\0&3&1\\0&1&3\end{bmatrix}.

Column 2. The pivot is now33 (not55, not11).ℓ32=1/3\ell_{32}=1/3. Subtracting leaves

U=[2100310083].U=\begin{bmatrix}2&1&0\\0&3&1\\0&0&\tfrac83\end{bmatrix}.

Assemble.

L=[1002101131].L=\begin{bmatrix}1&0&0\\2&1&0\\1&\tfrac13&1\end{bmatrix}.

Check two entries.(3,1)(3,1) ofLULU:1⋅2+13⋅0+1⋅0=21\cdot2+\tfrac13\cdot0+1\cdot0=2 ✓.(3,2)(3,2):1⋅1+13⋅3+1⋅0=21\cdot1+\tfrac13\cdot3+1\cdot0=2 ✓, which isAA's(3,2)(3,2) entry.

Read the pivots.2, 3, 832,\ 3,\ \tfrac83, anddet⁡A=2⋅3⋅83=16\det A=2\cdot3\cdot\tfrac83=16. Direct computation ofdet⁡A\det A gives1616 too — a useful second check when there was no exchange.

By the end you can
  • Read U as the matrix elimination ended on, with the pivots on its diagonal
  • Read L as the recorded multipliers with ones on the diagonal
  • Explain why a later multiplier divides by the current pivot and not the original entry
  • Confirm a factorisation by multiplying the two factors back
Before you move on

<ol class="steps"> <li>Elimination on a3×33\times3 gaveU=[2304]U=\begin{bmatrix}2&3\\0&4\end{bmatrix} for a2×22\times2, with multiplier55. WriteLL.</li> <li>IfUU has a zero on its diagonal, isAA singular or unfactorable?</li> <li>Which entry ofLULU readsℓ31\ell_{31} directly, and why?</li> <li>A student'sLL has−12-\tfrac12 where the multiplier was+12+\tfrac12. What is wrong?</li> </ol>

Answers

1.L=[1051]L=\begin{bmatrix}1&0\\5&1\end{bmatrix}. 2. Singular. It still factors, as long as no row exchange was needed. 3. The(3,1)(3,1) entry, because it equalsℓ31\ell_{31} times the first pivot and no other term — column 1 ofUU has only the pivot. 4. They readLL off the elimination matrix instead of its inverse.LL carries+ℓ+\ell.

Work out where to start — free, no accountAnswer six real questions — free, no account