Tutorials › Linear Algebra › The LU Factorization Theorem Without Pivoting

LU Factorization and Numerical Considerations · Tutorial 902 of 1000

The LU Factorization Theorem Without Pivoting

Learn why nonzero leading principal minors guarantee a unique factorization into a unit lower triangular matrix and an upper triangular matrix.

Intermediate 12 min read

What You'll Learn

  • Define leading principal minors and state the hypotheses of the LU factorization theorem.
  • Derive existence and uniqueness of the unit-lower-triangular LU factorization.
  • Connect elimination pivots to ratios of consecutive leading principal minors.
  • Construct and verify LU factors by elimination without row exchanges.
  • Distinguish failure of the theorem’s condition from failure of LU factorization itself.
  • Identify and correct the error of using elimination matrices as the lower factor.

When Elimination Produces an LU Factorization

Gaussian elimination transforms a matrix into an upper triangular matrix by eliminating entries below successive pivots. When every required pivot is nonzero, the row operations can be recorded in a second matrix, giving a factorization \(\mathbf{A}=\mathbf{L}\mathbf{U}\). The factor \(\mathbf{U}\) records the result of elimination; the unit lower triangular factor \(\mathbf{L}\) records its multipliers. The condition for this process to work without row exchanges is expressed using the leading principal minors of \(\mathbf{A}\).

Throughout, \(\mathbf{A}\) is a real \(n\times n\) matrix. For \(1\leq k\leq n\), its \(k\)th leading principal submatrix is the \(k\times k\) matrix in its first \(k\) rows and first \(k\) columns. Its determinant is the \(k\)th leading principal minor, denoted \(\Delta_k\). We also set \(\Delta_0=1\). A matrix is unit lower triangular if it is lower triangular and every diagonal entry equals \(1\).

Theorem (LU factorization without pivoting): Let \(\mathbf{A}\in\mathbb{R}^{n\times n}\). If every leading principal minor \(\Delta_k\) is nonzero for \(1\leq k\leq n\), then there is a unique factorization \(\mathbf{A}=\mathbf{L}\mathbf{U}\), where \(\mathbf{L}\) is unit lower triangular and \(\mathbf{U}\) is upper triangular. In elimination without row exchanges, the pivot in position \(k\) is \(\Delta_k/\Delta_{k-1}\).

The hypothesis is important: it guarantees that every pivot needed by elimination is nonzero. It does not say that a matrix whose leading principal minors include zero can never have an LU factorization. Later examples distinguish these two claims.

Why the Leading Minors Control the Pivots

The proof uses induction on the matrix size. The central step is to eliminate the first column and examine the smaller matrix left behind. For a block matrix with a nonzero top-left entry, that smaller matrix is the Schur complement: if \(\mathbf{A}=\begin{bmatrix}a&\mathbf{r}\\ \mathbf{c}&\mathbf{B}\end{bmatrix}\), it is \(\mathbf{B}-\mathbf{c}\mathbf{r}/a\). We will use the elementary determinant facts that adding a multiple of one row to another preserves a determinant, and that the determinant of a triangular matrix is the product of its diagonal entries.

Proof. We prove existence and uniqueness together by induction on \(n\). When \(n=1\), the hypothesis says \(\mathbf{A}=[a]\) with \(a=\Delta_1\ne0\). The only possible factors are \(\mathbf{L}=[1]\) and \(\mathbf{U}=[a]\), so existence and uniqueness hold, and the pivot is \(a=\Delta_1/\Delta_0\).

Now suppose \(n\geq2\) and the claim holds for matrices of size \(n-1\). Write

$$ \mathbf{A}= \begin{bmatrix} a&\mathbf{r}\\ \mathbf{c}&\mathbf{B} \end{bmatrix}, $$

