Linear Algebra Quiz: Lu Decomposition
19 questions · exam conditions
0:00
Lu DecompositionQuestion 1 of 19

In solving a linear system Ax=bAx=b, the problem is factored as A=LUA=LU and then solved as Ly=bLy=b followed by Ux=yUx=y. Given U=(312021002)U = \begin{pmatrix} 3 & -1 & 2 \\ 0 & 2 & 1 \\ 0 & 0 & -2 \end{pmatrix} and the intermediate solution y=(846)y = \begin{pmatrix} 8 \\ 4 \\ -6 \end{pmatrix}, what is the final solution vector xx?

(4/323)\begin{pmatrix} 4/3 \\ 2 \\ 3 \end{pmatrix}
(35/67/23)\begin{pmatrix} 35/6 \\ 7/2 \\ -3 \end{pmatrix}
(8/32/33)\begin{pmatrix} 8/3 \\ -2/3 \\ 3 \end{pmatrix}
(5/61/23)\begin{pmatrix} 5/6 \\ 1/2 \\ 3 \end{pmatrix}
← Back to quizzes

Linear Algebra Quiz

Linear Algebra Quiz: Lu Decomposition

Practice Lu Decomposition in Linear Algebra with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.

What this quiz covers

This quiz focuses on Lu Decomposition, giving you a quick way to practice the rules, question types, and explanations that matter most for Linear Algebra.

How to use this quiz

Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.

All questions

Question 1

In solving a linear system Ax=bAx=b, the problem is factored as A=LUA=LU and then solved as Ly=bLy=b followed by Ux=yUx=y. Given U=(312021002)U = \begin{pmatrix} 3 & -1 & 2 \\ 0 & 2 & 1 \\ 0 & 0 & -2 \end{pmatrix} and the intermediate solution y=(846)y = \begin{pmatrix} 8 \\ 4 \\ -6 \end{pmatrix}, what is the final solution vector xx?

  1. (4/323)\begin{pmatrix} 4/3 \\ 2 \\ 3 \end{pmatrix}
  2. (35/67/23)\begin{pmatrix} 35/6 \\ 7/2 \\ -3 \end{pmatrix}
  3. (8/32/33)\begin{pmatrix} 8/3 \\ -2/3 \\ 3 \end{pmatrix}
  4. (5/61/23)\begin{pmatrix} 5/6 \\ 1/2 \\ 3 \end{pmatrix} (correct answer)
Explanation: We solve Ux=yUx=y using backward substitution. From the last row, 2x3=6    x3=3-2x_3 = -6 \implies x_3 = 3. From the second row, 2x2+x3=4    2x2+3=4    2x2=1    x2=1/22x_2 + x_3 = 4 \implies 2x_2 + 3 = 4 \implies 2x_2 = 1 \implies x_2 = 1/2. From the first row, 3x1x2+2x3=8    3x11/2+2(3)=8    3x1+5.5=8    3x1=2.5    x1=5/63x_1 - x_2 + 2x_3 = 8 \implies 3x_1 - 1/2 + 2(3) = 8 \implies 3x_1 + 5.5 = 8 \implies 3x_1 = 2.5 \implies x_1 = 5/6. The solution is x=(5/61/23)x = \begin{pmatrix} 5/6 \\ 1/2 \\ 3 \end{pmatrix}.

Question 2

The LU decomposition for a matrix AA is L=(100110201)L = \begin{pmatrix} 1 & 0 & 0 \\ 1 & 1 & 0 \\ -2 & 0 & 1 \end{pmatrix} and U=(211032004)U = \begin{pmatrix} 2 & -1 & 1 \\ 0 & 3 & -2 \\ 0 & 0 & 4 \end{pmatrix}. For b=(252)b = \begin{pmatrix} 2 \\ 5 \\ -2 \end{pmatrix}, what is the value of x2x_2 in the solution to Ax=bAx=b?

  1. 33
  2. 4/34/3 (correct answer)
  3. 7/37/3
  4. 2/32/3
Explanation: First, solve Ly=bLy=b. y1=2y_1 = 2. y1+y2=5    2+y2=5    y2=3y_1 + y_2 = 5 \implies 2 + y_2 = 5 \implies y_2 = 3. 2y1+y3=2    4+y3=2    y3=2-2y_1 + y_3 = -2 \implies -4 + y_3 = -2 \implies y_3=2. So y=(232)y = \begin{pmatrix} 2 \\ 3 \\ 2 \end{pmatrix}. Next, solve Ux=yUx=y. We only need x2x_2. We find x3x_3 first from the last row: 4x3=2    x3=1/24x_3 = 2 \implies x_3 = 1/2. Then use the second row: 3x22x3=y2    3x22(1/2)=3    3x21=3    3x2=4    x2=4/33x_2 - 2x_3 = y_2 \implies 3x_2 - 2(1/2) = 3 \implies 3x_2 - 1 = 3 \implies 3x_2 = 4 \implies x_2 = 4/3.

Question 3

The LU decomposition of a matrix AA is given by L=(100210311)L = \begin{pmatrix} 1 & 0 & 0 \\ -2 & 1 & 0 \\ 3 & -1 & 1 \end{pmatrix} and U=(214013001)U = \begin{pmatrix} 2 & 1 & 4 \\ 0 & 1 & 3 \\ 0 & 0 & -1 \end{pmatrix}. To solve the system Ax=bAx=b for b=(217)b = \begin{pmatrix} 2 \\ -1 \\ 7 \end{pmatrix}, one first solves Ly=bLy=b. What is the intermediate vector yy?

  1. (234)\begin{pmatrix} 2 \\ 3 \\ 4 \end{pmatrix} (correct answer)
  2. (254)\begin{pmatrix} 2 \\ -5 \\ -4 \end{pmatrix}
  3. (5207)\begin{pmatrix} 5 \\ 20 \\ -7 \end{pmatrix}
  4. (217)\begin{pmatrix} 2 \\ -1 \\ 7 \end{pmatrix}
Explanation: We solve Ly=bLy=b using forward substitution. From the first row, 1y1=2    y1=21y_1 = 2 \implies y_1=2. From the second row, 2y1+1y2=1    2(2)+y2=1    y2=3-2y_1 + 1y_2 = -1 \implies -2(2) + y_2 = -1 \implies y_2 = 3. From the third row, 3y11y2+1y3=7    3(2)3+y3=7    3+y3=7    y3=43y_1 - 1y_2 + 1y_3 = 7 \implies 3(2) - 3 + y_3 = 7 \implies 3 + y_3 = 7 \implies y_3 = 4. So, y=(234)y = \begin{pmatrix} 2 \\ 3 \\ 4 \end{pmatrix}.

Question 4

Let AA be an invertible n×nn \times n matrix with a unique LU decomposition A=LUA=LU, where LL is a unit lower triangular matrix and UU is an upper triangular matrix. Which of the following statements is necessarily false?

  1. The matrix LL is always invertible.
  2. The matrix UU can be singular. (correct answer)
  3. The determinant of LL is always 11.
  4. The determinant of AA is equal to the product of the diagonal entries of UU.
Explanation: The determinant of a product of matrices is the product of their determinants: det(A)=det(L)det(U)\det(A) = \det(L)\det(U). Since LL is unit lower triangular, its diagonal entries are all 11, so det(L)=1\det(L) = 1. This means det(A)=det(U)\det(A) = \det(U). The problem states that AA is invertible, so det(A)0\det(A) \neq 0. Consequently, det(U)\det(U) must also be non-zero, which means UU must be invertible (non-singular). Therefore, the statement that UU can be singular is false.

Question 5

To begin the LU decomposition of matrix A=(2314126138)A = \begin{pmatrix} 2 & 3 & 1 \\ -4 & -1 & 2 \\ 6 & 13 & 8 \end{pmatrix}, the row operation applied to row 2 to create a zero in the first column is R2R2+2R1R_2 \to R_2 + 2R_1. What is the entry l21l_{21} in the resulting unit lower triangular matrix LL?

  1. 22
  2. 1/2-1/2
  3. 4-4
  4. 2-2 (correct answer)
