Lecture 11 · Week 3· 18:23

Linear independence

Definition, tests via elimination, geometric meaning.

Play: Lecture 11: Linear independence
Lecture · 18:23 · Open on YouTube · Report a problem with this video
TranscriptThe full text of the lecture. Click any sentence to play the video from there.

Redundant vectors

Welcome back. In lecture three, we met the span of a list of vectors: everything we can reach with linear combinations of them. Today we ask a sharper question. Does every vector in the list really contribute something? Take three vectors in R three. v one is (one, zero, zero), v two is (zero, one, zero), and v three is (one, one, zero). The first two span the horizontal plane, the vectors whose third entry is zero. And v three lies in that plane too, because v three is v one plus v two.

Let's check it coordinate by coordinate. In the first coordinate, one plus zero is one. In the second, zero plus one is one. In the third, zero plus zero is zero. So v three adds nothing. Including it does not make the span any bigger, and any combination that uses v three can be rewritten with v one and v two alone. Three vectors, but only two different directions. Now replace v three by u, equal to (zero, zero, one), which points straight up. None of v one, v two and u lies in the plane of the other two, and together they span all of R three. No vector is wasted.

Today we make this difference precise. A list with no redundant vector is called linearly independent, and a single vector counts as independent when it is not the zero vector. Independent lists are the building blocks of bases and dimension, which we meet in lecture twenty. We will see the definition, what it means geometrically, and a test, using elimination, that works for any list of vectors.

The definition

How do we spot a redundant vector in general? The trouble is that we do not know which vector to test. In our example, v three is v one plus v two. But equally, v one is v three minus v two, so we could call v one the redundant one. To avoid choosing, we move everything to one side. The equation v three equals v one plus v two becomes v one plus v two minus v three equals the zero vector. This is a linear combination of all three vectors, with weights one, one and minus one, that adds up to zero. In this form, no vector plays a special role.

Of course, there is always one way to get the zero vector: give every vector the weight zero. This is called the trivial combination, and it tells us nothing about the vectors. Here is the definition. Vectors v one through v k are linearly independent if the only combination c one v one plus, and so on, plus c k v k, that equals the zero vector is the trivial one, with every weight equal to zero. They are linearly dependent if there are weights, not all zero, for which the combination equals the zero vector. Such an equation is called a linear dependence relation.

So v one, v two and v three are dependent, and v one plus v two minus v three equals zero is a dependence relation for them. To prove that vectors are independent, we suppose that some combination of them equals zero, and show that every weight must be zero. Let's do it for v one, v two and u. Suppose c one v one plus c two v two plus c three u equals zero. In the first coordinate, only v one has a nonzero entry, so the left side is c one, and c one equals zero. In the second coordinate, c two equals zero. And in the third, c three equals zero.

Every weight is zero, so the only combination that gives zero is the trivial one. The vectors v one, v two and u are linearly independent.

Dependent means one vector is redundant

Does the definition really capture the idea of a redundant vector? The next theorem says that it does. Theorem. Vectors v one through v k, with k at least two, are linearly dependent exactly when at least one of them is a linear combination of the others. This proof goes in two directions, and it is worth following closely, so take it slowly, and feel free to pause or rewatch it.

First, suppose one vector is a combination of the others. We number the vectors so that this one comes last. Then v k equals d one v one plus, and so on, plus d k minus one, v k minus one. Now subtract v k from both sides, using the rules from lecture two. We get d one v one plus, and so on, plus d k minus one v k minus one, minus v k, equals zero. The weight on v k is minus one, which is not zero. So this is a dependence relation, and the vectors are dependent.

Now the other direction. Suppose the vectors are dependent. Then c one v one plus, and so on, plus c k v k equals zero, with at least one weight that is not zero. We number the vectors so that c k is not zero. We move the other terms to the right hand side. That gives c k v k equals minus c one v one, minus, and so on, minus c k minus one v k minus one. Since c k is not zero, we may divide by it, which means multiplying both sides by one over c k. So v k equals minus c one over c k times v one, and so on, up to minus c k minus one over c k, times v k minus one.

That writes v k as a combination of the others, and completes the proof. Notice where we used that the weight was not zero: we divided by it. That is exactly why the definition asks for weights that are not all zero. Careful. Dependence says that some vector is a combination of the others, not that every one is. For example, take (one, zero), (two, zero) and (zero, one). The second is twice the first, so the three are dependent. But the third is not a combination of the first two, since every combination of those has second entry zero. In the relation two times the first, minus the second, plus zero times the third, its weight is zero, so it cannot be solved for.

Small lists

Let's see what the definition says about small lists. Start with a single vector v. If v is not zero, then c v equals zero forces c to be zero, as we proved in lecture two. So a single nonzero vector is independent. But the zero vector on its own is dependent, because one times the zero vector is the zero vector, and the weight one is not zero.

In the same way, any list that contains the zero vector is dependent. Give the zero vector the weight one, and every other vector the weight zero. The combination is zero, and not every weight is zero. Two vectors are dependent exactly when one of them is a multiple of the other. That is our theorem with k equal to two. Geometrically, they are dependent when both lie on one line through the origin. For example, (one, two) and (two, four) are dependent, since the second is two times the first. A dependence relation is two times the first, minus the second, equals zero.

Let's check it coordinate by coordinate. In the first coordinate, two times one, minus two, is zero. In the second coordinate, two times two, minus four, is zero. But (one, two) and (three, one) are independent. Neither is a multiple of the other. To turn the first entry one into three, we would multiply by three, but three times two is six, not one. Two more facts follow straight from the definition. If a list is dependent, it stays dependent when we add more vectors: keep the same relation, and give the new vectors the weight zero.

And if a list is independent, then so is every list we get by deleting some of its vectors. A dependence relation among the vectors we keep would be a relation for the whole list, with zero weights on the deleted ones.

What independence looks like

What does independence look like? In the plane, two vectors are independent when they point along different lines. Then their span is the whole plane. So a third vector in the plane always lies in the span of the first two, and three vectors in the plane are always dependent. We will prove this in general in a few minutes. In R three, three vectors are dependent when they lie in one plane through the origin, like v one, v two and v three at the start. They are independent when they do not.

Here is a way to see independence one vector at a time. We add the vectors in order, and watch the span grow. The first vector must not be zero, so it spans a line. The second must leave that line, so the two span a plane. The third must leave that plane, and then the three span all of space. This is a theorem. Vectors v one through v k are independent exactly when v one is not zero, and each later vector is not in the span of the vectors before it.

Here is the idea of the proof. If a later vector lies in the span of the earlier ones, then it is a combination of the others, so the list is dependent by our theorem. Conversely, take a dependence relation, and look at the last vector with a nonzero weight. Solving for it, exactly as in the proof, puts it in the span of the vectors before it. If that vector is v one itself, the relation says c one v one is zero, so v one is zero. The book writes out every step. So independence means that every vector counts. Each one makes the span bigger, and leaving out any one of them would make the span smaller.

Testing with elimination

For larger lists, pictures are not enough. We need a test that always works. Take v one equal to (one, two, three), v two equal to (four, five, six), and v three equal to (seven, eight, nine). We look for weights with c one v one plus c two v two plus c three v three equal to the zero vector. Coordinate by coordinate, that is a system of three equations, in the three unknowns c one, c two and c three. Its coefficient matrix has the vectors as its columns, and its right hand side is all zeros. So the system is homogeneous, as in lecture ten, and it always has the trivial solution, with every weight zero.

The question is whether there are any other solutions. Row operations never change a column of zeros, so we can leave it out, and row reduce the matrix whose columns are v one, v two and v three. First, we replace row two by row two minus two times row one. In the first column, two minus two times one is zero. In the second, five minus two times four is minus three. In the third, eight minus two times seven is minus six. Next, we replace row three by row three minus three times row one. In the first column, three minus three times one is zero. In the second, six minus three times four is minus six. In the third, nine minus three times seven is minus twelve.

Finally, we replace row three by row three minus two times row two. In the first column, zero stays zero. In the second, minus six minus two times minus three is zero. In the third, minus twelve minus two times minus six is zero. The echelon form has pivots in the first two columns only. The third column has no pivot, so c three is a free variable. As we saw in lecture ten, a free variable means that the system has nontrivial solutions, so the vectors are dependent. To find a dependence relation, we choose a value for the free variable, say c three equals one. The second row says minus three c two minus six equals zero, so c two is minus two.

The first row says c one plus four times minus two, plus seven, equals zero. That is c one minus one equals zero, so c one is one. So v one minus two v two plus v three is the zero vector. Let's check it. In the first coordinate, one minus eight plus seven is zero. In the second, two minus ten plus eight is zero. In the third, three minus twelve plus nine is zero. This is what lecture nine promised. A dependence relation is a relation between the columns, and row operations keep every such relation. So in the echelon form, the third column is again minus the first column plus two times the second, exactly like v three.

Now a second example. Keep v one and v two, but replace the third vector by w, equal to (seven, eight, ten). Only its last entry differs from v three. The same row operations change only the third column. Eight minus two times seven is minus six, as before. Ten minus three times seven is minus eleven. And then minus eleven minus two times minus six is one. Now every column has a pivot. There is no free variable, so the only solution is the trivial one, and the vectors v one, v two and w are independent.

Here is the test in general. To decide whether v one through v k are independent, put them as the columns of a matrix, and bring it to echelon form. The vectors are independent exactly when every column is a pivot column. A column without a pivot gives a free variable, and with it a dependence relation.

Too many vectors

