![]()
MATH347DS L08: Linear system solution
|
Orthogonal projectors
Gaussian elimination
Row echelon reduction
Matrix rank from row echelon reduction
-factorization
![]()
Orthogonal projectors and linear systems
|
Consider the linear system with , , . Orthogonal projectors and knowledge of the four fundamental matrix subspaces allows us to succintly express whether there exist no solutions, a single solution of an infinite number of solutions:
Consider the factorization , the orthogonal projector , and the complementary orthogonal projector
If , then has a component outside the column space of , and has no solution
If , then and the system has at least one solution
If (null space only contains the zero vector, i.e., null space of dimension 0) the system has a unique solution
If , then a vector in the null space is written as
and if is a solution of , so is , since
The linear system has an -parameter family of solutions
![]()
Gaussian elimination: an alternative approach that does not
require orthogonality
|
Idea: make one fewer unknown appear in each equation. Use first equation to eliminate in equations 2,3
Use second equation to eliminate in equation 3
Start finding components from last to first to obtain , ,
![]()
Matrix similarity transformations: reduce to triangular form
|
Explicitly writing the unknowns is not necessary. Intoduce the “bordered” matrix
Define allowed operations:
multiply a row by a non-zero scalar
add a row to another
Bordered matrices obtained by the allowed operations are said to be similar, in that the solution of the linear system stays the same
![]()
Matrix similarity transformations: Back substitute
|
To find solution, use allowed operations to make an identity matrix appear
The above constitute “Gaussian elimination”
∴ |
A=[1. 2 -1 2; 2 -1 1 2; 3 -1 -1 1]; A[2,:]=A[2,:]-2*A[1,:]; A[3,:]=A[3,:]-3*A[1,:]; |
∴ |
A |
(1)
∴ |
A[3,:]=A[3,:]-(7/5)*A[2,:]; A |
(2)
![]()
Two linear systems: same system matrix, different right hand
sides
|
![]()
How to determine number of solutions?
|
Use similarity transformations to reduced row echelon form:
All zero rows are below non-zero rows
First non-zero entry on a row is called the leading entry
In each non-zero row, the leading entry is to the left of lower leading entries
Each leading entry equals 1 and is the only non-zero entry in its column
Row echelon form:
Allow additional non-zero elements in a column, above the leading entry
After carrying out rref on bordered matrix , if:
there is a row with No solutions
the result is of form Unique solution
there is no row of form , and there is a row of all zeros Infinitely many solutions
Examples
![]()
Elementary matrices: Row combinations
|
Recall the basic operation in row echelon reduction: constructing a linear combination of rows to form zeros beneath the main diagonal, e.g.
This can be stated as a matrix multiplication operation, with
![]()
Elementary matrices: Permutation
|
Denote a permutation by
with , for
The sign of a permutation, is the number of pair swaps needed to obtain the permutation starting from the identity permutation
A permutation can be specified by a permutation matrix obtained from by swapping rows and columns
![]()
Gaussian multiplier matrix
|
Definition. The matrix
with , and the matrix obtained after step of row echelon reduction (or, equivalently, Gaussian elimination) is called a Gaussian multiplier matrix.
Permutation and Gaussian multiplier matrices are elementary matrices.
![]()
Gaussian multiplier inverse
|
The Gaussian multiplier matrix ...
... has inverse (matrix that “undoes” the linear transformation)
![]()
Inverse matrix
|
Consider elementary matrices
stating that undoes the effect of .
is invertible if there exists such that
Notation , is the inverse of .
![]()
Gauss-Jordan algorithm
|
What about general square matrices ? How to find inverse
is inverse if or
Find the inverse is equivalent to solving systems , ...,
Gauss Jordan algoritm generalizes Gaussian elimination that solves a single linear system to solving systems simultaneously by forming the bordered matrix
![]()
Existence of inverse
|
When does a matrix inverse exist?
invertible
has a unique solution for all
has a unique solution
The reduced row echelon form of is
can be written as product of elementary matrices
invertible exists, and is a solution . If there were two solutions , then
Choose
. If there is a row of zeros, and solution is not unique. If solution is unique then
implies
.
![]()
Operations with matrix inverses
|
The inverse of a product
If invertible so are: , ,
Verify