Number of Solutions from a Matrix
Simple overview of determining how many solutions exist for the result of Gaussian elimination or Gauss-Jordan elimination.
Main Idea
After Gaussian elimination or Gauss-Jordan elimination, the final augmented matrix tells us how many solutions exist for our system of linear equations.
We can either have
- one solution OR
- infinitely many solutions OR
- no solution
We’ll review how to determine which of the three scenarios we have below.
Watch this section: overview of the three outcomes at 0:08.
One Solution
If every variable column on the left side of the constants is a pivot column, then we have one solution.
\[\left[ \begin{array}{ccc|c} 1 & 0 & 0 & a \\ 0 & 1 & 0 & b \\ 0 & 0 & 1 & c \end{array} \right]\]If every column associated with a variable has a pivot, then each variable is locked to a single value. This tells us that only one solution exists for our overall system
In the result above, if the first three columns are associated with $x$, $y$, and $z$, respectively, then we get
\[\begin{aligned} x&=a \\ y&=b \\ z&=c \end{aligned}\]This gives us our single solution.
\[(x,y,z)=(a,b,c)\]Watch this section: unique solution example at 1:37.
Infinitely Many Solutions
The infinite-solution pattern in the video has at least one free variable (one variable column has no pivot) and no contradiction row.
An example would be the following
\[\left[ \begin{array}{ccc|c} 1 & 0 & 0 & a \\ 0 & 1 & 0 & b \\ 0 & 0 & 0 & 0 \end{array} \right]\]Column $3$ has no pivot, and so column $3$ is a free variable.
\[\text{The bottom row tells us }0=0\text{, so no contradiction exists.}\]If there are three variables and only two pivot variables, then one variable is free, which tells us we have an infinite number of solutions for our system of equations.
Watch this section: infinite solutions example at 5:36.
Free Variables
A free variable is a variable without a pivot.
For example, if $z$ is free, you can write
\[z=t \quad \text{Where }t\in \mathbb{R}\]Then the pivot variables can be written in terms of $t$.
The solution set for the example in the last section would be
\[(x,y,z)=(a,b,t) \quad \text{Where }t\in \mathbb{R}\]Since $t$ can take on an infinite number of values, we have an infinite number of solutions.
Watch this section: free variable discussion at 6:33.
No Solution
When we have a row that is a contradiction, we know our system of equations has no solution.
Consider
\[\left[ \begin{array}{ccc|c} 1 & 0 & 0 & a \\ 0 & 1 & 0 & b \\ 0 & 0 & 0 & 5 \end{array} \right]\]The last row means
\[0x+0y+0z=5\]That simplifies to
\[0=5\]which is impossible.
Since one row of the system is impossible, the whole system has no solution.
Watch this section: no solution example at 9:28.
Timestamp Guide
Related Linear Algebra Work
This video fits naturally after the Augmented Matrices companion, Row Echelon Form companion, Reduced Row Echelon Form companion, and Gauss-Jordan Elimination companion.
For more row-reduction lessons, use the JoeCMath Gauss-Jordan Elimination playlist.