Skip to content

GATE CS 2022 Q35 — Linear Algebra: Matrices, Determinants, System of Linear Equations

Explain with AI

Consider solving the following system of simultaneous equations using LU\text{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\textit{L} and U\textit{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} , 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 L32,U33,\textit{L}_{32}, \textit{U}_{33}, and x1?x_{1}?

Choose one option
View worked solution

Answer: D

To solve the system using LU\text{LU} decomposition, we first write the system in matrix form Ax=bAx = b:

(11−213−121−5)(x1x2x3)=(477)\begin{pmatrix} 1 & 1 & -2 \\ 1 & 3 & -1 \\ 2 & 1 & -5 \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \\ x_3 \end{pmatrix} = \begin{pmatrix} 4 \\ 7 \\ 7 \end{pmatrix}

Using Doolittle's algorithm, we set the diagonal elements of LL to 11 (L11=L22=L33=1L_{11} = L_{22} = L_{33} = 1). Thus, we have A=LUA = LU:

(11−213−121−5)=(100L2110L31L321)(U11U12U130U22U2300U33)\begin{pmatrix} 1 & 1 & -2 \\ 1 & 3 & -1 \\ 2 & 1 & -5 \end{pmatrix} = \begin{pmatrix} 1 & 0 & 0 \\ L_{21} & 1 & 0 \\ L_{31} & L_{32} & 1 \end{pmatrix} \begin{pmatrix} U_{11} & U_{12} & U_{13} \\ 0 & U_{22} & U_{23} \\ 0 & 0 & U_{33} \end{pmatrix}

By multiplying the matrices and equating the elements:

  • First row: U11=1U_{11} = 1, U12=1U_{12} = 1, U13=−2U_{13} = -2
  • Second row:
    • L21U11=1  ⟹  L21=1L_{21}U_{11} = 1 \implies L_{21} = 1
    • L21U12+U22=3  ⟹  1(1)+U22=3  ⟹  U22=2L_{21}U_{12} + U_{22} = 3 \implies 1(1) + U_{22} = 3 \implies U_{22} = 2
    • L21U13+U23=−1  ⟹  1(−2)+U23=−1  ⟹  U23=1L_{21}U_{13} + U_{23} = -1 \implies 1(-2) + U_{23} = -1 \implies U_{23} = 1
  • Third row:
    • L31U11=2  ⟹  L31=2L_{31}U_{11} = 2 \implies L_{31} = 2
    • L31U12+L32U22=1  ⟹  2(1)+L32(2)=1  ⟹  L32=−12L_{31}U_{12} + L_{32}U_{22} = 1 \implies 2(1) + L_{32}(2) = 1 \implies L_{32} = -\frac{1}{2}
    • L31U13+L32U23+U33=−5  ⟹  2(−2)+(−12)(1)+U33=−5  ⟹  U33=−12L_{31}U_{13} + L_{32}U_{23} + U_{33} = -5 \implies 2(-2) + \left(-\frac{1}{2}\right)(1) + U_{33} = -5 \implies U_{33} = -\frac{1}{2}

Now, we solve the system of equations to find x1x_1:

  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 equation (1) from (2) gives: 2x2+x3=3— (4)2x_2 + x_3 = 3 \quad \text{--- (4)} Multiplying equation (1) by 22 and subtracting from (3) gives: −x2−x3=−1  ⟹  x2+x3=1— (5)-x_2 - x_3 = -1 \implies x_2 + x_3 = 1 \quad \text{--- (5)} Solving equations (4) and (5) yields x2=2x_2 = 2 and x3=−1x_3 = -1. Substituting these back into equation (1): x1+2−2(−1)=4  ⟹  x1=0x_1 + 2 - 2(-1) = 4 \implies x_1 = 0

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

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Linear Algebra: Matrices, Determinants, System of Linear Equations questions