Question

In the LU decomposition of the matrix [2249]\begin{bmatrix} 2 & 2 \\ 4 & 9 \end{bmatrix}, if the diagonal elements of UU are both 11, then the lower diagonal entry l22l_{22} of LL is _____.

Official answer and solution
Official answer
5
From
Official GATE 2015 answer key

Solution

Factor matrix A into L and U with unit diagonal in U (Crout's LU decomposition).

Let A=[2249]A = \begin{bmatrix} 2 & 2 \\ 4 & 9 \end{bmatrix}.
We are given that A=LUA = L U where LL is lower triangular and UU is upper triangular with diagonal elements equal to 11:

L=[l110l21l22],U=[1u1201].L = \begin{bmatrix} l_{11} & 0 \\ l_{21} & l_{22} \end{bmatrix}, \quad U = \begin{bmatrix} 1 & u_{12} \\ 0 & 1 \end{bmatrix}.

Multiplying LL and UU:

LU=[l11l11u12l21l21u12+l22]=[2249].LU = \begin{bmatrix} l_{11} & l_{11} u_{12} \\ l_{21} & l_{21} u_{12} + l_{22} \end{bmatrix} = \begin{bmatrix} 2 & 2 \\ 4 & 9 \end{bmatrix}.

Equating matrix components step-by-step:

  1. First column:

    l11=2l_{11} = 2
    l21=4l_{21} = 4
  2. First row, second column:

    l11u12=2  ⟹  2u12=2  ⟹  u12=1l_{11} u_{12} = 2 \implies 2 u_{12} = 2 \implies u_{12} = 1
  3. Second row, second column:

    l21u12+l22=9l_{21} u_{12} + l_{22} = 9
    4(1)+l22=9  ⟹  l22=9−4=5.4(1) + l_{22} = 9 \implies l_{22} = 9 - 4 = 5.

The lower diagonal entry l22l_{22} of LL is 55.

Final answer

5

Common trap

Assuming Doolittle's decomposition where L has unit diagonal (lii=1l_{ii} = 1) rather than U as explicitly specified.

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

Source

Paper
GATE 2015 Computer Science and Information Technology (CS) Session 1
Question
28 of 65, printed as CS Q.18
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.