Learn

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

Lesson 1 of 2

Construct LU and know when it exists

Prove the exact no-pivot criterion, recover normalized LDU factors, and diagnose singular and rectangular boundaries.

Loading your saved responses…

Try the optional starting-point checks and targeted refreshers. You can continue directly into this lesson.

Try

Consider A with rows (1,2,0), (2,5,1), (0,1,3), using exact real arithmetic. Subtract twice row 1 from row 2. The new second row is (0,1,1). Then subtract this new row 2 from row 3, obtaining (0,0,2). The resulting upper triangular matrix U has rows (1,2,0), (0,1,1), (0,0,2).

We have not simply made the matrix look tidier. We have recorded two reversible instructions that can be reused when the right-hand side changes. To recover A from U, its original second row is twice U’s first row plus U’s second row. Its original third row is U’s second row plus U’s third row. Therefore A=LU, where L has rows (1,0,0), (2,1,0), (0,1,1). Multiply all nine entries to check the claim before relying on it.

The factor L is unit lower triangular: it has zeros above the diagonal and ones on it. U is upper triangular. The unit normalization prevents arbitrary rescaling between the factors. In this lesson, “LU” means exactly these conventions, without row exchanges.

Predict

Can a nonsingular matrix fail to have this LU? Test the swap matrix with rows (0,1),(1,0). Its determinant is −1, so the linear map is invertible. But elimination cannot divide by its top-left zero. Write possible factors as L=(1,0;ℓ,1) and U=(u,v;0,w), where semicolons separate rows. Entry 11 of LU forces u=0, and then entry 21 is ℓu=0, contrary to the required 1. Thus this ordering genuinely has no LU of the declared form. A row exchange changes the problem to a pivoted factorization.

Also predict whether singularity forbids LU. It does not: diag(1,0)=I·diag(1,0). We must separate existence of factors, existence of a usable nonzero pivot at every stage, and invertibility of the original matrix. They agree under certain hypotheses, not by definition.

Experiment

On paper, reproduce the two elimination steps for the starting matrix. Alongside each step record the multiplier and the row it acts on. Then rebuild L rather than guessing it from the final zeros.

StageMatrix rowsInformation retained
Start(1,2,0); (2,5,1); (0,1,3)First pivot 1
Row 2 minus 2 row 1(1,2,0); (0,1,1); (0,1,3)Multiplier ℓ₂₁=2; ℓ₃₁=0
Row 3 minus row 2(1,2,0); (0,1,1); (0,0,2)Multiplier ℓ₃₂=1; final pivot 2

The three leading principal minors are 1, 1 and 2. Here the k-th leading principal minor Δk means the determinant using the first k rows and first k columns. Put Δ0=1. The ratios Δ1/Δ0, Δ2/Δ1 and Δ3/Δ2 are 1,1,2, exactly the pivots. Predict why the first two minors, not just the determinant of the whole matrix, enter a no-exchange algorithm.

Extract the diagonal D=diag(1,1,2) from U. Set R=D⁻¹U, scaling row 3 of U by 1/2. Then R has rows (1,2,0), (0,1,1), (0,0,1), and A=LDR. Both L and R now have unit diagonals. The non-unit pivot sizes are stored entirely in D. Multiplying U by D⁻¹ on the other side would scale columns instead and would generally produce a different factor.

Understand

Here is the precise existence theorem. Let A be a nonsingular square n×n matrix over a field, with n≥1. Then A has unit-lower LU without row exchanges if and only if every leading principal minor Δ1,…,Δn is nonzero. The final one is det A; it is already nonzero under the hypothesis, but belongs to the list. This is an exact algebraic criterion, not a numerical stability guarantee.

First prove necessity. If A=LU, its leading k×k block equals the product of the leading blocks of L and U. Indeed, in a top-left entry, every summation index beyond k has a zero entry from the lower triangular L. The determinant of the leading L block is 1, and the determinant of the leading U block is the product of its first k diagonal entries. Since det A is the product of all diagonal entries of U and is nonzero in a field, none of those entries vanishes. Consequently every Δk is nonzero. The same identity immediately yields

u(k,k)=Δk/Δ(k−1).

We now construct the factors and prove sufficiency, rather than assuming that elimination always succeeds. The one-dimensional case is [a]=[1][a], with a≠0. In higher dimension write A in blocks (a,w;r,C): a is a scalar, w a row, r a column, and C the remaining square block. Since a=Δ1≠0, subtract r/a times the first row from the lower rows. The remaining lower-right matrix is the Schur complement S=C−rw/a.

For each leading j×j block of S, perform exactly the same row additions on the leading (j+1)×(j+1) block of A. They preserve its determinant and produce an upper block triangular matrix with diagonal blocks a and that block of S. Thus the latter determinant equals Δ(j+1)/a, which is nonzero. The induction hypothesis applies to S and supplies S=LₛUₛ. Define the block matrices

L=(1,0; r/a,Lₛ), U=(a,w; 0,Uₛ).

Their product is (a,w; r,rw/a+LₛUₛ)=(a,w;r,C)=A. They have the required shapes and unit diagonal for L. This proves the construction at every dimension, using only inverses already known to exist. It also explains the stored multipliers: they are the lower-column entries needed to reverse the successive elimination steps.

Why are the factors unique? Suppose L₁U₁=L₂U₂ for a nonsingular A. The inverse of an invertible triangular matrix has the same triangular form, as follows by solving its triangular systems column by column. A unit lower inverse still has diagonal 1. Therefore L₂⁻¹L₁=U₂U₁⁻¹ is simultaneously unit lower triangular and upper triangular. It must be the identity. This forces both L factors and both U factors to agree. Inverting U is legitimate here because every pivot is nonzero; it would not be legitimate for an arbitrary singular matrix.

Now define D from the nonzero diagonal entries of U and R=D⁻¹U. This proves existence of normalized LDU. Conversely any other triple with unit lower L, invertible diagonal D and unit upper R yields an LU with upper factor DR. LU uniqueness fixes L and U; the diagonal of U then fixes D, and hence R. Without normalization, even I₂ has different triangular products: for example diag(2,3) times diag(1/2,1/3) over the reals.

At singular matrices neither the iff theorem nor the uniqueness conclusion can be transferred unchanged. The zero 2×2 matrix equals L·0 for every L with rows (1,0),(ℓ,1), so there are infinitely many normalized L choices over R. Conversely, some singular matrices have perfectly valid LU, as diag(1,0) shows. A zero pivot during one proposed process can reflect an unsuitable ordering or actual rank deficiency; the single observation does not decide which.

Apply

Change to the rectangular matrix with rows (2,1,3),(4,3,8). With m=2 rows and n=3 columns, use the full-row convention L of size m×m and U of size m×n. Subtract twice row 1 from row 2: L has rows (1,0),(2,1), and U has rows (2,1,3),(0,1,2). Their product gives the original matrix. U is echelon and upper trapezoidal, but it is not a square invertible matrix.

A pivot need not lie on the diagonal in a rectangular echelon form. For the 3×2 matrix with rows (0,1),(0,2),(0,3), the first column is zero and the first pivot is at row 1, column 2. Use L with rows (1,0,0),(2,1,0),(3,0,1) and U with rows (0,1),(0,0),(0,0). Check their product and identify rank 1. Insisting on a nonzero u11 would incorrectly reject this valid factorization. A whole nonsquare determinant is not defined, so the square leading-minor criterion is not a general rectangular theorem.

For an independent parameter check, take A(t) with rows (t,1,0),(1,1,0),(0,0,2). Its leading minors are t,t−1,2(t−1). Distinguish the case t=0, where the matrix is invertible but needs a row exchange, from t=1, where it is singular yet admits LU. For all other t derive the factors explicitly; then see which expressions remain meaningful at t=1. Do not substitute into a pivot ratio whose denominator has become zero.

Continue

A usable factorization report states the field, matrix shape, triangular normalization, permutation convention and every zero-pivot qualification. The construction explains how to factor once; solving several right-hand sides then uses forward and backward substitution rather than repeating elimination. Pivoted factors require tracking row exchanges and earlier multipliers consistently, which is the next reuse investigation.

Return to determinant products and invertibility for the block determinant identities, or row operations for solution equivalence. Exact correctness does not imply that an unpivoted numerical implementation is stable: small computed pivots require a separate error analysis.

Apply · explain · revise

Practice and reasoning

Drafts save locally as you type. Reveal worked solutions when useful; the site remembers that exposure. Automatic matches check the requested answer, while written arguments require review against the rubric.

Find unit lower triangular L and upper triangular U for A with rows (2,1,1),(4,3,0),(−2,1,5), without row exchanges. Show the elimination multipliers, verify LU=A, and give LDU with both outer triangular factors unit diagonal. Compute every leading principal minor and check the pivot ratios.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Over a field let A be a nonsingular n×n matrix with n≥1. Prove that A has a factorization LU with L unit lower triangular and U upper triangular if and only if Δ1,…,Δn are all nonzero. Supply a construction by induction using a Schur complement and prove the needed relation between its leading minors and those of A.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Prove the pivot identity u(k,k)=Δk/Δ(k−1) in a nonsingular unit-lower LU factorization. For A(t) with rows (t,1,0),(1,1,0),(0,0,2) over R, classify all t for which A is nonsingular and all t for which no-pivot LU exists. Give factors where they exist, and explain precisely what happens at t=0 and t=1.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Prove uniqueness of unit lower L and upper U when A is nonsingular and LU exists. Derive the unique factorization A=LDR with both L and R unit triangular and D invertible diagonal. Show why omitting unit-diagonal normalization destroys uniqueness even for I₂.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Give a nonsingular real 2×2 matrix with no unit-lower LU, and prove nonexistence by factor entries. Give a singular matrix with such an LU. Finally show nonuniqueness for the zero 2×2 matrix even when L is required to have unit diagonal. Diagnose the statement “every zero pivot proves the original matrix singular.”

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Factor A with rows (2,1,3),(4,3,8) as an m×m unit lower L times an m×n echelon U. Verify shapes and the product. Then factor C with rows (0,1),(0,2),(0,3) in the same full-row convention and identify its actual pivot column. Explain why the square nonzero-leading-minor theorem cannot simply be imposed on these matrices.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Reflect and continue

Before marking this lesson complete, explain one key idea without the worked solution and identify a condition that matters. Marking complete records participation, not independent mastery.