8.2. SUBSPACES SPANS AND BASES 179

equals the zero vector is the trivial linear combination. Thus {x1, · · · ,xn} is called linearlyindependent if whenever

p

∑k=1

ckxk = 0

it follows that all the scalars, ck equal zero. A set of vectors,{

x1, · · · ,xp}, is called linearly

dependent if it is not linearly independent. Thus the set of vectors is linearly dependent ifthere exist scalars, ci, i = 1, · · · ,n, not all zero such that ∑

pk=1 ckxk = 0.

Lemma 8.2.2 A set of vectors{

x1, · · · ,xp}

is linearly independent if and only if none ofthe vectors can be obtained as a linear combination of the others.

Proof: Suppose first that{

x1, · · · ,xp}

is linearly independent. If

xk = ∑j ̸=k

c jx j,

then0 = 1xk + ∑

j ̸=k(−c j)x j,

a nontrivial linear combination, contrary to assumption. This shows that if the set is linearlyindependent, then none of the vectors is a linear combination of the others.

Now suppose no vector is a linear combination of the others. Is{

x1, · · · ,xp}

linearlyindependent? If it is not, there exist scalars, ci, not all zero such that

p

∑i=1

cixi = 0.

Say ck ̸= 0. Then you can solve for xk as

xk = ∑j ̸=k

(−c j)/ckx j

contrary to assumption. This proves the lemma.The following is called the exchange theorem.

Theorem 8.2.3 Ifspan(u1, · · · ,ur)⊆ span(v1, · · · ,vs)≡V

and {u1, · · · ,ur} are linearly independent, then r ≤ s.

Proof: Suppose r > s. Let Fp denote the first p vectors in {u1, · · · ,ur}. In case p= 0,Fpwill denote the empty set. Let Ep denote a finite list of vectors of {v1, · · · ,vs} and let

∣∣Ep∣∣

denote the number of vectors in the list. For 0≤ p≤ s, let Ep have the property

span(Fp,Ep) =V

and∣∣Ep∣∣ is as small as possible for this to happen. I claim

∣∣Ep∣∣≤ s− p if Ep is nonempty.

8.2. SUBSPACES SPANS AND BASES 179equals the zero vector is the trivial linear combination. Thus {x1 ,-++ ,Xn} is called linearlyindependent if wheneverPy CX = 0k=1it follows that all the scalars, c, equal zero. A set of vectors, {x} yx p} , is called linearlydependent if it is not linearly independent. Thus the set of vectors is linearly dependent ifthere exist scalars, c;,i= 1,--- ,n, not all zero such that yey CyX, = 0.Lemma 8.2.2 A set of vectors {x1 yor .Xp} is linearly independent if and only if none ofthe vectors can be obtained as a linear combination of the others.Proof: Suppose first that {x),--- ,x,} is linearly independent. IfxX, = y Cc jx jpjfkthen0= Ix, + y (—cj)x;,J#ka nontrivial linear combination, contrary to assumption. This shows that if the set is linearlyindependent, then none of the vectors is a linear combination of the others.Now suppose no vector is a linear combination of the others. Is {Xi yt .Xp} linearlyindependent? If it is not, there exist scalars, c;, not all zero such thatMMCixi = 0.i=1Say c, #0. Then you can solve for x, asxe = )) (=e;) cx;iFcontrary to assumption. This proves the lemma. JjThe following is called the exchange theorem.Theorem 8.2.3 Ifspan (uy,--- ,u,) iS span (v1,-°- sVs) =Vand {u,,-++ ,u,} are linearly independent, then r < s.Proof: Suppose r > s. Let F,, denote the first p vectors in {uy,--- ,u,;}. Incase p =0, F,will denote the empty set. Let E, denote a finite list of vectors of {v;,--- , vs} and let |E |denote the number of vectors in the list. For 0 < p <s, let E, have the propertyspan (F,,E,) =Vand |Ep| is as small as possible for this to happen. I claim |Ep| <s— pif E, is nonempty.