A linear system of equations in unknowns is a set of equations of the form
where for and .
In matrix form, , where
- coefficient matrix
- augmented matrix
has exactly one of 3 outcomes:
- A unique solution.
- Infinitely many solutions.
- No solution.
Homogeneity
The system is homogeneous iff . Otherwise it’s non-homogeneous.
For a system , the system is its associated homogeneous system.
Equivalent Systems
Equivalent systems are the systems with the same set of solutions.
2 linear systems are equivalent iff one is obtained from the other by a finite number of elementary operations.
Applying elementary operations to the augmented matrix instead of the equations gives row equivalence (see Elementary Transformations).
Row-Equivalent Matrix
2 matrices are said to be row-equivalent iff one can be obtained from the other by a finite number of elementary row operations.
Methods
Numerical methods for solving linear systems split into 2 classes:
Direct
Yield the exact solution in a finite number of steps, ignoring round-off error. Cost is about operations for a dense matrix.
- Gaussian elimination
Reduces the system to echelon form, then back substitution. - LU decomposition
Factors once, so each new needs only 2 triangular solves. - LUP decomposition
Factors , adding row interchanges. - Cholesky decomposition
Factors for a symmetric positive definite , at about half the cost of LU.
Iterative
Start from a guess and produce until the residual falls below a tolerance.
- Cost per step is about operations, less for a sparse matrix.
- Suits very large sparse matrices.
- Convergence depends on properties of such as diagonal dominance.
Worked Example
Determine the number of solutions of each system.
Solution Reveal Hide
System (a)
Back substitution gives and . A unique solution.
System (b)
is free and . Infinitely many solutions.
System (c)
The last row reads . No solution.
The associated homogeneous system of (a) is with the same . It has only the solution , since reduces to the same triangular form.