GateAI
Linear Algebra

GATE CSE 2022 · Q45

MCQ2 marksMedium

Time

Consider solving the following system of simultaneous equations using LU decomposition. x1+x2−2x3=4x1+3x2−x3=72x1+x2−5x3=7\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 LL and UU 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?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: D) L32 = -(1)/(2), U33 = -(1)/(2), x1 = 0

Linear Algebra

To perform LU decomposition using Doolittle's algorithm, we set the diagonal elements of the lower triangular matrix LL to 11, so L11=L22=L33=1L_{11} = L_{22} = L_{33} = 1.

The coefficient matrix AA is:

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

Applying Gaussian elimination to find UU and the multipliers for LL:

  1. First column elimination:

    • Row 2: R2←R2−(1)R1  ⟹  L21=1R_2 \leftarrow R_2 - (1) R_1 \implies L_{21} = 1, giving (021)\begin{pmatrix} 0 & 2 & 1 \end{pmatrix}.

    • Row 3: R3←R3−(2)R1  ⟹  L31=2R_3 \leftarrow R_3 - (2) R_1 \implies L_{31} = 2, giving (0−1−1)\begin{pmatrix} 0 & -1 & -1 \end{pmatrix}.

  2. Second column elimination:

    • Row 3: R3←R3−(−12)R2  ⟹  L32=−12R_3 \leftarrow R_3 - \left(-\frac{1}{2}\right) R_2 \implies L_{32} = -\frac{1}{2}.

    • The resulting third row element is:

      U33=−1−(−12)(1)=−1+12=−12U_{33} = -1 - \left(-\frac{1}{2}\right)(1) = -1 + \frac{1}{2} = -\frac{1}{2}
  3. Solving the system of equations Ax=bAx = b: x1+x2−2x3=42x2+x3=7−4=3−x2−x3=7−2(4)=−1  ⟹  x2+x3=1\begin{aligned} x_1 + x_2 - 2x_3 &= 4 \\ 2x_2 + x_3 &= 7 - 4 = 3 \\ -x_2 - x_3 &= 7 - 2(4) = -1 \implies x_2 + x_3 = 1 \end{aligned}

    From 2x2+x3=32x_2 + x_3 = 3 and x2+x3=1x_2 + x_3 = 1:

    x2=2,x3=−1x_2 = 2, \quad x_3 = -1

    Substitute x2x_2 and x3x_3 into the first equation:

    x1+2−2(−1)=4  ⟹  x1+4=4  ⟹  x1=0x_1 + 2 - 2(-1) = 4 \implies x_1 + 4 = 4 \implies x_1 = 0

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

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Linear Algebra previous year question is Q45 of the GATE CSE 2022 paper. Find more GATE CSE PYQs on Linear Algebra in Engineering Mathematics, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Linear Algebra PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Linear Algebra in GATE CSE

Linear Algebra has 46 GATE CSE PYQs across 26 papers from 2011 to 2026. 10 of them are 2-mark MCQs like this one, and GATE CSE 2022 has 3.

How GATE tests Linear Algebra

More from GATE CSE 2022

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2022 · Q45 · MCQ

Consider solving the following system of simultaneous equations using LU decomposition. x1 + x2 - 2x3 &= 4 x1 + 3x2 - x3 &= 7 2x1 + x2 - 5x3 &= 7 where L and U are denoted as L = L11 & 0 & 0 L21 & L22 & 0 L31 & L32 & L33 , U = U11 & U12 & U13 0 & U22 & U23 0 & 0 & U33 Which one of the following is the correct combination of values for L32, U33, and x1?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.