System of Linear Equations
An equation that represents a line, a plane or a hyperplane is called a linear equation.
Formal Definition of Linear Equation
A linear equations in variables can be expressed in the form:
or more concisely,
Where are called the coefficients of the equation and is called the constant term. These terms are constant/fixed for a linear equation and can be real or complex. If then the equation is said to be homogenous linear equation otherwise the equation is said to be non-homogenous linear equation. Homogenous linear equations always pass through the origin.
System of Linear Equation
A system of linear equations with variables is a finite set of one or more linear equations. A system of linear equations is also referred to as a linear system. Example:
is a linear system with two equations and four unknowns .
A linear system with unknowns and equations can be represented as:
Matrix notation for linear system
where,
The matrix contains all the coefficients of the system and hence called coefficient matrix. is called as constant vector and is called the unknown vector. Our job is to find out the vector for which the system holds true.
If the constant vector , then the system is called a homogenous system. For homogenous systems, or in vector form is a trivial solution. Similarly, if then the system is called a non-homogenous system.
Augmented matrix notation
Augmented matrix notation is another form of representing linear systems. We can represent the above linear system in augmented matrix notation in the following way:
Definition of Solution
A solution for a linear system is any vector such that if we substitute to the equations of the system, all of the equations satisfy simultaneously.
Trivial solution
A solution of a linear system that can be inferred without solving the system is called a trivial solution. For example, homogenous systems have as a trivial solution.
Non Trivial solution
A solution of a linear system that requires solving the system is called a non-trivial solution. For example, if we have the following system:
is a solution as
This solution is called trivial as we know if all the constant terms are zero then is a solution.
Similarly, is a non-trivial solution as it requires solving the system.
Consistent and Inconsistent Systems
A linear system will always satisfy only one of the following conditions:
- The system may have no solution
- The system may have exactly one solution
- The system may have infinitely many solutions
If a system has one or more solutions then the system is called a consistent system. Similarly, if a system doesn't have any solution then it is called an inconsistent system.
Geometrical Analogy of Solution
If we consider two lines in 2D then they will either intersect at some point or are parallel. In case they intersect, the intersection point will satisfy both the equations of lines this point will be a solution and the system will be consistent.
In case the two lines are parallel they never intersect and hence their equations form an inconsistent system.
Similarly, if we consider two planes in 3D that are not parallel, the intersection forms a line that contains infinitely many points. This is the case of a system having infinitely many solutions.
Methods of Solving Linear Systems
Direct Methods
Direct methods are preferred when we don't know an approximate solution of the system. These methods include:
- Gauss Elimination method
- Gauss Elimination with pivoting
- Gauss-Jordan method
- LU decomposition/Factorization method
- Determinants method(Cramer's rule)
- Matrix inversion method
Indirect/Iterative Methods
If we know an approximate solution of the system then we prefer indirect methods as they will converge faster in such case. These methods include:
- Jacobi's iteration method
- Gauss-Seidel iteration method