Tutorials › Linear Algebra › Zero Pivots and Elimination Breakdown

LU Factorization and Numerical Considerations · Tutorial 907 of 1000

Zero Pivots and Elimination Breakdown

Learn to diagnose exact zero pivots and assess small pivots without confusing an elimination problem with singularity.

Intermediate 10 min read

What You'll Learn

  • Identify the pivot and active entries at each elimination stage
  • Explain exactly when a zero pivot prevents clearing entries below it
  • Distinguish elimination breakdown from a singular matrix
  • Calculate how a small pivot can create a large elimination multiplier
  • Compare a pivot with the scale of the active entries
  • Check LU factors by multiplying them back to the original matrix

What a Pivot Does

In Gaussian elimination, the pivot is the entry used to clear entries below it in the current column. For an \(n\times n\) matrix, the first pivot is the entry in position \((1,1)\). After clearing below it, the next pivot is the entry in position \((2,2)\) of the updated matrix, and the process continues down the diagonal. These are the pivots of the elimination process; after earlier row operations, they need not equal the original diagonal entries.

Suppose the current pivot is \(a_{kk}^{(k)}\), and the entry beneath it in row \(i\) is \(a_{ik}^{(k)}\). When the pivot is nonzero, the elimination multiplier is the quotient \(a_{ik}^{(k)}/a_{kk}^{(k)}\). Subtracting that multiple of row \(k\) from row \(i\) makes the entry in column \(k\) zero. This simple division explains two different concerns: a zero pivot makes that formula unavailable, while a nonzero but very small pivot can make the multiplier large.

Definition: At elimination stage \(k\), the pivot is the current entry in position \((k,k)\). A zero-pivot obstruction occurs when this pivot is zero and at least one entry below it in column \(k\) is nonzero, so that ordinary elimination cannot clear that entry using row \(k\). A small-pivot warning occurs when the pivot is nonzero but small relative to relevant entries of the active matrix. It is a warning about numerical computation, not an exact-arithmetic failure.

These distinctions matter. A zero pivot can occur in a nonsingular matrix, and a small pivot does not, on its own, prove that elimination will be inaccurate. The exact obstruction and the numerical warning have different causes and should not be treated as the same diagnosis.

Why a Zero Pivot Can Block Elimination

Proposition: Suppose the current pivot in column \(k\) is \(a_{kk}^{(k)}\), and the entry below it in row \(i\) is \(a_{ik}^{(k)}\). If \(a_{kk}^{(k)}\ne0\), there is exactly one multiple of row \(k\) that makes the entry in row \(i\), column \(k\), zero. If \(a_{kk}^{(k)}=0\) and \(a_{ik}^{(k)}\ne0\), no multiple of row \(k\) can make that entry zero.

Proof. Write \(c\) for the multiple of row \(k\) to subtract from row \(i\). The resulting entry in column \(k\) is \(a_{ik}^{(k)}-c\,a_{kk}^{(k)}\). If \(a_{kk}^{(k)}\ne0\), setting this expression to zero requires \(c=a_{ik}^{(k)}/a_{kk}^{(k)}\), and this value is unique. If \(a_{kk}^{(k)}=0\), the expression is \(a_{ik}^{(k)}\) for every \(c\). When \(a_{ik}^{(k)}\ne0\), it therefore cannot be made zero this way. \(\square\)

The zero-pivot obstruction is specifically about continuing the current column without changing rows. If the pivot is zero but every entry below it in that column is already zero, there is nothing to clear in that column. The zero diagonal entry is still important: it is not a nonzero pivot, and it may prevent a triangular solve from determining a unique solution. Do not label both situations as the same failed division; check whether there is a nonzero entry below the pivot.

Worked Example: A Zero Pivot in a Nonsingular Matrix

Consider \(\mathbf{A}=\begin{bmatrix}0&1\\1&0\end{bmatrix}\). Its first pivot is zero, while the entry directly below it is \(1\). The multiplier formula would require \(1/0\), so ordinary no-pivot elimination cannot clear the first column using the first row.

This obstruction does not mean that \(\mathbf{A}\) is singular. In fact, multiplication gives

$$ \mathbf{A}\mathbf{A} = \begin{bmatrix}0&1\\1&0\end{bmatrix} \begin{bmatrix}0&1\\1&0\end{bmatrix} = \begin{bmatrix}1&0\\0&1\end{bmatrix} =\mathbf{I}_2. $$

Thus \(\mathbf{A}^{-1}=\mathbf{A}\), as is verified by the product. The matrix is invertible, even though this particular no-pivot elimination step is blocked. The correct conclusion is “the current elimination procedure cannot proceed as written,” not “the matrix is singular.”

There is another zero-pivot situation. If a pivot is zero and all entries below it in its column are zero, no elimination is needed in that column, but the zero diagonal entry can still matter when solving a triangular system. For example, a zero row produced by elimination may signal that the equations are dependent rather than inconsistent; what happens depends on the right-hand side as well as the matrix. The immediate diagnosis should describe the pivot and the entries beneath it, rather than jumping to a conclusion about every associated system.

Worked Example: A Later Zero Pivot with No Entry Below It

For \(\mathbf{B}=\begin{bmatrix}1&2\\2&4\end{bmatrix}\), the first pivot is \(1\), so the multiplier for row 2 is \(2/1=2\). Subtracting twice row 1 from row 2 gives

$$ \begin{bmatrix}1&2\\2&4\end{bmatrix} \mathrel{\mathop{\sim}^{R_2\to R_2-2R_1}} \begin{bmatrix}1&2\\0&0\end{bmatrix}. $$

The second pivot is now zero, and there are no entries below it. The elimination has reached an upper-triangular matrix, but the diagonal is not all nonzero. The rows of the original matrix satisfy \((2,4)=2(1,2)\); equivalently, \(\mathbf{B}\begin{bmatrix}-2\\1\end{bmatrix}=\begin{bmatrix}0\\0\end{bmatrix}\). The nonzero vector in this check shows that the matrix does not have a unique solution for every right-hand side. It also confirms that the zero second pivot here accompanies dependent rows.

Check: Multiplying the displayed row operation out gives \((2,4)-2(1,2)=(0,0)\), exactly the second row shown. This example differs from the preceding one: there, the zero pivot had a nonzero entry below it and blocked the column elimination; here, the last zero pivot has nothing beneath it to clear.

Why a Small Pivot Raises a Numerical Warning

With a nonzero pivot, elimination is defined in exact arithmetic, however small that pivot is. But the multiplier is a quotient, so its size depends on both the entry being cleared and the pivot. If the pivot is tiny while an entry below it is not, the multiplier can be large. In finite-precision arithmetic, calculations involving large multipliers can magnify the effects of rounding. This is a reason to investigate a small pivot, not a proof that an answer will be inaccurate.

Proposition: If \(0<|a_{kk}^{(k)}|\leq\varepsilon\) and \(|a_{ik}^{(k)}|\geq c>0\), then the elimination multiplier satisfies \(\left|a_{ik}^{(k)}/a_{kk}^{(k)}\right|\geq c/\varepsilon\).

Proof. Since the pivot is nonzero, the multiplier is defined. Taking absolute values gives \(\left|a_{ik}^{(k)}/a_{kk}^{(k)}\right|=|a_{ik}^{(k)}|/|a_{kk}^{(k)}|\). The numerator is at least \(c\) and the positive denominator is at most \(\varepsilon\), so the quotient is at least \(c/\varepsilon\). \(\square\)

Worked Example: A Small Pivot Produces a Large Multiplier

Consider the exact matrix \(\mathbf{C}=\begin{bmatrix}\tfrac{1}{10000}&1\\1&1\end{bmatrix}\). Its first pivot is \(\tfrac{1}{10000}\), not zero. To clear the \(1\) below it, the multiplier is \(1/(\tfrac{1}{10000})=10000\). Subtracting \(10000\) times row 1 from row 2 gives

$$ \begin{bmatrix}\tfrac{1}{10000}&1\\1&1\end{bmatrix} \mathrel{\mathop{\sim}^{R_2\to R_2-10000R_1}} \begin{bmatrix}\tfrac{1}{10000}&1\\0&-9999\end{bmatrix}. $$

The updated second entry is \(1-10000(1)=-9999\). The multiplier is large because the entry being cleared is large relative to the pivot; this is the kind of situation that raises a numerical warning.

We can check the associated factorization directly. The elimination multiplier is the entry below the diagonal in \(\mathbf{L}\), and the resulting upper-triangular matrix is \(\mathbf{U}\):

$$ \mathbf{L}= \begin{bmatrix}1&0\\10000&1\end{bmatrix}, \qquad \mathbf{U}= \begin{bmatrix}\tfrac{1}{10000}&1\\0&-9999\end{bmatrix}. $$

Multiplying verifies the factorization exactly:

$$ \mathbf{L}\mathbf{U} = \begin{bmatrix} \tfrac{1}{10000}&1\\ 10000(\tfrac{1}{10000})&10000-9999 \end{bmatrix} = \begin{bmatrix}\tfrac{1}{10000}&1\\1&1\end{bmatrix} =\mathbf{C}. $$

The large multiplier is an exact-arithmetic fact, not an arithmetic mistake. Whether it causes a significant error in a particular finite-precision computation depends on the data and the arithmetic; the pivot alone does not answer that question.

Small Relative to What?

A pivot's absolute size is not enough to assess a warning. The entries being processed also have a scale. For instance, \(\tfrac{1}{10000}\) is small compared with \(1\), as in \(\mathbf{C}\), where it leads to a multiplier of \(10000\). But a small pivot can occur without producing a large multiplier if the entries below it are also small or zero.

Worked Example: A Small Pivot with No Large Multiplier

Let \(\mathbf{D}=\begin{bmatrix}\tfrac{1}{10000}&0\\0&1\end{bmatrix}\). The first pivot is again \(\tfrac{1}{10000}\), but the entry below it is zero. The multiplier needed to clear that entry is \(0/(\tfrac{1}{10000})=0\), so the elimination step does not create a large multiplier. In fact, the matrix is already upper triangular and \(\mathbf{L}=\mathbf{I}_2\), \(\mathbf{U}=\mathbf{D}\).

Check: \(\mathbf{L}\mathbf{U}=\mathbf{I}_2\mathbf{D}=\mathbf{D}\). This example does not establish that every calculation involving \(\mathbf{D}\) is insensitive to rounding. It shows only that a small absolute pivot is not, by itself, evidence of a large elimination multiplier or of breakdown.

Scaling also changes the numerical meaning of an absolute threshold. Multiplying a row and its corresponding right-hand-side entry by a nonzero scalar leaves the set of solutions unchanged, but changes the magnitudes appearing in that row. Therefore, a rule such as “treat every pivot below a fixed number as bad” can give different warnings for differently scaled versions of the same equations. In practice, a small-pivot warning is assessed relative to the entries under consideration, with attention to how the system is scaled and to the precision of the computation.

Common Mistake: Treating Both Cases as the Same

Wrong calculation: In the matrix \(\mathbf{A}=\begin{bmatrix}0&1\\1&0\end{bmatrix}\), one might write the multiplier as \(1/0\) and continue as though this were an ordinary number, or conclude from the failed division that \(\mathbf{A}\) has no inverse. Neither step is valid. Division by zero is undefined, and the matrix is invertible, as the check \(\mathbf{A}^2=\mathbf{I}_2\) shows.

Correction: State what has actually failed: no-pivot elimination cannot clear the first column using the first row. Separately check invertibility or the behavior of the system; do not infer singularity merely from that blocked step. For a nonzero small pivot, use the actual multiplier formula and compare the resulting multiplier and pivot with the scale of the active entries. A numerical warning calls for care, not an automatic declaration of failure.

These checks keep three questions separate: Is the current pivot exactly zero? If so, is there a nonzero entry below it that the current row must clear? If the pivot is nonzero but small, does its size relative to the entries being eliminated create a large multiplier? Answering them in that order distinguishes an exact obstacle from a numerical concern without overclaiming what either one implies.

Check Your Understanding

For each question, identify the pivot and justify the conclusion from the entries shown.

  1. For \(\begin{bmatrix}0&2\\3&1\end{bmatrix}\), is the first pivot an exact obstruction to clearing the entry below it without changing rows? Explain.
  2. In \(\begin{bmatrix}1&2\\2&4\end{bmatrix}\), perform the first elimination step and state what the second pivot tells you about the resulting triangular matrix.
  3. If a pivot is \(\tfrac{1}{1000}\) and the entry below it is \(\tfrac{1}{10}\), calculate the elimination multiplier. Is the pivot zero?
  4. Give a reason an absolute “small pivot” cutoff can be misleading when equations have been rescaled.
  5. Explain why a small nonzero pivot is a numerical warning rather than an exact-arithmetic breakdown.

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