Explanation: The entries lijl_{ij} (for i>ji>j) in the matrix LL are the multipliers used in Gaussian elimination. The elimination step is defined as RiRilijRjR_i \to R_i - l_{ij}R_j. The question states the operation is R2R2+2R1R_2 \to R_2 + 2R_1. Comparing this to the definition, we have R2R2l21R1R_2 \to R_2 - l_{21}R_1. Thus, l21=2-l_{21} = 2, which means l21=2l_{21} = -2. Alternatively, the multiplier is always calculated as l21=a21/a11=4/2=2l_{21} = a_{21}/a_{11} = -4/2 = -2.

Question 6

Given the matrix A=(211451252)A = \begin{pmatrix} 2 & 1 & -1 \\ 4 & 5 & -1 \\ -2 & 5 & 2 \end{pmatrix}. In the LU decomposition A=LUA=LU, where LL is a unit lower triangular matrix, what is the value of the entry l31l_{31}?

  1. 11
  2. 1-1 (correct answer)
  3. 22
  4. 2-2
Explanation: To find the entries of LL, we perform Gaussian elimination on AA to get UU. The multipliers used become the entries of LL. The entry l31l_{31} is the multiplier used to create a zero in the third row, first column. The operation is R3R3mR1R_3 \to R_3 - m R_1, where m=a31/a11=2/2=1m = a_{31}/a_{11} = -2/2 = -1. Thus, l31=1l_{31} = -1. The operation would be R3R3(1)R1=R3+R1R_3 \to R_3 - (-1)R_1 = R_3 + R_1.

Question 7

Let A=(1232343710)A = \begin{pmatrix} 1 & 2 & 3 \\ -2 & -3 & -4 \\ 3 & 7 & 10 \end{pmatrix}. Find the entry u22u_{22} of the upper triangular matrix UU in the LU decomposition of AA.

  1. 7-7
  2. 3-3
  3. 11 (correct answer)
  4. 55
Explanation: To find UU, we use Gaussian elimination. The first step is to eliminate the entry a21a_{21}. The multiplier is l21=2/1=2l_{21} = -2/1 = -2. The row operation is R2R2(2)R1=R2+2R1R_2 \to R_2 - (-2)R_1 = R_2 + 2R_1. The new second row is (2,3,4)+2(1,2,3)=(2+2,3+4,4+6)=(0,1,2)(-2, -3, -4) + 2(1, 2, 3) = (-2+2, -3+4, -4+6) = (0, 1, 2). The matrix becomes (123012.........)\begin{pmatrix} 1 & 2 & 3 \\ 0 & 1 & 2 \\ ... & ... & ... \end{pmatrix}. The entry u22u_{22} is the new element in the (2,2) position, which is 11.

Question 8

Consider the matrix A=(021113241)A = \begin{pmatrix} 0 & 2 & 1 \\ 1 & 1 & 3 \\ -2 & 4 & 1 \end{pmatrix}. A row interchange is necessary to proceed with LU decomposition. Let PP be the permutation matrix that swaps rows 1 and 2. For the factorization PA=LUPA=LU, what is the resulting upper triangular matrix UU?

  1. (113021004)\begin{pmatrix} 1 & 1 & 3 \\ 0 & 2 & 1 \\ 0 & 0 & 4 \end{pmatrix} (correct answer)
  2. (113021067)\begin{pmatrix} 1 & 1 & 3 \\ 0 & 2 & 1 \\ 0 & 6 & 7 \end{pmatrix}
  3. (113021241)\begin{pmatrix} 1 & 1 & 3 \\ 0 & 2 & 1 \\ -2 & 4 & 1 \end{pmatrix}
  4. (1130210010)\begin{pmatrix} 1 & 1 & 3 \\ 0 & 2 & 1 \\ 0 & 0 & 10 \end{pmatrix}
