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

  1. Consistent:
    There exists at least one solution .
  2. Inconsistent:
    No solution exists.
  3. Underdetermined:
    (fewer equations than variables), leading to infinitely many solutions if the system is consistent.
  4. 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).

  1. Gaussian Elimination:

    • Eliminates variables systematically to reduce to row-echelon form.
    • Computational Complexity: .
  2. Lower–Upper Factorization (LU):

    • Factorizes into :
    • Solve (forward substitution), then (backward substitution).
  3. Cholesky Decomposition:

    • Specialized for symmetric positive definite matrices:
  4. QR factorization:

    • Factorizes into :
    • Solve .

2. Iterative Methods

Used for large, sparse systems where direct methods are computationally expensive.

  1. Jacobi Method:
    Iteratively updates each variable assuming all others remain fixed:

  2. Gauss-Seidel Method:
    Similar to Jacobi, but uses updated values immediately in each iteration.

  3. Conjugate Gradient Method:
    Efficient for symmetric positive definite matrices. Minimizes the quadratic form:

  4. GMRES (Generalized Minimal Residual Method):
    Uses Krylov Subspace to approximate solutions for general (non-symmetric) matrices.


Existence and Uniqueness

For :

  1. Unique Solution:
    If is square () and invertible:

  2. Infinite Solutions:
    If is rank-deficient, the system may have infinitely many solutions.

  3. No Solution:
    If is not in the column space of , the system is inconsistent.

Special Cases

  1. Symmetric Positive Definite Systems:
    Solved efficiently using Cholesky or Conjugate Gradient methods.

  2. Sparse Systems:
    Iterative methods like GMRES or Jacobi are preferred.

  3. Least Squares Problems:
    When is overdetermined (), solve:

Example

Given:

Solve Using Gaussian Elimination:

  1. Augment the matrix:

  2. Eliminate in the second row:

  3. Back-substitution:

Solution: