Jump to content

Linear Algebra/Definition and Examples of Linear Independence

From Wikibooks, open books for an open world
Linear Algebra
 ← Linear Independence Definition and Examples of Linear Independence Basis and Dimension → 

Spanning Sets and Linear Independence

[edit | edit source]

We first characterize when a vector can be removed from a set without changing the span of that set.

Lemma 1.1

Where S is a subset of a vector space V,

[S]=[S∪{v→}]if and only ifv→∈[S]

for any v→∈V.

Proof

The left to right implication is easy. If [S]=[S∪{v→}] then, since v→∈[S∪{v→}], the equality of the two sets gives that v→∈[S].

For the right to left implication assume that v→∈[S] to show that [S]=[S∪{v→}] by mutual inclusion. The inclusion [S]⊆[S∪{v→}] is obvious. For the other inclusion [S]⊇[S∪{v→}], write an element of [S∪{v→}] as d0v→+d1s→1+…+dms→m and substitute v→'s expansion as a linear combination of members of the same set d0(c0t→0+…+ckt→k)+d1s→1+…+dms→m. This is a linear combination of linear combinations and so distributing d0 results in a linear combination of vectors from S. Hence each member of [S∪{v→}] is also a member of [S].

Example 1.2

In ℝ3, where

v→1=(100)v→2=(010)v→3=(210)

the spans [{v→1,v→2}] and [{v→1,v→2,v→3}] are equal since v→3 is in the span [{v→1,v→2}].

The lemma says that if we have a spanning set then we can remove a v→ to get a new set S with the same span if and only if v→ is a linear combination of vectors from S. Thus, under the second sense described above, a spanning set is minimal if and only if it contains no vectors that are linear combinations of the others in that set. We have a term for this important property.

Definition 1.3

A subset of a vector space is linearly independent if none of its elements is a linear combination of the others. Otherwise it is linearly dependent.

Here is an important observation:

s→0=c1s→1+c2s→2+⋯+cns→n

although this way of writing one vector as a combination of the others visually sets s→0 off from the other vectors, algebraically there is nothing special in that equation about s→0. For any s→i with a coefficient ci that is nonzero, we can rewrite the relationship to set off s→i.

s→i=(1/ci)s→0+(−c1/ci)s→1+…+(−cn/ci)s→n

When we don't want to single out any vector by writing it alone on one side of the equation we will instead say that s→0,s→1,…,s→n are in a linear relationship and write the relationship with all of the vectors on the same side. The next result rephrases the linear independence definition in this style. It gives what is usually the easiest way to compute whether a finite set is dependent or independent.

Lemma 1.4

A subset S of a vector space is linearly independent if and only if for any distinct s→1,…,s→n∈S the only linear relationship among those vectors

c1s→1+…+cns→n=0→c1,…,cn∈ℝ

is the trivial one: c1=0,…,cn=0.

Proof

This is a direct consequence of the observation above.

If the set S is linearly independent then no vector s→i can be written as a linear combination of the other vectors from S so there is no linear relationship where some of the s→'s have nonzero coefficients. If S is not linearly independent then some s→i is a linear combination s→i=c1s→1+…+ci−1s→i−1+ci+1s→i+1+…+cns→n of other vectors from S, and subtracting s→i from both sides of that equation gives a linear relationship involving a nonzero coefficient, namely the −1 in front of s→i.

Example 1.5

In the vector space of two-wide row vectors, the two-element set {(4015),(−5025)} is linearly independent. To check this, set

c1⋅(4015)+c2⋅(−5025)=(00)

and solving the resulting system

40c1−50c2=015c1+25c2=0→−(15/40)ρ1+ρ240c1−50c2=0(175/4)c2=0

shows that both c1 and c2 are zero. So the only linear relationship between the two given row vectors is the trivial relationship.

In the same vector space, {(4015),(207.5)} is linearly dependent since we can satisfy

c1(4015)+c2⋅(207.5)=(00)

with c1=1 and c2=−2.

Remark 1.6

Recall the Statics example that began this book. We first set the unknown-mass objects at 40 cm and 15 cm and got a balance, and then we set the objects at −50 cm and 25 cm and got a balance. With those two pieces of information we could compute values of the unknown masses. Had we instead first set the unknown-mass objects at 40 cm and 15 cm, and then at 20 cm and 7.5 cm, we would not have been able to compute the values of the unknown masses (try it). Intuitively, the problem is that the (207.5) information is a "repeat" of the (4015) information— that is, (207.5) is in the span of the set {(4015)}— and so we would be trying to solve a two-unknowns problem with what is essentially one piece of information.

Example 1.7

The set {1+x,1−x} is linearly independent in 𝒫2, the space of quadratic polynomials with real coefficients, because

0+0x+0x2=c1(1+x)+c2(1−x)=(c1+c2)+(c1−c2)x+0x2

gives

c1+c2=0c1−c2=0→−ρ1+ρ2c1+c2=02c2=0

since polynomials are equal only if their coefficients are equal. Thus, the only linear relationship between these two members of 𝒫2 is the trivial one.

Example 1.8

In ℝ3, where

v→1=(345)v→2=(292)v→3=(4184)

the set S={v→1,v→2,v→3} is linearly dependent because this is a relationship

0⋅v→1+2⋅v→2−1⋅v→3=0→

