Euler Hall — free maths guides

Decide whether A has an LU factorization with no row exchanges

Decide whether an exchange-free LU exists from the pivot sequence. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

The test is a zero pivot, not a zero determinant

A=LUA=LU with no row exchange exists exactly when elimination never meets a zero pivot. Equivalently: every leadingk×kk\times k corner ofAA is invertible, fork=1,…,nk=1,\dots,n.

A=[012131210]A=\begin{bmatrix}0&1&2\\1&3&1\\2&1&0\end{bmatrix}

hasa11=0a_{11}=0. The first step would divide by that pivot, so elimination cannot start — and the matrix is perfectly invertible:det⁡A=−8\det A=-8. So "noLULU" and "singular" are different statements, and only the first is about a pivot.

What an exchange repairs.

Swap the rows and it works. That is thePA=LUPA=LU statement, which is a different factorisation and a later section.

What an exchange cannot repair.

A=[2436]A=\begin{bmatrix}2&4\\3&6\end{bmatrix}

First pivot22, fine. Second pivot6−32⋅4=06-\tfrac32\cdot4=0. Now a swap does not help, because both rows are in the same direction — the columns are dependent and the matrix is singular. Here the failure is genuine.

Why the leading corners, and why they are equivalent to nonzero pivots

The claim. Elimination onAA never meets a zero pivot iff every leading cornerAkA_k (the top-leftk×kk\times k block) is invertible.

Why. Elimination factors every leading corner at the same time:

SinceLkL_k is unit lower triangular (determinant11),det⁡Ak=det⁡Uk\det A_k=\det U_k, which is the product of the firstkk pivots. SoAkA_k is invertible exactly when thosekk pivots are all nonzero — and this holds for everykk exactly when no pivot is ever zero.

Why this is stronger thandet⁡A≠0\det A\ne0. The full determinant isdet⁡A=det⁡An\det A=\det A_n, which is only the last of thenn conditions. A matrix can havedet⁡A≠0\det A\ne0 anddet⁡A1=0\det A_1=0 — that is precisely the[0110]\begin{bmatrix}0&1\\1&0\end{bmatrix} case.

Worked example: three matrices, three verdicts

*A1=[2143]A_1=\begin{bmatrix}2&1\\4&3\end{bmatrix}.** First pivot2≠02\ne0; second3−2⋅1=1≠03-2\cdot1=1\ne0. Corners:det⁡A1=2\det A_1=2 anddet⁡A2=2\det A_2=2. Both nonzero, soLULU exists:

L=[1021],U=[2101].L=\begin{bmatrix}1&0\\2&1\end{bmatrix},\qquad U=\begin{bmatrix}2&1\\0&1\end{bmatrix}.

*A2=[0123]A_2=\begin{bmatrix}0&1\\2&3\end{bmatrix}.** First cornerdet⁡[0]=0\det[0]=0. No exchange-freeLULU — even thoughdet⁡A2=−2≠0\det A_2=-2\ne0 and the matrix is invertible.

*A3=[2436]A_3=\begin{bmatrix}2&4\\3&6\end{bmatrix}.** First pivot2≠02\ne0; second6−32⋅4=06-\tfrac32\cdot4=0. Corners:22 and00. NoLULU, and here it is not repairable:det⁡A3=0\det A_3=0, soA3A_3 is singular and no permutation makes it factor.

The lesson from the three.A1A_1 works.A2A_2 fails but an exchange fixes it.A3A_3 fails and nothing fixes it. All three questions are decided by the pivot sequence, and none of them by the determinant alone.

By the end you can
  • Decide whether an exchange-free LU exists from the pivot sequence
  • State the equivalent condition on the leading square corners
  • Explain why a nonzero determinant does not settle the question
  • Distinguish a zero pivot that an exchange repairs from one that it cannot
Before you move on

<ol class="steps"> <li>Does[1224]\begin{bmatrix}1&2\\2&4\end{bmatrix} have an exchange-freeLULU? Why?</li> <li>Does[0315]\begin{bmatrix}0&3\\1&5\end{bmatrix} have one? What is its determinant?</li> <li>Which leading corner decides whether the second pivot exists?</li> <li>If the first corner is invertible but the second is not, can an exchange help?</li> </ol>

Answers

1. No. The second pivot is4−2⋅2=04-2\cdot2=0, and the matrix is singular. 2. No — first pivot00. Its determinant is0⋅5−3⋅1=−3≠00\cdot5-3\cdot1=-3\ne0, so the matrix is invertible and one exchange repairs it. 3. The leading2×22\times2 corner; its determinant isa11a_{11} times the second pivot. 4. It depends: if the failure comes from a zero entry that a lower row could supply, an exchange helps; if the columns are genuinely dependent, it does not.

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