1550lect7
1550lect7
Textbook Reading:
Beezer, Ver 3.5 Subsection TTS (print version p35 - p41)
1 Introduction
We will now be more careful about analyzing the reduced row-echelon form derived from
the augmented matrix of a system of linear equations. In particular, we will see how to
systematically handle the situation when we have infinitely many solutions to a system,
and we will prove that every system of linear equations has either zero, one or infinitely
many solutions. With these tools, we will be able to routinely solve any linear system.
2 Consistent Systems
A system of linear equations is consistent if it has at least one solution. Otherwise, the
system is called inconsistent.
Example 1
1. The system of linear equations
2x1 + 3x2 = 3
x1 − x2 = 4
is consistent because it has solution (x1 , x2 ) = (1, −3).
2. The system of linear equations
2x1 + 3x2 = 3
4x1 + 6x2 = 6
is consistent because has infinite many solutions: {(t, 3−2t
3
) | t real number}.
3. The system of linear equations
2x1 + 3x2 = 3
4x1 + 6x2 = 10
is inconsistent because it has no solution.
Notation Recall: Let A be a reduced row echelon form.
1
1. The number of non-zero rows is called the rank of A and is denoted by r.
2. The set of the column indexes for the pivot columns is denoted by
D = {(d1 , d2 , d3 , . . . , dr ) | d1 < d2 < d3 < · · · < dr .}
3. The set of column indexes that are not pivot columns is denoted by
F = {(f1 , f2 , f3 , . . . , fn−r ) | f1 < f2 < f3 < · · · < fn−r .}
The matrix is row-equivalent to the following matrix reduced row-echelon form (exer-
cise: check this)
1 4 0 0 2 1 −3 4
0
0 1 0 1 −3 5 2
0 0 0 1 2 −6 6 1
0 0 0 0 0 0 0 0
2
So we find that r = 3 and
D = {d1 , d2 , d3 } = {1, 3, 4} F = {f1 , f2 , f3 , f4 , f5 } = {2, 5, 6, 7, 8}
Let i denote any one of the r = 3 nonzero rows. Then the index di is a pivot column. It
will be easy in this case to use the equation represented by row i to write an expression
for the variable xdi . It will be a linear function of the variables xf1 , xf2 , xf3 , xf4
(i = 1) xd1 = x1 = 4 − 4x2 − 2x5 − x6 + 3x7
(i = 2) xd2 = x3 = 2 − x5 + 3x6 − 5x7
(i = 3) xd3 = x4 = 1 − 2x5 + 6x6 − 6x7
Each element of the set F = {f1 , f2 , f3 , f4 , f5 } = {2, 5, 6, 7, 8} is the index of a
variable, except for f5 = 8. We refer to xf1 = x2 , xf2 = x5 , xf3 = x6 and xf4 = x7 as free
(or independent) variables since they are allowed to assume any possible combination
of values that we can imagine and we can continue on to build a solution to the system
by solving individual equations for the values of the other (dependent) variables.
Each element of the set D = {d1 , d2 , d3 } = {1, 3, 4} is the index of a variable. We
refer to the variables xd1 = x1 , xd2 = x3 and xd3 = x4 as dependent variables since
they depend on the independent variables. More precisely, for each possible choice of
values for the independent variables we get exactly one set of values for the dependent
variables that combine to form a solution of the system.
To express the solutions as a set, we write
4 − 4x2 − 2x5 − x6 + 3x7
x
2
2 − x5 + 3x6 − 5x7
1 − 2x5 + 6x6 − 6x7 x2 , x5 , x6 , x7 real numbers (1)
x 5
x 6
x7
The condition that x2 , x5 , x6 , x7 are real numbers is how we specify that the variables
x2 , x5 , x6 , x7 are free to assume any possible values.
This systematic approach to solving a system of equations will allow us to create a
precise description of the solution set for any consistent system once we have found the
reduced row-echelon form of the augmented matrix. It will work just as well when the
set of free variables is empty and we get just a single solution.
Definition 1 (Independent and Dependent Variables) Suppose A is the augmented
matrix of a consistent system of linear equations and B is a row-equivalent matrix in
reduced row-echelon form. Suppose j is the index of a pivot column of B. Then the
variable xj is dependent. A variable that is not dependent is called independent or
free.
3
whose augmented matrix row-reduces to
1 −1 0 0 3 6
0
0 1 0 −2 1
0
0 0 1 4 9
(2)
0 0 0 0 0 0
0 0 0 0 0 0
Columns 1, 3 and 4 are pivot columns, so D = {1, 3, 4}. From this we know that
the variables x1 , x3 and x4 will be dependent variables, and each of the r = 3 nonzero
rows of the row-reduced matrix will yield an expression for one of these three variables.
The set F is all the remaining column indices, F = {2, 5, 6}. The column index 6 in
F means that the final column is not a pivot column, and thus the system is consistent
(see the next theorem). The remaining indices in F indicate free variables, so x2 and
x5 (the remaining variables) are our free variables. The resulting three equations that
describe our solution set are then,
(xd1 = x1 ) x1 = 6 + x2 − 3x5
(xd2 = x3 ) x3 = 1 + 2x5
(xd3 = x4 ) x4 = 9 − 4x5
Make sure you understand where these three equations came from, and notice how
the location of the pivot columns determined the variables on the left-hand side of each
equation. We can compactly describe the solution set as,
6 + x2 − 3x5
x
2
S = 1 + 2x5 x2 , x5 real numbers
(3)
9 − 4x
5
x5
4
If the last column vector of B is a pivot column, then B is in the form of
1 ∗ ··· 0 ∗ ··· 0 ∗ ··· ∗ 0
0 0 · · · 1 ∗ · · · 0 ∗ · · · ∗ 0
0 0 · · · 0 0 · · · 1 ∗ · · · ∗ 0
0 0 · · · 0 0 · · · 0 0 · · · ∗ 0
. . . .. .. .. .. .. .. .. ..
. . .
. . . . . . . . . . .
0 0 · · · 0 0 · · · 0 0 · · · 0 1
0 0 · · · 0 0 · · · 0 0 · · · 0 0
.. .. .. .. .. .. .. .. .. .. ..
. . . . . . . . . . .
For the system of linear equations with the above augmented matrix, the r+1-st equation
(i.e. the last non-zero equation) is
0 = 1.
So the system of linear equations has no solution.
Conversely, if the last column vector is not a pivot column vector, then B is in the
form of
1 ∗ ··· 0 ∗ ··· 0 ∗ ··· 0 ∗ ··· ∗
0 0 · · · 1 ∗ · · · 0 ∗ · · · 0 ∗ · · · ∗
0 0 · · · 0 0 · · · 1 ∗ · · · 0 ∗ · · · ∗
0 0 · · · 0 0 · · · 0 0 · · · 0 ∗ · · · ∗
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
0 0 · · · 0 0 · · · 0 0 · · · 1 ∗ · · · ∗
0 0 · · · 0 0 · · · 0 0 · · · 0 0 · · · 0
.. .. .. .. .. .. .. .. .. .. .. ..
. . . . . . . . . . . .
For the system of equations with the above augmented matrix, we can move the vari-
ables corresponding to the non-pivot columns (i.e., xf1 , xf2 , . . .) to the right hand side
of the equations and therefore solve the equations. Hence it is consistent. Note that
xf1 , xf2 , . . . are free variables.
5
The last column is a pivot column. So the system is inconsistent.
Example 6 Determine if the following system of linear equation is consistent.
x1 + x2 + 2x3 + 3x4 + 2x5 + 5x6 =1
2x1 + 2x2 + 3x3 − x4 =1
3x1 + 3x2 + 5x3 + x4 + x5 − 2x6 =3
x4 + x5 + 7x6 = −1
The augmented matrix is
1 1 2 3 2 5 1
2
2 3 −1 0 0 1
3 3 5 1 1 −2 3
0 0 0 1 1 7 −1
The reduced row echelon form is
1 1 0 0 5 62 −12
0 0
1 0 −3 −39 8
0 0 0 1 1 7 −1
0 0 0 0 0 0 0
The last column is not a pivot column. So the system is consistent.
Theorem 3 (Consistent Systems, r and n) Suppose A is the augmented matrix of
a consistent system of linear equations with n variables. Suppose also that B is a row-
equivalent matrix in reduced row-echelon form with r pivot columns. Then r ≤ n. If
r = n, then the system has a unique solution, and if r < n, then the system has infinitely
many solutions.
Proof. This theorem contains three implications that we must establish. Notice first
that B has n + 1 columns, so there can be at most n + 1 pivot columns, i.e., r ≤ n + 1. If
r = n + 1, then every column of B is a pivot column, and in particular, the last column
is a pivot column. So the previous theorem tells us that the system is inconsistent,
contrary to our hypothesis. We are left with r ≤ n.
When r = n, we find n − r = 0 free variables (i.e., F = {n + 1}) and the only solution
is given by setting the n variables to the the first n entries of column n + 1 of B.
When r < n, we have n − r > 0 free variables. Choose one free variable and set all
the other free variables to zero. Now, set the chosen free variable to any fixed value. It
is possible to then determine the values of the dependent variables to create a solution
to the system. By setting the chosen free variable to different values, in this manner we
can create infinitely many solutions.
3 Free variables
The next theorem simply states a conclusion from the final paragraph of the previous
proof, allowing us to state explicitly the number of free variables for a consistent system.
Theorem 4 (Free Variables for Consistent Systems) Suppose A is the augmented
matrix of a consistent system of linear equations with n variables. Suppose also that B is
a row-equivalent matrix in reduced row-echelon form with r rows that are not completely
zeros. Then the solution set can be described with n − r free variables.
6
Example 7
1. System of linear equations with n = 3, m = 3.
x1 − x2 + 2x3 = 1
2x1 + x2 + x3 = 8
x1 + x2 = 5
Augmented matrix
1 −1 2 1
2 1 1 8
1 1 0 5
The reduced row echelon form of the augmented matrix.
1 0 1 3
0 1 −1 2
0 0 0 0
The last column is not a pivot column. So the system of linear equations is consis-
tent.
r = 2, there are 3 − 2 free variables.
In fact D = {1, 2}, F = {3}. x1 , x2 are dependent variables, x3 is a free variables.
x1 = 3 − x3
x2 = 2 + x3
The last column is not a pivot column. So the system of linear equations is consis-
tent.
r = 3, there are 3 − 3 = 0 free variables. So the solution is unique.
In fact
x1 = −3
x2 = 5
x3 = 2
7
3. System of linear equations with n = 2, m = 5.
2x1 + 3x2 =6
−x1 + 4x2 = −14
3x1 + 10x2 = −2
3x1 − x2 = 20
6x1 + 9x2 = 18
Augmented matrix
2 3 6
−1 4 −14
3 10 −2
3 −1 20
6 9 18
The reduced row echelon form of the augmented matrix.
1 0 6
0 1 −2
0 0 0
0 0 0
0 0 0
The last column is not a pivot column. So the system of linear equations is consis-
tent.
r = 3, there are 2 − 2 = 0 free variables. So the solution is unique.
In fact
x1 = 6
x2 = −2
8
Theorem 5 (Possible Solution Sets for Linear Systems) A system of linear equa-
tions has no solutions, a unique solution or infinitely many solutions.
Proof. If the system is inconsistent, that it has no solutions.
Suppose the system is consistent. If it has 0 free variable, it has a unique solution. If it
has ≥ 1 free variables, it has infinite many solutions.
Example 8
2x1 + x2 + 7x3 − 7x4 = 8
−3x1 + 4x2 − 5x3 − 6x4 = −12
x1 + x2 + 4x3 − 5x4 = 4
Because n = 4, m = 3 and n > m. Hence it is consistent and has infinitely many
solutions by the above theorem.
These theorems give us the procedures and implications that allow us to completely
solve any system of linear equations. The main computational tool is using row opera-
tions to convert an augmented matrix into reduced row-echelon form. Here is a broad
outline of how we would instruct a computer to solve a system of linear equations.