Skip to main content

Section 6 Linear Dependence and Independence

Subsection Application: Bézier Curves

Bézier curves are simple curves that were first developed in 1959 by French mathematician Paul de Casteljau, who was working at the French automaker Citroën. The curves were made public in 1962 by Pierre Bézier who used them in his work designing automobiles at the French car maker Renault. In addition to automobile design, Bézier curves have many other uses. Two of the most common applications of Bézier curves are font design and drawing tools. As an example, the letter “S” in Palatino font is shown using Bézier curves in Figure 6.1. If you've used Adobe Illustrator, Photoshop, Macromedia Freehand, Fontographer, or any other of a number of drawing programs, then you've used Bézier curves. At the end of this section we will see how Bézier curves can be defined using linearly independent vectors and linear combinations of vectors.

Figure 6.1. A letter S.

Subsection Introduction

In Section 4 we saw how to represent water-benzene-acetic acid chemical solutions with vectors, where the components represent the water, benzene and acid percentages. We then considered a problem of determining if a given chemical solution could be made by mixing other chemical solutions. Suppose we now have three different water-benzene-acetic acid chemical solutions, one with 40% water, 50% benzene and 10% acetic acid, the second with 52% water, 42% benzene and 6% acid, and a third with 46% water, 46% benzene and 8% acid. We represent the first chemical solution with the vector v1=[405010], the second with the vector v2=[52426], and the third with the vector v3=[46468]. By combining these three chemical solutions we can make a chemical solution with 43% water, 48% benzene and 9% acid as follows

712v1+112v2+13v3=[43489].

However, if we had noticed that the third chemical solution can actually be made from the first two, that is,

12v1+12v2=v3,

we might have realized that we don't need the third chemical solution to make the 43% water, 48% benzene and 9% acid chemical solution. In fact,

34v1+14v2=[43489].

(See Exercise 5 of Section 4.) Using the third chemical solution (represented by v3) uses more information than we actually need to make the desired 43% water, 48% benzene and 9% acid chemical solution because the vector v3 is redundant — all of the material we need to make v3 is contained in v1 and v2. This is the basic idea behind linear independence — representing information in the most efficient way.

Information is often contained in and conveyed through vectors — especially linear combinations of vectors. In this section we will investigate the concepts of linear dependence and independence of a set of vectors. Our goal is to be able to efficiently determine when a given set of vectors forms a minimal spanning set. A minimal spanning set is a spanning set that contains the smallest number of vectors to obtain all of the vectors in the span. An important aspect of a minimal spanning set is that every vector in the span can be written in one and only one way as a linear combination of the vectors in the minimal spanning set. This will allow us to define the important notion of the dimension of a vector space.

Review of useful information.

Recall that a linear combination of vectors v1, v2, , vk in Rn is a sum of scalar multiples of v1, v2, , vk. That is, a linear combination of the vectors v1, v2, , vk is a vector of the form

c1v1+c2v2++ckvk,

where c1, c2, , ck are scalars.

Recall also that the collection of all linear combinations of a set {v1, v2, , vk} of vectors in Rn is called the span of the set of vectors. That is, the span Span{v1,v2,,vk} of the set v1, v2, , vk of vectors in Rn is the set

{c1v1+c2v2++ckvk: where c1,c2,,ck are scalars }.

For example, a linear combination of vectors v1=[112] and v2=[021] is 2v13v2=[281]. All linear combinations of these two vectors can be expressed as the collection of vectors of the form [c1c12c22c1+c2] where c1,c2 are scalars. Suppose we want to determine whether w=[123] is in the span, in other words if w is a linear combination of v1,v2. This means we are looking for c1,c2 such that

[c1c12c22c1+c2]=[123].

we solve for the system represented with the augmented matrix

[101122213].

By reducing this matrix, we find that there are no solutions of the system, which implies that w is not a linear combination of v1,v2. Note that we can use any names we please for the scalars, say x1,x2, if we prefer.

Preview Activity 6.1.

Let v1=[213], v2=[110], and v3=[116], and let b=[013]. If b is in Span{v1,v2,v3}, we are interested in the most efficient way to represent b as a linear combination of v1, v2, and v3.

(a)

The vector b is in Span{v1,v2,v3} if there exist x1, x2, and x3 so that

x1v1+x2v2+x3v3=b.

(Recall that we can use any letters we want for the scalars. They are simply unknown scalars we want to solve for.)

(i)

Explain why b is in Span{v1,v2,v3}.

Hint.

What is the matrix we need to reduce?

(ii)

Write b as a linear combination of v1, v2, and v3. In how many ways can b be written as a linear combination of the vectors v1, v2, and v3? Explain.

(b)

In Task 6.1.a we saw that the vector b could be written in infinitely many different ways as linear combinations of v1, v2, and v3. We now ask the question if we really need all of the vectors v1, v2, and v3 to make b as a linear combination in a unique way.

(i)

Can the vector b be written as a linear combination of the vectors v1 and v2? If not, why not? If so, in how many ways can b be written as a linear combination of v1 and v2? Explain.

(ii)

If possible, write b as a linear combination of v1 and v2.

(c)

In Task 6.1.a we saw that b could be written in infinitely many different ways as a linear combination of the vectors v1, v2, and v3. However, the vector b could only be written in one way as a linear combination of v1 and v2. So b is in Span{v1,v2,v3} and b is also in Span{v1,v2}. This raises a question — is any vector in Span{v1,v2,v3} also in Span{v1,v2}. If so, then the vector v3 is redundant in terms of forming the span of v1, v2, and v3. For the sake of efficiency, we want to recognize and eliminate this redundancy.

(i)

Can v3 be written as a linear combination of the vectors v1 and v2? If not, why not? If so, write v3 as a linear combination of v1 and v2.

(ii)

Use the result of part (a) to decide if any vector in Span{v1,v2,v3} is also in Span{v1,v2}.

Subsection Linear Independence

In this section we will investigate the concepts of linear independence of a set of vectors. Our goal is to be able to efficiently determine when a given set of vectors forms a minimal spanning set. This will involve the concepts of span and linear independence. Minimal spanning sets are important in that they provide the most efficient way to represent vectors in a space, and will later allow us to define the dimension of a vector space.

In Preview Activity 6.1 we considered the case where we had a set {v1,v2,v3} of three vectors, and the vector v3 was in the span of {v1,v2}. So the vector v3 did not add anything to the span of {v1,v2}. In other words, the set {v1,v2,v3} was larger than it needed to be in order to generate the vectors in its span — that is, Span{v1,v2,v3}=Span{v1,v2}. However, neither of the vectors in the set {v1,v2} could be removed without changing its span. In this case, the set {v1,v2} is what we will call a minimal spanning set or basis for SpanS. There are two important properties that make {v1,v2} a basis for SpanS. The first is that every vector in SpanS can be written as linear combinations of v1 and v2 (we also use the terminology that the vectors v1 and v2 span SpanS), and the second is that every vector in SpanS can be written in exactly one way as a linear combination of v1 and v2. This second property is the property of linear independence, and it is the property that makes the spanning set minimal.

To make a spanning set minimal, we want to be able to write every vector in the span in a unique way in terms of the spanning vectors. Notice that the zero vector can always be written as a linear combination of any set of vectors using 0 for all of the weights. So to have a minimal or linearly independent spanning set, that is, to have a unique representation for each vector in the span, it will need to be the case that the only way we can write the zero vector as a linear combination of a set of vectors is if all of the weights are 0. This leads us to the definition of a linearly independent set of vectors.

Definition 6.2.

A set {v1,v2,,vk} of vectors in Rn is linearly independent if the vector equation

x1v1+x2v2++xkvk=0

for the scalars x1,x2,,xk has only the trivial solution

x1=x2=x3=xk=0.

If a set is not linearly independent, then the set is linearly dependent.

Alternatively, we say that the vectors v1,v2,,vk are linearly independent (or dependent) if the set {v1,v2,,vk} is linearly independent (or dependent).

Note that the definition tells us that a set {v1,v2,,vk} of vectors in Rn is linearly dependent if there are scalars x1,x2,,xn, not all of which are 0 so that

x1v1+x2vs++xkvk=0.

Activity 6.2.

Which of the following sets in R2 or R3 is linearly independent and which is linearly dependent? Why? For the linearly dependent sets, write one of the vectors as a linear combination of the others, if possible.

(a)

S1={[201],[281],[480]}

(b)

S2={[121],[023]}

Hint.

What relationship must exist between two vectors if they are linearly dependent?

(c)

The vectors u, v, and w as shown in Figure 6.3.

Figure 6.3. Vectors u, v, and w.

Task 6.2.a and Task 6.2.c illustrate how we can write one of the vectors in a linearly dependent set as a linear combination of the others. This would allow us to write at least one of the vectors in the span of the set in more than one way as a linear combination of vectors in this set. We prove this result in general in the following theorem.

The next activity is intended to help set the stage for the proof of Theorem 6.4.

Activity 6.3.

The statement of Theorem 6.4 is a bi-conditional statement (an if and only if statement). To prove this statement about the set S we need to show two things about S. One: we must demonstrate that if S is a linearly dependent set, then at least one vector in S is a linear combination of the other vectors (this is the “only if” part ofthe biconditional statement) and Two: if at least one vector in S is a linear combination of the others, then S is linearly dependent (this is the “if” part of the biconditional statement). We illustrate the main idea of the proof using a three vector set S={v1,v2,v3}.

(a)

First let us assume that S is a linearly dependent set and show that at least one vector in S is a linear combination of the other vectors. Since S is linearly dependent we can write the zero vector as a linear combination of v1, v2, and v3 with at least one nonzero weight. For example, suppose

(6.1)2v1+3v2+4v3=0

Solve Equation (6.1) for the vector v2 to show that v2 can be written as a linear combination of v1 and v3. Conclude that v2 is a linear combination of the other vectors in the set S.

(b)

Now we assume that at least one of the vectors in S is a linear combination of the others. For example, suppose that

(6.2)v3=v1+5v2.

Use vector algebra to rewrite Equation (6.2) so that 0 is expressed as a linear combination of v1, v2, and v3 such that the weight on v3 is not zero. Conclude that the set S is linearly dependent.

Now we provide a formal prof of Theorem 6.4, using the ideas from Activity 6.3.

Proof of Theorem 6.4.

Let s={v1,v2,,vk} be a set of vectors in Rn. We will begin by verifying the first statement.

We assume that S is a linearly dependent set and show that at least one vector in S is a linear combination of the others. Since S is linearly dependent, there are scalarc x1,x2,,xn, not all of which are 0, so that

(6.3)x1v1+x2v2++xkvk=0.

We don't know which scalar(s) are not zero, but there is at least one. So let us assume that xi is not zero for some i between 1 and k. we can then subtract xivi from both sides of Equation (6.3) and divide by xi to obtain

vi=x1xiv1+x2xiv2++xi1xivi1+xi+1xivi+1+xi+2xivi+2++xkxivk.

Thus, the vector vi is a linear combination of v1, v2, , vi1, vi+1, , vk, and at least one of the vectors in Sis a linear combination of the other vectors in S.

To verify the second statement, we assume that at least one of the vectors in S can be written as a linear combination of the others and show that S is then a linearly dependent set. We don't know which vector(s) in S can be written as a linear combination of the others, but there is at least one. Let us suppose that vi is a linear combination of the others, but there is at least one. Let us suppose that vi is a linear combination of the vectors v1, v2, , vi1, vi+1, , vk, for some i between 1 and k. Then there exist scalars x1, x2, , xi1, xi+1, , xn so that

vi=x1v1+x2v2++xi1vi1+xi+1vi+1+xi+2vi+2++xkvk.

It follows that

0=x1v1+x2v2++xi1vi1+(1)vi+xi+1vi+1+xi+2vi+2++xkvk.

So there are scalars x1, x2, , xn (with xi=1), not all of which are 0, so that

x1v1+x2v2++xkvk=0.

This makes S a linearly dependent set.

With a linearly dependent set, at least one of the vectors in the set is a linear combination of the others. With a linearly independent set, this cannot happen — no vector in the set can be written as a linear combination of the others. This result is given in the next theorem. You may be able to see how Theorem 6.4 and Theorem 6.5 are logically equivalent.

Activity 6.4.

As was hinted at in Preview Activity 6.1, an important consequence of a linearly independent set is that every vector in the span of the set can be written in one and only one way as a linear combination of vectors in the set. It is this uniqueness that makes linearly independent sets so useful. We explore this idea in this activity for a linearly independent set of three vectors. Let S={v1,v2,v3} be a linearly independent set of vectors in Rn for some n, and let b be a vector in SpanS. To show that b can be written in exactly one way as a linear combination of vectors in S, we assume that

b=x1v1+x2v2+x3v3   and   b=y1v1+y2v2+y3v3

for some scalars x1, x2, x3, y1, y2, and y3. We need to demonstrate that x1=y1, x2=y2, and x3=y3.

(a)

use the two different ways of writing b as a linear combination of v1, v2, and v3 to come up with a linear combination expressing 0 as a linear combination of these vectors.

(b)

Use the linear independence of the vectors v1, v2, and v3 to explain why x1=y1, x2=y2, and x3=y3.

Activity 6.4 contains the general ideas to show that any vector in the span of a linearly independent set can be written in one and only one way as a linear combination of the vectors in the set. The weights of such a linear combination provide us a coordinate system for the vectors in terms of the basis. Two familiar concepts of coordinate systems are the Cartesian coordinates and xy-plane, and xyz-space. We will revisit the coordinate system idea in a later chapter.

In the next theorem we state and prove the general case of any number of linearly independent vectors productin unique representations as linear combinations.

Proof.

Let S={v1,v2,,vk} be a linearly independent set of vectors in Rn and let b be a vector in SpanS. By definition, it follows that b can be written as a linear combination of the vectors in S. It remains for us to show that this representation is unique. So assume that

(6.4)b=x1v1+x2v2++xkvk   and   b=y1v1+y2v2++ykvk

for some scalars x1, x2, , xk and y1, y2, , yk. Then

x1v1+x2v2++xkvk=y1v1+y2v2++ykvk.

Subtracting all terms from the right side and using a little vector algebra gives us

(x1y1)v1+(x2y2)v2++(xkyk)vk=0.

The fact that S is a linearly independent set implies that

x1y1=0, x2y2=0, , xkyk=0,

showing that xi=yi for every i between 1 and k. We conclude that the representation of b as a linear combination of the linearly independent vectors in S is unique.

Subsection Determining Linear Independence

The definition and our previous work give us a straightforward method for determining when a set of vectors in Rn is linearly independent or dependent.

Activity 6.5.

In this activity we learn how to use a matrix to determine in general if a set of vectors in Rn is linearly independent or dependent. Suppose we have k vectors v1, v2, , vk in Rn. To see if these vectors are linearly independent, we need to find the solutions to the vector equation

(6.5)x1v1+x2v2++xkvk=0.

If we let A=[v1 v2 v3  vk] and x=[x1x2xk], then we can write the vector equation (6.5) in matrix form Ax=0. Let B be the reduced row echelon form of A.

(a)

What can we say about the pivots of B in order for Ax=0 to have exactly one solution? Under these conditions, are the vectors v1, v2, , vk linearly independent or dependent?

(b)

What can we say about the rows or columns of B in order for Ax=0 to have infinitely many solutions? Under these conditions, are the vectors v1, v2, , vk linearly independent or dependent?

(c)

Use the result of parts (a) and (b) to determine if the vectors v1=[1120], v2=[1023], and v3=[0021] in R4 are linearly independent or dependent. If dependent, write one of the vectors as a linear combination of the others. You may use the fact that the matrix [110100222031] is row equivalent to [100010001000].

Subsection Minimal Spanning Sets

It is important to note the differences and connections between linear independence, span, and minimal spanning set.

  • The set S={[100],[010]} is not a minimal spanning set for R3 even though S is a linearly independent set. Note that S does not span R3 since the vector [001] is not in Span S.

  • The set T={[100],[010],[001],[111]} is not a minimal spanning set for R3 even though Span T=R3. Note that

    [111]=[100]+[010]+[001],

    so T is not a linearly independent set.

  • The set U={[100],[010],[001]} is a minimal spanning set for R3 since it satisfies both characteristics of a minimal spanning set: Span U=R3 AND U is linearly independent.

The three concepts — linear independence, span, and minimal spanning set — are different. The important point to note is that minimal spanning set must be both linearly independent and span the space.

To find a minimal spanning set we will often need to find a smallest subset of a given set of vectors that has the same span as the original set of vectors. In this section we determine a method for doing so.

Activity 6.6.

Let v1=[102], v2=[204], v3=[013], and v4=[3418] in R3. Assume that the reduced row echelon form of the matrix A=[1203001424318] is [120300140000].

(a)

Write the general solution to the homogeneous system Ax=0, where x=[x1x2x3x4]. Write all linear combinations of v1, v2, v3, and v4 that are equal to 0, using weights that only involve x2 and x4.

(b)

Explain how we can conveniently choose the weights in the general solution to Ax=0 to show that the vector v4 is a linear combination of v1, v2, and v3. What does this tell us about Span{v1,v2,v3} and Span{v1,v2,v3,v4}?

(c)

Explain how we can conveniently choose the weights in the general solution to Ax=0 to show why the vector v2 is a linear combination of v1 and v3. What does this tell us about Span{v1,v3} and Span{v1,v2,v3}?

(d)

Is {v1,v3} a minimal spanning set for Span{v1,v2,v3,v4}? Explain your response.

Activity 6.6 illustrates how we can use a matrix to determine a minimal spanning set for a given set of vectors {v1,v2,,vk} in Rn.

  • Form the matrix A=[v1 v2  vk].

  • Find the reduced row echelon form [B | 0] of [A | 0]. If B contains non-pivot columns, say for example that the ith column is a non-pivot column, then we can choose the weight xi corresponding to the ith column to be 1 and all weights corresponding to the other non-pivot columns to be 0 to make a linear combination of the columns of A that is equal to 0. This allows us to write vi as a linear combination of the vectors corresponding to the pivot columns of A as we did in the proof of Theorem 6.5. So every vector corresponding to a non-pivot column is in the span of the set of vectors corresponding to the pivot columns. The vectors corresponding to the pivot columns are linearly independent, since the matrix with those columns has every column as a pivot column. Thus, the set of vectors corresponding to the pivot columns of A forms a minimal spanning set for {v1,v2,,vk}.

IMPORTANT NOTE.

The set of pivot columns of the reduced row echelon form of A will normally not have the same span as the set of columns of A, so it is critical that we use columns of A, not B in our minimal spanning set.

Activity 6.7.

Find a minimal spanning set for the span of the set

{[1100],[2300],[0120],[4100]}.

Activity 6.6 also illustrates a general process by which we can find a minimal spanning set — that is the smallest subset of vectors that has the same span. This process will be useful later when we consider vectors in arbitrary vector spaces. The idea is that if we can write one of the vectors in a set S as a linear combination of the remaining vectors, then we can remove that vector from the set and maintain the same span. In other words, begin with the span of a set S and follow these steps:

Step 1

If S is a linearly independent set, we already have a minimal spanning set.

Step 2

If S is not a linearly independent set, then one of the vectors in S is a linear combination of the others. Remove that vector from S to obtain a new set T. It will be the case that Span T=Span S.

Step 3

If T is a linearly independent set, then T is a minimal spanning set. If not, repeat steps 2 and 3 for the set T until you arrive at a linearly independent set.

This process is guaranteed to stop as long as the set contains at least one nonzero vector. A verification of the statement in Step 2 that Span T=Span S is given in the next theorem.

Proof.

Let {v1,v2,,vk} be a set of vectors in Rn so that vi is in the span of v1, v2, , vi1, vi+1, , and vk for some i between 1 and k. To show that

Span{v1,v2,,vk}=Span{v1,,vi1,vi+1,,vk},

we need to show that

  1. every vector in Span{v1,v2,,vk} is in Span{v1,,vi1,vi+1,,vk}, and

  2. every vector in Span{v1,,vi1,vi+1,,vk} is in Span{v1,,vk}.

Let us consider the second containment. Let x be a vector in the span of v1, v2, , vi1, vi+1, , and vk. Then

x=x1v1+x2v2++xi1vi1+xi+1vi+1++xkvk

for some scalars x1, x2, , xi1, xi+1, , xk. Note that

x=x1v1+x2v2++xi1vi1+(0)vi+xi+1vi+1++xkvk

as well, so x is in Span{v1,v2,,vk}. Thus,

Span{v1,v2,,vi1,vi+1,,vk}Span{v1,v2,,vk}.

(This same argument shows a more general statement that if S is a subset of T, then Span SSpan T.)

Now we demonstrate the first containment. Here we need the assumption that vi is in Span{v1, v2, , vi1, vi+1, , vk} for some i between 1 and k. That assumption gives us

(6.6)vi=c1v1+c2v2++ci1vi1+ci+1vi+1++ckvk

for some scalars c1, c2, , ci1, ci+1, , ck. Now let x be a vector in the span of v1, v2, , vk. Then

x=x1v1+x2v2++xkvk

for some scalars x1, x2, , xk. Substituting from (6.6) shows that

x=x1v1+x2v2++xkvk=x1v1+x2v2++xi1vi1+xivi+xi+1vi+1++xkvk=x1v1+x2v2++xi1vi1+xi[c1v1+c2v2++ci1vi1+ci+1vi+1++ckvk]+xi+1vi+1++xkvk=(x1+xic1)v1+(x2+xic2)v2++(xi1+xici1)vi1+(xi+1+xici+1)vi+1+(xk+xick)vk.

So x is in Span{v1,v2,,vi1,vi+1,,vk} and

Span{v1,v2,,vk}Span{v1,v2,,vi1,vi+1,,vk}.

Since the two sets are subsets of each other, they must be equal sets. We conclude that

Span{v1,v2,,vk}=Span{v1,v2,,vi1,vi+1,,vk}.

The result of Theorem 6.7 is that if we have a finite set S of vectors in Rn, we can eliminate those vectors that are linear combinations of others until we obtain a smallest set of vectors that still has the same span. As mentioned earlier, we call such a minimal spanning set a basis.

Definition 6.8.

Let S be a set of vectors in Rn. A subset B of S is a basis for Span S if B is linearly independent and Span B=Span S.

IMPORTANT NOTE.

A basis is defined by two characteristics. A basis must span the space in question and a basis must be a linearly independent set. It is the linear independence that makes a basis a minimal spanning set.

We have worked with a familiar basis in R2 throughout our mathematical careers. A vector [ab] in R2 can be written as

[ab]=a[10]+b[01].

So the set {e1,e2}, where e1=[10] and e2=[01] spans R2. Since the columns of [e1 e2] are linearly independent, so is the set {e1,e2}. Therefore, the set {e1,e2} is a basis for R2. The vector e1 is in the direction of the positive x-axis and the vector e2 is in the direction of the positive y-axis, so decomposing a vector [ab] as a linear combination of e1 and e2 is akin to identifying the vector with the point (a,b) as we discussed earlier. The set {e1,e2} is called the standard basis for R2.

This idea is not restricted to R2. Consider the vectors

e1=[10000], e2=[01000], , en=[00001]

in Rn. That is, the vector ei is the vector with a 1 in the ith position and 0s everywhere else. Since the matrix [e1 e2  en] has a pivot in each row and column, the set {e1,e2,,en} is a basis for Rn. The set {e1,e2,,en} is called the standard basis for Rn.

As we will see later, bases 12  are of fundamental importance in linear algebra in that bases will allow us to define the dimension of a vector space and will provide us with coordinate systems.

We conclude this section with an important theorem that is similar to Theorem 5.3.

Subsection Examples

What follows are worked examples that use the concepts from this section.

Example 6.10.

Let v1=[1201], v2=[0615], v3=[3627], and v4=[5225].

(a)

Is the set S={v1,v2,v3,v4} linearly independent or dependent. If independent, explain why. If dependent, write one of the vectors in S as a linear combination of the other vectors in S.

Solution.

We need to know the solutions to the vector equation

x1v1+x2v2+x3v3+x4v4=0.

If the equation has as its only solution x1=x2=x3=x4=0 (the trivial solution), then the set S is linearly independent. Otherwise the set S is linearly dependent. To find the solutions to this system, we row reduce the augmented matrix

[10350266200122015750].

(Note that we really don't need the augmented column of zeros — row operations won't change that column at all. We just need to know that the column of zeros is there.) Technology shows that the reduced row echelon form of this augmented matrix is

[10350012200000000000].

The reduced row echelon form tells us that the vector equation is consistent, and the fact that there is no pivot in the fourth column shows that the system has a free variable and more than just the trivial solution. We conclude that S is linearly dependent. Moreover, the general solution to our vector equation is

x1=3x35x4x2=2x3+2x4x3 is free x4 is free .

Letting x4=0 and x3=1 shows that one non-trivial solution to our vector equation is

x1=3, x2=2, x3=1,  and  x4=0.

Thus,

3v1+2v2+v3=0,

or

v3=3v12v2

and we have written one vector in S as a linear combination of the other vectors in S.

(b)

Find a subset B of S that is a basis for Span S. Explain how you know you have a basis.

Solution.

We have seen that the pivot columns in a matrix A form a minimal spanning set (or basis) for the span of the columns of A. From part (a) we see that the pivot columns in the reduced row echelon form of A=[v1 v2 v3 v4] are the first and second columns. So a basis for the span of the columns of A is {v1,v2}. Since the elements of S are the columns of A, we conclude that the set B={v1,v2} is a subset of S that is a basis for Span S.

Example 6.11.

Let v1=[110], v2=[372], and v3=[5610].

(a)

Is the set S={v1,v2,v3} a basis for R3? Explain.

Solution.

We need to know if the vectors in S are linearly independent and span R3. Technology shows that the reduced row echelon form of

A=[1351760210]

is

[100010001].

Since every column of [v1 v2 v3] is a pivot column, the set {v1,v2,v3} is linearly independent. The fact that there is a pivot in every row of the matrix A means that the equation Ax=b is consistent for every b in R3. Since Ax is a linear combination of the columns of A with weights from x, tt follows that the columns of A span R3. We conclude that the set S is a basis for R3.

(b)

Let v4=[56h], where h is a scalar. Are there any values of h for which the set S={v1,v2,v4} is not a basis for R3? If so, find all such values of h and explain why S is not a basis for R3 for those values of h.

Solution.

Technology shows that a row echelon form of A=[v1 v2 v4] is

[1000101100h+115].

The columns of A are all pivot columns (hence linearly independent) as long as h115, and are linearly dependent when h=115. So the only value of h for which S is not a basis for R3 is h=115.

Subsection Summary

  • A set {v1,v2,,vk} of vectors in Rn is linearly independent if the vector equation

    x1v1+x2v2++xkvk=0

    for scalars x1,x2,,xk has only the trivial solution

    x1=x2=x3==xk=0.

    Another way to think about this is that a set of vectors is linearly independent if no vector in the set can be written as a linear combination of the other vectors in the set.

  • A set {v1,v2,,vk} of vectors in Rn is linearly dependent if the vector equation

    x1v1+x2v2++xkvk=0

    has a nontrivial solution. That is, we can find scalars x1,x2,,xk that are not all 0 so that

    x1v1+x2v2++xkvk=0.

    Another way to think about this is that a set of vectors is linearly dependent if at least one vector in the set can be written as a linear combination of the other vectors in the set.

  • If S is a set of vectors, a subset B of S is a basis for Span S if B is a linearly independent set and Span B=Span S.

  • Given a nonzero set S of vectors, we can remove vectors from S that are linear combinations of remaining vectors in S to obtain a linearly independent subset of S that has the same span as S.

  • The columns of a matrix A are linearly independent if the equation Ax=0 has only the trivial solution x=0.

  • The set {v1,v2,,vk} is linearly independent if and only if every column of the matrix A=[v1 v2 v3  vk], is a pivot column.

  • If A=[v1 v2 v3  vk], then the vectors in the pivot columns of A form a minimal spanning set for Span{v1,v2,,vk}.

Exercises Exercises

1.

Consider the following vectors in R3:

v1=[111],v2=[121],v3=[131]

Is the set consisting of these vectors linearly independent? If so, explain why. If not, make a single change in one of the vectors so that the set is linearly independent.

2.

Consider the following vectors in R3:

v1=[121],v2=[112],v3=[11c]

For which values of c is the set consisting of these vectors linearly independent?

3.

In a lab, there are three different water-benzene-acetic acid solutions: The first one with 36% water, 50% benzene and 14% acetic acid; the second one with 44% water, 46% benzene and 10% acetic acid; and the last one with 38% water, 49% benzene and 13% acid. Since the lab needs space, the lab coordinator wants to determine whether all solutions are needed, or if it is possible to create one of the solutions using the other two. Can you help the lab coordinator?

4.

Given vectors v1=[123] and v2=[021], find a vector v3 in R3 so that the set consisting of v1,v2 and v3 is linearly independent.

5.

Consider the span of S={v1,v2,v3,v4} where

v1=[1114],v2=[2103],v3=[3211],v4=[3316].
(a)

Is the set S a minimal spanning set of Span S? If not, determine a minimal spanning set, i.e. a basis, of Span S.

(b)

Check that the vector u=[6521] is in Span S. Find the unique representation of u in terms of the basis vectors.

6.

Come up with a 4×3 matrix with linearly independent columns, if possible. If not, explain why not.

7.

Come up with a 3×4 matrix with linearly independent columns, if possible. If not, explain why not.

8.

Give an example of vectors v1,v2,v3 such that a minimal spanning set for Span{v1,v2,v3} is equal to that of Span{v1,v2}; and an example of three vectors v1,v2,v3 such that a minimal spanning set for Span{v1,v2,v3} is equal to that of Span{v1,v3}.

9.

Label each of the following statements as True or False. Provide justification for your response.

(a) True/False.

If v1, v2 and v3 are three vectors none of which is a multiple of another, then these vectors form a linearly independent set.

(b) True/False.

If v1, v2 and v3 in Rn are linearly independent vectors, then so are v1, v2, v3 and v4 for any v4 in Rn.

(c) True/False.

If v1, v2, v3 and v4 in Rn are linearly independent vectors, then so are v1, v2 and v3.

(d) True/False.

A 3×4 matrix cannot have linearly independent columns.

(e) True/False.

If two vectors span R2, then they are linearly independent.

(f) True/False.

The space R3 cannot contain four linearly independent vectors.

(g) True/False.

If two vectors are linearly dependent, then one is a scalar multiple of the other.

(h) True/False.

If a set of vectors in Rn is linearly dependent, then the set contains more than n vectors.

(i) True/False.

The columns of a matrix A are linearly independent if the equation Ax=0 has only the trivial solution.

(j) True/False.

Let W=Span{v1,v2,v3,v4}. If {v1,v2,v3} is a minimal spanning set for W, then {v1,v2,v4} cannot also be a minimal spanning set for W.

(k) True/False.

Let W=Span{v1,v2,v3,v4}. If {v1,v2,v3} is a minimal spanning set for W, then {v1,v2} cannot also be a minimal spanning set for W.

(l) True/False.

If v3=2v13v2, then {v1,v2} is a minimal spanning set for Span{v1,v2,v3}.

Subsection Project: Generating Bézier Curves

Bézier curves can be created as linear combinations of vectors. In this section we will investigate how cubic Bézier curves (the ones used for fonts) can be realized through linear and quadratic Bézier curves. We begin with linear Bézier curves.

Project Activity 6.8.

Start with two vectors p0 and p1. Linear Bézier curves are linear combinations

q=(1t)p0+tp1

of the vectors p0 and p1 for scalars t between 0 and 1. (You can visualize these linear combinations using the GeoGebra file Linear Bezier at geogebra.org/m/HvrPhh86. With this file you can draw the vectors q for varying values of t. You can move the points p0 and p1 in the GeoGebra file, and the slider controls the values of t. The point identified with q is traced as t is changed.) For this activity, we will see what the curve q corresponds to by evaluating certain points on the curve in a specific example. Let p0=[21] and p1=[63].

(a)

What are the components of the vector (1t)p0+tp1 if t=12? Where is this vector in relation to p0 and p1? Explain.

(b)

What are the components of the vector (1t)p0+tp1 if t=13? Where is this vector in relation to p0 and p1? Explain.

(c)

What are the components of the vector (1t)p0+tp1 for an arbitrary t? Where is this vector in relation to p0 and p1? Explain.

For each value of t, the vector q=(1t)p0+tp1 is a linear combination of the vectors p0 and p1. Note that when t=0, we have q=p0 and when t=1 we have q=p1, and for 0t1 Project Activity 6.8 shows that the vectors q trace out the line segment from p0 to p1. The span {(1t)p0+tp1} of the vectors p0 and p1 for 0t1 is a linear Bézier curve. Once we have a construction like this, it is natural in mathematics to extend it and see what happens. We do that in the next activity to construct quadratic Bézier curves.

Project Activity 6.9.

Let p0, p1, and p2 be vectors in the plane. We can then let

q0=(1t)p0+tp1   and   q1=(1t)p1+tp2

be the linear Bézier curves as defined in Project Activity 6.8. Since q0 and q1 are vectors, we can define r as

r=(1t)q0+tq1.

(You can visualize these linear combinations using the GeoGebra file Quadratic Bezier at geogebra.org/m/VWCZZBXz. With this file you can draw the vectors r for varying values of t. You can move the points p0, p1, and p2 in the GeoGebra file, and the slider controls the values of t. The point identified with r is traced as t is changed.) In this activity we investigate how the vectors r change as t changes. For the remainder of this activity, let p0=[23], p1=[84], and p2=[63].

(a)

At what point (in terms of p0, p1, and p2) is the vector r=(1t)q0+tq1 when t=0? Explain using the definition of r.

(b)

At what point (in terms of p0, p1, and p2) is the vector r=(1t)q0+tq1 when t=1? Explain using the definition of r.

(c)

Find by hand the components of the vector (1t)q0+tq1 with t=14. Compare with the result of the GeoGebra file.

The span {(1t)q0+tq1} of the vectors q0 and q1, or the set of points traced out by the vectors r for 0t1, is a quadratic Bézier curve. To understand why this curve is called quadratic, we examine the situation in a general context in the following activity.

Project Activity 6.10.

Let p0, p1, and p2 be arbitrary vectors in the plane. Write r=(1t)q0+tq1 as a linear combination of p0, p1, and p2. That is, write r in the form a0p0+a1p1+a2p2 for some scalars (that may depend on t) a0, a1, and a2. Explain why the result leads us to call these vectors quadratic Bézier curves.

Notice that if any one of the pi lies on the line determined by the other two vectors, then the quadratic Bézier curve is just a line segment. So to obtain something non-linear we need to choose our vectors so that that doesn't happen.

Quadratic Bézier curves are limited, because their graphs are parabolas. For applications we need higher order Bézier curves. In the next activity we consider cubic Bézier curves.

Project Activity 6.11.

Start with four vectors p0, p1, p2, p3 — the points defined by these vectors are called control points for the curve. As with the linear and quadratic Bézier curves, we let

q0=(1t)p0+tp1,  q1=(1t)p1+tp2,   and   q2=(1t)p2+tp3.

Then let

r0=(1t)q0+tq1   and   r1=(1t)q1+tq2.

We take this one step further to generate the cubic Bézier curves by letting

s=(1t)r0+tr1.

(You can visualize these linear combinations using the GeoGebra file Cubic Bezier at geogebra.org/m/EDAhudy9. With this file you can draw the vectors s for varying values of t. You can move the points p0, p1, p2, and p3 in the GeoGebra file, and the slider controls the values of t. The point identified with s is traced as t is changed.) In this activity we investigate how the vectors s change as t changes. For the remainder of this activity, let p0=[13], p1=[45], p2=[93], and p3=[20].

(a)

At what point (in terms of p0, p1, p2, and p3) is the vector s=(1t)r0+tr1 when t=0? Explain using the definition of s.

(b)

At what point (in terms of p0, p1, p2, and p3) is the vector s=(1t)r0+tr1 when t=1? Explain using the definition of s.

(c)

Find by hand the components of the vector (1t)r0+tr1 with t=34. Compare with the result of the GeoGebra file.

The span {(1t)r0+tr1} of the vectors r0 and r1, or the set of points traced out by the vectors s for 0t1, is a cubic Bézier curve. To understand why this curve is called cubic, we examine the situation in a general context in the following activity.

Project Activity 6.12.

Let p0, p1, p2, and p3 be arbitrary vectors in the plane. Write s=(1t)r0+tr1 as a linear combination of p0, p1, p2, and p3. That is, write s in the form b0p0+b1p1+b2p2+b3p3 for some scalars (that may depend on t) b0, b1, b2, and b3. Explain why the result leads us to call these vectors cubic Bézier curves.

Just as with the quadratic case, we need certain subsets of the set of control vectors to be linearly independent so that the cubic Bézier curve does not degenerate to a quadratic or linear Bézier curve.

More complicated and realistic shapes can be represented by piecing together two or more Bézier curves as illustrated with the letter “S” in Figure 6.1. Suppose we have two cubic Bézier curves, the first with control points p0, p1, p2, and p3 and the second with control points p0, p1, p2, and p3. You may have noticed that p1 lies on the tangent line to the first Bézier curve at p0 and that p2 lies on the tangent line to the first Bézier curve at p3. (Play around with the program Cubic Bezier to convince yourself of these statements. This can be proved in a straightforward manner using vector calculus.) So if we want to make a smooth curve from these two Bézier curves, the curves will need to join together smoothly at p3 and p0. This will force p3=p0 and the tangents at p3=p0 will have to match. This implies that p2, p3, and p1 all have to lie on this common tangent line. Keeping this idea in mind, use the GeoGebra file Cubic Bezier Pair at geogebra.org/m/UwxQ6RPk to find control points for the pair of Bézier curves that create your own letter S.

The plural of basis is bases.