Recitation 3 · Week 3· 32:48

Problem Sheet 3, worked through

The marked problems of Sheet 3, solved step by step on screen. Try them first; the rest of the sheet is for practice on your own, with full written solutions. Covers Lectures 9 to 12.

Play: Recitation 3
Recitation · 32:48 · Open on YouTube · Report a problem with this video
TranscriptThe full text of the recitation. Click any sentence to play the video from there.

Recitation 3

Welcome to recitation three. This week's lectures, nine to twelve, completed the story of linear systems: how to reduce a system all the way, what its set of solutions looks like, when vectors are independent, and how to write a whole system as A x equals b. Problem Sheet three covers lectures nine to twelve. We will solve the six problems marked with the play symbol: problems five, six, seven, eight, eleven and twelve. The other nine are for practice on your own, with full solutions in the solutions booklet. As always, pause the video before each problem, and try it yourself first. Then watch how we do it, and compare.

First, a quick recap. A matrix is in reduced row echelon form when it is in echelon form, every pivot is one, and each pivot is the only nonzero entry in its column. Every matrix has exactly one reduced form. The variables of the pivot columns are pivot variables, and the others are free. A system is consistent exactly when the last column, after the bar, has no pivot. And then the solution is unique exactly when there is no free variable. Every solution is one particular solution, plus a solution of the homogeneous system, the system with the same coefficients and zeros on the right.

Vectors are linearly independent when the only combination of them that gives the zero vector is the trivial one. To test them, we put them as the columns of a matrix, and row reduce. They are independent exactly when every column has a pivot. And the product A x is the combination of the columns of A, with the entries of x as weights. So A x equals b has a solution exactly when b is in the span of the columns. One habit carries us through today: reduce, then read. Do the row operations carefully, one column at a time, and then read the answer off the pivots.

Problem 5: a general solution

Problem five. We solve a system of three equations in four unknowns. x one plus x two plus x three plus two x four equals two. Two x one plus x two plus three x three plus x four equals six. And x one minus x two plus three x three minus four x four equals six. Part a asks for the reduced row echelon form. We write the augmented matrix: one row for each equation, one column for each unknown, and the right hand sides after the bar. The first pivot is the one in the top left corner. To clear the entries below it, we start by replacing row two by row two minus two times row one.

In the first column, two minus two times one is zero. In the second column, one minus two times one is minus one. In the third column, three minus two times one is one. In the fourth column, one minus two times two is minus three. And after the bar, six minus two times two is two. Next, we replace row three by row three minus row one.

In the first column, one minus one is zero. In the second, minus one minus one is minus two. In the third, three minus one is two. In the fourth, minus four minus two is minus six. And after the bar, six minus two is four. The first column is clear. The next pivot is the minus one in row two, column two. Below it is a minus two, so we replace row three by row three minus two times row two. The first column stays zero. In the second column, minus two minus two times minus one is zero. In the third, two minus two times one is zero. In the fourth, minus six minus two times minus three is zero. And after the bar, four minus two times two is zero.

Row three is now a row of zeros. It says zero equals zero, which is true whatever the unknowns are, so the third equation puts no extra condition on them. Now the backward phase. The second pivot is minus one, so we scale row two by minus one. Zero stays zero. Minus one becomes one. One becomes minus one. Minus three becomes three. And after the bar, two becomes minus two. Above this pivot is a one, so we replace row one by row one minus row two. In the first column, one minus zero is one. In the second, one minus one is zero. In the third, one minus minus one is two. In the fourth, two minus three is minus one. And after the bar, two minus minus two is four.

This is the reduced row echelon form. Its pivots are in columns one and two, so x one and x two are pivot variables. Columns three and four have no pivot, so x three and x four are free variables. The last column has no pivot either, so the system is consistent. And with two free variables, it has infinitely many solutions. Part b asks for the general solution. Read the two nonzero rows as equations. x one plus two x three minus x four equals four. And x two minus x three plus three x four equals minus two.

We give the free variables names, called parameters: x three equals s, and x four equals t. Then each equation gives its pivot variable. x one equals four minus two s plus t. And x two equals minus two plus s minus three t. Now we split the solution vector into three parts, one coordinate at a time. In the first coordinate, four, plus s times minus two, plus t times one. In the second coordinate, minus two, plus s times one, plus t times minus three. In the third coordinate, zero, plus s times one, plus t times zero. And in the fourth coordinate, zero, plus s times zero, plus t times one.