Explanation: First, apply the permutation: PA=(010100001)(021113241)=(113021241)PA = \begin{pmatrix} 0&1&0\\1&0&0\\0&0&1 \end{pmatrix} \begin{pmatrix} 0&2&1\\1&1&3\\-2&4&1 \end{pmatrix} = \begin{pmatrix} 1&1&3\\0&2&1\\-2&4&1 \end{pmatrix}. Let this be AA'. Now, perform elimination on AA'. For the first column, R3R3(2)R1=R3+2R1R_3 \to R_3 - (-2)R_1 = R_3 + 2R_1, giving the new matrix (113021067)\begin{pmatrix} 1&1&3\\0&2&1\\0&6&7 \end{pmatrix}. For the second column, R3R3(3)R2R_3 \to R_3 - (3)R_2, giving the new third row (0,6,7)3(0,2,1)=(0,0,4)(0,6,7) - 3(0,2,1) = (0,0,4). The final matrix UU is (113021004)\begin{pmatrix} 1&1&3\\0&2&1\\0&0&4 \end{pmatrix}.

Question 9

A matrix AA is factored into a unit lower triangular matrix LL and an upper triangular matrix UU, where L=(100310241)andU=(512013002)L = \begin{pmatrix} 1 & 0 & 0 \\ -3 & 1 & 0 \\ 2 & 4 & 1 \end{pmatrix} \quad \text{and} \quad U = \begin{pmatrix} 5 & 1 & -2 \\ 0 & -1 & 3 \\ 0 & 0 & 2 \end{pmatrix} What is the entry a32a_{32} of the original matrix AA?

  1. 99
  2. 1-1
  3. 2-2 (correct answer)
  4. 44
Explanation: Since A=LUA=LU, the entry aija_{ij} is the dot product of the ii-th row of LL and the jj-th column of UU. To find a32a_{32}, we take the dot product of the third row of LL and the second column of UU. \ Third row of LL: (241)\begin{pmatrix} 2 & 4 & 1 \end{pmatrix}. \ Second column of UU: (110)\begin{pmatrix} 1 \\ -1 \\ 0 \end{pmatrix}. \ The dot product is a32=(2)(1)+(4)(1)+(1)(0)=24+0=2a_{32} = (2)(1) + (4)(-1) + (1)(0) = 2 - 4 + 0 = -2.

Question 10

A research team needs to solve the matrix equation Ax=bAx=b for a large, fixed n×nn \times n matrix AA and over one thousand different right-hand side vectors b1,b2,,b1000b_1, b_2, \ldots, b_{1000}. Which statement best explains the computational advantage of using an LU decomposition of AA?

  1. Calculating the inverse A1A^{-1} is faster than finding the LU decomposition, so x=A1bx=A^{-1}b should be used for each vector.
  2. The LU decomposition needs to be computed only once, and then solving for each vector bkb_k requires only computationally inexpensive substitutions. (correct answer)
  3. For each new vector bkb_k, the entire Gaussian elimination process for the augmented matrix [Abk][A|b_k] must be repeated from scratch.
  4. The LU decomposition directly provides the solution vector xx without the need for forward or backward substitution.
Explanation: The main advantage of LU decomposition is that the computationally expensive part (Gaussian elimination on AA, with complexity O(n3)O(n^3)) is done only once to find LL and UU. Solving the system for any new vector bb then involves a forward substitution (Ly=bLy=b) and a backward substitution (Ux=yUx=y), both of which are much faster (complexity O(n2)O(n^2)). This is far more efficient than re-running elimination for each of the thousand vectors or computing the matrix inverse.

Question 11

If matrix AA has LU decomposition A=LUA = LU where LL has unit diagonal, and we know that det(A)=12\det(A) = -12 and u11=2u_{11} = 2, u22=3u_{22} = -3, what is u33u_{33}?

  1. 2-2
  2. 22 (correct answer)
  3. 44
  4. 4-4
Explanation: Since det(A)=det(L)det(U)\det(A) = \det(L) \cdot \det(U) and LL has unit diagonal elements, det(L)=1\det(L) = 1. Therefore, det(A)=det(U)=u11u22u33\det(A) = \det(U) = u_{11} \cdot u_{22} \cdot u_{33}. Substituting known values: 12=2(3)u33=6u33-12 = 2 \cdot (-3) \cdot u_{33} = -6u_{33}. Solving: u33=126=2u_{33} = \frac{-12}{-6} = 2. Choice A would result from forgetting the negative sign in u22u_{22}. Choices C and D would result from errors in the determinant relationship or arithmetic mistakes.

