Question

Consider solving the following system of simultaneous equations using LU decomposition.

x1+x2−2x3=4x_1 + x_2 - 2x_3 = 4
x1+3x2−x3=7x_1 + 3x_2 - x_3 = 7
2x1+x2−5x3=72x_1 + x_2 - 5x_3 = 7

where L and U are denoted as

L=(L1100L21L220L31L32L33),U=(U11U12U130U22U2300U33)L = \begin{pmatrix} L_{11} & 0 & 0 \\ L_{21} & L_{22} & 0 \\ L_{31} & L_{32} & L_{33} \end{pmatrix}, \quad U = \begin{pmatrix} U_{11} & U_{12} & U_{13} \\ 0 & U_{22} & U_{23} \\ 0 & 0 & U_{33} \end{pmatrix}

Which one of the following is the correct combination of values for L32L_{32}, U33U_{33}, and x1x_1?

Choose one option
Official answer and solution
Official answer
D
From
Official GATE 2022 answer key

Solution

Perform Doolittle LU decomposition (Lii=1L_{ii} = 1) on the coefficient matrix and solve for x1x_1.

The coefficient matrix is:

A=(11−213−121−5)A = \begin{pmatrix} 1 & 1 & -2 \\ 1 & 3 & -1 \\ 2 & 1 & -5 \end{pmatrix}

Using Doolittle's LU decomposition with unit diagonal for LL (L11=L22=L33=1L_{11} = L_{22} = L_{33} = 1):

  1. First row of UU:

    U11=A11=1,U12=A12=1,U13=A13=−2U_{11} = A_{11} = 1, \quad U_{12} = A_{12} = 1, \quad U_{13} = A_{13} = -2
  2. First column of LL:

    L21=A21U11=11=1,L31=A31U11=21=2L_{21} = \frac{A_{21}}{U_{11}} = \frac{1}{1} = 1, \quad L_{31} = \frac{A_{31}}{U_{11}} = \frac{2}{1} = 2
  3. Second row of UU:

    U22=A22−L21U12=3−1(1)=2U_{22} = A_{22} - L_{21} U_{12} = 3 - 1(1) = 2
    U23=A23−L21U13=−1−1(−2)=1U_{23} = A_{23} - L_{21} U_{13} = -1 - 1(-2) = 1
  4. Second column of LL:

    L32=A32−L31U12U22=1−2(1)2=−12L_{32} = \frac{A_{32} - L_{31} U_{12}}{U_{22}} = \frac{1 - 2(1)}{2} = -\frac{1}{2}
  5. Third row of UU:

    U33=A33−L31U13−L32U23=−5−2(−2)−(−12)(1)=−5+4+12=−12U_{33} = A_{33} - L_{31} U_{13} - L_{32} U_{23} = -5 - 2(-2) - \left(-\frac{1}{2}\right)(1) = -5 + 4 + \frac{1}{2} = -\frac{1}{2}

Now solve the system of linear equations:

  1. x1+x2−2x3=4x_1 + x_2 - 2x_3 = 4
  2. x1+3x2−x3=7x_1 + 3x_2 - x_3 = 7
  3. 2x1+x2−5x3=72x_1 + x_2 - 5x_3 = 7

Subtracting (1) from (2): 2x2+x3=3  ⟹  x3=3−2x22x_2 + x_3 = 3 \implies x_3 = 3 - 2x_2.
Substituting into (1): x1+x2−2(3−2x2)=4  ⟹  x1+5x2=10x_1 + x_2 - 2(3 - 2x_2) = 4 \implies x_1 + 5x_2 = 10.
Substituting into (3): 2x1+x2−5(3−2x2)=7  ⟹  2x1+11x2=222x_1 + x_2 - 5(3 - 2x_2) = 7 \implies 2x_1 + 11x_2 = 22.
Multiplying x1+5x2=10x_1 + 5x_2 = 10 by 2 gives 2x1+10x2=202x_1 + 10x_2 = 20. Subtracting yields x2=2x_2 = 2.
Then x1=10−5(2)=0x_1 = 10 - 5(2) = 0.

Thus, L32=−12L_{32} = -\frac{1}{2}, U33=−12U_{33} = -\frac{1}{2}, and x1=0x_1 = 0, matching Option (D).

Final answer

Option (D)

Common trap

Sign error in computing L32=1−22=−1/2L_{32} = \frac{1 - 2}{2} = -1/2.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2022 Computer Science and Information Technology (CS)
Question
45 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.