GATE CS 2022 · Quadratic Forms

MCQ · 2 marks · Problem EM-MDEC-0015

Consider solving the following system of simultaneous equations using LU decomposition.\[\begin{aligned} x_1+x_2-2x_3&=4 \\ x_1+3x_2-x_3&=7 \\ 2x_1+x_2-5x_3&=7 \end{aligned}\]where L and U are denoted as\[L= \begin{bmatrix} L_{11} & 0 & 0 \\ L_{21}& L_{22} & 0 \\ L_{31} & L_{32} & L_{33} \end{bmatrix}, U= \begin{bmatrix} U_{11} & U_{12} & U_{13} \\ 0& U_{22} & U_{23} \\ 0 & 0 & U_{33} \end{bmatrix}\]Which one of the following is the correct combination of values for \(L32, U33,\) and \(x_1\)?
  1. A
    \(L_{32}=2,U_{33}=-\frac{1}{2},x_1=-1\)
  2. B
    \(L_{32}=2,U_{33}=2,x_1=-1\)
  3. C
    \(L_{32}=-\frac{1}{2},U_{33}=2,x_1=0\)
  4. D
    \(L_{32}=-\frac{1}{2},U_{33}=-\frac{1}{2},x_1=0\)

Solve it on GATE DA practice →More Determinant, Rank & Geometry problems

Show the worked solutionDoolittle form (\(L_{ii}=1\)). Eliminate column 1: \(L_{21}=1,\ L_{31}=2\); \(R_2-R_1=(0,2,1)\), \(R_3-2R_1=(0,-1,-1)\).Eliminate column 2: \(L_{32}=\frac{-1}{2}=-\frac12\); \(U_{33}=-1-\left(-\tfrac12\right)(1)=-\tfrac12\).\[U=\begin{bmatrix}1&1&-2\\0&2&1\\0&0&-\tfrac12\end{bmatrix}\]Forward substitution \(L\mathbf y=\mathbf b\): \(y=(4,\ 3,\ \tfrac12)\).Back substitution \(U\mathbf x=\mathbf y\): \(x_3=-1,\ x_2=2,\ x_1=4-2-2=0\).Answer: D

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com