So x equals p plus s v plus t w, where p is (four, minus two, zero, zero), v is (minus two, one, one, zero), and w is (one, minus three, zero, one). This is the parametric vector form. Part c asks us to check it. First p, in the three original equations. In the first, four minus two is two. In the second, eight minus two is six. In the third, four plus two is six. All three hold. Next v, in the homogeneous system, with zeros on the right. In the first equation, minus two plus one plus one is zero. In the second, minus four plus one plus three is zero. In the third, minus two minus one plus three is zero.

And w. In the first equation, one minus three plus two is zero. In the second, two minus three plus one is zero. In the third, one plus three minus four is zero. So p is a particular solution, and s v plus t w runs through the solutions of the homogeneous system, exactly as the structure theorem of lecture ten promised. Part d asks for the solution with x one and x two both zero. We set the first two entries of the general solution to zero. That gives four minus two s plus t equals zero, and minus two plus s minus three t equals zero.

The first equation gives t equals two s minus four. Substituting into the second gives minus two plus s minus six s plus twelve equals zero. That is ten minus five s equals zero, so s equals two, and then t equals zero. So the solution is (zero, zero, two, zero). A quick check: x three equals two, and the equations become two equals two, six equals six, and six equals six.

Problem 6: one, none or infinitely many

Problem six contains two unknown numbers, h and k. The system is x plus y plus z equals one, x plus two y plus three z equals two, and two x plus three y plus h z equals k. For which h and k does it have no solution, exactly one, or infinitely many? The strategy is the one from lecture ten. Row reduce as usual, keeping h and k as symbols, and then read the answer off the pivots. First, row two minus row one. In the first column, one minus one is zero. In the second, two minus one is one. In the third, three minus one is two. And after the bar, two minus one is one.

Then row three minus two times row one. In the first column, two minus two is zero. In the second, three minus two is one. In the third, h minus two. And after the bar, k minus two. The second pivot is the one in row two, column two. We replace row three by row three minus row two. In the second column, one minus one is zero. In the third, h minus two, minus two, is h minus four. And after the bar, k minus two, minus one, is k minus three. Everything now depends on the last row. It starts with two zeros, then comes h minus four, and after the bar, k minus three.

Case one: h is not four. Then h minus four is not zero, so it is a pivot. All three columns of coefficients have pivots, and the last column does not. So the system is consistent, with no free variable: exactly one solution, whatever k is. Case two: h equals four, but k is not three. The last row says zero equals k minus three, which is not zero. The last column is a pivot column, so there is no solution. Case three: h equals four, and k equals three. The last row says zero equals zero, and the third column has no pivot. So z is free, and there are infinitely many solutions.

Part b. For h equals five and k equals four, we are in case one. The last row says one times z equals one, so z equals one. Then back substitution. Row two says y plus two z equals one, so y equals one minus two, which is minus one. Row one says x plus y plus z equals one, so x equals one, plus one, minus one, which is one. Let's check (one, minus one, one) in the original equations. In the first, one minus one plus one is one. In the second, one minus two plus three is two. In the third, two minus three plus five is four.

For h equals four and k equals three, we are in case three, and the last row is zero. We finish the backward phase with row one minus row two. In the first column, one minus zero is one. In the second, one minus one is zero. In the third, one minus two is minus one. And after the bar, one minus one is zero. So x minus z equals zero, and y plus two z equals one. With z equal to t, x equals t, and y equals one minus two t. In vector form, x equals (zero, one, zero) plus t times (one, minus two, one).

In the row picture, the three planes share this whole line. For h equals four with any other k, the third plane is shifted off the line, and the three planes have no point in common.

Problem 7: when are three vectors dependent?

Problem seven. Take v one equal to (one, minus one, two), v two equal to (two, one, one), and v three equal to (one, five, h). For which values of h are these three vectors linearly dependent? Dependent means that some combination, c one v one plus c two v two plus c three v three, equals zero, with weights that are not all zero. That is a homogeneous system for the weights, and its coefficient matrix has the three vectors as its columns. So we row reduce the matrix with columns v one, v two and v three. The right hand side is all zeros, and row operations keep it zero, so we leave it out.

First, row two plus row one. In the first column, minus one plus one is zero. In the second, one plus two is three. In the third, five plus one is six. Next, row three minus two times row one. In the first column, two minus two is zero. In the second, one minus four is minus three. And in the third, h minus two. Then row three plus row two. In the second column, minus three plus three is zero. And in the third, h minus two, plus six, is h plus four.

If h plus four is not zero, every column has a pivot. There is no free variable, so only the trivial combination gives zero, and the vectors are independent. But if h equals minus four, the third column has no pivot. Then c three is free, there are nontrivial solutions, and the vectors are dependent. So the answer to part a is: exactly when h equals minus four. Part b asks for a dependence relation when h equals minus four. We continue to the reduced form. Scaling row two by one third gives (zero, one, two). Then row one minus two times row two gives (one, zero, minus three).

So c one minus three c three equals zero, and c two plus two c three equals zero. We choose a value for the free variable, c three equals one. Then c one equals three, and c two equals minus two. The relation is three v one minus two v two plus v three equals zero. Let's check it, one coordinate at a time. In the first coordinate, three minus four plus one is zero. In the second, minus three minus two plus five is zero. In the third, six minus two minus four is zero.

Solving the relation for v three gives v three equals minus three v one plus two v two. So v three lies in the span of the first two vectors, and adds no new direction. Part c. Geometrically, v one and v two span a plane through the origin, and v three lies in it. To find its equation, we need a normal vector, and the cross product from lecture five gives one. v one cross v two, one entry at a time. For the first entry, cover the first row, and cross multiply the two rows that remain. Minus one times one, minus one times two, is minus three.

For the second entry, cover the second row. One times one, minus two times two, is minus three. The middle entry changes sign, so it is three. For the third entry, cover the third row. One times one, minus two times minus one, is three. So a normal vector is (minus three, three, three). Dividing by minus three gives the simpler normal (one, minus one, minus one), and the plane is x minus y minus z equals zero.

Let's check all three vectors. For v one, one plus one minus two is zero. For v two, two minus one minus one is zero. For v three, one minus five plus four is zero. This is the picture of dependence in R three: three vectors in one plane through the origin. A plane has room for only two independent directions.

Problem 8: which right-hand sides?

Problem eight is about the equation A x equals b, for a three by three matrix A. Its first row is (one, two, zero), the second row is (two, five, one), and the third row is (one, three, one). Part a asks for which vectors b the equation has a solution. We keep b general, with entries b one, b two and b three, and row reduce the augmented matrix. First, row two minus two times row one. In the first column, two minus two is zero. In the second, five minus four is one. In the third, one minus zero is one. And after the bar, b two minus two b one.

Next, row three minus row one. In the first column, one minus one is zero. In the second, three minus two is one. In the third, one minus zero is one. And after the bar, b three minus b one. Then row three minus row two. The first three entries all become zero. After the bar, we get b three minus b one, minus the quantity b two minus two b one. That simplifies to b one minus b two plus b three. The last row reads zero equals b one minus b two plus b three. If that number is not zero, the last column holds a pivot, and there is no solution. So A x equals b has a solution exactly when b one minus b two plus b three equals zero.

So which vectors b can we reach? By the column rule, A x is x one times the first column of A, plus x two times the second, plus x three times the third. So the vectors b we can reach are exactly the combinations of the three columns: their span. Each choice of the weights x one, x two and x three reaches one such b. Let's draw the three columns as arrows in space. They lie in one plane through the origin, and its equation is exactly our condition, b one minus b two plus b three equals zero.

Each column must lie in that plane, and it does. For the first column, one minus two plus one is zero. For the second, two minus five plus three is zero. For the third, zero minus one plus one is zero. Part b. For b equal to (one, three, two), one minus three plus two is zero, so there are solutions. The same row operations turn the right hand side into (one, one, zero). We finish with row one minus two times row two. In the first column, one minus zero is one. In the second, two minus two is zero. In the third, zero minus two is minus two. And after the bar, one minus two is minus one.

So x one minus two x three equals minus one, and x two plus x three equals one, with x three free. Setting x three equal to t, we get x equals (minus one, one, zero) plus t times (two, minus one, one). To check our answer, take one particular solution. Setting t equal to zero in the general solution gives x equals (minus one, one, zero). By the column rule, A x is minus one times the first column, plus one times the second, plus zero times the third. In the first coordinate, minus one plus two plus zero is one. In the second, minus two plus five plus zero is three. In the third, minus one plus three plus zero is two.

