Lecture 10 · Week 3· 15:28
Solution sets
Existence and uniqueness, parametric solutions, homogeneous systems.
Saved in this browser only. No account needed.
TranscriptThe full text of the lecture. Click any sentence to play the video from there.
Three questions
Welcome back. Over the last two lectures, we learned to row reduce any system, all the way to its reduced row echelon form. Today we use that form to answer three questions about a system. First, does a solution exist? Second, if it does, is it the only one? And third, when there are many solutions, what does the set of all of them look like? Remember from lecture seven that a system over the real numbers has no solution, exactly one, or infinitely many. In the plane, two lines can cross in one point, be parallel, or be the same line.
Today we learn to tell which case we are in, straight from an echelon form, without solving anything. And when there are infinitely many solutions, we learn to write all of them down with a single formula. Let's start with an example that has infinitely many solutions.
Reducing an example
Here is a system of three equations in four unknowns. x one plus two x two minus x three minus x four equals two. Two x one plus four x two minus x three equals five. And minus x one minus two x two plus two x three plus three x four equals minus one. We write its augmented matrix, and row reduce it as in lecture nine. The first pivot is the one in the top left corner. We replace row two by row two minus two times row one. In the first column, two minus two is zero. In the second, four minus four is zero. In the third, minus one plus two is one. In the fourth, zero plus two is two. And after the bar, five minus four is one.
Then we replace row three by row three plus row one. Minus one plus one is zero. Minus two plus two is zero. Two minus one is one. Three minus one is two. And after the bar, minus one plus two is one. Now look at column two. Below row one, it holds only zeros, so it has no pivot. We move on to column three, where the next pivot is the one in row two. We replace row three by row three minus row two. The two rows are equal, so each entry minus itself is zero, and row three becomes a row of zeros.
Finally, we clear the entry above the second pivot, with row one plus row two. One plus zero is one. Two plus zero is two. Minus one plus one is zero. Minus one plus two is one. And after the bar, two plus one is three. This is the reduced row echelon form. Its pivots are in columns one and three.
Pivot variables and free variables
So x one and x three are the basic variables, also called pivot variables, and x two and x four are free variables, because their columns have no pivot. The last row says only that zero equals zero. Read the two nonzero rows as equations. x one plus two x two plus x four equals three. And x three plus two x four equals one. Each one contains exactly one pivot variable. We solve each equation for its pivot variable, by moving the other terms across the equals sign. x one equals three minus two x two minus x four. And x three equals one minus two x four.
The free variables can take any values at all. To show this, we give them new names, called parameters: x two equals s, and x four equals t. Then every solution is the vector with entries (three minus two s minus t, s, one minus two t, t). Each choice of s and t gives a solution. And each solution comes from exactly one choice, because s and t are its second and fourth entries.
Parametric vector form
This vector mixes constants, s and t. Let's split it into three parts, one coordinate at a time. In the first coordinate, three minus two s minus t is three, plus s times minus two, plus t times minus one. In the second coordinate, the entry s splits into zero, plus s times one, plus t times zero. In the third coordinate, one minus two t is one, plus s times zero, plus t times minus two. And in the fourth coordinate, the entry t splits into zero, plus s times zero, plus t times one.
So x equals p plus s v plus t w, where p is (three, zero, one, zero), v is (minus two, one, zero, zero), and w is (minus one, zero, minus two, one). This is called the parametric vector form of the general solution. Setting s and t to zero gives p itself. So p is one solution, called a particular solution. Notice the pattern. v belongs to the free variable x two, so it has a one in position two, and a zero at the other free variable. Its entries at the pivot variables are the negatives of column two of the reduced matrix.
Let's test one choice, s equals one and t equals one. In the first coordinate, three minus two minus one is zero. In the second, zero plus one plus zero is one. In the third, one plus zero minus two is minus one. And in the fourth, zero plus zero plus one is one. So s equals one and t equals one give the solution (zero, one, minus one, one). It is one point of the solution set. Now check it in the original equations. In the first, zero plus two plus one minus one is two. In the second, zero plus four plus one is five. In the third, zero minus two minus two plus three is minus one. All three hold.
So the solution set is p plus the span of v and w. It is a plane in four dimensional space, through the point p, in the directions v and w. Two free variables give two parameters, and a two dimensional set of solutions. In lectures twenty and twenty three, we make the word dimension precise.
Existence and uniqueness
Now the general theory. Everything we need is visible in an echelon form of the augmented matrix. The only question is which columns hold pivots. Here is the theorem. A system is consistent exactly when the last column of an echelon form, the column after the bar, is not a pivot column. And if it is consistent, the solution is unique exactly when every column of the coefficient matrix is a pivot column, that is, when there are no free variables. If there is a free variable, then over the real numbers, there are infinitely many solutions.
The proof is a careful look at back substitution, so take it slowly, and feel free to pause or rewatch it. First, existence. If the last column is a pivot column, some row says zero equals c, with c not zero. We saw in lecture eight that then there is no solution. Now suppose the last column is not a pivot column. Give each free variable any value you like. Then work up from the bottom nonzero row.
Each nonzero row says: the pivot times its pivot variable, plus terms in variables further to the right, equals a number. Those variables to the right are free, or were already found in a lower row. So each row is one equation in one unknown, and its coefficient, the pivot, is not zero. By lecture six, such an equation has exactly one solution. Working up row by row, we find a solution of the whole system. Second, uniqueness. At every step, the pivot variable had to take the value we found. So each choice of the free variables gives exactly one solution, and every solution arises this way, from its own free entries.
With no free variables, there is no choice to make, and the solution is unique. With a free variable, over the real numbers, each of its infinitely many values gives a different solution. That completes the proof. Let's apply the test to three echelon forms. In the first, the last column holds a pivot, in the row that says zero equals five. No solution. In the second, the last column has no pivot, and all three columns of coefficients do. Exactly one solution.
In the third, the last column has no pivot, but column two has none either. So x two is free, and there are infinitely many solutions. We decided all three without solving anything. One consequence is worth remembering. Each row holds at most one pivot, so a system of m equations has at most m pivots. If there are more unknowns than equations, some variable must be free. So over the real numbers, a consistent system with more unknowns than equations always has infinitely many solutions. But notice the word consistent. Another system, x plus y plus z equals zero, and x plus y plus z equals one, has more unknowns than equations, and no solution at all.
Subtract the first equation from the second. The left sides cancel, and we get zero equals one, which is impossible. Over a finite field, the same reasoning counts the solutions exactly. A consistent system over Z p with k free variables has p to the k solutions, because each free variable takes p values. For example, over Z three, x one plus x two equals two has one free variable, and exactly three solutions.
Homogeneous systems
A system is called homogeneous when every right hand side is zero. Its augmented matrix has a column of zeros after the bar. A homogeneous system always has at least one solution, the zero vector, since every equation becomes zero equals zero. It is called the trivial solution. So for a homogeneous system, the only question is whether there are any other solutions. These are called nontrivial solutions.
Row operations keep the zero column zero. A swap only moves zeros around. A scaling gives c times zero, which is zero. And a replacement gives zero plus c times zero, which is zero again. So the last column is never a pivot column. By our theorem, a homogeneous system has a nontrivial solution exactly when it has a free variable. Set that free variable to one, and the theorem gives a solution that is not zero. Together with our count of pivots, this gives a theorem we will use again and again. A homogeneous system with more unknowns than equations always has a nontrivial solution. This holds over every field.
It may look modest, but it is a workhorse. In the next lecture, it shows that too many vectors are always linearly dependent. And later, it is the key to proving that every basis of a space has the same size. Let's make our example homogeneous, by changing every right hand side to zero. The same row operations give the same reduced matrix, with zeros after the bar. Now x one equals minus two x two minus x four, and x three equals minus two x four. With the same parameters, x equals s v plus t w. The same vectors v and w as before, but no p.
So the solution set of the homogeneous system is the span of v and w, a plane through the origin. And the theorem promised these nontrivial solutions in advance, since four unknowns are more than three equations.
Particular plus homogeneous
Compare the two solution sets. For the original system, p plus s v plus t w. For the homogeneous one, s v plus t w. This is no coincidence. Here is the structure theorem. Let p be any one solution of a system. Then the solutions are exactly the vectors p plus h, where h is any solution of the homogeneous system with the same coefficients. For the proof we use the dot product. As in lecture seven, write r i for the row of coefficients of equation i, so the equation reads r i dot x equals b i.
First, every p plus h is a solution. By additivity of the dot product, r i dot p plus h equals r i dot p, plus r i dot h. That is b i plus zero, which is b i. Second, every solution has this form. Take any solution x, and let h be x minus p. Then x is p plus h, and we check that h solves the homogeneous system. By additivity, r i dot h is r i dot x, plus r i dot minus one times p. By symmetry and homogeneity of the dot product, the minus one comes out in front. That gives b i minus b i, which is zero.
So h solves the homogeneous system, and the proof is complete. In words, every solution is one particular solution, plus a solution of the homogeneous system. Let's see this in the plane. Take the single equation x plus two y equals four. Its homogeneous version, x plus two y equals zero, has the free variable y equals t, so x equals minus two t, and the solutions are t times (minus two, one). That is a line through the origin. One particular solution of x plus two y equals four is p equals (four, zero). Adding p to every point of the first line moves it to a parallel line, and that line is exactly the solution set.
Any particular solution would do. The point (two, one) also solves the equation, and adding it to the same line through the origin gives the very same parallel line. So the solution set of a consistent system has the shape of its homogeneous solution set, a point, a line, a plane or more, moved away from the origin by one particular solution. Unless the right hand side is zero, it does not pass through the origin.
Summary
Let's summarise. An echelon form answers the existence question. The system is consistent exactly when the last column is not a pivot column. If it is consistent, the free variables answer the uniqueness question. No free variables means exactly one solution. Each free variable is a parameter, and over the real numbers it brings infinitely many solutions. The general solution can be written in parametric vector form: a particular solution, plus one vector for each free variable, times its parameter.
A homogeneous system always has the trivial solution. It has nontrivial solutions exactly when there is a free variable, which is guaranteed when there are more unknowns than equations. And for a consistent system, every solution is one particular solution, plus a solution of the homogeneous system. Before the next lecture, read section two point five of the course book, try the problems on solution sets on sheet three, and do the lecture check on this lecture's page at Open Semester dot com. Next time, we use homogeneous systems to answer a new question: when is a list of vectors linearly independent? See you there.
In this lecture
- Three questions
- Reducing an example
- Pivot variables and free variables
- Parametric vector form
- Existence and uniqueness
- Homogeneous systems
- Particular plus homogeneous
- Summary
Materials
Check yourself
3 questions, from warm-up to stretch
Work each one out on paper, type your answer and press Check. Stuck? Open a hint; the worked solution is there when you need it.
- Question 1 of 3 Warm-up
An echelon form of the augmented matrix of a system is . Is the last column a pivot column? How many solutions does the system have?
Hint 1 of 2
Look at the last row. Where is its first nonzero entry?
Hint 2 of 2
The last row says , that is .
Worked solution
- The last row is . Its first nonzero entry, , is in the last column, so the last column is a pivot column.
- As an equation, that row reads , that is , which is impossible.
- By Theorem 2.5.3 (a), the system is inconsistent: it has no solution.
- Question 2 of 3 Core
A system in has the reduced row echelon form . How many free variables are there? With the parameters and , write the general solution as . Find .
Hint 1 of 2
The pivots are in columns 1 and 3, so and are pivot variables. Solve each row for its pivot variable by moving the other terms across the equals sign.
Hint 2 of 2
and . The vector collects the coefficients of in .
Worked solution
- The pivots are in columns 1 and 3, so are pivot variables and are free: free variables.
- Row 1: , so .
- Row 2: , so .
- Coordinate by coordinate: , , , .
- So , and .
- Question 3 of 3 Stretch
A system in has the particular solution , and the solutions of its homogeneous system are exactly the vectors . Find the solution of the system with .
Hint 1 of 2
By Theorem 2.5.11, every solution is with a solution of the homogeneous system, so every solution is .
Hint 2 of 2
The second coordinate is . Which gives ?
Worked solution
- By Theorem 2.5.11, the solutions are .
- , so .
- and : the solution is .
How did it go?