The test has a striking consequence. Suppose we have more vectors than entries in each vector, for example four vectors in R three. Then the matrix has three rows and four columns. Each pivot sits in its own row, so there are at most three pivots, and at least one column has no pivot. This is the theorem from lecture ten: a homogeneous system with more unknowns than equations always has a nontrivial solution. Theorem. If k is greater than n, then any k vectors in R n are linearly dependent.

For example, any three vectors in the plane are dependent, as the picture suggested. Take (one, zero), the vector (zero, one), and (two, three). The third is two times the first plus three times the second. In the first coordinate, two times one plus three times zero is two. In the second, two times zero plus three times one is three. Notice what the theorem does not say. Having at most n vectors does not make them independent. Our three vectors (one, two, three), the vector (four, five, six), and (seven, eight, nine) fit in R three, and they are still dependent.

With exactly n vectors in R n, the matrix is square, and the vectors are independent exactly when all n columns have pivots. In lecture seventeen, this condition joins a long list of equivalent ones, in the invertible matrix theorem. So R n has room for at most n independent vectors. That number will become the dimension of R n, in lecture twenty.

The field matters

Our definition used only addition, scalar multiples and the zero vector. So it makes sense over any field, and the elimination test works in the same way. But the field can change the answer. Take the vectors (one, one, zero), the vector (zero, one, one), and (one, zero, one). Over the real numbers, we row reduce the matrix with these columns. First, row two minus row one. In the first column, one minus one is zero. In the second, one minus zero is one. In the third, zero minus one is minus one.

Then, row three minus row two. In the first column, zero minus zero is zero. In the second, one minus one is zero. In the third, one minus minus one is two. There are three pivots, so over the real numbers these vectors are independent. Now work in Z two, where one plus one is zero, and add the three vectors. In the first coordinate, one plus zero plus one is two, 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 over Z two, the three vectors add up to the zero vector, with every weight equal to one. That is a dependence relation, so over Z two they are dependent. In the elimination, the last pivot, two, becomes zero.

So whenever we say independent, we should know which field the weights come from. In this course, it is the real numbers unless we say otherwise.

Summary

Let's summarise. Vectors are linearly independent when the only combination of them that gives the zero vector is the trivial one, with every weight zero. They are dependent exactly when one of them is a combination of the others, so that it adds nothing to the span. To test a list of vectors, put them as the columns of a matrix and row reduce. They are independent exactly when every column has a pivot. In particular, more than n vectors in R n are always dependent.

Geometrically, each vector of an independent list adds a new direction. Two independent vectors span a plane, and three span all of space. In lecture twelve, we write a combination of the columns of a matrix A as a product, A times x. Then our test becomes a question about the equation A x equals zero. That completes chapter two. Before the next lecture, read section two point six of the course book, try the independence problems on sheet three, and do the lecture check on this lecture's page at Open Semester dot com. Next time, in lecture twelve, we meet the matrix-vector product. See you there.

In this lecture

  1. Redundant vectors
  2. The definition
  3. Dependent means one vector is redundant
  4. Small lists
  5. What independence looks like
  6. Testing with elimination
  7. Too many vectors
  8. The field matters
  9. 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.

  1. Question 1 of 3 Warm-up

    Let and . Find the scalar with . Are and linearly independent or linearly dependent?

    They are
    Hint 1 of 2

    Two vectors are dependent exactly when one of them is a scalar multiple of the other (Proposition 2.6.5(c)).

    Hint 2 of 2

    Compare the first entries: . Then check that the same works for the second entries.

    Worked solution
    1. First entries: , so . Second entries: , which matches.
    2. So , and is a linear dependence relation (check: ).
    3. The weights and are not both zero, so and are linearly dependent. Both lie on one line through the origin.
  2. Question 2 of 3 Core

    Let , and . Row reduce the matrix with these columns. How many pivot columns does its echelon form have? Then set and find the weights with .

    Hint 1 of 2

    Put the vectors in as columns: . Clear the first column with and .

    Hint 2 of 2

    Both new rows are , so gives a zero row. With , row 2 says ; then use row 1.

    Worked solution
    1. The matrix with columns is .
    2. : . : .
    3. : . The echelon form has pivots in columns 1 and 2: two pivot columns.
    4. Column 3 has no pivot, so is free and the vectors are dependent (Theorem 2.6.8). Set .
    5. Row 2: , so . Row 1: , so and .
    6. So . Check: .
  3. Question 3 of 3 Stretch

    Let , and , as in the lecture but with an unknown last entry . For which value of are linearly dependent?

    Hint 1 of 2

    Use the same row operations as in the lecture: , , then . Only the third column changes with .

    Hint 2 of 2

    The third column becomes , then , then , and finally . When is that last entry zero?

    Worked solution
    1. Put the vectors as the columns of a matrix. The first two columns row reduce exactly as in the lecture, to and , with pivots and .
    2. Third column: gives ; gives ; gives .
    3. The echelon form is . The third column has a pivot exactly when .
    4. So the vectors are dependent exactly when , that is, when , and then . For every other they are independent.

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