Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 18

Gaussian Elimination: Solving Systems of Linear Equations

Recommended resources

Welcome back to your course on Engineering Mathematics. In our previous lesson, we established the fundamental properties of matrices: determinant, inverse, and rank. We saw how finding the rank by reducing a matrix to its row echelon form gives us a measure of its "effective" number of independent rows.

This lesson builds directly on that foundation. We will now use these tools, especially the concept of rank and the process of row reduction, to tackle one of the most important applications of linear algebra: solving systems of linear equations. Your goal for this lesson is to learn how to determine if a system has a unique solution, infinite solutions, or no solution at all, and to find the solution(s) using the robust method of Gaussian elimination. Mastering this is crucial, as it's a recurring topic in GATE and forms the basis for many other computational problems.

1. Setting the Stage: From Equations to Matrices

A system of linear equations can be elegantly represented in the matrix form , where:

  • is the coefficient matrix, containing the coefficients of the variables.
  • is a column vector of the variables (e.g., ).
  • is a column vector of the constants on the right-hand side.

To analyze the system, we combine and into a single matrix called the augmented matrix, written as . This matrix contains all the information about the system of equations. Our entire analysis will revolve around this augmented matrix.


2. Consistency: The Rouché–Capelli Theorem

Before we try to solve a system, we must first ask: does a solution even exist? A system is called consistent if it has at least one solution (either one unique solution or infinitely many). If no solution exists, it is inconsistent.

The Rouché–Capelli theorem provides a precise test for consistency by comparing the rank of the coefficient matrix with the rank of the augmented matrix .

Here's the complete picture, which you should commit to memory. Let's say the number of variables in the system is .

Linear System of Equations Through GATE PYQs | Non Homogenous Systems | Engineering Maths #gate2026

This video from OHM INSTITUTE Hyderabad provides a clear, concise summary of the conditions for solving a system of equations, framed perfectly for GATE preparation.

Watch the segment from the theorem. It formally introduces the Rouché-Capelli theorem and presents a flowchart that summarises the conditions for a system to have a unique solution, infinite solutions, or no solution. Pay close attention to the comparison between the ranks (r) and the number of variables (n).

To summarize the conditions:

  1. No Solution (Inconsistent): If . This happens when the row reduction process creates a row like where is a non-zero constant. This implies an absurdity like , indicating a contradiction.
  2. Unique Solution (Consistent): If , where is the number of variables. The ranks are equal and "full."
  3. Infinite Solutions (Consistent): If . The ranks are equal but less than the number of variables. This implies there are "free" variables that can be chosen arbitrarily, leading to an infinite set of solutions.

3. The Formal Method: Gaussian Elimination

The most reliable way to determine the ranks and solve the system is Gaussian elimination. This is the exact same process of using elementary row operations to reduce a matrix to row echelon form that you learned in the previous lesson. The only difference is that we apply it to the augmented matrix .

Let's see this in action with a typical GATE problem involving unknown parameters.

Linear System of Equations Through GATE PYQs | Non Homogenous Systems | Engineering Maths #gate2026

The same video now provides a detailed, step-by-step walkthrough of solving a system with parameters lambda and mu using Gaussian elimination. This is a masterclass in how to approach these common GATE questions.

Watch the detailed explanation from the walkthrough. Follow along as the instructor: Constructs the augmented matrix [A|B]. Applies elementary row operations to reduce it to row echelon form. Analyzes the final row, which contains lambda - 6 and mu - 20, to derive the conditions for all three cases: no solution, infinite solutions, and unique solution. This example is critical because it demonstrates how a single row-reduction process can be used to answer questions about all three solution types.


4. Exam Shortcuts: The Logical Approach

While Gaussian elimination is the definitive method, for the time-sensitive GATE exam, you should also develop an intuition for shortcuts. The same video introduces these "logical" methods brilliantly.

No Solution: Look for Contradictions

Often, you can spot an inconsistency by simply manipulating the equations themselves. If you can combine some equations to produce a result that directly contradicts another equation, the system has no solution.

Linear System of Equations Through GATE PYQs | Non Homogenous Systems | Engineering Maths #gate2026

This segment introduces the idea of solving a system by observation before diving into formal methods.

Watch the initial part of the video from this observation. See how adding the first two equations yields x+y+z=4, which is a direct contradiction of the third equation, x+y+z=5. This immediately tells you there is no solution, saving you the time of a full rank analysis.

Infinite Solutions: Look for Dependency

If one equation can be formed by a linear combination of others, it provides no new information. This is called a dependent system. Such systems, if consistent, will have infinite solutions.

Linear System of Equations Through GATE PYQs | Non Homogenous Systems | Engineering Maths #gate2026

Here, the instructor solves two GATE questions by spotting dependent equations. This is a powerful time-saving technique.

First, watch the GATE 2014 example from this observation, where he shows that 2*(Eq1) - (Eq3) = (Eq2). This dependency signals infinite solutions. Next, watch the GATE 2019 example from this example. The question explicitly asks for the condition for infinite solutions. By assuming dependency (Eq1 + Eq2 = Eq3) based on the constants, he quickly solves for the parameter a.

Unique Solution: Check the Determinant

This is the most common and powerful shortcut. For a system of equations in variables (i.e., the coefficient matrix is square), the condition for a unique solution is . From our previous lesson, we know this is equivalent to .

If a question asks for the condition for a unique solution for a square system, simply calculate the determinant of the coefficient matrix and set it to be non-zero.

Linear System of Equations Through GATE PYQs | Non Homogenous Systems | Engineering Maths #gate2026

This part of the video confirms the shortcut for unique solutions and applies it to a GATE 2008 problem.

Watch from this section. The instructor explains why det(A) ≠ 0 is the condition for a unique solution and solves the problem in under two minutes using this approach.


Conclusion

You now have a complete toolkit for analyzing systems of linear equations for the GATE exam.

Key Takeaways:

  • Consistency: A system is consistent (solvable) if . Otherwise, it is inconsistent (no solution).
  • Solution Types:
    • Unique Solution: (number of variables).
    • Infinite Solutions: .
  • Gaussian Elimination: The formal method to find ranks and solve the system by reducing the augmented matrix to row echelon form.
  • GATE Shortcuts:
    • Unique Solution: For square systems, check if .
    • No Solution: Look for direct contradictions between equations.
    • Infinite Solutions: Look for dependent equations (one being a combination of others).

In our next lesson, we will venture into another core topic of linear algebra: eigenvalues and eigenvectors. The concepts of determinants and rank that you've mastered will be absolutely essential for understanding and calculating these special values and vectors that describe the fundamental properties of linear transformations.