More Linear Systems - drnickmines/MinesLinearAlgebra GitHub Wiki
We've seen how to solve linear systems using Gaussian Elimination, but we've only seen examples where there is one solution. In this lecture, we will see other cases.
Let's start with a new term.
In the previous lecture, we solved the system:
From the coefficient matrix, we made an augmented matrix, and we used row operations until we reached the form where we could read off the solution:
The coefficient matrix is said to be row equivalent to
This matrix is in reduced row echelon form or rref. This form is characterized by four requirements:
- If there are any rows of all zeros, they occur at the bottom of the matrix.
- The first non-zero entry in any row is a 1 (called a leading one or a pivot).
- Each leading one is to the right of the leading one in the row above it.
- Every other entry in the column of a leading one is a zero.
Here are a few examples of matrices in rref:
Every matrix is row equivalent to a matrix in rref, and the process of Gaussian Elimination always ends with a matrix in rref.
We can now describe the solution process as:
- Get the augmented matrix.
- Use Gaussian Elimination to put the matrix in rref.
- Read off the solution.
Armed with this new terminology, we can now discuss different scenarios.
$\large A$ is square ($\large n$ equations and $\large n$ unknowns), $\large A\vec{x}=\vec{b}$ has one solution
This is the scenario we've already seen. If
In this case, we see easily that
If
In this case, that last row represents the equation
There's another possibility if
That last equation now represents
We that when we have infinitely many solutions, we still want to describe the solution set. Is it every point on a line? A plane? How many free variables are there in the solution set? The answer to all these questions comes from the rref form and the process outlined in the video.
If we have more equations than unknowns, the system is known as overdetermined or overconstrained. We are attempting to place too many constraints on too few variables. In this case, the matrix
Let's take the following system as an example:
This turns into an augmented matrix, which we put into rref. We have:
The fourth row of the augmented system in rref gives us the contradiction to know this system is inconsistent (Why is the third row not a problem?).
Note
It is possible for an overdetermined system to be consistent if some of the equations are redundant. If this happens, there will be a row (or rows) of zeros at the bottom of the augmented matrix in rref.
Our last scenario is the case when the system is underdetermined, meaning we have more variables than constraints. An underdetermined system usually (but not always) leads to infinitely many solutions since there aren't enough equations to tie us down to a single solution.
Let's take the following system as an example (we have too many variable to use
This turns into an augmented matrix, which we put into rref. We have:
How do we characterize the solutions in this case? The video will show how we do it:
We see that if we have 5 variables and 3 leading ones in rref, we will have a solution set characterized by two free variables. This is true in general: leading ones + free variables = total number of variables.
The examples we've seen lead naturally to a definition:
Definition: The rank of a matrix is the number of leading ones in the rref of the matrix.
The rank of
In terms of
We've now seen examples covering all the possibilities. Let's summarize what we know about
- If there is a line
$\large \left[ 0 \quad 0 \quad 0 \quad \dots \quad 0 \quad : \quad c \right]$ for a nonzero$\large c$ in the rref of the augmented matrix, the system is inconsistent. Otherwise, it is consistent. - If the system is consistent, and if the number of leading ones in the rref of
$\large A$ (not the augmented part) is equal to the number of columns in$\large A$ , the solution is unique. Otherwise, there are infinitely many solutions. - If there are infinitely many solutions, the number of free variables is the number of columns of
$\large A$ minus the number of leading ones in the rref of$\large A$ .
With Gaussian elimination, we can now add to our list of equivalencies for square matrices:
The following are all equivalent facts about a square
-
$\large A$ is invertible. -
$\large \text{det}(A)\ne 0$ . -
$\large A$ is row equivalent to$\large I$ , the identity matrix. -
$\large A\vec{x}=\vec{0}$ has only the trivial solution. -
$\large A\vec{x}=\vec{b}$ has a unique solution for any$\large \vec{b}$ .
Definition: A square matrix
$\large A$ that meets the above criteria is called nonsingular. Otherwise, the matrix is called singular.
I can:
- Recognize if a matrix is in rref.
- Put any matrix into rref using Gaussian elimination.
- Solve any system of equations using Gaussian elimination.
- Parametrically describe the solution set when there are infinitely many solutions.
- Identify the rank of a matrix by looking its equivalent matrix in rref.