That is exactly b. So b is minus the first column plus the second, and (minus one, one, zero) really is a solution. And for b equal to (one, zero, zero), the last row of the echelon form reads zero equals b one minus b two plus b three. That is one minus zero plus zero, which is one. So the last row says zero equals one, which is impossible: there is no solution, and this b lies off the plane. Part c. Are the columns of A independent? No: the third column had no pivot. Setting t equal to one in the homogeneous part of the general solution gives (two, minus one, one), a solution of A x equals zero. By the column rule, its entries are weights that combine the columns into zero: two times the first column, minus the second, plus the third.

In the first coordinate, two minus two plus zero is zero. In the second, four minus five plus one is zero. In the third, two minus three plus one is zero. So the three columns span only a plane, not all of R three, and that is exactly why some right hand sides cannot be reached. It matches the theorem of lecture twelve: the echelon form of A has no pivot in its last row.

Problem 11: true or false?

Problem eleven gives four statements, all about systems over the real numbers, and asks whether each is true or false. To show that a statement is false, one counterexample is enough. To show that it is true, we need a proof that works in every case. Statement a. A system with more equations than unknowns has no solution. False. Take x equals one, y equals two, and x plus y equals three. That is three equations in two unknowns, and the point (one, two) satisfies all three. In the row picture, the three lines all pass through one point. More equations make a contradiction more likely, but not certain.

Written as a system with every coefficient shown, that is one x plus zero y equals one, zero x plus one y equals two, and one x plus one y equals three. As a matrix equation, the matrix has three rows, one for each equation, and two columns, one for each unknown. Statement b. If a homogeneous system has a nontrivial solution, then it has infinitely many solutions. True. Write the system as A x equals zero, and let h be a nontrivial solution, so h is not the zero vector.

For any real number t, linearity from lecture twelve gives A, times t h, equals t times A h. That is t times zero, which is zero. So every multiple t h is a solution too. And different values of t give different vectors. Suppose two different numbers, t and r, gave the same vector: t h equals r h. We assume this only to show that it cannot happen. Then t minus r, times h, is the zero vector. But t minus r is not zero, because t and r are different, and h is not the zero vector. As we proved in lecture two, a nonzero number times a nonzero vector is never zero. So the assumption is false: different values of t give different solutions, and there are infinitely many, one for each real number t. Statement c. If u, v and w are linearly dependent, then w is a linear combination of u and v.

False. Take u equal to (one, two), v equal to (minus two, minus four), and w equal to (one, zero). Two u plus v is the zero vector, so the three vectors are dependent. But every combination of u and v is a multiple of (one, two), with second entry twice the first. The vector w is (one, zero), so it is not one of them. Dependence means that some vector is a combination of the others, here v, but not necessarily the last one. Statement d. If the columns of A are linearly independent, then A x equals b has a solution for every b.

False. Take A with the two columns (one, zero, zero) and (zero, one, zero). They are independent, since neither is a multiple of the other. But every A x has third entry zero, so A x equals (zero, zero, one) has no solution. Independent columns mean a pivot in every column, and that makes a solution unique, when there is one. Reaching every b needs a pivot in every row. This A has three rows, but only two pivots.

Problem 12: the field matters

Problem twelve is a proof, and it shows that the field we work over really matters. Part a: suppose u, v and w are linearly independent vectors over the real numbers. Prove that u plus v, v plus w, and u plus w are linearly independent too. This proof has several steps, and each one uses a rule, so take it slowly, and feel free to pause or rewatch it. To prove independence, we start from a combination that equals zero, and show that all its weights are zero. So suppose a times u plus v, plus b times v plus w, plus c times u plus w, equals the zero vector.

First, the distributive law, r times x plus y equals r x plus r y, opens the brackets. We get a u plus a v, plus b v plus b w, plus c u plus c w. Next, vector addition is commutative and associative, so we may reorder the six terms, and group them by vector: a u plus c u, then a v plus b v, then b w plus c w. Then the other distributive law, a x plus c x equals a plus c, times x, collects each group. So a plus c, times u, plus a plus b, times v, plus b plus c, times w, equals zero.

