JoeCMath

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

Section What is shown Video
Introduction Set up the question: one solution, infinitely many solutions, or no solution. 0:00
Three outcomes Compare the three possible final matrix patterns. 0:08
Unique solution Start the example where the matrix gives one solution. 1:37
Gauss-Jordan result Read the unique solution from a fully reduced matrix. 3:30
Gaussian result Read the unique solution from an echelon-form result. 3:52
Verify Check the solution in the original system. 4:59
Infinite solutions Start the example with infinitely many solutions. 5:36
Free variable Identify the variable that can be chosen freely. 6:33
Solution set Write the infinite solution set. 7:22
Choose values Pick different free-variable values to get different solutions. 8:34
No solution Use a contradiction row to identify no solution. 9:28

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.