where \(a=\Delta_1\ne0\), \(\mathbf{r}\) is a row, and \(\mathbf{c}\) is a column. Define \(\mathbf{S}=\mathbf{B}-\mathbf{c}\mathbf{r}/a\). For each \(j=1,\dots,n-1\), the leading \(j\times j\) submatrix of \(\mathbf{S}\) is obtained from the leading \((j+1)\times(j+1)\) submatrix of \(\mathbf{A}\) by eliminating its first column below \(a\). These row additions preserve the determinant and leave a block upper triangular matrix with diagonal blocks \([a]\) and that leading \(j\times j\) submatrix of \(\mathbf{S}\). Therefore its determinant is \(a\) times the determinant of that submatrix of \(\mathbf{S}\). In particular, the leading minors of \(\mathbf{S}\) are \(\Delta_{j+1}/a\), hence are all nonzero.

By the induction hypothesis, \(\mathbf{S}=\mathbf{L}_2\mathbf{U}_2\), with \(\mathbf{L}_2\) unit lower triangular and \(\mathbf{U}_2\) upper triangular. Set

$$ \mathbf{L}= \begin{bmatrix} 1&\mathbf{0}\\ \mathbf{c}/a&\mathbf{L}_2 \end{bmatrix}, \qquad \mathbf{U}= \begin{bmatrix} a&\mathbf{r}\\ \mathbf{0}&\mathbf{U}_2 \end{bmatrix}. $$

Then \(\mathbf{L}\) is unit lower triangular, \(\mathbf{U}\) is upper triangular, and their product has blocks \(a\), \(\mathbf{r}\), \(\mathbf{c}\), and \(\mathbf{c}\mathbf{r}/a+\mathbf{L}_2\mathbf{U}_2=\mathbf{c}\mathbf{r}/a+\mathbf{S}=\mathbf{B}\). Thus \(\mathbf{A}=\mathbf{L}\mathbf{U}\), proving existence.

For uniqueness, suppose \(\mathbf{A}=\widetilde{\mathbf{L}}\widetilde{\mathbf{U}}\) is any factorization of the required form. Partition these factors into first row and column and lower-right blocks. Since the first row of \(\widetilde{\mathbf{L}}\) is \([1,\mathbf{0}]\), the first row of \(\widetilde{\mathbf{U}}\) must be \([a,\mathbf{r}]\). The first column of the product then gives the entries below the first diagonal entry of \(\widetilde{\mathbf{L}}\) as \(\mathbf{c}/a\). The lower-right block equation becomes \(\mathbf{B}=(\mathbf{c}/a)\mathbf{r}+\widetilde{\mathbf{L}}_2\widetilde{\mathbf{U}}_2\), so \(\mathbf{S}=\widetilde{\mathbf{L}}_2\widetilde{\mathbf{U}}_2\). By uniqueness for \(\mathbf{S}\), its two factors must equal \(\mathbf{L}_2,\mathbf{U}_2\). All blocks are therefore forced, proving uniqueness.

Finally, the first pivot is \(a=\Delta_1/\Delta_0\). After that pivot, the leading minors of the remaining matrix \(\mathbf{S}\) are \(\Delta_{j+1}/\Delta_1\). Induction gives its pivots as \((\Delta_{j+1}/\Delta_1)/(\Delta_j/\Delta_1)=\Delta_{j+1}/\Delta_j\). These are precisely the subsequent pivots of elimination on \(\mathbf{A}\). This proves the pivot formula and completes the induction. \(\square\)

Constructing the Factors by Elimination

Worked Example: A Three-by-Three Factorization

Factor the matrix below without row exchanges, and verify the result.

$$ \mathbf{A}= \begin{bmatrix} 2&1&1\\ 4&5&2\\ -2&3&8 \end{bmatrix}. $$

The leading principal minors are \(\Delta_1=2\), \(\Delta_2=2\cdot5-1\cdot4=6\), and \(\Delta_3=54\), so each is nonzero. Eliminate the entries below the first pivot, \(2\). The multipliers are \(4/2=2\) and \(-2/2=-1\): apply \(R_2\to R_2-2R_1\) and \(R_3\to R_3+R_1\).

$$ \begin{bmatrix} 2&1&1\\ 4&5&2\\ -2&3&8 \end{bmatrix} \sim \begin{bmatrix} 2&1&1\\ 0&3&0\\ 0&4&9 \end{bmatrix}. $$

The next pivot is \(3\). The multiplier for the entry \(4\) beneath it is \(4/3\), so apply \(R_3\to R_3-\tfrac43R_2\): the last row becomes \((0,0,9)\). Thus

$$ \mathbf{U}= \begin{bmatrix} 2&1&1\\ 0&3&0\\ 0&0&9 \end{bmatrix}. $$

Place the elimination multipliers below the diagonal of \(\mathbf{L}\), in the positions of the entries they eliminate. The diagonal entries of \(\mathbf{L}\) are \(1\):

$$ \mathbf{L}= \begin{bmatrix} 1&0&0\\ 2&1&0\\ -1&\tfrac43&1 \end{bmatrix}. $$

Check: Multiplying row by row, the rows of \(\mathbf{L}\mathbf{U}\) are \((2,1,1)\), \(2(2,1,1)+(0,3,0)=(4,5,2)\), and \(-(2,1,1)+\tfrac43(0,3,0)+(0,0,9)=(-2,3,8)\). Hence \(\mathbf{L}\mathbf{U}=\mathbf{A}\). The pivots \(2,3,9\) also equal \(\Delta_1/\Delta_0=2\), \(\Delta_2/\Delta_1=3\), and \(\Delta_3/\Delta_2=9\).

The theorem’s uniqueness claim also has a useful determinant interpretation. For any factorization of the stated form, the leading \(k\times k\) block of \(\mathbf{A}\) is the product of the leading \(k\times k\) blocks of \(\mathbf{L}\) and \(\mathbf{U}\). The determinant product rule and the triangular form of these blocks give \(\Delta_k=u_{11}u_{22}\cdots u_{kk}\), since the diagonal entries of \(\mathbf{L}\) are all \(1\). Thus nonzero leading minors force each diagonal entry of \(\mathbf{U}\) to be nonzero.

Worked Example: Reading the Pivots from the Minors

For \(\mathbf{A}=\begin{bmatrix}3&2\\6&7\end{bmatrix}\), compute the factors using the pivot formula and verify them by multiplication.

The leading minors are \(\Delta_1=3\) and \(\Delta_2=3\cdot7-2\cdot6=9\). Therefore the first pivot is \(3\), and the second is \(9/3=3\). Eliminating the \(6\) below the first pivot uses multiplier \(6/3=2\), giving

$$ \begin{bmatrix} 3&2\\ 6&7 \end{bmatrix} \sim \begin{bmatrix} 3&2\\ 0&3 \end{bmatrix}. $$

The factors are \(\mathbf{L}=\begin{bmatrix}1&0\\2&1\end{bmatrix}\) and \(\mathbf{U}=\begin{bmatrix}3&2\\0&3\end{bmatrix}\). Check: \(\mathbf{L}\mathbf{U}=\begin{bmatrix}3&2\\6&4+3\end{bmatrix}=\begin{bmatrix}3&2\\6&7\end{bmatrix}=\mathbf{A}\).

What the Hypothesis Does—and Does Not—Say

The nonzero-minor condition is sufficient for a unique factorization with a unit lower triangular factor. It is not necessary for some LU factorization to exist. If a leading minor vanishes, the no-pivot elimination procedure may encounter a zero pivot, but an LU factorization may still be possible, and such a factorization need not be unique.

Worked Example: A Zero Leading Minor Does Not Rule Out LU

Consider \(\mathbf{A}=\begin{bmatrix}1&1\\1&1\end{bmatrix}\). Its first leading minor is \(1\), but its second is \(0\). Elimination uses the first pivot \(1\) and gives a zero in the final position:

$$ \begin{bmatrix} 1&1\\ 1&1 \end{bmatrix} \sim \begin{bmatrix} 1&1\\ 0&0 \end{bmatrix}. $$

