Guide on Pivot Positions and Columns in Linear Algebra
Start your free 7-days trial now!
Pivot position and pivot column
A pivot position in a matrix $\boldsymbol{A}$ is the location in the matrix with row-leading $1$ in the reduced row echelon formlink of $\boldsymbol{A}$. A pivot column is a column in $\boldsymbol{A}$ that contains the pivot position.
Determining the pivot positions and columns of a matrix
Consider the following augmented matrix:
Determine the pivot positions as well as the pivot columns of $\boldsymbol{A}$.
Solution. The first step is to obtain the reduced row echelon form of $\boldsymbol{A}$ like so:
The pivot positions are locations with row-leading ones in reduced row echelon form. In this case, the following blue entries are the pivot positions:
Pivot columns are columns that include the pivot positions. This means that the following red and green columns are the pivot columns:
Identifying pivot columns of a reduced row echelon form
Consider the following reduced row echelon form of an augmented matrix:
Identify the pivot columns.
Solution. The first and third columns of the reduced row echelon form correspond to the pivot columns as they have pivot positions (row-leading ones).
Basic and free variables
In the context of linear systems, basic variables are variables that correspond to pivot columns. All other variables are called free variables.
In some textbooks, basic variables are called leading variables.
Finding basic and free variables (1)
Suppose the row echelon form of some system of linear equations is:
What are the basic and free variables?
Solution. Here, the two pivot columns are as follows:
Writing this out explicitly as a system of linear equations:
The first and second columns in \eqref{eq:ycogAn6MLpKSJSH2QLA} hold the coefficients of variables $x_1$ and $x_2$ respectively. This means that the basic variables are $x_1$ and $x_2$ because they correspond to the pivot columns.
The other variable $x_3$ is called a free variable. Free variables are described as "free" because we can assign any value to them. Once we do so, the values of the basic variables are automatically determined. For instance, let's say we assign $x_3=1$ in this case. Substituting this into the first linear equation yields:
Similarly, $x_2$ can be computed easily by substituting our free variable $x_3=1$ into the second linear equation:
Therefore, one solution to the system is:
Note that the value for the basic variables will depend on the value we assign to the free variable. For instance, if we had assigned $x_3=2$ instead, we would end up with $x_1=-4$ and $x_2=-2$. This means that if we have free variables, then the solutions to this system will not be unique - there will be infinitely many solutions.
Generally, we let free variables take on some value $t\in\mathbb{R}$ so that we can express basic variables as some function of $t$. In this case, we let $x_3=t$. Substituting this into the second equation gives:
Similarly, substituting $t$ into the first equation gives:
Therefore, the solution to the linear system is:
Plugging in any scalar value for $t$ will give us a particular solution to the system!
Finding a general solution given an reduced row echelon form
Consider the following reduced row echelon form of an augmented matrix:
Identify the basic and free variables. Also, find the general solution to the system.
Solution. The first and third columns of the reduced row echelon form correspond to the pivot columns. This means that that $x_1$ and $x_3$ are basic variables while $x_2$ and $x_4$ are free variables.
Let's set $x_2=r$ and $x_4=t$. From the second row, we have that:
From the first row, we have that:
The solution is therefore:
Finding free and basic variables of a wide augmented matrix
Consider the following augmented matrix:
What are the free and basic variables?
Solution. We first need to convert $\boldsymbol{A}$ into reduced row echelon form:
Basic variables are variables that correspond to pivot columns. In this case, the first two columns are the pivot columns, which means variables $x_1$ and $x_2$ are basic variables. The remaining variable $x_3$ is a free variable.
Once again, let's make sense of what this means. The corresponding system of linear equations is:
To obtain the general solution to the system, we let our free variable $x_3=t$. Plugging this into the first and second equations gives:
Therefore, the general solution is:
Since $t$ can be any scalar, the system has infinitely many solutions.
We will now prove a useful theorem stating that a homogeneous linear system with more unknowns than equations has infinitely many solutions.
A homogeneous linear system with more unknowns than equations has infinitely many solutions
If $\boldsymbol{A}$ is an $m\times{n}$ matrix where $m\lt{n}$, that is, if $\boldsymbol{A}$ has more columns than rows, then the homogeneous linear system $\boldsymbol{Ax}=\boldsymbol{0}$ has infinitely many solutions.
In terms of systems of linear equations, if the system has more variables (or unknowns) than equations, then there exist infinitely many solutions.
Proof. To start, we will consider a $2\times3$ matrix $\boldsymbol{A}$ for simplicity. The row echelon form of $\boldsymbol{A}$ may look like:
Where the $*$ represents any number. Since we have two pivot columns, we have $2$ basic variables. The remaining third variable is a free variable. As the examples above have demonstrated, free variables can take on any value, which means that there are infinitely many solutions.
What if we have the following case with $1$ basic variable and $2$ free variables:
Again, the existence of at least one free variable guarantees that the system has infinitely many solutions.
To generalize, as long as there are more columns than rows, the system will always have free variables. Whenever there are free variables, the system will have infinitely many solutions. This completes the proof.
Checking for the existence and uniqueness of solutions using row echelon form
If the row echelon form of an augmented matrix has a row with all zeros except the rightmost column, then the system is inconsistent, that is, it has no solutions. In other words, if there is a pivot position in the rightmost column of the augmented matrix, then the system is inconsistent. Here's an example of such a case:
If the row echelon form has a row of zeros, then the system is consistent with infinitely many solutions. Here's an example:
In all the other cases when the row echelon form, the system is consistent with one unique solution. Here's an example:
Discussion and proof. We know that to obtain the solutions of a system of linear equations, we can reformulate the system as $\boldsymbol{Ax}=\boldsymbol{b}$ and then reduce the augmented matrix into the reduced row echelon form.
However, if all we care about is the nature of the solution instead of the actual values of the solution, then reducing the augmented matrix to the row echelon form (instead of the reduced row echelon form) is sufficient.
For instance, consider the following row echelon form:
This row echelon form tells us that the corresponding system of linear equations is inconsistent since we have a row corresponding to the equation $0=5$. This means that a solution does not exist.
Let's now consider an echelon form with a row of all zeros:
We see that the basic variables are $x_1$ and $x_2$ while the free variable is $x_3$. This means that we have infinitely many solutions due to the presence of the free variable. Again, this echelon form does not allow us to compute the solutions to the system directly but it does give us useful information about the existence as well as the uniqueness of the solutions.
Finally, consider the following case:
Here, we have $3$ basic variables and no free variable. This means that no variable is allowed to freely vary and thus giving us an unique solution.
This completes the proof.
Even though we can check for the presence of an unique solution using the row echelon form of the augmented matrix, we can actually look at that of the coefficient matrix instead.
Checking for unique solutions using the echelon form of the coefficient matrix
If the row echelon form of the coefficient matrix does not contains a row filled with zeros, then the corresponding system of linear equations is consistent and has exactly one solution.
Equivalently, if every column of the coefficient matrix contains a pivot position, then the system has an unique solution.
Proof. Consider the following row echelon form of some augmented matrix:
The last row corresponds to the linear equation $x_3=\color{blue}*$. Consider the case when this $\color{blue}*$ equals some scalar value, say $5$. Since $x_3=5$, we can substitute this into the second row to get $x_2$. Finally, substituting $x_3$ and $x_2$ into the first row will give us $x_1$. Since we can solve for $x_1$, $x_2$ and $x_3$, we end up with an unique solution.
Note that even if the right-most column of the augmented matrix is all zeros, the system would still have an unique solution, namely $x_1=x_2=x_3=0$. Therefore, regardless of what values the right-most column of the augmented matrix take, we will always get an unique solution. This means that we can just refer to the row echelon form of the coefficient matrix in order to know whether or not the system has an unique solution.
This completes the proof.
Checking if a system has solutions
Consider the following system of linear equations:
Does this system have a solution?
Solution. To check whether or not a solution exists, we can refer to the echelon form of the coefficient matrix:
Because the echelon form of the coefficient matrix does not contain a row with all zeros, we conclude that the system has an unique solution.
Practice problems
Consider the following system of linear equations:
Find the following:
pivot positions.
pivot columns.
basic variable.
free variable.
a general solution to the system.
a particular solution to the system.
We first write the system of linear equations as an augmented matrix:
We then obtain the row-echelon form:
The pivot positions are the positions of the row-leading non-zeros indicated below:
Here, the second row are all zeros and therefore has no pivot positions.
A pivot column is a column that contains a pivot position. In this case, only the first column is a pivot column:
A basic variable corresponds to a pivot column, which means that $x$ is a basic variable.
All variables that are not a basic variable are called free variables. In this case then, $y$ is a free variable.
To find the general solution to the system, focus on the first row:
Let $y=t$ where $t$ is any scalar value. We now solve for $x$ like so:
Therefore, the general solution to the system is:
Plugging in any value for $t$ gives us any particular solution. For example, setting $t=1$ gives us the following solution:
Consider the following augmented matrix:
Identify the pivot positions and pivot columns.
To identify the pivot positions and pivot columns, we must obtain the row-echelon form:
The pivot positions are the positions of the row-leading non-zeros indicated below:
A pivot column is a column that contains a pivot position. In this case, all three columns are the pivot columns:
Consider the following augmented matrix of a homogeneous system of linear equations:
Which of the following is true?
The system is inconsistent with no solutions.
The system is consistent with an unique solution.
The system is consistent with infinitely many solutions.
Since there are more columns than rows, the system must be consistent with infinitely many solutions by theorem.
Consider the following augmented matrix:
Which of the following is true?
The system is inconsistent with no solutions.
The system is consistent with an unique solution.
The system is consistent with infinitely many solutions.
Since the last row contains all zeros except the last entry ($0=3$), the system must be inconsistent with no solutions.
Consider the following augmented matrix:
Which of the following is true?
The system is inconsistent with no solutions.
The system is consistent with an unique solution.
The system is consistent with infinitely many solutions.
Since the last row contains all zeros, we have a free variable. By theoremlink, we have that the system is consistent with infinitely many solutions.
Consider the following coefficient matrix of a system of linear equations:
Which of the following is true?
The system is inconsistent with no solutions.
The system is consistent with an unique solution.
The system is consistent with infinitely many solutions.
By theoremlink, since there are no rows with all zeros in the coefficient matrix, the system is consistent with an unique solution.