Question 12

A 3×33 \times 3 matrix AA has the property that during LU decomposition without pivoting, the second leading principal minor equals zero while the first leading principal minor is nonzero. Which statement about the LU decomposition is correct?

  1. The decomposition exists and is unique, but LL contains a zero diagonal element
  2. The decomposition fails because we encounter division by zero during elimination (correct answer)
  3. The decomposition exists but requires partial pivoting to complete successfully
  4. The decomposition produces a singular matrix UU with two zero diagonal entries
Explanation: When the second leading principal minor is zero but the first is nonzero, we have a110a_{11} \neq 0 but det(a11a12a21a22)=0\det\begin{pmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{pmatrix} = 0. During elimination, after the first step, the pivot position (2,2)(2,2) becomes zero, causing division by zero when trying to eliminate below the second pivot. Choice A is wrong because LL has unit diagonal. Choice C describes what we'd need to do to fix it, not what happens without pivoting. Choice D is wrong because we can't even reach the point of having UU fully formed.

Question 13

A student performs LU decomposition on a 4×44 \times 4 matrix AA and obtains LL and UU. Later, they discover that AA was actually the transpose of the intended matrix. If the intended matrix ATA^T has LU decomposition AT=LUA^T = L'U', what is the relationship between the decompositions?

  1. (L)T=U(L')^T = U and (U)T=L(U')^T = L (correct answer)
  2. (L)T=L(L')^T = L and (U)T=U(U')^T = U
  3. L=UTL' = U^T and U=LTU' = L^T
  4. No simple relationship exists between the decompositions
Explanation: If A=LUA = LU, then AT=(LU)T=UTLTA^T = (LU)^T = U^T L^T. Since AT=LUA^T = L'U' where LL' is lower triangular with unit diagonal and UU' is upper triangular, we need LU=UTLTL'U' = U^T L^T. Since UTU^T is lower triangular and LTL^T is upper triangular with unit diagonal, we have L=UTL' = U^T and U=LTU' = L^T, which means (L)T=U(L')^T = U and (U)T=L(U')^T = L. Choices B and C represent common misconceptions about matrix transposes and decomposition properties.

Question 14

In the LU decomposition A=LUA = LU of a 3×33 \times 3 matrix, suppose l21=13l_{21} = \frac{1}{3}, l31=23l_{31} = \frac{2}{3}, and l32=34l_{32} = \frac{3}{4}. If the first pivot is u11=6u_{11} = 6 and the original matrix element a31=4a_{31} = 4, what was the value of a21a_{21}?

  1. 11
  2. 33
  3. 22 (correct answer)
  4. 44
Explanation: LU decomposition questions test your understanding of how Gaussian elimination relates to matrix factorization. When you see given values for the L and U matrices, think about the fundamental relationship: each element in the original matrix A can be expressed through the row-column multiplication of L and U. In LU decomposition, the relationship A=LUA = LU means that aij=k=1min(i,j)likukja_{ij} = \sum_{k=1}^{\min(i,j)} l_{ik} \cdot u_{kj}. For element a21a_{21}, this becomes a21=l21u11a_{21} = l_{21} \cdot u_{11} since we only need the first term in the sum. Given that l21=13l_{21} = \frac{1}{3} and u11=6u_{11} = 6, we can calculate: a21=l21u11=136=2a_{21} = l_{21} \cdot u_{11} = \frac{1}{3} \cdot 6 = 2 We can verify this approach using the given information about a31=4a_{31} = 4. Since a31=l31u11=236=4a_{31} = l_{31} \cdot u_{11} = \frac{2}{3} \cdot 6 = 4, our method is consistent. Choice A (11) would result from incorrectly using l21=16l_{21} = \frac{1}{6} instead of 13\frac{1}{3}. Choice B (33) represents the denominator from l21l_{21}, showing confusion about which values to multiply. Choice D (44) is the value of a31a_{31}, indicating you mixed up which matrix element was being asked for. Study tip: In LU decomposition problems, always write out the matrix multiplication formula for the specific element you need. The pattern aij=likukja_{ij} = \sum l_{ik} \cdot u_{kj} is your reliable roadmap to avoid mixing up given values.

Question 15

A matrix AA is decomposed as A=LUA = LU where both LL and UU are 3×33 \times 3. If we modify the decomposition by multiplying LL by a diagonal matrix D=diag(2,12,3)D = \text{diag}(2, \frac{1}{2}, 3) on the right and UU by D1D^{-1} on the left to get L~=LD\tilde{L} = LD and U~=D1U\tilde{U} = D^{-1}U, what is the diagonal element u~22\tilde{u}_{22} in terms of the original u22u_{22}?

  1. u~22=u222\tilde{u}_{22} = \frac{u_{22}}{2}
  2. u~22=u22\tilde{u}_{22} = u_{22}
  3. u~22=2u22\tilde{u}_{22} = 2u_{22} (correct answer)
  4. u~22=u223\tilde{u}_{22} = \frac{u_{22}}{3}
Explanation: Matrix decomposition transformations test your understanding of how scaling operations affect matrix products. When you see a question about modifying an existing decomposition, focus on how the transformations interact at each position. Starting with A=LUA = LU, the modified decomposition gives us L~=LD\tilde{L} = LD and U~=D1U\tilde{U} = D^{-1}U. Let's verify this preserves the original matrix: L~U~=(LD)(D1U)=LDD1U=LU=A\tilde{L}\tilde{U} = (LD)(D^{-1}U) = LDD^{-1}U = LU = A To find u~22\tilde{u}_{22}, we need to understand how D1D^{-1} affects UU. Since D=diag(2,12,3)D = \text{diag}(2, \frac{1}{2}, 3), we have D1=diag(12,2,13)D^{-1} = \text{diag}(\frac{1}{2}, 2, \frac{1}{3}). When we multiply D1UD^{-1}U, the diagonal matrix D1D^{-1} scales each row of UU by the corresponding diagonal element. Specifically, row 2 of UU gets multiplied by the (2,2) entry of D1D^{-1}, which is 2. Therefore: u~22=2u22\tilde{u}_{22} = 2u_{22}. Option A (u222\frac{u_{22}}{2}) incorrectly uses the original diagonal element from DD instead of D1D^{-1}. Option B (u22u_{22}) assumes the transformation doesn't affect the diagonal, missing that D1ID^{-1} \neq I. Option D (u223\frac{u_{22}}{3}) confuses the (2,2) position with the (3,3) position of D1D^{-1}. The correct answer is C: u~22=2u22\tilde{u}_{22} = 2u_{22}. Strategy tip: In matrix scaling problems, always track which matrix acts on rows versus columns, and remember that D1D^{-1} inverts each diagonal element individually.

Question 16

Consider the block matrix A=(BC0D)A = \begin{pmatrix} B & C \\ 0 & D \end{pmatrix} where BB and DD are square matrices of sizes 2×22 \times 2 and 3×33 \times 3 respectively. If BB has LU decomposition B=L1U1B = L_1 U_1 and DD has LU decomposition D=L2U2D = L_2 U_2, what is the structure of the LL matrix in the LU decomposition of AA?

  1. (correct answer)
Explanation: For a block upper triangular matrix like AA, the LU decomposition preserves the block structure. Since the lower-left block is already zero, no elimination is needed there, and LL becomes block diagonal: L=(L100L2)L = \begin{pmatrix} L_1 & 0 \\ 0 & L_2 \end{pmatrix} and U=(U1L11C0U2)U = \begin{pmatrix} U_1 & L_1^{-1}C \\ 0 & U_2 \end{pmatrix} . Choice B incorrectly places the off-diagonal term in LL. Choice C violates the structure of LL. Choice D would apply if AA were block lower triangular instead.

Question 17

For which of the following matrices does a unique LU decomposition (where LL is unit lower triangular) not exist without row interchanges?

  1. (1234)\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}
  2. (0123)\begin{pmatrix} 0 & 1 \\ 2 & 3 \end{pmatrix} (correct answer)
  3. (210121012)\begin{pmatrix} 2 & 1 & 0 \\ 1 & 2 & 1 \\ 0 & 1 & 2 \end{pmatrix}
  4. (300130213)\begin{pmatrix} 3 & 0 & 0 \\ 1 & 3 & 0 \\ 2 & 1 & 3 \end{pmatrix}
