Euler Hall — free maths guides

Factor a matrix further as LDU and check the pivots in D

Divide row k of U by its pivot to reach the LDU form. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

Divide the pivots out ofUU

A=LUA=LU leaves the pivots onUU's diagonal. If you divide rowkk ofUU by its pivotukku_{kk}, that row becomes unit — a11 in the diagonal position — and the divisor has to go somewhere. Put all the divisors into a diagonal matrixDD:

A worked case.

Check:DU~=UD\widetilde{U}=U andLDU~=AL D\widetilde{U}=A.

Three facts, and each one is worth holding separately.

1. *DD holds the pivots, in order, and nothing else. Its diagonal is exactlyUU's diagonal. 2. Both triangles are now unit.LL was already; dividing the rows turnsU~\widetilde{U} into one too. 3. The order isLL, thenDD, thenU~\widetilde{U}**, and it is forced.DD sitting between them is what undoes the row divisions — move it and the product changes.

Why the triple is unique, and why symmetry appears

Uniqueness. SupposeL1D1U~1=L2D2U~2L_1D_1\widetilde U_1=L_2D_2\widetilde U_2 with everyLL unit lower and everyU~\widetilde U unit upper. Rearranging,

L2−1L1D1=D2U~2U~1−1.L_2^{-1}L_1D_1=D_2\widetilde U_2\widetilde U_1^{-1}.

The left side is lower triangular times a diagonal, hence lower triangular; the right side is diagonal times upper, hence upper triangular. A matrix that is both is diagonal, and comparing diagonals gives the rest. So the three factors are pinned — which is more thanLULU alone gives unlessLL's diagonal is fixed by fiat.

Symmetry. For a symmetricAA, elimination givesU~=LT\widetilde U=L^{\mathrm T}:

Both sides have unit factors on the outside andDD in the middle, so by uniquenessU~=LT\widetilde U=L^{\mathrm T}:

A=LDLT.A=LDL^{\mathrm T}.

That statement cannot even be written inLULU form, and it is the reasonLDULDU earns its place.

Worked example: a3×33\times3 triple, checked by multiplying

A=[1232583814].A=\begin{bmatrix}1&2&3\\2&5&8\\3&8&14\end{bmatrix}.

Elimination.ℓ21=2\ell_{21}=2,ℓ31=3\ell_{31}=3; clearing gives[123012025]\begin{bmatrix}1&2&3\\0&1&2\\0&2&5\end{bmatrix}. Thenℓ32=2\ell_{32}=2 and

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

ThisUU is already unit, soDD is the identity andU~=U\widetilde U=U. Not every matrix has a non-trivialDD — this one's pivots are all11, which is what makes it a clean example of the general statement being degenerate here.

A second matrix, whereDD is not trivial.

So

Check the(3,2)(3,2) entry ofLDU~LD\widetilde U:LL's row 3 is(32,13,1)(\tfrac32,\tfrac13,1), and

BB's(3,2)(3,2) entry is77 — so something is wrong. Let me recompute.32⋅2⋅2=6\tfrac32\cdot2\cdot2=6;13⋅3⋅1=1\tfrac13\cdot3\cdot1=1;1⋅2⋅1=21\cdot2\cdot1=2. The sum is99, not77.

The error is mine, in the row ofLL. The multiplierℓ32\ell_{32} forBB is7−32⋅43=7−63=13\dfrac{7-\tfrac32\cdot4}{3}=\dfrac{7-6}{3}=\dfrac13 ✓, and the(3,1)(3,1) multiplier is32\tfrac32 ✓. So the row is right, and the mistake is in my arithmetic above: the third term is1⋅(2⋅1)1\cdot(2\cdot1) only ifU~\widetilde U's(3,2)(3,2) entry were11, butU~\widetilde U's row 3 is(0,0,1)(0,0,1) — so the third term is1⋅(2⋅0)=01\cdot(2\cdot0)=0. Then6+1+0=76+1+0=7 ✓.

Keeping the error visible is the point: reading a row ofU~\widetilde U as if it were a row ofUU is exactly the slip this factorisation invites.

By the end you can
  • Divide row k of U by its pivot to reach the LDU form
  • State that D holds the pivots in order and nothing else
  • Explain why the bracket order L, D, U-tilde is forced
  • See that a symmetric matrix reads as LDL-transpose
Before you move on

<ol class="steps"> <li>ForU=[4802]U=\begin{bmatrix}4&8\\0&2\end{bmatrix}, writeDD andU~\widetilde U.</li> <li>Why doesDD sit betweenLL andU~\widetilde U rather than at the end?</li> <li>A symmetricAA hasL=[1031]L=\begin{bmatrix}1&0\\3&1\end{bmatrix} and pivots2,12,1. WriteAA.</li> <li>IsLDULDU a different factorisation fromLULU, or the same one rearranged?</li> </ol>

Answers

1.D=[4002]D=\begin{bmatrix}4&0\\0&2\end{bmatrix},U~=[1201]\widetilde U=\begin{bmatrix}1&2\\0&1\end{bmatrix}. 2.DD must scale the columns ofLL to keep the product fixed, which is what "on the right ofLL" means. 3.A=LDLTA=LDL^{\mathrm T}, which is[1031][2001][1301]=[26619]\begin{bmatrix}1&0\\3&1\end{bmatrix}\begin{bmatrix}2&0\\0&1\end{bmatrix}\begin{bmatrix}1&3\\0&1\end{bmatrix}=\begin{bmatrix}2&6\\6&19\end{bmatrix}. 4. A different normalisation of the same product: both rebuildAA, but only the triple pins both triangles.

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