Now we use the hypothesis. The vectors u, v and w are independent, so every weight in this combination is zero: a plus c is zero, a plus b is zero, and b plus c is zero. That is a small homogeneous system for a, b and c. The second equation gives a equals minus b, and the third gives c equals minus b. So a equals c. Then the first equation says a plus a is zero, that is, two a equals zero. Multiplying by one half gives a equals zero. Then c equals zero, and b equals zero as well.

All three weights are zero, so u plus v, v plus w and u plus w are linearly independent. That completes the proof. Part b moves to the field Z two, where one plus one is zero. Take the three standard vectors of Z two cubed: the vector (one, zero, zero), the vector (zero, one, zero), and the vector (zero, zero, one). They are independent. Their pairwise sums are the vector (one, one, zero), the vector (zero, one, one) and the vector (one, zero, one). Let's add all three, one coordinate at a time. In the first coordinate, one plus zero plus one is one plus one, which is zero in Z two. In the second, one plus one plus zero is zero. In the third, zero plus one plus one is zero.

So one times each sum adds up to the zero vector. That is a relation whose weights are not all zero, so over Z two, the three sums are dependent. You met these same three vectors in lecture eleven. Which step of the proof broke? The step where we multiplied by one half. In Z two, two means one plus one, which is zero, and zero has no inverse. The equation two a equals zero holds for every a, so it tells us nothing about a. The proof works over any field in which two is not zero: the rational numbers, the complex numbers, or Z p for an odd prime p. Whenever a proof divides, it is worth asking whether it is allowed to.

Part c. Now take the differences: u minus v, v minus w, and w minus u. This time, we need no hypothesis at all. Add the three. Each vector appears once with a plus sign, and once with a minus sign, so the sum is the zero vector. That is a relation with weights one, one and one, which are not zero in any field. So the three differences are always dependent, whatever u, v and w are.

Wrapping up

Let's collect what today's problems taught us. To solve a system, reduce it to reduced row echelon form, and then read. Pivot variables are solved for, free variables become parameters, and the solution set is a particular solution plus the solutions of the homogeneous system. To count the solutions, look at the pivots. A pivot in the last column means no solution. Otherwise, a free variable means infinitely many, and no free variable means exactly one. This works even with unknown numbers, like h and k, inside the matrix.

To test independence, put the vectors as columns, and look for a column without a pivot. A free variable gives a dependence relation, and we can always check that relation by hand. The equation A x equals b is solvable exactly when b is a combination of the columns. A zero row in an echelon form of A gives a condition on b: the equation of the span of the columns. And in proofs, cite every rule you use, and watch out for division. Whether two is zero depends on the field.

Before we finish, here are five mistakes that come up again and again with this week's material. Watch for them in your own work. First, stopping too early. Row echelon form already tells you whether a solution exists. But to read the solutions directly, keep going to reduced row echelon form, with every pivot equal to one, and zeros above and below it. Second, mixing up the two pivot tests. A pivot in every column means there are no free variables, so a solution, if there is one, is unique. A pivot in every row means no row can turn into zero equals something nonzero, so there is a solution for every right hand side. One does not give the other, as statement d of problem eleven showed.

Third, building the parametric form from the wrong vectors. The particular solution comes from the right hand side, with every free variable set to zero. Each direction vector comes from setting one free variable to one and the others to zero, and it solves the homogeneous system. A quick check: multiply the matrix by each direction vector, and you must get the zero vector. Fourth, dividing without checking. Scaling a row by one over c needs c to be nonzero in the field you are working in. Over the real numbers, two is never zero. In Z two it is, and in Z five, five is zero. Problems ten and twelve both turn on this point. Fifth, mismatched sizes. A x is defined only when x has one entry for each column of A, and then A x has one entry for each row of A. So before you multiply, count the columns. Problem two, part b, is exactly this check.

Keep these five in mind, and most of the sheet will go smoothly. The rest of sheet three is yours to try. Problem nine draws a solution set, problem ten solves one system over two different fields, and problem fifteen counts reduced matrices over Z two. Next week, in lectures thirteen to sixteen, matrices become machines that move vectors: linear transformations, matrix multiplication, and inverses. See you there.

In this recitation

  1. Problem 5: a general solution
  2. Problem 6: one, none or infinitely many
  3. Problem 7: when are three vectors dependent?
  4. Problem 8: which right-hand sides?
  5. Problem 11: true or false?
  6. Problem 12: the field matters
  7. Wrapping up

Materials

Found a mistake, or something not working on this page? Report it and we'll fix it. See what we've corrected.