Explanation: An LU decomposition without pivoting exists if and only if all leading principal minors of the matrix are non-zero. For matrix (B), the first leading principal minor is the top-left element, which is 00. Since this minor is zero, the LU decomposition cannot be formed without a row interchange. The other matrices have all non-zero leading principal minors.

Question 18

The LU decomposition of a matrix AA results in the upper triangular matrix U=(215036004)U = \begin{pmatrix} 2 & -1 & 5 \\ 0 & -3 & 6 \\ 0 & 0 & 4 \end{pmatrix}. What is the determinant of matrix AA?

  1. 33
  2. 2424
  3. 23-23
  4. 24-24 (correct answer)
Explanation: For an LU decomposition A=LUA=LU, the determinant is det(A)=det(L)det(U)\det(A) = \det(L)\det(U). By convention, LL is a unit lower triangular matrix, meaning its diagonal entries are all 1. The determinant of any triangular matrix is the product of its diagonal entries, so det(L)=1\det(L)=1. Therefore, det(A)=det(U)\det(A) = \det(U). For the given matrix UU, the determinant is the product of its diagonal entries: det(U)=(2)(3)(4)=24\det(U) = (2)(-3)(4) = -24. Thus, det(A)=24\det(A) = -24.

Question 19

Consider the matrix A=(123247136)A = \begin{pmatrix} 1 & 2 & 3 \\ 2 & 4 & 7 \\ 1 & 3 & 6 \end{pmatrix} . During LU decomposition, what happens when we attempt to eliminate the entry in position (2,1)(2,1)?

  1. The elimination proceeds normally, and the multiplier l21=2l_{21} = 2 is stored in LL
  2. The elimination fails immediately because the first pivot is too small for numerical stability
  3. The elimination proceeds, but the resulting UU matrix becomes singular in the second step
  4. The elimination creates a zero in position (2,2)(2,2), preventing further progress without pivoting (correct answer)
Explanation: When you encounter LU decomposition problems, focus on what happens at each elimination step and how it affects the matrix structure. Let's trace through the elimination process for this matrix. Starting with A=(123247136)A = \begin{pmatrix} 1 & 2 & 3 \\ 2 & 4 & 7 \\ 1 & 3 & 6 \end{pmatrix} , the first pivot is a11=1a_{11} = 1. To eliminate the (2,1)(2,1) entry, we calculate the multiplier l21=a21a11=21=2l_{21} = \frac{a_{21}}{a_{11}} = \frac{2}{1} = 2. We then subtract 2 times row 1 from row 2: Row 2 becomes: (2,4,7)2(1,2,3)=(0,0,1)(2, 4, 7) - 2(1, 2, 3) = (0, 0, 1) Similarly, for the (3,1)(3,1) entry: l31=1l_{31} = 1, and row 3 becomes: (1,3,6)1(1,2,3)=(0,1,3)(1, 3, 6) - 1(1, 2, 3) = (0, 1, 3) After the first elimination step, we have: $$ \begin{pmatrix} 1 & 2 & 3 \ 0 & 0 & 1 \ 0 & 1 & 3 \end{pmatrix} The critical issue is that position $$(2,2)$$ is now zero, which means we cannot use it as the next pivot. This makes answer **D** correct. Let's examine why the other answers miss the mark: **A** incorrectly suggests normal elimination when the zero pivot prevents continuation. **B** is wrong because the first pivot (1) is perfectly acceptable for stability. **C** misidentifies when the singularity issue occurs—it's the zero pivot that's problematic, not the final $$U$$ matrix. Remember: In LU decomposition, always check if your next pivot is zero. When it is, you need row pivoting to continue the decomposition successfully.