where not all of the scalars are zero (the fact that some of the scalars are zero doesn't matter).

Remark 1.9

That example illustrates why, although Definition 1.3 is a clearer statement of what independence is, Lemma 1.4 is more useful for computations. Working straight from the definition, someone trying to compute whether S is linearly independent would start by setting v→1=c2v→2+c3v→3 and concluding that there are no such c2 and c3. But knowing that the first vector is not dependent on the other two is not enough. This person would have to go on to try v→2=c1v→1+c3v→3 to find the dependence c1=0, c3=1/2. Lemma 1.4 gets the same conclusion with only one computation.

Example 1.10

The empty subset of a vector space is linearly independent. There is no nontrivial linear relationship among its members as it has no members.

Example 1.11

In any vector space, any subset containing the zero vector is linearly dependent. For example, in the space 𝒫2 of quadratic polynomials, consider the subset {1+x,x+x2,0}.

One way to see that this subset is linearly dependent is to use Lemma 1.4: we have 0⋅v→1+0⋅v→2+1⋅0→=0→, and this is a nontrivial relationship as not all of the coefficients are zero. Another way to see that this subset is linearly dependent is to go straight to Definition 1.3: we can express the third member of the subset as a linear combination of the first two, namely, c1v→1+c2v→2=0→ is satisfied by taking c1=0 and c2=0 (in contrast to the lemma, the definition allows all of the coefficients to be zero).

(There is still another way to see that this subset is dependent that is subtler. The zero vector is equal to the trivial sum, that is, it is the sum of no vectors. So in a set containing the zero vector, there is an element that can be written as a combination of a collection of other vectors from the set, specifically, the zero vector can be written as a combination of the empty collection.)

The above examples, especially Example 1.5, underline the discussion that begins this section. The next result says that given a finite set, we can produce a linearly independent subset by discarding what Remark 1.6 calls "repeats".


Theorem 1.12

In a vector space, any finite subset has a linearly independent subset with the same span.

Proof

If the set S={s→1,…,s→n} is linearly independent then S itself satisfies the statement, so assume that it is linearly dependent.

By the definition of dependence, there is a vector s→i that is a linear combination of the others. Call that vector v→1. Discard it— define the set S1=S−{v→1}. By Lemma 1.1, the span does not shrink [S1]=[S].

Now, if S1 is linearly independent then we are finished. Otherwise iterate the prior paragraph: take a vector v→2 that is a linear combination of other members of S1 and discard it to derive S2=S1−{v→2} such that [S2]=[S1]. Repeat this until a linearly independent set Sj appears; one must appear eventually because S is finite and the empty set is linearly independent. (Formally, this argument uses induction on n, the number of elements in the starting set. Problem 20 asks for the details.)

Example 1.13

This set spans ℝ3.

S={(100),(020),(120),(0−11),(330)}

Looking for a linear relationship

c1(100)+c2(020)+c3(120)+c4(0−11)+c5(330)=(000)

gives a three equations/five unknowns linear system whose solution set can be parametrized in this way.


{(c1c2c3c4c5)=c3(−1−1100)+c5(−3−3/2001)|c3,c5∈ℝ}

So S is linearly dependent. Setting c3=0 and c5=1 shows that the fifth vector is a linear combination of the first two. Thus, Lemma 1.1 says that discarding the fifth vector

S1={(100),(020),(120),(0−11)}

leaves the span unchanged [S1]=[S]. Now, the third vector of S1 is a linear combination of the first two and we get

S2={(100),(020),(0−11)}

with the same span as S1, and therefore the same span as S, but with one difference. The set S2 is linearly independent (this is easily checked), and so discarding any of its elements will shrink the span.

Linear Independence and Subset Relations

[edit | edit source]

Theorem 1.12 describes producing a linearly independent set by shrinking, that is, by taking subsets. We finish this subsection by considering how linear independence and dependence, which are properties of sets, interact with the subset relation between sets.

Lemma 1.14

Any subset of a linearly independent set is also linearly independent. Any superset of a linearly dependent set is also linearly dependent.

Proof

This is clear.

Restated, independence is preserved by subset and dependence is preserved by superset.

Those are two of the four possible cases of interaction that we can consider. The third case, whether linear dependence is preserved by the subset operation, is covered by Example 1.13, which gives a linearly dependent set S with a subset S1 that is linearly dependent and another subset S2 that is linearly independent.

That leaves one case, whether linear independence is preserved by superset. The next example shows what can happen.

Example 1.15

In each of these three paragraphs the subset S is linearly independent.

For the set

S={(100)}

the span [S] is the x axis. Here are two supersets of S, one linearly dependent and the other linearly independent.

dependent: {(100),(−300)}      independent: {(100),(010)}

Checking the dependence or independence of these sets is easy.

For

S={(100),(010)}

the span [S] is the xy plane. These are two supersets.

dependent: {(100),(010),(3−20)}      independent: {(100),(010),(001)}

If

S={(100),(010),(001)}

then [S]=ℝ3. A linearly dependent superset is

dependent: {(100),(010),(001),(2−13)}

but there are no linearly independent supersets of S. The reason is that for any vector that we would add to make a superset, the linear dependence equation


(xyz)=c1(100)+c2(010)+c3(001)

has a solution c1=x, c2=y, and c3=z.

So, in general, a linearly independent set may have a superset that is dependent. And, in general, a linearly independent set may have a superset that is independent. We can characterize when the superset is one and when it is the other.

Lemma 1.16

Where S is a linearly independent subset of a vector space V,

S∪{v→} is linearly dependentif and only ifv→∈[S]

for any v→∈V with v→∉S.

Proof

One implication is clear: if v→∈[S] then v→=c1s→1+c2s→2+⋯+cns→n where each s→i∈S and ci∈ℝ, and so 0→=c1s→1+c2s→2+⋯+cns→n+(−1)v→ is a nontrivial linear relationship among elements of S∪{v→}.

The other implication requires the assumption that S is linearly independent. With S∪{v→} linearly dependent, there is a nontrivial linear relationship c0v→+c1s→1+c2s→2+⋯+cns→n=0→ and independence of S then implies that c0≠0, or else that would be a nontrivial relationship among members of S. Now rewriting this equation as v→=−(c1/c0)s→1−…−(cn/c0)s→n shows that v→∈[S].

(Compare this result with Lemma 1.1. Both say, roughly, that v→ is a "repeat" if it is in the span of S. However, note the additional hypothesis here of linear independence.)

Corollary 1.17

A subset S={s→1,…,s→n} of a vector space is linearly dependent if and only if some si→ is a linear combination of the vectors s→1, ..., s→i−1 listed before it.

Proof

Consider S0={}, S1={s1→}, S2={s→1,s→2}, etc. Some index i≥1 is the first one with Si−1∪{s→i} linearly dependent, and there s→i∈[Si−1].

Lemma 1.16 can be restated in terms of independence instead of dependence: if S is linearly independent and v→∉S then the set S∪{v→} is also linearly independent if and only if v→∉[S]. Applying Lemma 1.1, we conclude that if S is linearly independent and v→∉S then S∪{v→} is also linearly independent if and only if [S∪{v→}]≠[S]. Briefly, when passing from S to a superset S1, to preserve linear independence we must expand the span [S1]⊃[S].

Example 1.15 shows that some linearly independent sets are maximal— have as many elements as possible— in that they have no supersets that are linearly independent. By the prior paragraph, a linearly independent sets is maximal if and only if it spans the entire space, because then no vector exists that is not already in the span.

This table summarizes the interaction between the properties of independence and dependence and the relations of subset and superset.


S1⊂S S1⊃S
S independent
S1 must be independent S1 may be either
S1 may be either S1 must be dependent
S dependent


In developing this table we've uncovered an intimate relationship between linear independence and span. Complementing the fact that a spanning set is minimal if and only if it is linearly independent, a linearly independent set is maximal if and only if it spans the space.

In summary, we have introduced the definition of linear independence to formalize the idea of the minimality of a spanning set. We have developed some properties of this idea. The most important is Lemma 1.16, which tells us that a linearly independent set is maximal when it spans the space.

Exercises

[edit | edit source]
This exercise is recommended for all readers.
Problem 1

Decide whether each subset of ℝ3 is linearly dependent or linearly independent.

  1. {(1−35),(224),(4−414)}
  2. {(177),(277),(377)}
  3. {(00−1),(104)}
  4. {(990),(201),(35−4),(1212−1)}
This exercise is recommended for all readers.
Problem 2

Which of these subsets of 𝒫3 are linearly dependent and which are independent?

  1. {3−x+9x2,5−6x+3x2,1+1x−5x2}
  2. {−x2,1+4x2}
  3. {2+x+7x2,3−x+2x2,4−3x2}
  4. {8+3x+3x2,x+2x2,2+2x+2x2,8−2x+5x2}
This exercise is recommended for all readers.
Problem 3

Prove that each set {f,g} is linearly independent in the vector space of all functions from ℝ+ to ℝ.

  1. f(x)=x and g(x)=1/x
  2. f(x)=cos⁡(x) and g(x)=sin⁡(x)
  3. f(x)=ex and g(x)=ln⁡(x)
This exercise is recommended for all readers.
Problem 4

Which of these subsets of the space of real-valued functions of one real variable is linearly dependent and which is linearly independent? (Note that we have abbreviated some constant functions; e.g., in the first item, the "2" stands for the constant function f(x)=2.)

  1. {2,4sin2(x),cos2(x)}
  2. {1,sin⁡(x),sin⁡(2x)}
  3. {x,cos⁡(x)}
  4. {(1+x)2,x2+2x,3}
  5. {cos⁡(2x),sin2(x),cos2(x)}
  6. {0,x,x2}
Problem 5

Does the equation sin2(x)/cos2(x)=tan2(x) show that this set of functions {sin2(x),cos2(x),tan2(x)} is a linearly dependent subset of the set of all real-valued functions with domain the interval (−π/2..π/2) of real numbers between −π/2 and π/2?

Problem 6

Why does Lemma 1.4 say "distinct"?

This exercise is recommended for all readers.
Problem 7

Show that the nonzero rows of an echelon form matrix form a linearly independent set.

This exercise is recommended for all readers.
Problem 8
  1. Show that if the set {u→,v→,w→} is linearly independent set then so is the set {u→,u→+v→,u→+v→+w→}.
  2. What is the relationship between the linear independence or dependence of the set {u→,v→,w→} and the independence or dependence of {u→−v→,v→−w→,w→−u→}?
Problem 9

Example 1.10 shows that the empty set is linearly independent.

  1. When is a one-element set linearly independent?
  2. How about a set with two elements?
Problem 10

In any vector space V, the empty set is linearly independent. What about all of V?

Problem 11

Show that if {x→,y→,z→} is linearly independent then so are all of its proper subsets: {x→,y→}, {x→,z→}, {y→,z→}, {x→},{y→}, {z→}, and {}. Is that "only if" also?

Problem 12
  1. Show that this
    S={(110),(−120)}
    is a linearly independent subset of ℝ3.
  2. Show that
    (320)
    is in the span of S by finding c1 and c2 giving a linear relationship.
    c1(110)+c2(−120)=(320)
    Show that the pair c1,c2 is unique.
  3. Assume that S is a subset of a vector space and that v→ is in [S], so that v→ is a linear combination of vectors from S. Prove that if S is linearly independent then a linear combination of vectors from S adding to v→ is unique (that is, unique up to reordering and adding or taking away terms of the form 0⋅s→). Thus S as a spanning set is minimal in this strong sense: each vector in [S] is "hit" a minimum number of times— only once.
  4. Prove that it can happen when S is not linearly independent that distinct linear combinations sum to the same vector.
Problem 13

Prove that a polynomial gives rise to the zero function if and only if it is the zero polynomial. (Comment. This question is not a Linear Algebra matter, but we often use the result. A polynomial gives rise to a function in the obvious way: x↦cnxn+…+c1x+c0.)

Problem 14

Return to Section 1.2 and redefine point, line, plane, and other linear surfaces to avoid degenerate cases.

Problem 15
  1. Show that any set of four vectors in ℝ2 is linearly dependent.
  2. Is this true for any set of five? Any set of three?
  3. What is the most number of elements that a linearly independent subset of ℝ2 can have?
This exercise is recommended for all readers.
Problem 16

Is there a set of four vectors in ℝ3, any three of which form a linearly independent set?

Problem 17

Must every linearly dependent set have a subset that is dependent and a subset that is independent?

Problem 18

In ℝ4, what is the biggest linearly independent set you can find? The smallest? The biggest linearly dependent set? The smallest? ("Biggest" and "smallest" mean that there are no supersets or subsets with the same property.)

This exercise is recommended for all readers.
Problem 19

Linear independence and linear dependence are properties of sets. We can thus naturally ask how those properties act with respect to the familiar elementary set relations and operations. In this body of this subsection we have covered the subset and superset relations. We can also consider the operations of intersection, complementation, and union.

  1. How does linear independence relate to intersection: can an intersection of linearly independent sets be independent? Must it be?
  2. How does linear independence relate to complementation?
  3. Show that the union of two linearly independent sets need not be linearly independent.
  4. Characterize when the union of two linearly independent sets is linearly independent, in terms of the intersection of the span of each.
This exercise is recommended for all readers.
Problem 20

For Theorem 1.12,

  1. fill in the induction for the proof;
  2. give an alternate proof that starts with the empty set and builds a sequence of linearly independent subsets of the given finite set until one appears with the same span as the given set.
Problem 21

With a little calculation we can get formulas to determine whether or not a set of vectors is linearly independent.

  1. Show that this subset of ℝ2
    {(ac),(bd)}
    is linearly independent if and only if ad−bc≠0.
  2. Show that this subset of ℝ3
    {(adg),(beh),(cfi)}
    is linearly independent iff aei+bfg+cdh−hfa−idb−gec≠0.
  3. When is this subset of ℝ3
    {(adg),(beh)}
    linearly independent?
  4. This is an opinion question: for a set of four vectors from ℝ4, must there be a formula involving the sixteen entries that determines independence of the set? (You needn't produce such a formula, just decide if one exists.)
This exercise is recommended for all readers.
Problem 22
  1. Prove that a set of two perpendicular nonzero vectors from ℝn is linearly independent when n>1.
  2. What if n=1? n=0?
  3. Generalize to more than two vectors.
Problem 23

Consider the set of functions from the open interval (−1..1) to ℝ.

  1. Show that this set is a vector space under the usual operations.
  2. Recall the formula for the sum of an infinite geometric series: 1+x+x2+⋯=1/(1−x) for all x∈(−1..1). Why does this not express a dependence inside of the set {g(x)=1/(1−x),f0(x)=1,f1(x)=x,f2(x)=x2,…} (in the vector space that we are considering)? (Hint. Review the definition of linear combination.)
  3. Show that the set in the prior item is linearly independent.

This shows that some vector spaces exist with linearly independent subsets that are infinite.

Problem 24

Show that, where S is a subspace of V, if a subset T of S is linearly independent in S then T is also linearly independent in V. Is that "only if"?

Solutions

Linear Algebra
 ← Linear Independence Definition and Examples of Linear Independence Basis and Dimension →