So \(\mathbf{A}=\mathbf{L}\mathbf{U}\) with \(\mathbf{L}=\begin{bmatrix}1&0\\1&1\end{bmatrix}\) and \(\mathbf{U}=\begin{bmatrix}1&1\\0&0\end{bmatrix}\). Check: their product is \(\begin{bmatrix}1&1\\1&1\end{bmatrix}\). This example satisfies no-pivot elimination through the first pivot, but it does not satisfy the theorem’s hypothesis for all leading minors.

Worked Example: A Zero First Pivot Can Prevent LU

For \(\mathbf{A}=\begin{bmatrix}0&1\\1&0\end{bmatrix}\), the first leading minor is zero. Test whether a factorization with a unit lower triangular factor is possible. Write the most general such factors as \(\mathbf{L}=\begin{bmatrix}1&0\\\ell&1\end{bmatrix}\) and \(\mathbf{U}=\begin{bmatrix}u_{11}&u_{12}\\0&u_{22}\end{bmatrix}\). Their product is

$$ \mathbf{L}\mathbf{U}= \begin{bmatrix} u_{11}&u_{12}\\ \ell u_{11}&\ell u_{12}+u_{22} \end{bmatrix}. $$

Matching the first row of \(\mathbf{A}\) requires \(u_{11}=0\) and \(u_{12}=1\). Then the lower-left entry of the product is \(\ell u_{11}=0\), whereas the lower-left entry of \(\mathbf{A}\) is \(1\). This contradiction proves that no such factorization exists. A row exchange would be needed to start ordinary elimination with a nonzero pivot, but row exchanges are outside the theorem proved here.

Common Pitfall: Using the Elimination Matrix as \(\mathbf{L}\)

It is easy to confuse the matrices that perform elimination with the factor that appears in \(\mathbf{A}=\mathbf{L}\mathbf{U}\). In the first worked example, the elimination matrices are \(\mathbf{E}_1=\begin{bmatrix}1&0&0\\-2&1&0\\1&0&1\end{bmatrix}\) and \(\mathbf{E}_2=\begin{bmatrix}1&0&0\\0&1&0\\0&-\tfrac43&1\end{bmatrix}\). They satisfy \(\mathbf{E}_2\mathbf{E}_1\mathbf{A}=\mathbf{U}\), so the incorrect calculation would be \(\mathbf{A}=(\mathbf{E}_2\mathbf{E}_1)\mathbf{U}\). The correction is to invert the elimination operations: \(\mathbf{A}=\mathbf{E}_1^{-1}\mathbf{E}_2^{-1}\mathbf{U}\). Those inverse operations put the original multipliers, not their negatives, below the diagonal in \(\mathbf{L}\). In this case the resulting factor is \(\begin{bmatrix}1&0&0\\2&1&0\\-1&\tfrac43&1\end{bmatrix}\), as direct multiplication confirms.

The distinction is practical as well as notational. Elimination matrices turn \(\mathbf{A}\) into \(\mathbf{U}\); the factor \(\mathbf{L}\) reverses those operations and allows the original matrix to be recovered as \(\mathbf{L}\mathbf{U}\). When no row exchanges are made and the pivots are nonzero, the multipliers can be recorded directly in \(\mathbf{L}\).

Check Your Understanding

Use the theorem’s hypotheses carefully, and verify any proposed factors by multiplying them.

  1. For \(\mathbf{A}=\begin{bmatrix}2&3\\4&8\end{bmatrix}\), find the leading principal minors and the two pivots.
  2. State the precise conclusion of the LU factorization theorem when all leading principal minors are nonzero.
  3. Explain why the theorem’s condition is sufficient but not necessary for an LU factorization, using the matrix \(\begin{bmatrix}1&1\\1&1\end{bmatrix}\).
  4. For \(\mathbf{A}=\begin{bmatrix}0&2\\1&3\end{bmatrix}\), use the general forms of \(\mathbf{L}\) and \(\mathbf{U}\) to decide whether a factorization with unit lower triangular \(\mathbf{L}\) is possible.
  5. In elimination without row exchanges, what information belongs below the diagonal of \(\mathbf{L}\), and why is it not the elimination matrices themselves?

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon