chapter
    Systems of Linear Equations and LU Decomposition Notes for GATE CS

    Systems of Linear Equations and LU Decomposition notes for GATE CS: 39 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice

    systems of linear equations and lu decomposition notes

    Chapter Roadmap: Systems of Linear Equations

    Journey through this chapter
    Step 1 · Consistency of Parameterized Systems
    Decide unique, infinite, or no solution when parameters appear.
    Step 2 · LU Decomposition Properties
    Why exists and how it reorganises solving.
    Step 3 · LU Factorization & Substitution
    Compute and , then solve , .
    Goal: Classify any linear system and solve it using LU decomposition in two triangular sweeps.

    Why Parameterized Systems Matter

    A parameterized linear system is a system where some entries of or are not fixed numbers but parameters (letters such as , , , ).

    The central question: for which values of the parameter does the system have a unique solution, infinitely many solutions, or no solution at all?

    Why this is asked in GATE:

    • Parameters model design variables, physical constants, or tuning knobs.
    • The exam tests whether you can read the structure of a system instead of blindly solving it.
    • It is the cleanest way to test your understanding of rank, determinant, and consistency in one question.
    Behaviour Meaning
    Unique solution Exactly one satisfies every equation
    Infinitely many A whole family of satisfies every equation
    No solution No can satisfy all equations simultaneously

    Consistency: The Rank Test

    Let the system be , where is .

    • = coefficient matrix, size
    • = augmented matrix, size
    • = number of linearly independent rows of
    • = rank of the augmented matrix
    The Consistency Theorem
    Let and .
    • If , the system is inconsistent (no solution).
    • If (number of unknowns), the system has a unique solution.
    • If , the system has infinitely many solutions, with free variables.

    Key consequence for square systems ():

    • unique solution for any .
    • either no solution or infinitely many. You must check to decide.

    36 more cards in this chapter

    Try a question

    Answer it here to see how it works. Nothing is recorded until you sign in.

    Question 1
    Level 1: Warm-up

    For a system of linear equations with variables, which of the following conditions guarantees that the system has infinitely many solutions?

    Question 2
    Level 1: Warm-up

    When applying Doolittle's algorithm to factorize a matrix into , what is the very first step in computing the entries of and ?

    Question 3
    Level 1: Warm-up

    When solving the system using the LU decomposition , an intermediate vector is introduced such that . What equation must satisfy?

    Question 4
    Level 1: Warm-up

    For a linear system , if the determinant of the coefficient matrix is zero (), which of the following is definitely true?

    Question 5
    Level 1: Warm-up

    Given a system and its LU decomposition , what is the correct sequence of steps to solve for ?

    Question 6
    Level 1: Warm-up

    To determine if a parameterized system has no solution, which matrix property must you evaluate?

    Question 7
    Level 1: Warm-up

    If a square matrix has an LU decomposition , where is a unit lower triangular matrix, how can the determinant of be computed directly from the matrix ?

    Question 8
    Level 1: Warm-up

    During the LU factorization of a matrix without row swaps, you encounter a step where the computed diagonal entry is zero. What does this imply?

    Question 9
    Level 1: Warm-up

    In Doolittle's method for LU decomposition, which matrix is constrained to have all s on its main diagonal to ensure the factorization is unique?

    Question 10
    Level 1: Warm-up

    When solving the system using forward substitution, where is a lower triangular matrix, in which direction are the variables computed?

    Free preview ends here

    Login to view the complete notes

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Systems of Linear Equations and LU Decomposition Notes for GATE CS

    Systems of Linear Equations and LU Decomposition notes for GATE CS: 39 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice questions.

    Chapter Roadmap: Systems of Linear Equations

    Journey through this chapter
    Step 1 · Consistency of Parameterized Systems
    Decide unique, infinite, or no solution when parameters appear.
    Step 2 · LU Decomposition Properties
    Why exists and how it reorganises solving.
    Step 3 · LU Factorization & Substitution
    Compute and , then solve , .
    Goal: Classify any linear system and solve it using LU decomposition in two triangular sweeps.

    Why Parameterized Systems Matter

    A parameterized linear system is a system where some entries of or are not fixed numbers but parameters (letters such as , , , ).

    The central question: for which values of the parameter does the system have a unique solution, infinitely many solutions, or no solution at all?

    Why this is asked in GATE:

    • Parameters model design variables, physical constants, or tuning knobs.
    • The exam tests whether you can read the structure of a system instead of blindly solving it.
    • It is the cleanest way to test your understanding of rank, determinant, and consistency in one question.
    Behaviour Meaning
    Unique solution Exactly one satisfies every equation
    Infinitely many A whole family of satisfies every equation
    No solution No can satisfy all equations simultaneously

    Consistency: The Rank Test

    Let the system be , where is .

    • = coefficient matrix, size
    • = augmented matrix, size
    • = number of linearly independent rows of
    • = rank of the augmented matrix
    The Consistency Theorem
    Let and .
    • If , the system is inconsistent (no solution).
    • If (number of unknowns), the system has a unique solution.
    • If , the system has infinitely many solutions, with free variables.

    Key consequence for square systems ():

    • unique solution for any .
    • either no solution or infinitely many. You must check to decide.

    Geometric Picture in Two Variables

    For two equations in and , each equation is a line in the plane.

    Unique · lines cross
    No solution · parallel
    Infinite · coincident
    Picture Rank test
    Cross
    Parallel
    Coincident

    Systems of Linear Equations and LU Decomposition: Solved Questions with Step-by-Step Explanations (10 Problems)

    Question 1 · Engineering Mathematics MCQ

    For a system of linear equations with variables, which of the following conditions guarantees that the system has infinitely many solutions?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a direct definition question about the Rouché-Capelli theorem, recognisable because it asks for the condition of infinite solutions in terms of matrix ranks.

    Step 1: Recall the consistency condition.

    A system is consistent if and only if .

    Step 2: Distinguish between unique and infinite solutions.

    If the common rank equals the number of variables , the system has exactly one unique solution.

    If the common rank is strictly less than , there are free variables, leading to infinitely many solutions.

    Step 3: Evaluate the options.

    Option A implies inconsistency (no solution).

    Option B implies consistency with free variables (infinite solutions).

    Option C implies consistency with no free variables (unique solution).

    Option D is mathematically impossible.

    Answer: B

    Question 2 · Engineering Mathematics MCQ

    When applying Doolittle's algorithm to factorize a matrix into , what is the very first step in computing the entries of and ?

    1. A.

      Set the first row of to be exactly equal to the first row of .

    2. B.

      Compute the first column of by dividing the first column of by .

    3. C.

      Compute the diagonal entries of by subtracting the products of known entries.

    4. D.

      Perform forward substitution on the first row of .

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is an algorithmic sequence question recognizable by the request for the "first step" of Doolittle's algorithm.

    Step 1: Doolittle's algorithm computes and by equating and solving row by row and column by column.

    Step 2: The first row of depends only on the first row of (since the first row of is ).

    Step 3: Therefore, the very first step is to copy the first row of directly into the first row of .

    Answer: A

    Question 3 · Engineering Mathematics MCQ

    When solving the system using the LU decomposition , an intermediate vector is introduced such that . What equation must satisfy?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a solution strategy question recognizable by the introduction of an intermediate vector in the LU solve process.

    Step 1: We are given and .

    Step 2: Substitute to get .

    Step 3: We define the intermediate vector such that .

    Step 4: Substituting into the equation gives . This is the system we solve first using forward substitution.

    Answer: C

    Question 4 · Engineering Mathematics MCQ

    For a linear system , if the determinant of the coefficient matrix is zero (), which of the following is definitely true?

    1. A.

      The system has no solution.

    2. B.

      The system has infinitely many solutions.

    3. C.

      The system does not have a unique solution.

    4. D.

      The system has exactly one solution.

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a direct application of the determinant condition for consistency. It is recognisable because it gives a specific condition () and asks for the guaranteed nature of the solutions. Step 1: Recall the determinant theorem. For a square system , if , the matrix is invertible, and the system has exactly one unique solution. Step 2: Analyse the given condition. We are given . This means is singular (not invertible). Therefore, the system cannot have a unique solution. Step 3: Determine what else is possible. When , the system is either inconsistent (no solution) or dependent (infinitely many solutions). The exact outcome depends on the constant vector . Step 4: Evaluate the options. Since it could be either "no solution" or "infinitely many solutions", we cannot definitively say it has no solution (Option A) or infinitely many (Option B). However, we can definitively say it does not have a unique solution. Answer: C
    Question 5 · Engineering Mathematics MCQ

    Given a system and its LU decomposition , what is the correct sequence of steps to solve for ?

    1. A.

      Solve for , then solve for .

    2. B.

      Solve for , then solve for .

    3. C.

      Solve for , then solve for .

    4. D.

      Solve for , then solve for .

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a direct recall question about the algorithmic strategy for solving systems using LU decomposition. It is recognisable because it asks for the "sequence of steps" given .

    Step 1: Substitute the decomposition into the system.

    The original system is . Since , we can write this as .

    Step 2: Use associativity and define an intermediate variable.

    Matrix multiplication is associative, so . Let's define a new vector . The equation simplifies to .

    Step 3: Solve the first system.

    We first solve for . Since is a lower triangular matrix, this is done efficiently using forward substitution.

    Step 4: Solve the second system.

    Once we have the vector , we substitute it back into our definition . We then solve for . Since is an upper triangular matrix, this is done efficiently using backward substitution.

    Step 5: State the sequence.

    The correct order is: first solve for , then solve for .

    Answer: C

    Question 6 · Engineering Mathematics MCQ

    To determine if a parameterized system has no solution, which matrix property must you evaluate?

    1. A.

      The ranks of both the coefficient matrix and the augmented matrix .

    2. B.

      The rank of the coefficient matrix only.

    3. C.

      The determinant of the augmented matrix .

    4. D.

      The trace of the coefficient matrix .

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a direct recall question about the consistency of linear systems. It is recognisable because it asks for the specific matrix property used to determine if a system has no solution.

    Step 1: Recall the Rouché-Capelli theorem. A linear system has a solution if and only if the rank of the coefficient matrix is equal to the rank of the augmented matrix .

    Step 2: Analyze the condition for "no solution". If the rank of is strictly less than the rank of , the system is inconsistent and has no solution.

    Step 3: Evaluate the options. You cannot determine this by looking at alone (Option B) or alone (Option C). You must compare the ranks of both matrices.

    Step 4: Conclude. You must evaluate the ranks of both the coefficient matrix and the augmented matrix .

    Answer: A

    Question 7 · Engineering Mathematics MCQ

    If a square matrix has an LU decomposition , where is a unit lower triangular matrix, how can the determinant of be computed directly from the matrix ?

    1. A.

      It is the sum of the diagonal entries of .

    2. B.

      It is the product of the diagonal entries of .

    3. C.

      It is the determinant of plus the determinant of .

    4. D.

      It cannot be determined from alone.

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a matrix properties question recognizable by the request to find given its LU decomposition.

    Step 1: Recall the multiplicative property of determinants: .

    Step 2: Since is a unit lower triangular matrix (its diagonal entries are all ), its determinant is the product of its diagonal entries, so .

    Step 3: Therefore, .

    Step 4: The determinant of any triangular matrix (like ) is simply the product of its main diagonal entries.

    Answer: B

    Question 8 · Engineering Mathematics MCQ

    During the LU factorization of a matrix without row swaps, you encounter a step where the computed diagonal entry is zero. What does this imply?

    1. A.

      The matrix is definitely the zero matrix.

    2. B.

      The system has infinitely many solutions.

    3. C.

      The matrix must have a zero on its diagonal.

    4. D.

      The standard LU decomposition without row swaps does not exist for this matrix.

    Correct Answer:

    D

    Step-by-Step Solution

    Key idea: This is a boundary case question recognizable by the mention of a "zero pivot" or "" during factorization.

    Step 1: In Doolittle's algorithm, to compute the -th column of , we must divide by the pivot .

    Step 2: If , this division is undefined. The algorithm breaks down.

    Step 3: This implies that the standard LU decomposition (without row swaps) does not exist for this matrix. We must use partial pivoting ().

    Answer: D

    Question 9 · Engineering Mathematics MCQ

    In Doolittle's method for LU decomposition, which matrix is constrained to have all s on its main diagonal to ensure the factorization is unique?

    1. A.

      The lower triangular matrix

    2. B.

      The upper triangular matrix

    3. C.

      Both the matrices and

    4. D.

      Neither nor

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a definition recall question regarding the conventions of LU decomposition, recognizable by the mention of "Doolittle's method".

    Step 1: Recall that the equation has scaling ambiguity. To make the factorization unique, we must fix the diagonal of either or to .

    Step 2: Doolittle's convention specifically forces the main diagonal of the lower triangular matrix to be exactly . This makes a unit lower triangular matrix.

    Step 3: The upper triangular matrix retains its original diagonal entries from the factorization process.

    Answer: A

    Question 10 · Engineering Mathematics MCQ

    When solving the system using forward substitution, where is a lower triangular matrix, in which direction are the variables computed?

    1. A.

      From down to

    2. B.

      From up to

    3. C.

      All variables simultaneously

    4. D.

      In a random order

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This tests the terminology and direction of solving triangular systems in LU decomposition, recognizable by the phrase "forward substitution".

    Step 1: Analyze the equation . Here, is lower triangular. The variable appears only in the first equation, and in the second, and so on.

    Step 2: Determine the solving order. Since is lower triangular, we solve for first, then substitute it into the second equation to find , and continue down to . This top-to-bottom process is called Forward Substitution.

    Answer: B

    More notes in this unit