- categories: Linear algebra, Definition
Definition
A linear system consists of a set of linear equations that describe the relationships between a set of variables. In matrix form, a linear system can be written as:
where:
- is the coefficient matrix,
- is the vector of unknown variables,
- is the vector of constants.
Types of Linear Systems
- Consistent:
There exists at least one solution . - Inconsistent:
No solution exists. - Underdetermined:
(fewer equations than variables), leading to infinitely many solutions if the system is consistent. - Overdetermined:
(more equations than variables). Solutions may not exist or require a least-squares approach.
Solving Linear Systems
1. Direct Methods
These methods solve exactly (if possible).
-
Gaussian Elimination:
- Eliminates variables systematically to reduce to row-echelon form.
- Computational Complexity: .
-
Lower–Upper Factorization (LU):
- Factorizes into :
- Solve (forward substitution), then (backward substitution).
-
- Specialized for symmetric positive definite matrices:
-
- Factorizes into :
- Solve .
2. Iterative Methods
Used for large, sparse systems where direct methods are computationally expensive.
-
Jacobi Method:
Iteratively updates each variable assuming all others remain fixed: -
Gauss-Seidel Method:
Similar to Jacobi, but uses updated values immediately in each iteration. -
Conjugate Gradient Method:
Efficient for symmetric positive definite matrices. Minimizes the quadratic form: -
GMRES (Generalized Minimal Residual Method):
Uses Krylov Subspace to approximate solutions for general (non-symmetric) matrices.
Existence and Uniqueness
For :
-
Unique Solution:
If is square () and invertible: -
Infinite Solutions:
If is rank-deficient, the system may have infinitely many solutions. -
No Solution:
If is not in the column space of , the system is inconsistent.
Special Cases
-
Symmetric Positive Definite Systems:
Solved efficiently using Cholesky or Conjugate Gradient methods. -
Sparse Systems:
Iterative methods like GMRES or Jacobi are preferred. -
Least Squares Problems:
When is overdetermined (), solve:
Example
Given:
Solve Using Gaussian Elimination:
-
Augment the matrix:
-
Eliminate in the second row:
-
Back-substitution: