System of Linear Equations
Overview
A system of linear equations represents one of the most fundamental and widely applied mathematical constructs in engineering and the computational sciences. Its principles form the bedrock of numerous advanced topics, from the analysis of electrical circuits and data networks to the core algorithms of machine learning, computer graphics, and optimization. For the Computer Science engineer, a mastery of linear systems is not merely an academic exercise; it is an indispensable tool for modeling and solving a vast array of computational problems. The ability to systematically analyze and solve these systems is a prerequisite for understanding the theoretical underpinnings of many modern technologies.
In the context of the GATE examination, questions derived from this chapter are a consistent feature, testing both conceptual understanding and procedural skill. This chapter is designed to provide a rigorous and structured approach to the topic, focusing squarely on the competencies required for the examination. We shall first investigate the conditions under which a system of equations possesses a solutionโa concept known as consistency. We will establish the criteria for determining whether a system has a unique solution, infinitely many solutions, or no solution at all, primarily through the powerful concept of matrix rank. Subsequently, we will turn our attention to the algorithmic methods for finding these solutions, equipping you with the practical techniques to solve problems efficiently and accurately.
---
Chapter Contents
| # | Topic | What You'll Learn |
|---|-------|-------------------|
| 1 | Consistency and Solutions | Analyzing the existence and nature of solutions. |
| 2 | Solving Linear Systems | Applying methods to find explicit system solutions. |
---
Learning Objectives
After completing this chapter, you will be able to:
- Analyze a system of linear equations, represented as , to determine its consistency by comparing the ranks of the coefficient and augmented matrices.
- Characterize the solution set of a consistent system as having either a unique solution or infinitely many solutions.
- Apply systematic procedures, such as Gaussian elimination, to compute the solution(s) for a given linear system.
- Distinguish between trivial and non-trivial solutions for a homogeneous system of linear equations, .
---
We now turn our attention to Consistency and Solutions...
Part 1: Consistency and Solutions
Introduction
A system of linear equations represents a collection of linear relationships between multiple variables. In engineering and computer science, such systems arise in a vast array of applications, from circuit analysis and network flow problems to machine learning models and computer graphics. The central task is not merely to solve these systems, but to first understand the nature of their solution sets. A system may possess exactly one solution, an infinite number of solutions, or no solution at all.
This chapter provides a rigorous framework for analyzing any system of linear equations. We will move beyond ad-hoc methods of substitution and elimination to employ the powerful concepts of matrix rank. By understanding the relationship between the rank of the coefficient matrix and the augmented matrix, we can determine the existence and uniqueness of solutions without explicitly computing them. We will also explore the special properties of homogeneous systems and introduce the fundamental Rank-Nullity Theorem, a cornerstone of linear algebra with significant implications for understanding solution spaces.
A system of linear equations in variables can be expressed in matrix form as:
where:
- is the coefficient matrix.
- is the column vector of variables.
- is the column vector of constants.
The system is homogeneous if and non-homogeneous if . A system is consistent if it has at least one solution and inconsistent if it has no solutions.
---
Key Concepts
1. The Augmented Matrix and Rank
To analyze a system, we combine the coefficient matrix and the constant vector into a single matrix.
For the system , the augmented matrix, denoted , is the matrix formed by appending the column vector to the coefficient matrix .
The vertical line is a notational convenience and has no mathematical effect.
The concept of rank is central to determining the nature of the solution. The rank of a matrix is the maximum number of linearly independent rows (or columns) in the matrix. It can be found by reducing the matrix to its row echelon form and counting the number of non-zero rows. We denote the rank of a matrix as or .
2. The RouchรฉโCapelli Theorem: A Unified Framework
The relationship between the rank of the coefficient matrix and the augmented matrix completely characterizes the solution set of the system . This fundamental result is summarized by the RouchรฉโCapelli theorem.
Let us consider a system with variables. The conditions are as follows:
This situation arises when the row reduction process leads to a row of the form where , which corresponds to the absurd equation .
Within this case, there are two possibilities:
* Unique Solution: If the common rank is equal to the number of variables , the system has exactly one solution.
* Infinite Solutions: If the common rank is less than the number of variables , the system has infinitely many solutions.
In this case, there will be free variables (or parameters), which can be chosen arbitrarily, and the remaining variables will be expressed in terms of them.
The following diagram illustrates this decision process:
Worked Example:
Problem: For what value of will the following system of equations have no solution?
Solution:
Step 1: Write the augmented matrix .
Step 2: Reduce the matrix to row echelon form using elementary row operations.
Apply and .
Step 3: Continue the row reduction.
Apply .
Step 4: Analyze the ranks based on the value of .
For the system to have no solution, we require .
From the echelon form, we observe that if the term becomes zero, the last row of the coefficient matrix part will be all zeros.
Let , which means .
If , the matrix becomes:
In this case, (two non-zero rows in the part), but (three non-zero rows in the full augmented matrix).
Since , the system is inconsistent.
Answer: The system has no solution when .
---
---
#
## 3. Homogeneous Systems ()
Homogeneous systems are a special case of profound importance. Since , the augmented matrix is . Adding a column of zeros never changes the rank of a matrix, so we always have .
A homogeneous system of linear equations is always consistent. It always possesses the trivial solution, where (i.e., ).
The critical question for a homogeneous system is whether a non-trivial solution (a solution where at least one variable is non-zero) exists. Applying the Rouchรฉ-Capelli conditions:
- Trivial Solution Only: A unique solution exists if (number of variables). Since the trivial solution is always one possibility, this must be the only one.
- Infinite (Non-trivial) Solutions: Infinite solutions exist if . This is the condition for the existence of non-trivial solutions.
The set of all solutions to a homogeneous system forms a vector space called the null space or kernel of matrix .
#
## 4. The Rank-Nullity Theorem
This theorem provides a direct relationship between the rank of a matrix and the dimension of its null space.
For any matrix :
Variables:
- is the rank of the matrix .
- is the dimension of the null space of . It represents the number of linearly independent vectors that are solutions to . This is also equal to the number of free variables in the solution.
- is the number of columns in matrix (which corresponds to the number of variables in the system ).
When to use: This is crucial for problems involving homogeneous systems where information about the solution space (like its dimension) is given, and you need to find the rank, or vice-versa. This was directly tested in GATE.
A key consequence of this theorem arises when a system has more variables than equations ().
For an matrix , we know that . If , then .
Using the Rank-Nullity Theorem:
Since , it follows that:
Because , we have . Therefore, the must be at least 1. This proves that any homogeneous system with more variables than equations must have a non-trivial solution.
---
Problem-Solving Strategies
For a square system :
- Calculate first.
- If , then . The system has a unique solution regardless of .
- If , then . The system will have either no solution or infinite solutions. You must then proceed to check the rank of the augmented matrix to distinguish between these two cases. This is a very fast first step for MCQ/MSQ problems involving parameters, as seen in PYQ 1.
For a homogeneous system with an matrix :
- Identify (equations) and (variables).
- The number of linearly independent solutions is the nullity.
- Use the Rank-Nullity theorem: .
- If a problem states that all solutions are multiples of a single non-zero vector, it means the basis for the null space has only one vector, so .
- If , you can immediately conclude that , guaranteeing non-trivial solutions.
---
---
Common Mistakes
- Confusing Rank with Determinant for Non-Square Matrices:
- Assuming Homogeneous Systems Can Be Inconsistent:
- Incorrectly Applying the Rank-Nullity Theorem:
---
Practice Questions
:::question type="MCQ" question="Consider the system of linear equations , , and . This system is consistent if:" options=[" "," "," "," "] answer="" hint="A system is consistent if the same row operations that make a row of zero also make the corresponding element in zero. Check for linear dependence in the rows of the coefficient matrix." solution="
Step 1: Write the augmented matrix for the system.
Step 2: Observe the relationship between the rows of the coefficient matrix . Let the rows be . We test for linear dependence. Let's see if can be written as a combination of and .
Suppose .
For the first column: .
For the second column: .
Solving these two equations: Multiply the second by 2: . Add this to the first equation: .
Substitute into the first equation: .
So, we have found that . Let's check this for the third column: . This matches the third element of .
Thus, the third row of is linearly dependent on the first two: .
Step 3: Apply the consistency condition.
For the system to be consistent, the same linear dependency must hold for the vector . The of will be equal to the of only if the relationship holds for the last column as well.
Result: The condition for consistency is .
Answer:
"
:::
:::question type="NAT" question="Let be a real matrix. If the dimension of the solution space of is , then the rank of is _________." answer="4" hint="Use the Rank-Nullity Theorem. Identify the number of columns and the given ." solution="
Step 1: Identify the given parameters from the problem statement.
The matrix is of size , where and .
The number of columns is .
The dimension of the solution space of is the of .
So, .
Step 2: Apply the Rank-Nullity Theorem.
The theorem states: .
Step 3: Substitute the known values and solve for the rank.
Result: The of the matrix is 4.
Answer:
"
:::
:::question type="MSQ" question="Consider the homogeneous system of linear equations , where is a matrix with . Which of the following statements is/are necessarily TRUE?" options=["The system has a unique solution.","The system has exactly 3 linearly independent solutions.","Any solution can be written as a linear combination of 3 basis vectors.","The system has a non-trivial solution."] answer="The system has exactly 3 linearly independent solutions.,Any solution can be written as a linear combination of 3 basis vectors.,The system has a non-trivial solution." hint="Apply the Rank-Nullity theorem to find the dimension of the null space. A non-trivial solution exists if the is greater than 0." solution="
Let's analyze each option based on the given information: is a matrix, so and . We are given .
1. Analyze the nullity:
Using the Rank-Nullity Theorem: .
.
The is the dimension of the solution space (null space).
2. Evaluate the options:
- "The system has a unique solution." This is FALSE. A unique solution (the trivial one) exists only if (or ). Here, , so there are infinite solutions.
- "The system has exactly 3 linearly independent solutions." This is TRUE. The represents the maximum number of linearly independent solutions. A basis for the null space will contain exactly 3 vectors.
- "Any solution can be written as a linear combination of 3 basis vectors." This is TRUE. This is the definition of a basis for a vector space. Since the dimension of the solution space is 3, there exists a basis of 3 vectors, and every solution is a linear combination of these basis vectors.
- "The system has a non-trivial solution." This is TRUE. Since , there are infinitely many non-trivial solutions.
Result: The correct options are B, C, and D.
"
:::
:::question type="MCQ" question="For the system of equations and , the condition for having an infinite number of solutions is:" options=[" "," "," "," "] answer="" hint="For a non-homogeneous system to have infinite solutions, the of the coefficient matrix and the augmented matrix must be equal, and this must be less than the number of variables." solution="
Step 1: Write the augmented matrix for the system.
Step 2: Reduce the matrix to row echelon form.
Apply the row operation .
Step 3: Analyze the conditions for infinite solutions.
For infinite solutions, we need .
Here, the number of variables . So we need the common to be 1.
This occurs when the second row becomes all zeros.
For the coefficient part, we need , which gives .
For the augmented part, the last element is already 0.
So, if , the matrix becomes:
Step 4: Verify the ranks.
If , and .
Since (number of variables), the system has infinite solutions.
Result: The condition is .
Answer:
"
:::
---
---
Summary
- Rouchรฉ-Capelli Theorem is Paramount: The nature of solutions for any system is determined by comparing and with the number of variables, .
- No Solution: .
- Unique Solution: .
- Infinite Solutions: .
- Homogeneous Systems are Simpler: For , the system is always consistent. The existence of non-trivial (non-zero) solutions depends only on the rank of . A non-trivial solution exists if and only if .
- Master the Rank-Nullity Theorem: For any matrix , . The nullity is the dimension of the solution space of , which is the number of free variables or linearly independent solutions. This is a frequently tested concept.
---
What's Next?
This topic serves as a foundation for more advanced concepts in Linear Algebra.
- Eigenvalues and Eigenvectors: The definition of an eigenvector involves solving the homogeneous system for a non-trivial solution . This requires , which is directly related to the condition for infinite solutions in a homogeneous square system.
- Vector Spaces: The set of all solutions to a homogeneous system forms a vector space known as the null space of . Understanding its properties, basis, and dimension (nullity) is fundamental to the study of vector spaces.
---
---
Now that you understand Consistency and Solutions, let's explore Solving Linear Systems which builds on these concepts.
---
Part 2: Solving Linear Systems
Introduction
A system of linear equations represents a collection of linear relationships between multiple variables. In the context of engineering and computer science, such systems arise frequently in fields ranging from circuit analysis and network flow problems to machine learning and computer graphics. The ability to characterize and solve these systems is, therefore, a fundamental skill.
We shall explore the conditions under which a linear system possesses a unique solution, infinite solutions, or no solution at all. Our primary analytical tool will be the concept of matrix rank, which provides a powerful and elegant method for determining the nature of the solution set without necessarily computing the solution itself. We will also examine the standard procedure of Gaussian elimination for finding a solution when one exists. The focus will remain on the methods and criteria most pertinent to competitive examinations like GATE.
A system of linear equations in variables is a set of equations of the form:
This system can be concisely represented in matrix form as , where is the coefficient matrix, is the column vector of variables, and is the column vector of constants.
---
---
Key Concepts
1. Consistency and Types of Solutions
A system of linear equations is termed consistent if it has at least one solution. If no solution exists, the system is inconsistent. A consistent system can have either a unique solution or infinitely many solutions.
The geometric interpretation in two dimensions provides clarity. A system of two linear equations in two variables represents two lines in a plane.
- A unique solution corresponds to the lines intersecting at a single point.
- Infinite solutions correspond to the two lines being coincident (the same line).
- No solution corresponds to the lines being parallel and distinct.
2. Condition for Consistency using Rank
The most reliable method for determining the nature of the solution for a system involves comparing the rank of the coefficient matrix with the rank of the augmented matrix .
For a system , the augmented matrix, denoted , is formed by appending the column vector to the coefficient matrix .
Let be the rank of the coefficient matrix and be the rank of the augmented matrix. Let be the number of variables.
- No Solution (Inconsistent):
- Unique Solution (Consistent):
- Infinite Solutions (Consistent):
When to use: This is the fundamental test to apply to any linear system to determine the nature of its solution set before attempting to solve it.
3. Homogeneous Systems
A system of linear equations is called homogeneous if all the constant terms are zero. It is of the form .
A key observation is that a homogeneous system is always consistent, because (the zero vector) is always a solution. This is known as the trivial solution. The central question for homogeneous systems is whether a non-trivial solution (a solution where at least one variable is non-zero) exists.
A homogeneous system has a non-trivial solution if and only if the rank of the coefficient matrix is less than the number of variables .
For a square matrix of size , this condition is equivalent to the determinant of being zero.
4. Gaussian Elimination
Gaussian elimination is a systematic algorithm for solving systems of linear equations. The procedure transforms the augmented matrix into row echelon form using elementary row operations. From this simplified form, the solution can be found by back substitution.
Elementary Row Operations:
Worked Example:
Problem: Solve the following system of linear equations:
Solution:
Step 1: Write the augmented matrix .
Step 2: Apply row operations to create zeros below the first pivot (the element in the first row, first column). Perform and .
Step 3: Apply a row operation to create a zero below the second pivot. Perform .
This is the row echelon form. The system is now:
Step 4: Use back substitution to solve for the variables.
From the last equation:
Substitute into the second equation:
Substitute and into the first equation:
Answer: The unique solution is .
---
Problem-Solving Strategies
Before investing time in solving a system using Gaussian elimination, always perform a quick check on the nature of the solution.
- Form the augmented matrix .
- Reduce it to row echelon form. The number of non-zero rows gives the rank.
- Compare and with the number of variables . This immediately tells you whether to expect a unique solution, infinite solutions, or no solution, preventing wasted effort on inconsistent systems.
---
---
Common Mistakes
- โ Confusing conditions for homogeneous and non-homogeneous systems. The condition implies infinite solutions for a homogeneous system , but it could imply either infinite solutions or no solution for a non-homogeneous system .
- โ Assuming a system with more variables than equations () must have infinite solutions.
---
Practice Questions
:::question type="MCQ" question="The system of equations , , and has no solution if:" options=["","","",""] answer="" hint="For no solution, we require . Use row reduction on the augmented matrix to find the condition on and that satisfies this." solution="
Step 1: Form the augmented matrix.
Step 2: Apply row operations. and .
Step 3: Apply .
Step 4: Analyze the condition for no solution, which is .
This occurs when the last row of the coefficient matrix part is all zeros, but the corresponding element in the augmented part is non-zero.
This means we need and .
Result:
Answer: \boxed{\lambda = 3 \text{ and } \mu \neq 10}
"
:::
:::question type="NAT" question="Consider the homogeneous system of equations: , , . If the system has a non-trivial solution, what is the value of ?" answer="5" hint="A homogeneous system has a non-trivial solution if and only if the determinant of the coefficient matrix is zero." solution="
Step 1: Write the coefficient matrix .
Step 2: For a non-trivial solution to exist, we must have .
Calculate the determinant:
Step 3: Simplify the expression.
Step 4: Solve for .
Result: The value of is 5.
Answer: \boxed{5}
"
:::
:::question type="MSQ" question="Which of the following statements about the system and is/are true?" options=["The system is inconsistent.","The system has a unique solution.","The system has infinitely many solutions.","The rank of the coefficient matrix is 1."] answer="The system has infinitely many solutions.,The rank of the coefficient matrix is 1." hint="Analyze the system using the rank method. Form the augmented matrix and find the ranks of A and [A|b]." solution="
The system is:
The coefficient matrix is
The augmented matrix is
Let's find the ranks by reducing to row echelon form.
Applying to gives:
From this form, we can see:
- The rank of A, , is the number of non-zero rows in the coefficient part, which is 1. So, the option "The rank of the coefficient matrix is 1" is correct.
- The rank of [A|b], , is the number of non-zero rows in the entire matrix, which is also 1.
- The number of variables is .
Since , the system has infinitely many solutions.
Therefore, the option "The system has infinitely many solutions" is correct.
The options "The system is inconsistent" and "The system has a unique solution" are incorrect.
Answer: \boxed{\text{The system has infinitely many solutions.,The rank of the coefficient matrix is 1.}}
"
:::
---
Summary
- Consistency is Key: The first step is always to determine if a system is consistent. Use the rank condition: the system is consistent if and only if .
- Nature of Solution: If consistent, the type of solution depends on the rank relative to the number of variables, .
- Homogeneous Systems (): These are always consistent. They have a non-trivial (non-zero) solution if and only if . For a square matrix, this is equivalent to .
- Unique solution if .
- Infinite solutions if .
---
What's Next?
This topic serves as a foundation for more advanced concepts in Linear Algebra:
- Eigenvalues and Eigenvectors: The calculation of eigenvectors involves solving the homogeneous system . Understanding the condition for non-trivial solutions is critical here.
- Vector Spaces: The set of all solutions to a homogeneous system forms a vector space called the null space of A. The number of free variables in the solution () gives the dimension of this null space.
Master these connections for a comprehensive understanding of Linear Algebra for GATE!
---
Chapter Summary
In our study of linear systems, we have developed a systematic framework for analyzing and solving them. The following points encapsulate the essential concepts that are critical for the GATE examination.
- Matrix Representation: Any system of linear equations in variables can be concisely represented in the matrix form , where is the coefficient matrix, is the column vector of variables, and is the column vector of constants.
- The Concept of Consistency: A system of linear equations is termed consistent if it possesses at least one solution. Otherwise, it is inconsistent. The consistency of a system is fundamentally determined by the relationship between the rank of the coefficient matrix and the augmented matrix .
- The Rank Condition for Solutions (Rouchรฉ-Capelli Theorem): We have established the definitive criteria for the nature of the solution set:
- No Solution: If , the system is inconsistent.
- Unique Solution: If (where is the number of variables), the system is consistent and has exactly one solution.
- Infinitely Many Solutions: If , the system is consistent and has an infinite number of solutions. The number of free variables (or independent parameters) in the solution is given by .
- Homogeneous Systems: For a homogeneous system, , the vector is the zero vector. Such systems are always consistent, as they always admit the trivial solution (). A non-trivial solution exists if and only if . For a square matrix , this condition is equivalent to .
- Gaussian Elimination: The primary computational tool for analyzing linear systems is Gaussian elimination. By reducing the augmented matrix to its row echelon form, we can efficiently determine the ranks of and and subsequently find the solution(s) through back substitution.
- Structure of Solutions: For a consistent non-homogeneous system , the general solution can be expressed as , where is any particular solution to , and is the general solution to the corresponding homogeneous system .
---
Chapter Review Questions
:::question type="MCQ" question="Consider the system of linear equations:
For which of the following values of and does the system have no solution?" options=["","","",""] answer="C" hint="For a system to have no solution, the rank of the coefficient matrix must be less than the rank of the augmented matrix. Use Gaussian elimination to find the condition on and that satisfies this." solution="We begin by writing the augmented matrix for the given system:
Now, we apply Gaussian elimination to reduce the matrix to its row echelon form.
Applying the row operations and :
Next, we apply the operation :
For the system to have no solution, we require .
From the echelon form, will be 2 if the last row of the coefficient part is all zeros. This occurs when:
At the same time, for to be 3, the last element in the augmented part of the third row must be non-zero. This occurs when:
Therefore, the system has no solution if and . This corresponds to option C.
Answer: \boxed{C}
"
:::
:::question type="NAT" question="The system of equations
has infinitely many solutions. The value of is:" answer="26" hint="For a system to have infinitely many solutions, the rank of the coefficient matrix and the augmented matrix must be equal, and this rank must be less than the number of variables. Use Gaussian elimination to find the conditions on and ." solution="We write the augmented matrix and reduce it to row echelon form.
Perform the row operation and :
Next, perform the row operation :
For the system to have infinitely many solutions, we must have . This condition is satisfied if the last row of the augmented matrix is a zero row.
This implies:
The question asks for the value of .
Thus, the required value is 26.
Answer: \boxed{26}
"
:::
:::question type="MSQ" question="Consider the system of linear equations , where
Which of the following statements is/are correct?" options=["The system is consistent.","The determinant of matrix is zero.","The system has a unique solution.","The number of free variables is 1."] answer="A,B,D" hint="Analyze the system by finding the rank of the coefficient matrix and the augmented matrix . Remember that the number of free variables is given by ." solution="We first analyze the coefficient matrix and the augmented matrix .
Let's find the rank by row reduction. Apply and :
Now, apply :
From the row echelon form, we can draw our conclusions.
The number of non-zero rows in the echelon form of is 2, so .
The number of non-zero rows in the echelon form of is also 2, so .
Let's evaluate each option:
(A) The system is consistent. Since , the system is consistent. This statement is correct.
(B) The determinant of matrix is zero. Since , which is less than the order of the matrix (3), the matrix is singular. Therefore, . This statement is correct. We can also verify this directly from the row operations: is the sum of and ( is not true, but where is the original second row. Let's check original rows: . This is exactly . Hence rows are linearly dependent and ).
(C) The system has a unique solution. A unique solution exists if , where is the number of variables. Here, and . Since , the system does not have a unique solution. This statement is incorrect.
(D) The number of free variables is 1. The number of free variables is given by . Here, and . So, the number of free variables is . The system has infinitely many solutions. This statement is correct.
Therefore, the correct statements are A, B, and D.
Answer: \boxed{A, B, D}
"
:::
---
What's Next?
Having completed our study of the System of Linear Equations, you have established a firm foundation for several advanced and interconnected chapters in Engineering Mathematics. The principles of consistency, rank, and solution spaces are not isolated concepts but rather the bedrock upon which more abstract structures are built.
Key connections to leverage in your preparation:
- Relation to Previous Chapters: This chapter is a direct application of the concepts from Matrices and Determinants. Your ability to calculate the rank of a matrix and evaluate determinants is the primary tool used to classify and solve linear systems.
- Foundation for Future Chapters: