Original English by Jim Hefferon — selected foundation sections. The original mathematics and supplied answers below are preserved. This is a partial-book reading edition, not the complete book or an Everyday-English rewrite.

Source, reuse and conversion details

Source revision df2262e089a02651c127f1dd12649c4622ee1383; CC BY-SA 2.5 option, with original component credits retained. This is not an Everyday-English rewrite. The complete active source section is included. Commented-out alternatives remain in the editable source and are not promoted into the reader. Cross-section links use the bound sibling readers; keep those files when reading offline.

Not an Everyday-English rewrite. Source preservation and modular context checks pass; whole-book integration remains in progress.

Sixteen notes about the original source

These conversion checks are separate from the unchanged original text and formulas. They are not an exhaustive correctness audit or human review. Notes about supplied answers may reveal solutions.

  1. Source note 1: The first polynomial-basis answer omits the contributions of c1 to the x and constant coefficients. Its proposed c2 and c3 therefore do not represent a general quadratic when a2 is nonzero. The stated set is still a basis. Correct coefficients (c1,c2,c3) are (a2; a0/2 + a1/4 - a2/4; -a0/2 + a1/4 + 3*a2/4).
  2. Source note 2: The matrix-basis proof obtains c3=0 from the lower-right entries, not the lower-left entries as stated at line 918. The displayed third basis matrix has its sole nonzero entry at the lower right. The conclusion remains correct.
  3. Source note 3: Choose s2 in S outside span(B1), and repeat that choice within S. Such an element exists whenever span(B1) is a proper subspace of span(S). B1 is initially a basis of its own span, not necessarily the full space.
  4. Source note 4: Read the intermediate set as {-1+x, 2x^2+x^3}. The printed x^2+x^3 fails the exercise condition a2-2a3=0; the final displayed basis and dimension are correct.
  5. Source note 5: The two displayed sets describe the same diagonal-matrix space; an equality sign is missing at the start of the second line. Preserve the original display and identify this separately.
  6. Source note 6: Use a nontrivial relation among the concatenated bases. Independence within each basis implies that the partial combination from either basis is nonzero. These equal, opposite-signed partial combinations provide a nonzero vector in U intersect W; no individual basis vector need lie in the other space.
  7. Source note 7: Read V=W in the first sentence of this part as U=W. The remainder of the argument already uses U and W.
  8. Source note 8: The right-hand column in the first displayed equation should be (1,3), as in the question and subsequent system. The conclusion that it is outside the column space remains correct.
  9. Source note 9: At the second arrow, read the row-four operation as -2 times row one plus row four. The displayed echelon matrix then follows. The later basis ending in -5x^2 is valid: scaling the nonzero third basis vector does not change its span.
  10. Source note 10: Read “at least two” here as “at most two”. The fourth and fifth columns are independent, so the column rank is exactly two, as stated.
  11. Source note 11: For unequal row counts, first append zero rows to the shorter matrix, or compare only the nonzero reduced rows. The exercise claims equality of nonzero rows, not equality of differently sized matrices. A proof can stack A over B and B over A: the two stacked matrices are row equivalent, and reducing either dependent extra block leaves the same nonzero rows.
  12. Source note 12: In part (b), read the right-hand entries as d1 through dm. There is one right-hand entry for each of the m equations.
  13. Source note 13: For the missing direction, if every right-hand vector in R^m is attainable, the columns span R^m. The column rank is then m, and equality of row and column ranks gives full row rank. The second printed paragraph is the contrapositive of the first direction.
  14. Source note 14: In part (e), W1 is a subspace: shifting its parameter still describes the entire x-axis. W2 is not a subspace because it does not contain zero. The answer “No” remains correct.
  15. Source note 15: Read “greater than” here as “at least”. Dimensions eight, nine and ten for the sum, and eight, seven and six for the intersection, are all possible. The printed final list is correct.
  16. Source note 16: Read “every subset” as “every subspace”. Closure under addition is available because W is a subspace; the identity W+W=W is correct.

Source-preserving rebuild, navigation, source packaging and current deterministic checks: OpenAI Codex — GPT-6 Astra, Ultra effort. Jim Hefferon remains the author of the mathematics. Earlier intermediate-conversion runtime identity is not established by its retained receipts and is not reassigned to this rebuild. No human review or exhaustive proof certification is claimed.

Basis and Dimension

The prior section ends with the observation that a spanning set is minimal when it is linearly independent and a linearly independent set is maximal when it spans the space. So the notions of minimal spanning set and maximal independent set coincide. In this section we will name this idea and study its properties.

Basis

Definition 1.1 A basis for a vector space is a sequence of vectors that is linearly independent and that spans the space.

Because a basis is a sequence, meaning that bases are different if they contain the same elements but in different orders, we denote it with angle brackets ⟨ β → 1 , β → 2 , … ⟩ .1 (A sequence is linearly independent if the multiset consisting of the elements of the sequence is independent. Similarly, a sequence spans the space if the set of elements of the sequence spans the space.)

Example 1.2 This is a basis for ℝ 2 .

⟨ ( 2 4 ) , ( 1 1 ) ⟩

It is linearly independent

c 1 ( 2 4 ) + c 2 ( 1 1 ) = ( 0 0 ) ⟹ 2 c 1 + 1 c 2 = 0 4 c 1 + 1 c 2 = 0 ⟹ c 1 = c 2 = 0

and it spans ℝ 2 .

2 c 1 + 1 c 2 = x 4 c 1 + 1 c 2 = y ⟹ c 2 = 2 x − y  and  c 1 = ( y − x ) / 2

Example 1.3 This basis for ℝ 2 differs from the prior one

⟨ ( 1 1 ) , ( 2 4 ) ⟩

because it is in a different order. The verification that it is a basis is just as in the prior example.

Example 1.4 The space ℝ 2 has many bases. Another one is this.

⟨ ( 1 0 ) , ( 0 1 ) ⟩

The verification is easy.

Definition 1.5 For any ℝ n

ℰ n = ⟨ ( 1 0 ⋮ 0 0 ) , ( 0 1 ⋮ 0 0 ) , … , ( 0 0 ⋮ 0 1 ) ⟩

is the standard (or natural) basis. We denote these vectors e → 1 , … , e → n .

Calculus books denote ℝ 2 ’s standard basis vectors as ı → and ȷ → instead of e → 1 and e → 2 and they denote to ℝ 3 ’s standard basis vectors as ı → , ȷ → , and k → instead of e → 1 , e → 2 , and e → 3 . Note that e → 1 means something different in a discussion of ℝ 3 than it means in a discussion of ℝ 2 .

Example 1.6 Consider the space { a ⋅ cos ⁡ θ + b ⋅ sin ⁡ θ ∣ a , b ∈ ℝ } of functions of the real variable θ . This is a natural basis ⟨ cos ⁡ θ , sin ⁡ θ ⟩ = ⟨ 1 ⋅ cos ⁡ θ + 0 ⋅ sin ⁡ θ , 0 ⋅ cos ⁡ θ + 1 ⋅ sin ⁡ θ ⟩ . A more generic basis for this space is ⟨ cos ⁡ θ − sin ⁡ θ , 2 cos ⁡ θ + 3 sin ⁡ θ ⟩ . Verification that these two are bases is Exercise 1.29.

Example 1.7 A natural basis for the vector space of cubic polynomials 𝒫 3 is ⟨ 1 , x , x 2 , x 3 ⟩ . Two other bases for this space are ⟨ x 3 , 3 x 2 , 6 x , 6 ⟩ and ⟨ 1 , 1 + x , 1 + x + x 2 , 1 + x + x 2 + x 3 ⟩ . Checking that each is linearly independent and spans the space is easy.

Example 1.8 The trivial space { 0 → } has only one basis, the empty one ⟨ ⟩ .

Example 1.9 The space of finite-degree polynomials has a basis with infinitely many elements ⟨ 1 , x , x 2 , … ⟩ .

Example 1.10 We have seen bases before. In the first chapter we described the solution set of homogeneous systems such as this one

x + y − w = 0 z + w = 0

by parametrizing.

{ ( − 1 1 0 0 ) y + ( 1 0 − 1 1 ) w ∣ y , w ∈ ℝ }

Thus the vector space of solutions is the span of a two-element set. This two-vector set is also linearly independent, which is easy to check. Therefore the solution set is a subspace of ℝ 4 with a basis comprised of these two vectors.

Example 1.11 Parametrization finds bases for other vector spaces, not just for solution sets of homogeneous systems. To find a basis for this subspace of ℳ 2 × 2

{ ( a b c 0 ) ∣ a + b − 2 c = 0 }

we rewrite the condition as a = − b + 2 c .

{ ( − b + 2 c b c 0 ) ∣ b , c ∈ ℝ } = { b ( − 1 1 0 0 ) + c ( 2 0 1 0 ) ∣ b , c ∈ ℝ }

Thus, this is a natural candidate for a basis.

⟨ ( − 1 1 0 0 ) , ( 2 0 1 0 ) ⟩

The above work shows that it spans the space. Linear independence is also easy.

Consider again Example 1.2. To verify that the set spans the space we looked at linear combinations that total to a member of the space c 1 β → 1 + c 2 β → 2 = ( x y ) . We only noted in that example that such a combination exists, that for each x , y there exists a c 1 , c 2 , but in fact the calculation also shows that the combination is unique:  c 1 must be ( y − x ) / 2 and c 2 must be 2 x − y .

Theorem 1.12 In any vector space, a subset is a basis if and only if each vector in the space can be expressed as a linear combination of elements of the subset in one and only one way.

We consider linear combinations to be the same if they have the same summands but in a different order, or if they differ only in the addition or deletion of terms of the form ‘ 0 ⋅ β → ’.

Proof A sequence is a basis if and only if its vectors form a set that spans and that is linearly independent. A subset is a spanning set if and only if each vector in the space is a linear combination of elements of that subset in at least one way. Thus we need only show that a spanning subset is linearly independent if and only if every vector in the space is a linear combination of elements from the subset in at most one way.

Consider two expressions of a vector as a linear combination of the members of the subset. Rearrange the two sums, and if necessary add some 0 ⋅ β → i terms, so that the two sums combine the same β → ’s in the same order: v → = c 1 β → 1 + c 2 β → 2 + ⋯ + c n β → n and v → = d 1 β → 1 + d 2 β → 2 + ⋯ + d n β → n . Now

c 1 β → 1 + c 2 β → 2 + ⋯ + c n β → n = d 1 β → 1 + d 2 β → 2 + ⋯ + d n β → n

holds if and only if

( c 1 − d 1 ) β → 1 + ⋯ + ( c n − d n ) β → n = 0 →

holds. So, asserting that each coefficient in the lower equation is zero is the same thing as asserting that c i = d i for each i , that is, that every vector is expressible as a linear combination of the β → ’s in a unique way.

QED

Definition 1.13 In a vector space with basis B the representation of v → with respect to B is the column vector of the coefficients used to express v → as a linear combination of the basis vectors:

Rep B ( v → ) = ( c 1 c 2 ⋮ c n ) B

where B = ⟨ β → 1 , … , β → n ⟩ and v → = c 1 β → 1 + c 2 β → 2 + ⋯ + c n β → n . The c ’s are the coordinates of v → with respect to B .

Example 1.14 In 𝒫 3 , with respect to the basis B = ⟨ 1 , 2 x , 2 x 2 , 2 x 3 ⟩ , the representation of x + x 2 is

Rep B ( x + x 2 ) = ( 0 1 / 2 1 / 2 0 ) B

because x + x 2 = 0 ⋅ 1 + ( 1 / 2 ) ⋅ 2 x + ( 1 / 2 ) ⋅ 2 x 2 + 0 ⋅ 2 x 3 . With respect to a different basis D = ⟨ 1 + x , 1 − x , x + x 2 , x + x 3 ⟩ , the representation is different.

Rep D ( x + x 2 ) = ( 0 0 1 0 ) D

Remark 1.15 Definition 1.1 requires that a basis be a sequence so that we can write these coordinates in an order.

When there is only one basis around, we often omit the subscript naming that basis.

Example 1.16 In ℝ 2 , to find the coordinates of the vector v → = ( 3 2 ) with respect to the basis

B = ⟨ ( 1 1 ) , ( 0 2 ) ⟩

solve

c 1 ( 1 1 ) + c 2 ( 0 2 ) = ( 3 2 )

and get that c 1 = 3 and c 2 = − 1 / 2 .

Rep B ( v → ) = ( 3 − 1 / 2 )

Writing the representation as a column generalizes the familiar case: in ℝ n and with respect to the standard basis ℰ n , the vector starting at the origin and ending at ( v 1 , … , v n ) has this representation.

Rep ℰ n ( ( v 1 ⋮ v n ) ) = ( v 1 ⋮ v n ) ℰ n

This is an example.

Rep ℰ n ( ( − 1 1 ) ) = ( − 1 1 )

Remark 1.17 The Rep B ( v → ) notation is not standard. The most common notation is [ v → ] B but one advantage that Rep B ( v → ) has is that it is harder to misinterpret or overlook.

The column represents the vector in the sense that a linear relationship holds among a set of vectors if and only if that relationship holds among the set of representations.

Lemma 1.18 Where B is a basis with n  elements, for any set of vectors, a 1 v → 1 + ⋯ + a k v → k = 0 → V if and only if a 1 Rep B ( v → 1 ) + ⋯ + a k Rep B ( v → k ) = 0 → ℝ n .

Proof Fix a basis B = ⟨ β → 1 , … , β → n ⟩ and suppose

Rep B ( v → 1 ) = ( c 1 , 1 ⋮ c n , 1 ) … Rep B ( v → k ) = ( c 1 , k ⋮ c n , k )

so that v → 1 = c 1 , 1 β → 1 + ⋯ + c n , 1 β → n , etc. Then a 1 v → 1 + ⋯ + a k v → k = 0 → is equivalent to these.

0 → = a 1 ⋅ ( c 1 , 1 β → 1 + ⋯ + c n , 1 β → n ) + ⋯ + a k ⋅ ( c 1 , k β → 1 + ⋯ + c n , k β → n ) = ( a 1 c 1 , 1 + ⋯ + a k c 1 , k ) ⋅ β → 1 + ⋯ + ( a 1 c n , 1 + ⋯ + a k c n , k ) ⋅ β → n

Obviously the bottom equation is true if the coefficients are zero. But, because B is a basis, Theorem 1.12 says that the bottom equation is true if and only if the coefficients are zero. So the relation is equivalent to this.

a 1 c 1 , 1 + ⋯ + a k c 1 , k = 0 ⋮ = a 1 c n , 1 + ⋯ + a k c n , k = 0

This is the equivalent recast into column vectors.

a 1 ( c 1 , 1 ⋮ c n , 1 ) + ⋯ + a k ( c 1 , k ⋮ c n , k ) = ( 0 ⋮ 0 )

Note that not only does a relationship hold for one set if and only if it holds for the other, but it is the same relationship—the a i are the same.

QED

Example 1.19 Example 1.14 finds the representation of x + x 2 ∈ 𝒫 3 with respect to B = ⟨ 1 , 2 x , 2 x 2 , 2 x 3 ⟩ .

Rep B ( x + x 2 ) = ( 0 1 / 2 1 / 2 0 ) B

This relationship

2 ⋅ ( x + x 2 ) − 1 ⋅ ( 2 x ) − 2 ⋅ ( x 2 ) = 0 + 0 x + 0 x 2 + 0 x 3

is represented by this one.

2 ⋅ Rep B ( x + x 2 ) − Rep B ( 2 x ) − 2 ⋅ Rep B ( x 2 ) = 2 ⋅ ( 0 1 / 2 1 / 2 0 ) − ( 0 1 0 0 ) − 2 ⋅ ( 0 0 1 / 2 0 ) = ( 0 0 0 0 )

Our main use of representations will come later but the definition appears here because the fact that every vector is a linear combination of basis vectors in a unique way is a crucial property of bases, and also to help make a point. For calculation of coordinates among other things, we shall restrict our attention to spaces with bases having only finitely many elements. That will start in the next subsection.

Exercises

  1. Exercise 1.20 Worked answer

    Recommended. Decide if each is a basis for 𝒫 2 .

    1. ⟨ x 2 − x + 1 , 2 x + 1 , 2 x − 1 ⟩

    2. ⟨ x + x 2 , x − x 2 ⟩

    Back to Exercise 1.20

    Answer.

    1. This is a basis for 𝒫 2 . To show that it spans the space we consider a generic a 2 x 2 + a 1 x + a 0 ∈ 𝒫 2 and look for scalars c 1 , c 2 , c 3 ∈ ℝ such that a 2 x 2 + a 1 x + a 0 = c 1 ⋅ ( x 2 − x + 1 ) + c 2 ⋅ ( 2 x + 1 ) + c 3 ( 2 x − 1 ) . The resulting linear system is this.

      c 1 + = a 2 2 c 2 + 2 c 3 = a 1 c 2 − c 3 = a 0 ⟶ ( − 1 / 2 ) ρ 2 + ρ 3 ( c 1 + = a 2 2 c 2 + 2 c 3 = a 1 − 2 c 3 = a 0 − ( 1 / 2 ) a 1

      Thus, given any triple of a i ’s, we can compute the c j ’s as c 1 = a 2 , c 2 = ( 1 / 4 ) a 1 + ( 1 / 2 ) a 0 , and c 3 = ( 1 / 4 ) a 1 − ( 1 / 2 ) a 0 . Therefore each element of 𝒫 2 is a combination of the given x 2 − x + 1 , 2 x + 1 , and  2 x − 1 .

      To prove that the set of the given three is linearly independent we can set up the equation 0 x 2 + 0 x + 0 = c 1 ⋅ ( x 2 − x + 1 ) + c 2 ⋅ ( 2 x + 1 ) + c 3 ( 2 x − 1 ) and solve, and it will give that c 1 = 0 , c 2 = 0 , and c 3 = 0 . Or, we can instead observe that the solution in the prior paragraph is unique, and cite Theorem 1.12.

    2. This is not a basis. It does not span the space since no combination of the two c 1 ⋅ ( x + x 2 ) + c 2 ⋅ ( x − x 2 ) will sum to the polynomial 3 ∈ 𝒫 2 .

  2. Exercise 1.21 Worked answer

    Recommended. Decide if each is a basis for ℝ 3 .

    1. ⟨ ( 1 2 3 ) , ( 3 2 1 ) , ( 0 0 1 ) ⟩

    2. ⟨ ( 1 2 3 ) , ( 3 2 1 ) ⟩

    3. ⟨ ( 0 2 − 1 ) , ( 1 1 1 ) , ( 2 5 0 ) ⟩

    4. ⟨ ( 0 2 − 1 ) , ( 1 1 1 ) , ( 1 3 0 ) ⟩

    Back to Exercise 1.21

    Answer. By Theorem 1.12, each is a basis if and only if we can express each vector in the space in a unique way as a linear combination of the given vectors.

    1. Yes this is a basis. The relation

      c 1 ( 1 2 3 ) + c 2 ( 3 2 1 ) + c 3 ( 0 0 1 ) = ( x y z )

      gives

      ( 1 3 0 x 2 2 0 y 3 1 1 z ) ⟶ − 3 ρ 1 + ρ 3 − 2 ρ 1 + ρ 2 ( ⟶ − 2 ρ 2 + ρ 3 ( ( 1 3 0 x 0 − 4 0 − 2 x + y 0 0 1 x − 2 y + z )

      which has the unique solution c 3 = x − 2 y + z , c 2 = x / 2 − y / 4 , and c 1 = − x / 2 + 3 y / 4 .

    2. This is not a basis. Setting it up as in the prior item

      c 1 ( 1 2 3 ) + c 2 ( 3 2 1 ) = ( x y z )

      gives a linear system whose solution

      ( 1 3 x 2 2 y 3 1 z ) ⟶ − 3 ρ 1 + ρ 3 − 2 ρ 1 + ρ 2 ( ⟶ − 2 ρ 2 + ρ 3 ( ( 1 3 x 0 − 4 − 2 x + y 0 0 x − 2 y + z )

      is possible if and only if the three-tall vector’s components x , y , and z satisfy x − 2 y + z = 0 . For instance, we can find the coefficients c 1 and c 2 that work when x = 1 , y = 1 , and z = 1 . However, there are no c ’s that work for x = 1 , y = 1 , and z = 2 . Thus this is not a basis; it does not span the space.

    3. Yes, this is a basis. Setting up the relationship leads to this reduction

      ( 0 1 2 x 2 1 5 y − 1 1 0 z ) ⟶ ρ 1 ↔ ρ 3 ( ⟶ 2 ρ 1 + ρ 2 ( ⟶ − ( 1 / 3 ) ρ 2 + ρ 3 ( ( − 1 1 0 z 0 3 5 y + 2 z 0 0 1 / 3 x − y / 3 − 2 z / 3 )

      which has a unique solution for each triple of components x , y , and z .

    4. No, this is not a basis. The reduction

      ( 0 1 1 x 2 1 3 y − 1 1 0 z ) ⟶ ρ 1 ↔ ρ 3 ( ⟶ 2 ρ 1 + ρ 2 ( ⟶ ( − 1 / 3 ) ρ 2 + ρ 3 ( ( − 1 1 0 z 0 3 3 y + 2 z 0 0 0 x − y / 3 − 2 z / 3 )

      which does not have a solution for each triple x , y , and z . Instead, the span of the given set includes only those three-tall vectors where x = y / 3 + 2 z / 3 .

  3. Exercise 1.22 Worked answer

    Recommended. Represent the vector with respect to the basis.

    1. ( 1 2 ) , B = ⟨ ( 1 1 ) , ( − 1 1 ) ⟩ ⊆ ℝ 2

    2. x 2 + x 3 , D = ⟨ 1 , 1 + x , 1 + x + x 2 , 1 + x + x 2 + x 3 ⟩ ⊆ 𝒫 3

    3. ( 0 − 1 0 1 ) , ℰ 4 ⊆ ℝ 4

    Back to Exercise 1.22

    Answer.

    1. We solve

      c 1 ( 1 1 ) + c 2 ( − 1 1 ) = ( 1 2 )

      with

      ( 1 − 1 1 1 1 2 ) ⟶ − ρ 1 + ρ 2 ( ( 1 − 1 1 0 2 1 )

      and conclude that c 2 = 1 / 2 and so c 1 = 3 / 2 . Thus, the representation is this.

      Rep B ( ( 1 2 ) ) = ( 3 / 2 1 / 2 ) B

    2. The relationship c 1 ⋅ ( 1 ) + c 2 ⋅ ( 1 + x ) + c 3 ⋅ ( 1 + x + x 2 ) + c 4 ⋅ ( 1 + x + x 2 + x 3 ) = x 2 + x 3 is easily solved by eye to give that c 4 = 1 , c 3 = 0 , c 2 = − 1 , and c 1 = 0 .

      Rep D ( x 2 + x 3 ) = ( 0 − 1 0 1 ) D

    3. Rep ℰ 4 ( ( 0 − 1 0 1 ) ) = ( 0 − 1 0 1 ) ℰ 4

  4. Exercise 1.23 Worked answer

    Represent the vector with respect to each of the two bases.

    v → = ( 3 − 1 ) B 1 = ⟨ ( 1 − 1 ) , ( 1 1 ) ⟩ , B 2 = ⟨ ( 1 2 ) , ( 1 3 ) ⟩

    Back to Exercise 1.23

    Answer. Solving

    ( 3 − 1 ) = ( 1 − 1 ) ⋅ c 1 + ( 1 1 ) ⋅ c 2

    gives c 1 = 2 and  c 2 = 1 .

    Rep B 1 ( ( 3 − 1 ) ) = ( 2 1 ) B 1

    Similarly, solving

    ( 3 − 1 ) = ( 1 2 ) ⋅ c 1 + ( 1 3 ) ⋅ c 2

    gives this.

    Rep B 2 ( ( 3 − 1 ) ) = ( 10 − 7 ) B 2

  5. Exercise 1.24 Worked answer

    Find a basis for 𝒫 2 , the space of all quadratic polynomials. Must any such basis contain a polynomial of each degree: degree zero, degree one, and degree two?

    Back to Exercise 1.24

    Answer. A natural basis is ⟨ 1 , x , x 2 ⟩ . There are bases for 𝒫 2 that do not contain any polynomials of degree one or degree zero. One is ⟨ 1 + x + x 2 , x + x 2 , x 2 ⟩ . (Every basis has at least one polynomial of degree two, though.)

  6. Exercise 1.25 Worked answer

    Find a basis for the solution set of this system.

    x 1 − 4 x 2 + 3 x 3 − x 4 = 0 2 x 1 − 8 x 2 + 6 x 3 − 2 x 4 = 0

    Back to Exercise 1.25

    Answer. The reduction

    ( 1 − 4 3 − 1 0 2 − 8 6 − 2 0 ) ⟶ − 2 ρ 1 + ρ 2 ( ( 1 − 4 3 − 1 0 0 0 0 0 0 )

    gives that the only condition is that x 1 = 4 x 2 − 3 x 3 + x 4 . The solution set is

    { ( 4 x 2 − 3 x 3 + x 4 x 2 x 3 x 4 ) ∣ x 2 , x 3 , x 4 ∈ ℝ } = { x 2 ( 4 1 0 0 ) + x 3 ( − 3 0 1 0 ) + x 4 ( 1 0 0 1 ) ∣ x 2 , x 3 , x 4 ∈ ℝ }

    and so the obvious candidate for the basis is this.

    ⟨ ( 4 1 0 0 ) , ( − 3 0 1 0 ) , ( 1 0 0 1 ) ⟩

    We’ve shown that this spans the space, and showing it is also linearly independent is routine.

  7. Exercise 1.26 Worked answer

    Recommended. Find a basis for ℳ 2 × 2 , the space of 2 × 2 matrices.

    Back to Exercise 1.26

    Answer. There are many bases. This is a natural one.

    ⟨ ( 1 0 0 0 ) , ( 0 1 0 0 ) , ( 0 0 1 0 ) , ( 0 0 0 1 ) ⟩

  8. Exercise 1.27 Worked answer

    Recommended. Find a basis for each.

    1. The subspace { a 2 x 2 + a 1 x + a 0 ∣ a 2 − 2 a 1 = a 0 } of 𝒫 2

    2. The space of three-wide row vectors whose first and second components add to zero

    3. This subspace of the 2 × 2 matrices

      { ( a b 0 c ) ∣ c − 2 b = 0 }

    Back to Exercise 1.27

    Answer. For each item, many answers are possible.

    1. One way to proceed is to parametrize by expressing the a 2 as a combination of the other two a 2 = 2 a 1 + a 0 . Then a 2 x 2 + a 1 x + a 0 is ( 2 a 1 + a 0 ) x 2 + a 1 x + a 0 and

      { ( 2 a 1 + a 0 ) x 2 + a 1 x + a 0 ∣ a 1 , a 0 ∈ ℝ } = { a 1 ⋅ ( 2 x 2 + x ) + a 0 ⋅ ( x 2 + 1 ) ∣ a 1 , a 0 ∈ ℝ }

      suggests ⟨ 2 x 2 + x , x 2 + 1 ⟩ . This only shows that it spans, but checking that it is linearly independent is routine.

    2. Parametrize { ( a b c ) ∣ a + b = 0 } to get { ( − b b c ) ∣ b , c ∈ ℝ } , which suggests using the sequence ⟨ ( − 1 1 0 ) , ( 0 0 1 ) ⟩ . We’ve shown that it spans, and checking that it is linearly independent is easy.

    3. Rewriting

      { ( a b 0 2 b ) ∣ a , b ∈ ℝ } = { a ⋅ ( 1 0 0 0 ) + b ⋅ ( 0 1 0 2 ) ∣ a , b ∈ ℝ }

      suggests this for the basis.

      ⟨ ( 1 0 0 0 ) , ( 0 1 0 2 ) ⟩

  9. Exercise 1.28 Worked answer

    Find a basis for each space, and verify that it is a basis.

    1. The subspace M = { a + b x + c x 2 + d x 3 ∣ a − 2 b + c − d = 0 } of 𝒫 3 .

    2. This subspace of ℳ 2 × 2 .

      W = { ( a b c d ) ∣ a − c = 0 }

    Back to Exercise 1.28

    Answer.

    1. Parametrize a − 2 b + c − d = 0 as a = 2 b − c + d , b = b , c = c , and  d = d to get this description of M as the span of a set of three vectors.

      M = { ( 2 + x ) ⋅ b + ( − 1 + x 2 ) ⋅ c + ( 1 + x 3 ) ⋅ d ∣ b , c , d ∈ ℝ }

      To show that this three-vector set is a basis, what remains is to verify that it is linearly independent.

      0 + 0 x + 0 x 2 + 0 x 3 = ( 2 + x ) ⋅ c 1 + ( − 1 + x 2 ) ⋅ c 2 + ( 1 + x 3 ) ⋅ c 3

      From the x  terms we see that c 1 = 0 . From the x 2  terms we see that c 2 = 0 . The x 3  terms give that c 3 = 0 .

    2. First parametrize the description (note that the fact that b and  d are not mentioned in the description of W does not mean they are zero or absent, it means that they are unrestricted).

      W = { ( 0 1 0 0 ) ⋅ b + ( 1 0 1 0 ) ⋅ c + ( 0 0 0 1 ) ⋅ d ∣ b , c , d ∈ ℝ }

      That gives W as the span of a three element set. We will be done if we show that the set is linearly independent.

      ( 0 0 0 0 ) = ( 0 1 0 0 ) ⋅ c 1 + ( 1 0 1 0 ) ⋅ c 2 + ( 0 0 0 1 ) ⋅ c 3

      Using the upper right entries we see that c 1 = 0 . The upper left entries give that c 2 = 0 , and the lower left entries show that c 3 = 0 .

  10. Exercise 1.29 Worked answer

    Check Example 1.6.

    Back to Exercise 1.29

    Answer. We will show that the second is a basis; the first is similar. We will show this straight from the definition of a basis, because this example appears before Theorem 1.12.

    To see that it is linearly independent, we set up c 1 ⋅ ( cos ⁡ θ − sin ⁡ θ ) + c 2 ⋅ ( 2 cos ⁡ θ + 3 sin ⁡ θ ) = 0 cos ⁡ θ + 0 sin ⁡ θ . Taking θ = 0 and θ = π / 2 gives this system

    c 1 ⋅ 1 + c 2 ⋅ 2 = 0 c 1 ⋅ ( − 1 ) + c 2 ⋅ 3 = 0 ⟶ ρ 1 + ρ 2 ( c 1 + 2 c 2 = 0 + 5 c 2 = 0

    which shows that c 1 = 0 and c 2 = 0 .

    The calculation for span is also easy; for any x , y ∈ ℝ , we have that c 1 ⋅ ( cos ⁡ θ − sin ⁡ θ ) + c 2 ⋅ ( 2 cos ⁡ θ + 3 sin ⁡ θ ) = x cos ⁡ θ + y sin ⁡ θ gives that c 2 = x / 5 + y / 5 and that c 1 = 3 x / 5 − 2 y / 5 , and so the span is the entire space.

  11. Exercise 1.30 Worked answer

    Recommended. Find the span of each set and then find a basis for that span.

    1. { 1 + x , 1 + 2 x } in 𝒫 2

    2. { 2 − 2 x , 3 + 4 x 2 } in 𝒫 2

    Back to Exercise 1.30

    Answer.

    1. Asking which a 0 + a 1 x + a 2 x 2 can be expressed as c 1 ⋅ ( 1 + x ) + c 2 ⋅ ( 1 + 2 x ) gives rise to three linear equations, describing the coefficients of x 2 , x , and the constants.

      c 1 + c 2 = a 0 c 1 + 2 c 2 = a 1 0 = a 2

      Gauss’s Method with back-substitution shows, provided that a 2 = 0 , that c 2 = − a 0 + a 1 and c 1 = 2 a 0 − a 1 . Thus, with a 2 = 0 , we can compute appropriate c 1 and c 2 for any a 0 and a 1 . So the span is the entire set of linear polynomials { a 0 + a 1 x ∣ a 0 , a 1 ∈ ℝ } . Parametrizing that set { a 0 ⋅ 1 + a 1 ⋅ x ∣ a 0 , a 1 ∈ ℝ } suggests a basis ⟨ 1 , x ⟩ (we’ve shown that it spans; checking linear independence is easy).

    2. With

      a 0 + a 1 x + a 2 x 2 = c 1 ⋅ ( 2 − 2 x ) + c 2 ⋅ ( 3 + 4 x 2 ) = ( 2 c 1 + 3 c 2 ) + ( − 2 c 1 ) x + ( 4 c 2 ) x 2

      we get this system.

      2 c 1 + 3 c 2 = a 0 − 2 c 1 = a 1 4 c 2 = a 2 ⟶ ρ 1 + ρ 2 ( ⟶ ( − 4 / 3 ) ρ 2 + ρ 3 ( 2 c 1 + 3 c 2 = a 0 3 c 2 = a 0 + a 1 0 = ( − 4 / 3 ) a 0 − ( 4 / 3 ) a 1 + a 2

      Thus, the only quadratic polynomials a 0 + a 1 x + a 2 x 2 with associated c ’s are the ones such that 0 = ( − 4 / 3 ) a 0 − ( 4 / 3 ) a 1 + a 2 . Hence the span is this.

      { ( − a 1 + ( 3 / 4 ) a 2 ) + a 1 x + a 2 x 2 ∣ a 1 , a 2 ∈ ℝ }

      Parametrizing gives { a 1 ⋅ ( − 1 + x ) + a 2 ⋅ ( ( 3 / 4 ) + x 2 ) ∣ a 1 , a 2 ∈ ℝ } , which suggests ⟨ − 1 + x , ( 3 / 4 ) + x 2 ⟩ (checking that it is linearly independent is routine).

  12. Exercise 1.31 Worked answer

    Recommended. Find a basis for each of these subspaces of the space 𝒫 3 of cubic polynomials.

    1. The subspace of cubic polynomials p ( x ) such that p ( 7 ) = 0

    2. The subspace of polynomials p ( x ) such that p ( 7 ) = 0 and p ( 5 ) = 0

    3. The subspace of polynomials p ( x ) such that p ( 7 ) = 0 , p ( 5 ) = 0 , and  p ( 3 ) = 0

    4. The space of polynomials p ( x ) such that p ( 7 ) = 0 , p ( 5 ) = 0 , p ( 3 ) = 0 , and  p ( 1 ) = 0

    Back to Exercise 1.31

    Answer.

    1. The subspace is this.

      { a 0 + a 1 x + a 2 x 2 + a 3 x 3 ∣ a 0 + 7 a 1 + 49 a 2 + 343 a 3 = 0 }

      Rewriting a 0 = − 7 a 1 − 49 a 2 − 343 a 3 gives this.

      { ( − 7 a 1 − 49 a 2 − 343 a 3 ) + a 1 x + a 2 x 2 + a 3 x 3 ∣ a 1 , a 2 , a 3 ∈ ℝ }

      On breaking out the parameters, this suggests ⟨ − 7 + x , − 49 + x 2 , − 343 + x 3 ⟩ for the basis (it is easily verified).

    2. The given subspace is the collection of cubics p ( x ) = a 0 + a 1 x + a 2 x 2 + a 3 x 3 such that a 0 + 7 a 1 + 49 a 2 + 343 a 3 = 0 and a 0 + 5 a 1 + 25 a 2 + 125 a 3 = 0 . Gauss’s Method

      a 0 + 7 a 1 + 49 a 2 + 343 a 3 = 0 a 0 + 5 a 1 + 25 a 2 + 125 a 3 = 0 ⟶ − ρ 1 + ρ 2 ( a 0 + 7 a 1 + 49 a 2 + 343 a 3 = 0 − 2 a 1 − 24 a 2 − 218 a 3 = 0

      gives that a 1 = − 12 a 2 − 109 a 3 and that a 0 = 35 a 2 + 420 a 3 . Rewriting ( 35 a 2 + 420 a 3 ) + ( − 12 a 2 − 109 a 3 ) x + a 2 x 2 + a 3 x 3 as a 2 ⋅ ( 35 − 12 x + x 2 ) + a 3 ⋅ ( 420 − 109 x + x 3 ) suggests this for a basis ⟨ 35 − 12 x + x 2 , 420 − 109 x + x 3 ⟩ . The above shows that it spans the space. Checking it is linearly independent is routine. (Comment. A worthwhile check is to verify that both polynomials in the basis have both seven and five as roots.)

    3. Here there are three conditions on the cubics, that a 0 + 7 a 1 + 49 a 2 + 343 a 3 = 0 , that a 0 + 5 a 1 + 25 a 2 + 125 a 3 = 0 , and that a 0 + 3 a 1 + 9 a 2 + 27 a 3 = 0 . Gauss’s Method

      a 0 + 7 a 1 + 49 a 2 + 343 a 3 = 0 a 0 + 5 a 1 + 25 a 2 + 125 a 3 = 0 a 0 + 3 a 1 + 9 a 2 + 27 a 3 = 0 ⟶ − ρ 1 + ρ 3 − ρ 1 + ρ 2 ( ⟶ − 2 ρ 2 + ρ 3 ( a 0 + 7 a 1 + 49 a 2 + 343 a 3 = 0 − 2 a 1 − 24 a 2 − 218 a 3 = 0 8 a 2 + 120 a 3 = 0

      yields the single free variable a 3 , with a 2 = − 15 a 3 , a 1 = 71 a 3 , and a 0 = − 105 a 3 . The parametrization is this.

      { ( − 105 a 3 ) + ( 71 a 3 ) x + ( − 15 a 3 ) x 2 + ( a 3 ) x 3 ∣ a 3 ∈ ℝ } = { a 3 ⋅ ( − 105 + 71 x − 15 x 2 + x 3 ) ∣ a 3 ∈ ℝ }

      Therefore, a natural candidate for the basis is ⟨ − 105 + 71 x − 15 x 2 + x 3 ⟩ . It spans the space by the work above. It is clearly linearly independent because it is a one-element set (with that single element not the zero object of the space). Thus, any cubic through the three points ( 7 , 0 ) , ( 5 , 0 ) , and ( 3 , 0 ) is a multiple of this one. (Comment. As in the prior question, a worthwhile check is to verify that plugging seven, five, and three into this polynomial yields zero each time.)

    4. This is the trivial subspace of 𝒫 3 . Thus, the basis is empty ⟨ ⟩ .

    Remark. Alternatively, we could have derived the polynomial in the third item by multiplying out ( x − 7 ) ( x − 5 ) ( x − 3 ) .

  13. Exercise 1.32 Worked answer

    We’ve seen that the result of reordering a basis can be another basis. Must it be?

    Back to Exercise 1.32

    Answer. Yes. Linear independence and span are unchanged by reordering.

  14. Exercise 1.33 Worked answer

    Can a basis contain a zero vector?

    Back to Exercise 1.33

    Answer. No linearly independent set contains a zero vector.

  15. Exercise 1.34 Worked answer

    Recommended. Let ⟨ β → 1 , β → 2 , β → 3 ⟩ be a basis for a vector space.

    1. Show that ⟨ c 1 β → 1 , c 2 β → 2 , c 3 β → 3 ⟩ is a basis when c 1 , c 2 , c 3 ≠ 0 . What happens when at least one c i is 0 ?

    2. Prove that ⟨ α → 1 , α → 2 , α → 3 ⟩ is a basis where α → i = β → 1 + β → i .

    Back to Exercise 1.34

    Answer.

    1. To show that it is linearly independent, note that if d 1 ( c 1 β → 1 ) + d 2 ( c 2 β → 2 ) + d 3 ( c 3 β → 3 ) = 0 → then ( d 1 c 1 ) β → 1 + ( d 2 c 2 ) β → 2 + ( d 3 c 3 ) β → 3 = 0 → , which in turn implies that each d i c i is zero. But with c i ≠ 0 that means that each d i is zero. Showing that it spans the space is much the same; because ⟨ β → 1 , β → 2 , β → 3 ⟩ is a basis, and so spans the space, we can for any v → write v → = d 1 β → 1 + d 2 β → 2 + d 3 β → 3 , and then v → = ( d 1 / c 1 ) ( c 1 β → 1 ) + ( d 2 / c 2 ) ( c 2 β → 2 ) + ( d 3 / c 3 ) ( c 3 β → 3 ) .

      If any of the scalars are zero then the result is not a basis, because it is not linearly independent.

    2. Showing that ⟨ 2 β → 1 , β → 1 + β → 2 , β → 1 + β → 3 ⟩ is linearly independent is easy. To show that it spans the space, assume that v → = d 1 β → 1 + d 2 β → 2 + d 3 β → 3 . Then, we can represent the same v → with respect to ⟨ 2 β → 1 , β → 1 + β → 2 , β → 1 + β → 3 ⟩ in this way v → = ( 1 / 2 ) ( d 1 − d 2 − d 3 ) ( 2 β → 1 ) + d 2 ( β → 1 + β → 2 ) + d 3 ( β → 1 + β → 3 ) .

  16. Exercise 1.35 Worked answer

    Find one vector v → that will make each into a basis for the space.

    1. ⟨ ( 1 1 ) , v → ⟩ in ℝ 2

    2. ⟨ ( 1 1 0 ) , ( 0 1 0 ) , v → ⟩ in ℝ 3

    3. ⟨ x , 1 + x 2 , v → ⟩ in 𝒫 2

    Back to Exercise 1.35

    Answer. Each forms a linearly independent set if we omit v → . To preserve linear independence, we must expand the span of each. That is, we must determine the span of each (leaving v → out), and then pick a v → lying outside of that span. Then to finish, we must check that the result spans the entire given space. Those checks are routine.

    1. Any vector that is not a multiple of the given one, that is, any vector that is not on the line y = x will do here. One is v → = e → 1 .

    2. By inspection, we notice that the vector e → 3 is not in the span of the set of the two given vectors. The check that the resulting set is a basis for ℝ 3 is routine.

    3. For any member of the span { c 1 ⋅ ( x ) + c 2 ⋅ ( 1 + x 2 ) ∣ c 1 , c 2 ∈ ℝ } , the coefficient of x 2 equals the constant term. So we expand the span if we add a quadratic without this property, say, v → = 1 − x 2 . The check that the result is a basis for 𝒫 2 is easy.

  17. Exercise 1.36 Worked answer

    Recommended. Consider 2 + 4 x 2 , 1 + 3 x 2 , 1 + 5 x 2 ∈ 𝒫 2 .

    1. Find a linear relationship among the three.

    2. Represent them with respect to B = ⟨ 1 − x , 1 + x , x 2 ⟩ .

    3. Check that the same linear relationship holds among the representations, as in Lemma 1.18.

    Back to Exercise 1.36

    Answer.

    1. 1 ⋅ ( 2 + 4 x 2 ) − 3 ⋅ ( 1 + 3 x 2 ) + 1 ⋅ ( 1 + 5 x 2 ) = 0 + 0 x + 0 x 2

    2. Simple calculation gives this.

      Rep B ( 2 + 4 x 2 ) = ( 1 1 4 ) Rep B ( 1 + 3 x 2 ) = ( 1 / 2 1 / 2 3 ) Rep B ( 1 + 5 x 2 ) = ( 1 / 2 1 / 2 5 )

    3. The check is straightforward.

      1 ⋅ ( 1 1 4 ) − 3 ⋅ ( 1 / 2 1 / 2 3 ) + 1 ⋅ ( 1 / 2 1 / 2 5 ) = ( 0 0 0 )

  18. Exercise 1.37 Worked answer

    Recommended. Where ⟨ β → 1 , … , β → n ⟩ is a basis, show that in this equation

    c 1 β → 1 + ⋯ + c k β → k = c k + 1 β → k + 1 + ⋯ + c n β → n

    each of the c i ’s is zero. Generalize.

    Back to Exercise 1.37

    Answer. To show that each scalar is zero, simply subtract c 1 β → 1 + ⋯ + c k β → k − c k + 1 β → k + 1 − ⋯ − c n β → n = 0 → . The obvious generalization is that in any equation involving only the β → ’s, and in which each β → appears only once, each scalar is zero. For instance, an equation with a combination of the even-indexed basis vectors (i.e., β → 2 , β → 4 , etc.) on the right and the odd-indexed basis vectors on the left also gives the conclusion that all of the coefficients are zero.

  19. Exercise 1.38 Worked answer

    A basis contains some of the vectors from a vector space; can it contain them all?

    Back to Exercise 1.38

    Answer. No; no linearly independent set contains the zero vector.

  20. Exercise 1.39 Worked answer

    Theorem 1.12 shows that, with respect to a basis, every linear combination is unique. If a subset is not a basis, can linear combinations be not unique? If so, must they be?

    Back to Exercise 1.39

    Answer. Here is a subset of ℝ 2 that is not a basis, and two different linear combinations of its elements that sum to the same vector.

    { ( 1 2 ) , ( 2 4 ) } 2 ⋅ ( 1 2 ) + 0 ⋅ ( 2 4 ) = 0 ⋅ ( 1 2 ) + 1 ⋅ ( 2 4 )

    Thus, when a subset is not a basis, it can be the case that its linear combinations are not unique.

    But just because a subset is not a basis does not imply that its combinations must be not unique. For instance, this set

    { ( 1 2 ) }

    does have the property that

    c 1 ⋅ ( 1 2 ) = c 2 ⋅ ( 1 2 )

    implies that c 1 = c 2 . The idea here is that this subset fails to be a basis because it fails to span the space; the proof of the theorem establishes that linear combinations are unique if and only if the subset is linearly independent.

  21. Exercise 1.40 Worked answer

    A square matrix is symmetric if for all indices i and j , entry i , j equals entry j , i .

    1. Find a basis for the vector space of symmetric 2 × 2 matrices.

    2. Find a basis for the space of symmetric 3 × 3 matrices.

    3. Find a basis for the space of symmetric n × n matrices.

    Back to Exercise 1.40

    Answer.

    1. Describing the vector space as

      { ( a b b c ) ∣ a , b , c ∈ ℝ }

      suggests this for a basis.

      ⟨ ( 1 0 0 0 ) , ( 0 0 0 1 ) , ( 0 1 1 0 ) ⟩

      Verification is easy.

    2. This is one possible basis.

      ⟨ ( 1 0 0 0 0 0 0 0 0 ) , ( 0 0 0 0 1 0 0 0 0 ) , ( 0 0 0 0 0 0 0 0 1 ) , ( 0 1 0 1 0 0 0 0 0 ) , ( 0 0 1 0 0 0 1 0 0 ) , ( 0 0 0 0 0 1 0 1 0 ) ⟩

    3. As in the prior two questions, we can form a basis from two kinds of matrices. First are the matrices with a single one on the diagonal and all other entries zero (there are n of those matrices). Second are the matrices with two opposed off-diagonal entries are ones and all other entries are zeros. (That is, all entries in M are zero except that m i , j and m j , i are one.)

  22. Exercise 1.41 Worked answer

    We can show that every basis for ℝ 3 contains the same number of vectors.

    1. Show that no linearly independent subset of ℝ 3 contains more than three vectors.

    2. Show that no spanning subset of ℝ 3 contains fewer than three vectors. Hint: recall how to calculate the span of a set and show that this method cannot yield all of ℝ 3 when we apply it to fewer than three vectors.

    Back to Exercise 1.41

    Answer.

    1. Any four vectors from ℝ 3 are linearly related because the vector equation

      c 1 ( x 1 y 1 z 1 ) + c 2 ( x 2 y 2 z 2 ) + c 3 ( x 3 y 3 z 3 ) + c 4 ( x 4 y 4 z 4 ) = ( 0 0 0 )

      gives rise to a linear system

      x 1 c 1 + x 2 c 2 + x 3 c 3 + x 4 c 4 = 0 y 1 c 1 + y 2 c 2 + y 3 c 3 + y 4 c 4 = 0 z 1 c 1 + z 2 c 2 + z 3 c 3 + z 4 c 4 = 0

      that is homogeneous (and so has a solution) and has four unknowns but only three equations, and therefore has nontrivial solutions. (Of course, this argument applies to any subset of ℝ 3 with four or more vectors.)

    2. We shall do just the two-vector case. Given x 1 , …, z 2 ,

      S = { ( x 1 y 1 z 1 ) , ( x 2 y 2 z 2 ) }

      to decide which vectors

      ( x y z )

      are in the span of S , set up

      c 1 ( x 1 y 1 z 1 ) + c 2 ( x 2 y 2 z 2 ) = ( x y z )

      and row reduce the resulting system.

      x 1 c 1 + x 2 c 2 = x y 1 c 1 + y 2 c 2 = y z 1 c 1 + z 2 c 2 = z

      There are two variables c 1 and c 2 but three equations, so when Gauss’s Method finishes, on the bottom row there will be some relationship of the form 0 = m 1 x + m 2 y + m 3 z . Hence, vectors in the span of the two-element set S must satisfy some restriction. Hence the span is not all of ℝ 3 .

  23. Exercise 1.42 Worked answer

    One of the exercises in the Subspaces subsection shows that the set

    { ( x y z ) ∣ x + y + z = 1 }

    is a vector space under these operations.

    ( x 1 y 1 z 1 ) + ( x 2 y 2 z 2 ) = ( x 1 + x 2 − 1 y 1 + y 2 z 1 + z 2 ) r ( x y z ) = ( r x − r + 1 r y r z )

    Find a basis.

    Back to Exercise 1.42

    Answer. We have (using these oddball operations with care)

    { ( 1 − y − z y z ) ∣ y , z ∈ ℝ } = { ( − y + 1 y 0 ) + ( − z + 1 0 z ) ∣ y , z ∈ ℝ } = { y ⋅ ( 0 1 0 ) + z ⋅ ( 0 0 1 ) ∣ y , z ∈ ℝ }

    and so a natural candidate for a basis is this.

    ⟨ ( 0 1 0 ) , ( 0 0 1 ) ⟩

    To check linear independence we set up

    c 1 ( 0 1 0 ) + c 2 ( 0 0 1 ) = ( 1 0 0 )

    (the vector on the right is the zero object in this space). That yields the linear system

    ( − c 1 + 1 ) + ( − c 2 + 1 ) − 1 = 1 c 1 = 0 c 2 = 0

    with only the solution c 1 = 0 and c 2 = 0 . Checking the span is similar.

Dimension

The previous subsection defines a basis of a vector space and shows that a space can have many different bases. So we cannot talk about “the” basis for a vector space. True, some vector spaces have bases that strike us as more natural than others, for instance, ℝ 2 ’s basis ℰ 2 or 𝒫 2 ’s basis ⟨ 1 , x , x 2 ⟩ . But for the vector space { a 2 x 2 + a 1 x + a 0 ∣ 2 a 2 − a 0 = a 1 } , no particular basis leaps out at us as the natural one. We cannot, in general, associate with a space any single basis that best describes it.

We can however find something about the bases that is uniquely associated with the space. This subsection shows that any two bases for a space have the same number of elements. So with each space we can associate a number, the number of vectors in any of its bases.

Before we start, we first limit our attention to spaces where at least one basis has only finitely many members.

Definition 2.1 A vector space is finite-dimensional if it has a basis with only finitely many vectors.

One space that is not finite-dimensional is the set of polynomials with real coefficients, Example 1.11. This is not spanned by any finite subset since that would contain a polynomial of largest degree but this space has polynomials of all degrees. Such spaces are interesting and important but we will focus in a different direction. From now on we will study only finite-dimensional vector spaces. In the rest of this book we shall take ‘vector space’ to mean ‘finite-dimensional vector space’.

To prove the main theorem we shall use a technical result, the Exchange Lemma. We first illustrate it with an example.

Example 2.2 Here is a basis for ℝ 3 and a vector given as a linear combination of members of that basis.

B = ⟨ ( 1 0 0 ) , ( 1 1 0 ) , ( 0 0 2 ) ⟩ ( 1 2 0 ) = ( − 1 ) ⋅ ( 1 0 0 ) + 2 ( 1 1 0 ) + 0 ⋅ ( 0 0 2 )

Two of the basis vectors have non-zero coefficients. Pick one, for instance the first. Replace it with the vector that we’ve expressed as the combination

B ^ = ⟨ ( 1 2 0 ) , ( 1 1 0 ) , ( 0 0 2 ) ⟩

and the result is another basis for ℝ 3 .

Lemma 2.3 (Exchange Lemma) Assume that B = ⟨ β → 1 , … , β → n ⟩ is a basis for a vector space, and that for the vector v → the relationship v → = c 1 β → 1 + c 2 β → 2 + ⋯ + c n β → n has c i ≠ 0 . Then exchanging β → i for v → yields another basis for the space.

Proof Call the outcome of the exchange B ^ = ⟨ β → 1 , … , β → i − 1 , v → , β → i + 1 , … , β → n ⟩ .

We first show that B ^ is linearly independent. Any relationship d 1 β → 1 + ⋯ + d i v → + ⋯ + d n β → n = 0 → among the members of B ^ , after substitution for v → ,

d 1 β → 1 + ⋯ + d i ⋅ ( c 1 β → 1 + ⋯ + c i β → i + ⋯ + c n β → n ) + ⋯ + d n β → n = 0 → ( ∗ )

gives a linear relationship among the members of B . The basis B is linearly independent so the coefficient d i c i of β → i is zero. Because we assumed that c i is nonzero, d i = 0 . Using this in equation  ( ∗ ) gives that all of the other d ’s are also zero. Therefore B ^ is linearly independent.

We finish by showing that B ^ has the same span as B . Half of this argument, that [ B ^ ] ⊆ [ B ] , is easy; we can write any member d 1 β → 1 + ⋯ + d i v → + ⋯ + d n β → n of [ B ^ ] as d 1 β → 1 + ⋯ + d i ⋅ ( c 1 β → 1 + ⋯ + c n β → n ) + ⋯ + d n β → n , which is a linear combination of linear combinations of members of B , and hence is in [ B ] . For the [ B ] ⊆ [ B ^ ] half of the argument, recall that if v → = c 1 β → 1 + ⋯ + c n β → n with c i ≠ 0 then we can rearrange the equation to β → i = ( − c 1 / c i ) β → 1 + ⋯ + ( 1 / c i ) v → + ⋯ + ( − c n / c i ) β → n . Now, consider any member d 1 β → 1 + ⋯ + d i β → i + ⋯ + d n β → n of [ B ] , substitute for β → i its expression as a linear combination of the members of B ^ , and recognize, as in the first half of this argument, that the result is a linear combination of linear combinations of members of B ^ , and hence is in [ B ^ ] .

QED

Theorem 2.4 In any finite-dimensional vector space, all bases have the same number of elements.

Proof Fix a vector space with at least one finite basis. Choose, from among all of this space’s bases, one B = ⟨ β → 1 , … , β → n ⟩ of minimal size. We will show that any other basis D = ⟨ δ → 1 , δ → 2 , … ⟩ also has the same number of members, n . Because B has minimal size, D has no fewer than n vectors. We will argue that it cannot have more than n vectors.

The basis B spans the space and δ → 1 is in the space, so δ → 1 is a nontrivial linear combination of elements of B . By the Exchange Lemma, we can swap δ → 1 for a vector from B , resulting in a basis B 1 , where one element is δ → 1 and all of the n − 1 other elements are β → ’s.

The prior paragraph forms the basis step for an induction argument. The inductive step starts with a basis B k (for 1 ≤ k < n ) containing k members of D and n − k members of B . We know that D has at least n members so there is a δ → k + 1 . Represent it as a linear combination of elements of B k . The key point: in that representation, at least one of the nonzero scalars must be associated with a β → i or else that representation would be a nontrivial linear relationship among elements of the linearly independent set D . Exchange δ → k + 1 for β → i to get a new basis B k + 1 with one δ → more and one β → fewer than the previous basis B k .

Repeat that until no β → ’s remain, so that B n contains δ → 1 , … , δ → n . Now, D cannot have more than these n vectors because any δ → n + 1 that remains would be in the span of B n (since it is a basis) and hence would be a linear combination of the other δ → ’s, contradicting that D is linearly independent.

QED

Definition 2.5 The dimension of a vector space is the number of vectors in any of its bases.

Example 2.6 Any basis for ℝ n has n vectors since the standard basis ℰ n has n vectors. Thus, this definition of ‘dimension’ generalizes the most familiar use of term, that ℝ n is n -dimensional.

Example 2.7 The space 𝒫 n of polynomials of degree at most n has dimension n + 1 . We can show this by exhibiting any basis— ⟨ 1 , x , … , x n ⟩ comes to mind—and counting its members.

Example 2.8 The space of functions { a ⋅ cos ⁡ θ + b ⋅ sin ⁡ θ ∣ a , b ∈ ℝ } of the real variable θ has dimension  2 since this space has the basis ⟨ cos ⁡ θ , sin ⁡ θ ⟩ .

Example 2.9 A trivial space is zero-dimensional since its basis is empty.

Again, although we sometimes say ‘finite-dimensional’ for emphasis, from now on we take all vector spaces to be finite-dimensional. So in the next result the word ‘space’ means ‘finite-dimensional vector space’.

Corollary 2.10 No linearly independent set can have a size greater than the dimension of the enclosing space.

Proof The proof of Theorem 2.4 never uses that D spans the space, only that it is linearly independent.

QED

Example 2.11 Recall the diagram from Example I.2.19 showing the subspaces of ℝ 3 . Each subspace is described with a minimal spanning set, a basis. The whole space has a basis with three members, the plane subspaces have bases with two members, the line subspaces have bases with one member, and the trivial subspace has a basis with zero members.

In that section we could not show that these are ℝ 3 ’s only subspaces. We can show it now. The prior corollary proves that There are no, say, five-dimensional subspaces of three-space. Further, by Definition 2.5 the dimension of every space is a whole number so there are no subspaces of ℝ 3 that are somehow 1.5 -dimensional, between lines and planes. Thus the list of subspaces that we gave is exhaustive; the only subspaces of ℝ 3 are either three-, two-, one-, or zero-dimensional.

Corollary 2.12 Any linearly independent set can be expanded to make a basis.

Proof If a linearly independent set is not already a basis then it must not span the space. Adding to the set a vector that is not in the span will preserve linear independence by Lemma II.1.15. Keep adding until the resulting set does span the space, which the prior corollary shows will happen after only a finite number of steps.

QED

Corollary 2.13 Any spanning set can be shrunk to a basis.

Proof Call the spanning set S . If S is empty then it is already a basis (the space must be a trivial space). If S = { 0 → } then it can be shrunk to the empty basis, thereby making it linearly independent, without changing its span.

Otherwise, S contains a vector s → 1 with s → 1 ≠ 0 → and we can form a basis B 1 = ⟨ s → 1 ⟩ . If [ B 1 ] = [ S ] then we are done. If not then there is a s → 2 ∈ [ S ] such that s → 2 ∉ [ B 1 ] . Let B 2 = ⟨ s → 1 , s 2 → ⟩ ; by Lemma II.1.15 this is linearly independent so if [ B 2 ] = [ S ] then we are done.

We can repeat this process until the spans are equal, which must happen in at most finitely many steps.

QED

Corollary 2.14 In an n -dimensional space, a set composed of n vectors is linearly independent if and only if it spans the space.

Proof First we will show that a subset with n vectors is linearly independent if and only if it is a basis. The ‘if’ is trivially true—bases are linearly independent. ‘Only if’ holds because a linearly independent set can be expanded to a basis, but a basis has n elements, so this expansion is actually the set that we began with.

To finish, we will show that any subset with n vectors spans the space if and only if it is a basis. Again, ‘if’ is trivial. ‘Only if’ holds because any spanning set can be shrunk to a basis, but a basis has n elements and so this shrunken set is just the one we started with.

QED

The main result of this subsection, that all of the bases in a finite-dimensional vector space have the same number of elements, is the single most important result in this book. As Example 2.11 shows, it describes what vector spaces and subspaces there can be.

One immediate consequence brings us back to when we considered the two things that could be meant by the term ‘minimal spanning set’. At that point we defined ‘minimal’ as linearly independent but we noted that another reasonable interpretation of the term is that a spanning set is ‘minimal’ when it has the fewest number of elements of any set with the same span. Now that we have shown that all bases have the same number of elements, we know that the two senses of ‘minimal’ are equivalent.

Exercises

Assume that all spaces are finite-dimensional unless otherwise stated.

  1. Exercise 2.15 Worked answer

    Recommended. Find a basis for, and the dimension of, 𝒫 2 .

    Back to Exercise 2.15

    Answer. One basis is ⟨ 1 , x , x 2 ⟩ , and so the dimension is three.

  2. Exercise 2.16 Worked answer

    Find a basis for, and the dimension of, the solution set of this system.

    x 1 − 4 x 2 + 3 x 3 − x 4 = 0 2 x 1 − 8 x 2 + 6 x 3 − 2 x 4 = 0

    Back to Exercise 2.16

    Answer. The solution set is

    { ( 4 x 2 − 3 x 3 + x 4 x 2 x 3 x 4 ) ∣ x 2 , x 3 , x 4 ∈ ℝ }

    so a natural basis is this

    ⟨ ( 4 1 0 0 ) , ( − 3 0 1 0 ) , ( 1 0 0 1 ) ⟩

    (checking linear independence is easy). Thus the dimension is three.

  3. Exercise 2.17 Worked answer

    Recommended. Find a basis for, and the dimension of, each space.

    1. { ( x y z w ) ∈ ℝ 4 ∣ x − w + z = 0 }

    2. the set of 5 × 5 matrices whose only nonzero entries are on the diagonal (e.g., in entry 1 , 1 and 2 , 2 , etc.)

    3. { a 0 + a 1 x + a 2 x 2 + a 3 x 3 ∣ a 0 + a 1 = 0  and  a 2 − 2 a 3 = 0 } ⊆ 𝒫 3

    Back to Exercise 2.17

    Answer.

    1. Parametrize to get this description of the space.

      { ( w − z y z w ) = ( 0 1 0 0 ) y + ( − 1 0 1 0 ) z + ( 1 0 0 1 ) w ∣ y , z , w ∈ ℝ }

      That gives the space as the span of the three-vector set. To show the three vector set makes a basis we check that it is linearly independent.

      ( 0 0 0 0 ) = ( 0 1 0 0 ) c 1 + ( − 1 0 1 0 ) c 2 + ( 1 0 0 1 ) c 3

      The second components give that c 1 = 0 , and the third and fourth components give that c 2 = 0 and  c 3 = 0 . So one basis is this.

      ⟨ ( 0 1 0 0 ) , ( − 1 0 1 0 ) , ( 1 0 0 1 ) ⟩

      The dimension is the number of vectors in a basis: 3 .

    2. The natural parametrization is this.

      { ( a 0 0 0 0 0 b 0 0 0 0 0 c 0 0 0 0 0 d 0 0 0 0 0 e ) ∣ a , … , e ∈ ℝ } { ( 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ) ⋅ a + ( 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ) ⋅ b + ⋯ ∣ a , … , e ∈ ℝ }

      Checking that the five-element set is linearly independent is trivial. So this is a basis; the dimension is 5 .

      ⟨ ( 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ) , ( 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ) , … , ( 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 ) ⟩

    3. The restrictions form a two-equations, four-unknowns linear system. Parametrizing that system to express the leading variables in terms of those that are free gives a 0 = − a 1 , a 1 = a 1 , a 2 = 2 a 3 , and  a 3 = a 3 .

      { − a 1 + a 1 x + 2 a 3 x 2 + a 3 x 3 ∣ a 1 , a 3 ∈ ℝ } = { ( − 1 + x ) ⋅ a 1 + ( 2 x 2 + x 3 ) ⋅ a 3 ∣ a 1 , a 3 ∈ ℝ }

      That description shows that the space is the span of the two-element set { − 1 + x , x 2 + x 3 } . We will be done if we show the set is linearly independent. This relationship

      0 + 0 x + 0 x 2 + 0 x 3 = ( − 1 + x ) ⋅ c 1 + ( 2 x 2 + x 3 ) ⋅ c 2

      gives that c 1 = 0 from the constant terms, and c 2 = 0 from the cubic terms. One basis for the space is ⟨ − 1 + x , 2 x 2 + x 3 ⟩ . This is a two-dimensional space.

  4. Exercise 2.18 Worked answer

    Find a basis for, and the dimension of, ℳ 2 × 2 , the vector space of 2 × 2 matrices.

    Back to Exercise 2.18

    Answer. For this space

    { ( a b c d ) ∣ a , b , c , d ∈ ℝ } = { a ⋅ ( 1 0 0 0 ) + ⋯ + d ⋅ ( 0 0 0 1 ) ∣ a , b , c , d ∈ ℝ }

    this is a natural basis.

    ⟨ ( 1 0 0 0 ) , ( 0 1 0 0 ) , ( 0 0 1 0 ) , ( 0 0 0 1 ) ⟩

    The dimension is four.

  5. Exercise 2.19 Worked answer

    Find the dimension of the vector space of matrices

    ( a b c d )

    subject to each condition.

    1. a , b , c , d ∈ ℝ

    2. a − b + 2 c = 0 and  d ∈ ℝ

    3. a + b + c = 0 , a + b − c = 0 , and  d ∈ ℝ

    Back to Exercise 2.19

    Answer.

    1. As in the prior exercise, the space ℳ 2 × 2 of matrices without restriction has this basis

      ⟨ ( 1 0 0 0 ) , ( 0 1 0 0 ) , ( 0 0 1 0 ) , ( 0 0 0 1 ) ⟩

      and so the dimension is four.

    2. For this space

      { ( a b c d ) ∣ a = b − 2 c  and  d ∈ ℝ } = { b ⋅ ( 1 1 0 0 ) + c ⋅ ( − 2 0 1 0 ) + d ⋅ ( 0 0 0 1 ) ∣ b , c , d ∈ ℝ }

      this is a natural basis.

      ⟨ ( 1 1 0 0 ) , ( − 2 0 1 0 ) , ( 0 0 0 1 ) ⟩

      The dimension is three.

    3. Gauss’s Method applied to the two-equation linear system gives that c = 0 and that a = − b . Thus, we have this description

      { ( − b b 0 d ) ∣ b , d ∈ ℝ } = { b ⋅ ( − 1 1 0 0 ) + d ⋅ ( 0 0 0 1 ) ∣ b , d ∈ ℝ }

      and so this is a natural basis.

      ⟨ ( − 1 1 0 0 ) , ( 0 0 0 1 ) ⟩

      The dimension is two.

  6. Exercise 2.20 Worked answer

    Recommended. Find the dimension of this subspace of ℝ 2 .

    S = { ( a + b a + c ) ∣ a , b , c ∈ ℝ }

    Back to Exercise 2.20

    Answer. We cannot simply count the parameters. That is, the answer is not  3 . Instead, observe that we can express every member ( x y ) ∈ ℝ 2 in the form

    ( x y ) = ( a + b a + c )

    with the choice of a = 0 , b = x , and c = y (other choices are possible). So S is the set S = ℝ 2 . It has dimension  2 .

  7. Exercise 2.21 Worked answer

    Recommended. Find the dimension of each.

    1. The space of cubic polynomials p ( x ) such that p ( 7 ) = 0

    2. The space of cubic polynomials p ( x ) such that p ( 7 ) = 0 and  p ( 5 ) = 0

    3. The space of cubic polynomials p ( x ) such that p ( 7 ) = 0 , p ( 5 ) = 0 , and  p ( 3 ) = 0

    4. The space of cubic polynomials p ( x ) such that p ( 7 ) = 0 , p ( 5 ) = 0 , p ( 3 ) = 0 , and  p ( 1 ) = 0

    Back to Exercise 2.21

    Answer. The bases for these spaces are developed in the answer set of the prior subsection.

    1. One basis is ⟨ − 7 + x , − 49 + x 2 , − 343 + x 3 ⟩ . The dimension is three.

    2. One basis is ⟨ 35 − 12 x + x 2 , 420 − 109 x + x 3 ⟩ so the dimension is two.

    3. A basis is { − 105 + 71 x − 15 x 2 + x 3 } . The dimension is one.

    4. This is the trivial subspace of 𝒫 3 and so the basis is empty. The dimension is zero.

  8. Exercise 2.22 Worked answer

    What is the dimension of the span of the set { cos 2 ⁡ θ , sin 2 ⁡ θ , cos ⁡ 2 θ , sin ⁡ 2 θ } ? This span is a subspace of the space of all real-valued functions of one real variable.

    Back to Exercise 2.22

    Answer. First recall that cos ⁡ 2 θ = cos 2 ⁡ θ − sin 2 ⁡ θ , and so deletion of cos ⁡ 2 θ from this set leaves the span unchanged. What’s left, the set { cos 2 ⁡ θ , sin 2 ⁡ θ , sin ⁡ 2 θ } , is linearly independent (consider the relationship c 1 cos 2 ⁡ θ + c 2 sin 2 ⁡ θ + c 3 sin ⁡ 2 θ = Z ( θ ) where Z is the zero function, and then take θ = 0 , θ = π / 4 , and θ = π / 2 to conclude that each c is zero). It is therefore a basis for its span. That shows that the span is a dimension three vector space.

  9. Exercise 2.23 Worked answer

    Find the dimension of ℂ 47 , the vector space of 47 -tuples of complex numbers.

    Back to Exercise 2.23

    Answer. Here is a basis

    ⟨ ( 1 + 0 i , 0 + 0 i , … , 0 + 0 i ) , ( 0 + 1 i , 0 + 0 i , … , 0 + 0 i ) , ( 0 + 0 i , 1 + 0 i , … , 0 + 0 i ) , … ⟩

    and so the dimension is 2 ⋅ 47 = 94 .

  10. Exercise 2.24 Worked answer

    What is the dimension of the vector space ℳ 3 × 5 of 3 × 5 matrices?

    Back to Exercise 2.24

    Answer. A basis is

    ⟨ ( 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ) , ( 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 ) , … , ( 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 ) ⟩

    and thus the dimension is 3 ⋅ 5 = 15 .

  11. Exercise 2.25 Worked answer

    Recommended. Show that this is a basis for ℝ 4 .

    ⟨ ( 1 0 0 0 ) , ( 1 1 0 0 ) , ( 1 1 1 0 ) , ( 1 1 1 1 ) ⟩

    (We can use the results of this subsection to simplify this job.)

    Back to Exercise 2.25

    Answer. In a four-dimensional space a set of four vectors is linearly independent if and only if it spans the space. The form of these vectors makes linear independence easy to show (look at the equation of fourth components, then at the equation of third components, etc.).

  12. Exercise 2.26 Worked answer

    Decide if each is a basis for 𝒫 2 .

    1. { 1 , x 2 , x 2 − x }

    2. { x 2 + x , x 2 − x }

    3. { 2 x 2 + x + 1 , 2 x + 1 , 2 }

    4. { 3 x 2 , − 1 , 3 x , x 2 − x }

    Back to Exercise 2.26

    Answer. By the results of this section, because 𝒫 2 has dimension  3 , to show that a linearly independent set is a basis we need only observe that it has three members. To show a set is not a basis we need only observe that it does not have three members (in this case we don’t have to worry about linear independence).

    1. This is a basis; it is linearly independent by inspection (the first element has no quadratic or linear term, the second has a quadratic but no linear term, and the third has a linear term) and it has three elements.

    2. This is not a basis as it has only two elements.

    3. This three-element set is a basis.

    4. This is not a basis as it has four elements.

  13. Exercise 2.27 Worked answer

    Refer to Example 2.11.

    1. Sketch a similar subspace diagram for 𝒫 2 .

    2. Sketch one for ℳ 2 × 2 .

    Back to Exercise 2.27

    Answer.

    1. The diagram for 𝒫 2 has four levels. The top level has the only three-dimensional subspace, 𝒫 2 itself. The next level contains the two-dimensional subspaces (not just the linear polynomials; any two-dimensional subspace, like those polynomials of the form a x 2 + b ). Below that are the one-dimensional subspaces. Finally, of course, is the only zero-dimensional subspace, the trivial subspace.

    2. For ℳ 2 × 2 , the diagram has five levels, including subspaces of dimension four through zero.

  14. Exercise 2.28 Worked answer

    Recommended. Where S is a set, the functions f : S → ℝ form a vector space under the natural operations: the sum f + g is the function given by f + g ( s ) = f ( s ) + g ( s ) and the scalar product is r ⋅ f ( s ) = r ⋅ f ( s ) . What is the dimension of the space resulting for each domain?

    1. S = { 1 }

    2. S = { 1 , 2 }

    3. S = { 1 , … , n }

    Back to Exercise 2.28

    Answer.

    1. One

    2. Two

    3. n

  15. Exercise 2.29 Worked answer

    (See Exercise 2.28.) Prove that this is an infinite-dimensional space: the set of all functions f : ℝ → ℝ under the natural operations.

    Back to Exercise 2.29

    Answer. We need only produce an infinite linearly independent set. One is such sequence is ⟨ f 1 , f 2 , … ⟩ where f i : ℝ → ℝ is

    f i ( x ) = { 1 if  x = i 0 otherwise

    the function that has value 1 only at x = i .

  16. Exercise 2.30 Worked answer

    (See Exercise 2.28.) What is the dimension of the vector space of functions f : S → ℝ , under the natural operations, where the domain S is the empty set?

    Back to Exercise 2.30

    Answer. A function is a set of ordered pairs ( x , f ( x ) ) . So there is only one function with an empty domain, namely the empty set. A vector space with only one element a trivial vector space and has dimension zero.

  17. Exercise 2.31 Worked answer

    Show that any set of four vectors in ℝ 2 is linearly dependent.

    Back to Exercise 2.31

    Answer. Apply Corollary 2.10.

  18. Exercise 2.32 Worked answer

    Show that ⟨ α → 1 , α → 2 , α → 3 ⟩ ⊂ ℝ 3 is a basis if and only if there is no plane through the origin containing all three vectors.

    Back to Exercise 2.32

    Answer. A plane has the form { p → + t 1 v → 1 + t 2 v → 2 ∣ t 1 , t 2 ∈ ℝ } . (The first chapter also calls this a ‘ 2 -flat’, and contains a discussion of why this is equivalent to the description often taken in Calculus as the set of points ( x , y , z ) subject to a condition of the form a x + b y + c z = d ). When the plane passes through the origin we can take the particular vector p → to be 0 → . Thus, in the language we have developed in this chapter, a plane through the origin is the span of a set of two vectors.

    Now for the statement. Asserting that the three are not coplanar is the same as asserting that no vector lies in the span of the other two—no vector is a linear combination of the other two. That’s simply an assertion that the three-element set is linearly independent. By Corollary 2.14, that’s equivalent to an assertion that the set is a basis for ℝ 3 (more precisely, any sequence made from the set’s elements is a basis).

  19. Exercise 2.33 Worked answer

    Prove that any subspace of a finite dimensional space is finite dimensional.

    Back to Exercise 2.33

    Answer. Let the space V be finite dimensional and let S be a subspace of V .

    If S is not finite dimensional then it has a linearly independent set that is infinite (start with the empty set and iterate adding vectors that are not linearly dependent on the set; this process can continue for infinitely many steps or else S would be finite dimensional). But any linearly independent subset of  S is a linearly independent subset of  V , contradicting Corollary 2.10

  20. Exercise 2.34 Worked answer

    Where is the finiteness of B used in Theorem 2.4?

    Back to Exercise 2.34

    Answer. It ensures that we exhaust the β → ’s. That is, it justifies the first sentence of the last paragraph.

  21. Exercise 2.35 Worked answer

    Prove that if U and W are both three-dimensional subspaces of ℝ 5 then U ∩ W is non-trivial. Generalize.

    Back to Exercise 2.35

    Answer. Let B U be a basis for U and let B W be a basis for W . Consider the concatenation of the two basis sequences. If there is a repeated element then the intersection U ∩ W is nontrivial. Otherwise, the set B U ∪ B W is linearly dependent as it is a six member subset of the five-dimensional space ℝ 5 . In either case some member of B W is in the span of B U , and thus U ∩ W is more than just the trivial space { 0 → } .

    Generalization: if U , W are subspaces of a vector space of dimension n and if dim ⁡ ( U ) + dim ⁡ ( W ) > n then they have a nontrivial intersection.

  22. Exercise 2.36 Worked answer

    A basis for a space consists of elements of that space. So we are naturally led to how the property ‘is a basis’ interacts with operations ⊆ and ∩ and ∪ . (Of course, a basis is actually a sequence that it is ordered, but there is a natural extension of these operations.)

    1. Consider first how bases might be related by ⊆ . Assume that U , W are subspaces of some vector space and that U ⊆ W . Can there exist bases B U for U and B W for W such that B U ⊆ B W ? Must such bases exist?

      For any basis B U for U , must there be a basis B W for W such that B U ⊆ B W ?

      For any basis B W for W , must there be a basis B U for U such that B U ⊆ B W ?

      For any bases B U , B W for U and W , must B U be a subset of B W ?

    2. Is the ∩ of bases a basis? For what space?

    3. Is the ∪ of bases a basis? For what space?

    4. What about the complement operation?

    (Hint. Test any conjectures against some subspaces of ℝ 3 .)

    Back to Exercise 2.36

    Answer. First, note that a set is a basis for some space if and only if it is linearly independent, because in that case it is a basis for its own span.

    1. The answer to the question in the second paragraph is “yes” (implying “yes” answers for both questions in the first paragraph). If B U is a basis for U then B U is a linearly independent subset of W . Apply Corollary 2.12 to expand it to a basis for W . That is the desired B W .

      The answer to the question in the third paragraph is “no”, which implies a “no” answer to the question of the fourth paragraph. Here is an example of a basis for a superspace with no sub-basis forming a basis for a subspace: in W = ℝ 2 , consider the standard basis ℰ 2 . No sub-basis of ℰ 2 forms a basis for the subspace U of ℝ 2 that is the line y = x .

    2. It is a basis (for its span) because the intersection of linearly independent sets is linearly independent (the intersection is a subset of each of the linearly independent sets).

      It is not, however, a basis for the intersection of the spaces. For instance, these are bases for ℝ 2 :

      B 1 = ⟨ ( 1 0 ) , ( 0 1 ) ⟩ and B 2 = ⟨ [ ⟩ r ] ( 2 0 ) , ( 0 2 )

      and ℝ 2 ∩ ℝ 2 = ℝ 2 , but B 1 ∩ B 2 is empty. All we can say is that the ∩ of the bases is a basis for a subset of the intersection of the spaces.

    3. The ∪ of bases need not be a basis: in ℝ 2

      B 1 = ⟨ ( 1 0 ) , ( 1 1 ) ⟩ and B 2 = ⟨ ( 1 0 ) , ( 0 2 ) ⟩

      B 1 ∪ B 2 is not linearly independent. A necessary and sufficient condition for a ∪ of two bases to be a basis

      B 1 ∪ B 2  is linearly independent  ⟺ [ B 1 ∩ B 2 ] = [ B 1 ] ∩ [ B 2 ]

      it is easy enough to prove (but perhaps hard to apply).

    4. The complement of a basis cannot be a basis because it contains the zero vector.

  23. Exercise 2.37 Worked answer

    Recommended. Consider how ‘dimension’ interacts with ‘subset’. Assume U and W are both subspaces of some vector space, and that U ⊆ W .

    1. Prove that dim ⁡ ( U ) ≤ dim ⁡ ( W ) .

    2. Prove that equality of dimension holds if and only if U = W .

    3. Show that the prior item does not hold if they are infinite-dimensional.

    Back to Exercise 2.37

    Answer.

    1. A basis for U is a linearly independent set in W and so can be expanded via Corollary 2.12 to a basis for W . The second basis has at least as many members as the first.

    2. One direction is clear: if V = W then they have the same dimension. For the converse, let B U be a basis for U . It is a linearly independent subset of W and so can be expanded to a basis for W . If dim ⁡ ( U ) = dim ⁡ ( W ) then this basis for W has no more members than does B U and so equals B U . Since U and W have the same bases, they are equal.

    3. Let W be the space of finite-degree polynomials and let U be the subspace of polynomials that have only even-powered terms.

      U = { a 0 + a 1 x 2 + a 2 x 4 + ⋯ + a n x 2 n ∣ a 0 , … , a n ∈ ℝ }

      Both spaces have infinite dimension but U is a proper subspace.

  24. Exercise 2.38 Worked answer

    Here is an alternative proof of this section’s main result, Theorem 2.4. First is an example, then a lemma, then the theorem.

    1. Express this vector from ℝ 3 a as a linear combination of members of the basis.

      B = ⟨ ( 1 0 0 ) , ( 1 1 0 ) , ( 0 0 2 ) ⟩ v → = ( 1 2 0 )

    2. In that combination pick a basis vector with a non-zero coefficient. Alter  B by exchanging  v → for that basis vector, to get a new sequence  B ^ . Check that B ^ is also a basis for  ℝ 3 .

    3. (Exchange Lemma) Assume that B = ⟨ β → 1 , … , β → n ⟩ is a basis for a vector space, and that for the vector v → the relationship v → = c 1 β → 1 + c 2 β → 2 + ⋯ + c n β → n has c i ≠ 0 . Prove that exchanging v → for β → i yields another basis for the space.

    4. Use that, with induction, to prove Theorem 2.4.

    Back to Exercise 2.38

    Answer.

    1. ( 1 2 0 ) = ( − 1 ) ⋅ ( 1 0 0 ) + 2 ( 1 1 0 ) + 0 ⋅ ( 0 0 2 )

    2. Two of the basis vectors are associated with non-zero coefficients. We can for instance pick the first.

      B ^ = ⟨ ( 1 2 0 ) , ( 1 1 0 ) , ( 0 0 2 ) ⟩

      Checking that it is another basis for ℝ 3 is routine.

    3. Call the outcome of the exchange B ^ = ⟨ β → 1 , … , β → i − 1 , v → , β → i + 1 , … , β → n ⟩ . We first show that B ^ is linearly independent. Any relationship d 1 β → 1 + ⋯ + d i v → + ⋯ + d n β → n = 0 → among the members of B ^ , after substitution for v → ,

      d 1 β → 1 + ⋯ + d i ⋅ ( c 1 β → 1 + ⋯ + c i β → i + ⋯ + c n β → n ) + ⋯ + d n β → n = 0 → ( ∗ )

      gives a linear relationship among the members of B . The basis B is linearly independent so the coefficient d i c i of β → i is zero. Because we assumed that c i is nonzero, d i = 0 . Using this in equation  ( ∗ ) gives that all of the other d ’s are also zero. Therefore B ^ is linearly independent.

      We finish by showing that B ^ has the same span as B . Half of this argument, that [ B ^ ] ⊆ [ B ] , is easy; we can write any member d 1 β → 1 + ⋯ + d i v → + ⋯ + d n β → n of [ B ^ ] as d 1 β → 1 + ⋯ + d i ⋅ ( c 1 β → 1 + ⋯ + c n β → n ) + ⋯ + d n β → n , which is a linear combination of linear combinations of members of B , and hence is in [ B ] . For the [ B ] ⊆ [ B ^ ] half of the argument, recall that if v → = c 1 β → 1 + ⋯ + c n β → n with c i ≠ 0 then we can rearrange the equation to β → i = ( − c 1 / c i ) β → 1 + ⋯ + ( 1 / c i ) v → + ⋯ + ( − c n / c i ) β → n . Now, consider any member d 1 β → 1 + ⋯ + d i β → i + ⋯ + d n β → n of [ B ] , substitute for β → i its expression as a linear combination of the members of B ^ , and recognize, as in the first half of this argument, that the result is a linear combination of linear combinations of members of B ^ , and hence is in [ B ^ ] .

    4. Fix a vector space with at least one finite basis. Choose, from among all of this space’s bases, one B = ⟨ β → 1 , … , β → n ⟩ of minimal size. We will show that any other basis D = ⟨ δ → 1 , δ → 2 , … ⟩ also has the same number of members, n . Because B has minimal size, D has no fewer than n  vectors. We will argue that it cannot have more than n vectors.

      The basis B spans the space and δ → 1 is in the space, so δ → 1 is a nontrivial linear combination of elements of B . By the Exchange Lemma, we can swap δ → 1 for a vector from B , resulting in a basis B 1 , where one element is δ → 1 and all of the n − 1 other elements are β → ’s.

      The prior paragraph forms the basis step for an induction argument. The inductive step starts with a basis B k (for 1 ≤ k < n ) containing k members of D and n − k members of B . We know that D has at least n members so there is a δ → k + 1 . Represent it as a linear combination of elements of B k . The key point: in that representation, at least one of the nonzero scalars must be associated with a β → i or else that representation would be a nontrivial linear relationship among elements of the linearly independent set D . Exchange δ → k + 1 for β → i to get a new basis B k + 1 with one δ → more and one β → fewer than the previous basis B k .

      Repeat that until no β → ’s remain, so that B n contains δ → 1 , … , δ → n . Now, D cannot have more than these n vectors because any δ → n + 1 that remains would be in the span of B n (since it is a basis) and hence would be a linear combination of the other δ → ’s, contradicting that D is linearly independent.

  25. Exercise 2.39 Worked answer

    Puzzle. [Sheffer] A library has n books and n + 1 subscribers. Each subscriber read at least one book from the library. Prove that there must exist two disjoint sets of subscribers who read exactly the same books (that is, the union of the books read by the subscribers in each set is the same).

    Back to Exercise 2.39

    Answer. (This answer is from a site comment by Yuzhou Gu.) For each person assign a vector v → i ∈ ℝ n , where an entry is 1 if the person reads the book, and 0 otherwise. Because the vectors are linear dependent, we will have a equation of the form ∑ a i v i = 0 . Then the set of i such that a i > 0 and the set of i such that a i < 0 are two disjoint sets with same union of read books.

  26. Exercise 2.40 Worked answer

    Puzzle. [Wohascum no. 47] For any vector v → in ℝ n and any permutation σ of the numbers 1 , 2 , …, n (that is, σ is a rearrangement of those numbers into a new order), define σ ( v → ) to be the vector whose components are v σ ( 1 ) , v σ ( 2 ) , …, and v σ ( n ) (where σ ( 1 ) is the first number in the rearrangement, etc.). Now fix v → and let V be the span of { σ ( v → ) ∣ σ  permutes  1 ,  … ,  n } . What are the possibilities for the dimension of V ?

    Back to Exercise 2.40

    Answer. The possibilities for the dimension of V are 0 , 1 , n − 1 , and n .

    To see this, first consider the case when all the coordinates of v → are equal.

    v → = ( z z ⋮ z )

    Then σ ( v → ) = v → for every permutation σ , so V is just the span of v → , which has dimension 0 or 1 according to whether v → is 0 → or not.

    Now suppose not all the coordinates of v → are equal; let x and y with x ≠ y be among the coordinates of v → . Then we can find permutations σ 1 and σ 2 such that

    σ 1 ( v → ) = ( x y a 3 ⋮ a n ) and σ 2 ( v → ) = ( y x a 3 ⋮ a n )

    for some a 3 , … , a n ∈ ℝ . Therefore,

    1 y − x ( σ 1 ( v → ) − σ 2 ( v → ) ) = ( − 1 1 0 ⋮ − 1 0 )

    is in V . That is, e → 2 − e → 1 ∈ V , where e → 1 , e → 2 , …, e → n is the standard basis for ℝ n . Similarly, e → 3 − e → 2 , …, e → n − e → 1 are all in V . It is easy to see that the vectors e → 2 − e → 1 , e → 3 − e → 2 , …, e → n − e → 1 are linearly independent (that is, form a linearly independent set), so dim ⁡ V ≥ n − 1 .

    Finally, we can write

    v → = x 1 e → 1 + x 2 e → 2 + ⋯ + x n e → n = ( x 1 + x 2 + ⋯ + x n ) e → 1 + x 2 ( e → 2 − e → 1 ) + ⋯ + x n ( e → n − e → 1 )

    This shows that if x 1 + x 2 + ⋯ + x n = 0 then v → is in the span of e → 2 − e → 1 , …, e n → − e → 1 (that is, is in the span of the set of those vectors); similarly, each σ ( v → ) will be in this span, so V will equal this span and dim ⁡ V = n − 1 . On the other hand, if x 1 + x 2 + ⋯ + x n ≠ 0 then the above equation shows that e → 1 ∈ V and thus e → 1 , … , e → n ∈ V , so V = ℝ n and dim ⁡ V = n .

Vector Spaces and Linear Systems

We will now reconsider linear systems and Gauss’s Method, aided by the tools and terms of this chapter. We will make three points.

For the first, recall the insight from the Chapter One that Gauss’s Method works by taking linear combinations of rows— if two matrices are related by row operations A ⟶ ⋯ ⟶ B then each row of B is a linear combination of the rows of A . Therefore, the right setting in which to study row operations in general, and Gauss’s Method in particular, is the following vector space.

Definition 3.1 The row space of a matrix is the span of the set of its rows. The row rank is the dimension of this space, the number of linearly independent rows.

Example 3.2 If

A = ( 2 3 4 6 )

then Rowspace ⁡ ( A ) is this subspace of the space of two-component row vectors.

{ c 1 ⋅ ( 2 3 ) + c 2 ⋅ ( 4 6 ) ∣ c 1 , c 2 ∈ ℝ }

The second row vector is linearly dependent on the first and so we can simplify the above description to { c ⋅ ( 2 3 ) ∣ c ∈ ℝ } .

Lemma 3.3 If two matrices A and B are related by a row operation

A ⟶ ρ i ↔ ρ j ( B or A ⟶ k ρ i ( B or A ⟶ k ρ i + ρ j ( B

(for i ≠ j and k ≠ 0 ) then their row spaces are equal. Hence, row-equivalent matrices have the same row space and therefore the same row rank.

Proof Corollary One.III.2.4 shows that when A ⟶ B then each row of B is a linear combination of the rows of A . That is, in the above terminology, each row of B is an element of the row space of A . Then Rowspace ⁡ ( B ) ⊆ Rowspace ⁡ ( A ) follows because a member of the set Rowspace ⁡ ( B ) is a linear combination of the rows of B , so it is a combination of combinations of the rows of A , and by the Linear Combination Lemma is also a member of Rowspace ⁡ ( A ) .

For the other set containment, recall Lemma One.III.1.5, that row operations are reversible so A ⟶ B if and only if B ⟶ A . Then Rowspace ⁡ ( A ) ⊆ Rowspace ⁡ ( B ) follows as in the previous paragraph.

QED

Of course, Gauss’s Method performs the row operations systematically, with the goal of echelon form.

Lemma 3.4 The nonzero rows of an echelon form matrix make up a linearly independent set.

Proof Lemma One.III.2.5 says that no nonzero row of an echelon form matrix is a linear combination of the other rows. This result restates that using this chapter’s terminology.

QED

Thus, in the language of this chapter, Gaussian reduction works by eliminating linear dependences among rows, leaving the span unchanged, until no nontrivial linear relationships remain among the nonzero rows. In short, Gauss’s Method produces a basis for the row space.

Example 3.5 From any matrix, we can produce a basis for the row space by performing Gauss’s Method and taking the nonzero rows of the resulting echelon form matrix. For instance,

( 1 3 1 1 4 1 2 0 5 ) ⟶ − 2 ρ 1 + ρ 3 − ρ 1 + ρ 2 ( ⟶ 6 ρ 2 + ρ 3 ( ( 1 3 1 0 1 0 0 0 3 )

produces the basis ⟨ ( 1 3 1 ) , ( 0 1 0 ) , ( 0 0 3 ) ⟩ for the row space. This is a basis for the row space of both the starting and ending matrices, since the two row spaces are equal.

Using this technique, we can also find bases for spans not directly involving row vectors.

Definition 3.6 The column space of a matrix is the span of the set of its columns. The column rank is the dimension of the column space, the number of linearly independent columns.

Our interest in column spaces stems from our study of linear systems. An example is that this system

c 1 + 3 c 2 + 7 c 3 = d 1 2 c 1 + 3 c 2 + 8 c 3 = d 2 c 2 + 2 c 3 = d 3 4 c 1 + 4 c 3 = d 4

has a solution if and only if the vector of d ’s is a linear combination of the other column vectors,

c 1 ( 1 2 0 4 ) + c 2 ( 3 3 1 0 ) + c 3 ( 7 8 2 4 ) = ( d 1 d 2 d 3 d 4 )

meaning that the vector of d ’s is in the column space of the matrix of coefficients.

Example 3.7 Given this matrix,

( 1 3 7 2 3 8 0 1 2 4 0 4 )

to get a basis for the column space, temporarily turn the columns into rows and reduce.

( 1 2 0 4 3 3 1 0 7 8 2 4 ) ⟶ − 7 ρ 1 + ρ 3 − 3 ρ 1 + ρ 2 ( ⟶ − 2 ρ 2 + ρ 3 ( ( 1 2 0 4 0 − 3 1 − 12 0 0 0 0 )

Now turn the rows back to columns.

⟨ ( 1 2 0 4 ) , ( 0 − 3 1 − 12 ) ⟩

The result is a basis for the column space of the given matrix.

Definition 3.8 The transpose of a matrix is the result of interchanging its rows and columns, so that column  j of the matrix A is row  j of A 𝖳 and vice versa.

So we can summarize the prior example as “transpose, reduce, and transpose back.”

We can even, at the price of tolerating the as-yet-vague idea of vector spaces being “the same,” use Gauss’s Method to find bases for spans in other types of vector spaces.

Example 3.9 To get a basis for the span of { x 2 + x 4 , 2 x 2 + 3 x 4 , − x 2 − 3 x 4 } in the space 𝒫 4 , think of these three polynomials as “the same” as the row vectors ( 0 0 1 0 1 ) , ( 0 0 2 0 3 ) , and ( 0 0 − 1 0 − 3 ) , apply Gauss’s Method

( 0 0 1 0 1 0 0 2 0 3 0 0 − 1 0 − 3 ) ⟶ ρ 1 + ρ 3 − 2 ρ 1 + ρ 2 ( ⟶ 2 ρ 2 + ρ 3 ( ( 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 )

and translate back to get the basis ⟨ x 2 + x 4 , x 4 ⟩ . (As mentioned earlier, we will make the phrase “the same” precise at the start of the next chapter.)

Thus, the first point for this subsection is that the tools of this chapter give us a more conceptual understanding of Gaussian reduction.

For the second point observe that row operations on a matrix can change its column space.

( 1 2 2 4 ) ⟶ − 2 ρ 1 + ρ 2 ( ( 1 2 0 0 )

The column space of the left-hand matrix contains vectors with a second component that is nonzero but the column space of the right-hand matrix contains only vectors whose second component is zero, so the two spaces are different. This observation makes next result surprising.

Lemma 3.10 Row operations do not change the column rank.

Proof Restated, if A reduces to B then the column rank of B equals the column rank of A .

This proof will be finished if we show that row operations do not affect linear relationships among columns, because the column rank is the size of the largest set of unrelated columns. That is, we will show that a relationship exists among columns (such as that the fifth column is twice the second plus the fourth) if and only if that relationship exists after the row operation. But this is exactly the first theorem of this book, Theorem One.I.1.5: in a relationship among columns,

c 1 ⋅ ( a 1 , 1 a 2 , 1 ⋮ a m , 1 ) + ⋯ + c n ⋅ ( a 1 , n a 2 , n ⋮ a m , n ) = ( 0 0 ⋮ 0 0 )

row operations leave unchanged the set of solutions ( c 1 , … , c n ) .

QED

Another way to make the point that Gauss’s Method has something to say about the column space as well as about the row space is with Gauss-Jordan reduction. It ends with the reduced echelon form of a matrix, as here.

( 1 3 1 6 2 6 3 16 1 3 1 6 ) ⟶ ( ⋯ ⟶ ( ( 1 3 0 2 0 0 1 4 0 0 0 0 )

Consider the row space and the column space of this result.

The first point made earlier in this subsection says that to get a basis for the row space we can just collect the rows with leading entries. However, because this is in reduced echelon form, a basis for the column space is just as easy: collect the columns containing the leading entries, ⟨ e → 1 , e → 2 ⟩ . Thus, for a reduced echelon form matrix we can find bases for the row and column spaces in essentially the same way, by taking the parts of the matrix, the rows or columns, containing the leading entries.

Theorem 3.11 For any matrix, the row rank and column rank are equal.

Proof Bring the matrix to reduced echelon form. Then the row rank equals the number of leading entries since that equals the number of nonzero rows. Then also, the number of leading entries equals the column rank because the set of columns containing leading entries consists of some of the e → i ’s from a standard basis, and that set is linearly independent and spans the set of columns. Hence, in the reduced echelon form matrix, the row rank equals the column rank, because each equals the number of leading entries.

But Lemma 3.3 and Lemma 3.10 show that the row rank and column rank are not changed by using row operations to get to reduced echelon form. Thus the row rank and the column rank of the original matrix are also equal.

QED

Definition 3.12 The rank of a matrix is its row rank or column rank.

So the second point that we have made in this subsection is that the column space and row space of a matrix have the same dimension.

Our final point is that the concepts that we’ve seen arising naturally in the study of vector spaces are exactly the ones that we have studied with linear systems.

Theorem 3.13 For linear systems with n unknowns and with matrix of coefficients A , the statements

  1. the rank of A is r

  2. the vector space of solutions of the associated homogeneous system has dimension n − r

are equivalent.

So if the system has at least one particular solution then for the set of solutions, the number of parameters equals n − r , the number of variables minus the rank of the matrix of coefficients.

Proof The rank of A is r if and only if Gaussian reduction on A ends with r nonzero rows. That’s true if and only if echelon form matrices row equivalent to A have r -many leading variables. That in turn holds if and only if there are n − r free variables.

QED

Corollary 3.14 Where the matrix A is n × n , these statements

  1. the rank of A is n

  2. A is nonsingular

  3. the rows of A form a linearly independent set

  4. the columns of A form a linearly independent set

  5. any linear system whose matrix of coefficients is A has one and only one solution

are equivalent.

Proof Clearly (1) ⟺ (2) ⟺ (3) ⟺ (4) . The last, (4) ⟺ (5) , holds because a set of n column vectors is linearly independent if and only if it is a basis for ℝ n , but the system

c 1 ( a 1 , 1 a 2 , 1 ⋮ a m , 1 ) + ⋯ + c n ( a 1 , n a 2 , n ⋮ a m , n ) = ( d 1 d 2 ⋮ d m )

has a unique solution for all choices of d 1 , … , d n ∈ ℝ if and only if the vectors of a ’s on the left form a basis.

QED

Remark 3.15 [Munkres] Sometimes the results of this subsection are mistakenly remembered to say that the general solution of an m  equations, n  unknowns system uses n − m parameters. The number of equations is not the relevant number; rather, what matters is the number of independent equations, the number of equations in a maximal independent set. Where there are r independent equations, the general solution involves n − r parameters.

Exercises

  1. Exercise 3.16 Worked answer

    Transpose each.

    1. ( 2 1 3 1 )

    2. ( 2 1 1 3 )

    3. ( 1 4 3 6 7 8 )

    4. ( 0 0 0 )

    5. ( − 1 − 2 )

    Back to Exercise 3.16

    Answer.

    1. ( 2 3 1 1 )

    2. ( 2 1 1 3 )

    3. ( 1 6 4 7 3 8 )

    4. ( 0 0 0 )

    5. ( − 1 − 2 )

  2. Exercise 3.17 Worked answer

    Recommended. Decide if the vector is in the row space of the matrix.

    1. ( 2 1 3 1 ) , ( 1 0 )

    2. ( 0 1 3 − 1 0 1 − 1 2 7 ) , ( 1 1 1 )

    Back to Exercise 3.17

    Answer.

    1. Yes. To see if there are c 1 and c 2 such that c 1 ⋅ ( 2 1 ) + c 2 ⋅ ( 3 1 ) = ( 1 0 ) , we solve

      2 c 1 + 3 c 2 = 1 c 1 + c 2 = 0

      and get c 1 = − 1 and c 2 = 1 . Thus the vector is in the row space.

    2. No. The equation c 1 ( 0 1 3 ) + c 2 ( − 1 0 1 ) + c 3 ( − 1 2 7 ) = ( 1 1 1 ) has no solution.

      ( 0 − 1 − 1 1 1 0 2 1 3 1 7 1 ) ⟶ ρ 1 ↔ ρ 2 ( ⟶ − 3 ρ 1 + ρ 3 ( ⟶ ρ 2 + ρ 3 ( ( 1 0 2 1 0 − 1 − 1 1 0 0 0 − 1 )

      Thus, the vector is not in the row space.

  3. Exercise 3.18 Worked answer

    Recommended. Decide if the vector is in the column space.

    1. ( 1 1 1 1 ) , ( 1 3 )

    2. ( 1 3 1 2 0 4 1 − 3 − 3 ) , ( 1 0 0 )

    Back to Exercise 3.18

    Answer.

    1. No. To see if there are c 1 , c 2 ∈ ℝ such that

      c 1 ( 1 1 ) + c 2 ( 1 1 ) = ( 1 − 3 )

      we can use Gauss’s Method on the resulting linear system.

      c 1 + c 2 = 1 c 1 + c 2 = 3 ⟶ − ρ 1 + ρ 2 ( c 1 + c 2 = 1 0 = 2

      There is no solution and so the vector is not in the column space.

    2. Yes. From this relationship

      c 1 ( 1 2 1 ) + c 2 ( 3 0 − 3 ) + c 3 ( 1 4 − 3 ) = ( 1 0 0 )

      we get a linear system that, when we apply Gauss’s Method,

      ( 1 3 1 1 2 0 4 0 1 − 3 − 3 0 ) ⟶ − ρ 1 + ρ 3 − 2 ρ 1 + ρ 2 ( ⟶ − ρ 2 + ρ 3 ( ( 1 3 1 1 0 − 6 2 − 2 0 0 − 6 1 )

      yields a solution. Thus, the vector is in the column space.

  4. Exercise 3.19 Worked answer

    Recommended. Decide if the vector is in the column space of the matrix.

    1. ( 2 1 2 5 ) ,  ( 1 − 3 )

    2. ( 4 − 8 2 − 4 ) ,  ( 0 1 )

    3. ( 1 − 1 1 1 1 − 1 − 1 − 1 1 ) ,  ( 2 0 0 )

    Back to Exercise 3.19

    Answer.

    1. Yes; we are asking if there are scalars c 1 and c 2 such that

      c 1 ( 2 2 ) + c 2 ( 1 5 ) = ( 1 − 3 )

      which gives rise to a linear system

      2 c 1 + c 2 = 1 2 c 1 + 5 c 2 = − 3 ⟶ − ρ 1 + ρ 2 ( 2 c 1 + c 2 = 1 4 c 2 = − 4

      and Gauss’s Method produces c 2 = − 1 and c 1 = 1 . That is, there is indeed such a pair of scalars and so the vector is indeed in the column space of the matrix.

    2. No; we are asking if there are scalars c 1 and c 2 such that

      c 1 ( 4 2 ) + c 2 ( − 8 − 4 ) = ( 0 1 )

      and one way to proceed is to consider the resulting linear system

      4 c 1 − 8 c 2 = 0 2 c 1 − 4 c 2 = 1

      that is easily seen to have no solution. Another way to proceed is to note that any linear combination of the columns on the left has a second component half as big as its first component, but the vector on the right does not meet that criterion.

    3. Yes; we can simply observe that the vector is the first column minus the second. Or, failing that, setting up the relationship among the columns

      c 1 ( 1 1 − 1 ) + c 2 ( − 1 1 − 1 ) + c 3 ( 1 − 1 1 ) = ( 2 0 0 )

      and considering the resulting linear system

      c 1 − c 2 + c 3 = 2 c 1 + c 2 − c 3 = 0 − c 1 − c 2 + c 3 = 0 ⟶ ρ 1 + ρ 3 − ρ 1 + ρ 2 ( c 1 − c 2 + c 3 = 2 2 c 2 − 2 c 3 = − 2 − 2 c 2 + 2 c 3 = 2 ⟶ ρ 2 + ρ 3 ( c 1 − c 2 + c 3 = 2 2 c 2 − 2 c 3 = − 2 0 = 0

      gives the additional information (beyond that there is at least one solution) that there are infinitely many solutions. Parametrizing gives c 2 = − 1 + c 3 and c 1 = 1 , and so taking c 3 to be zero gives a particular solution of c 1 = 1 , c 2 = − 1 , and c 3 = 0 (which is, of course, the observation made at the start).

  5. Exercise 3.20 Worked answer

    Recommended. Find a basis for the row space of this matrix.

    ( 2 0 3 4 0 1 1 − 1 3 1 0 2 1 0 − 4 − 1 )

    Back to Exercise 3.20

    Answer. A routine Gaussian reduction

    ( 2 0 3 4 0 1 1 − 1 3 1 0 2 1 0 − 4 − 1 ) ⟶ − ( 1 / 2 ) ρ 1 + ρ 4 − ( 3 / 2 ) ρ 1 + ρ 3 ( ⟶ − ρ 2 + ρ 3 ( ⟶ − ρ 3 + ρ 4 ( ( 2 0 3 4 0 1 1 − 1 0 0 − 11 / 2 − 3 0 0 0 0 )

    suggests this basis ⟨ ( 2 0 3 4 ) , ( 0 1 1 − 1 ) , ( 0 0 − 11 / 2 − 3 ) ⟩ .

    Another procedure, perhaps more convenient, is to swap rows first,

    ⟶ ρ 1 ↔ ρ 4 ( ⟶ − 2 ρ 1 + ρ 4 − 3 ρ 1 + ρ 3 ( ⟶ − ρ 2 + ρ 3 ( ⟶ − ρ 3 + ρ 4 ( ( 1 0 − 4 − 1 0 1 1 − 1 0 0 11 6 0 0 0 0 )

    leading to the basis ⟨ ( 1 0 − 4 − 1 ) , ( 0 1 1 − 1 ) , ( 0 0 11 6 ) ⟩ .

  6. Exercise 3.21 Worked answer

    Recommended. Find the rank of each matrix.

    1. ( 2 1 3 1 − 1 2 1 0 3 )

    2. ( 1 − 1 2 3 − 3 6 − 2 2 − 4 )

    3. ( 1 3 2 5 1 1 6 4 3 )

    4. ( 0 0 0 0 0 0 0 0 0 )

    Back to Exercise 3.21

    Answer.

    1. This reduction

      ⟶ − ( 1 / 2 ) ρ 1 + ρ 3 − ( 1 / 2 ) ρ 1 + ρ 2 ( ⟶ − ( 1 / 3 ) ρ 2 + ρ 3 ( ( 2 1 3 0 − 3 / 2 1 / 2 0 0 4 / 3 )

      shows that the row rank, and hence the rank, is three.

    2. Inspection of the columns shows that the others are multiples of the first (inspection of the rows shows the same thing). Thus the rank is one.

      Alternatively, the reduction

      ( 1 − 1 2 3 − 3 6 − 2 2 − 4 ) ⟶ 2 ρ 1 + ρ 3 − 3 ρ 1 + ρ 2 ( ( 1 − 1 2 0 0 0 0 0 0 )

      shows the same thing.

    3. This calculation

      ( 1 3 2 5 1 1 6 4 3 ) ⟶ − 6 ρ 1 + ρ 3 − 5 ρ 1 + ρ 2 ( ⟶ − ρ 2 + ρ 3 ( ( 1 3 2 0 − 14 − 9 0 0 0 )

      shows that the rank is two.

    4. The rank is zero.

  7. Exercise 3.22 Worked answer

    Give a basis for the column space of this matrix. Give the matrix’s rank.

    ( 1 3 − 1 2 2 1 1 0 0 1 1 4 )

    Back to Exercise 3.22

    Answer. We want a basis for this span.

    [ ( 1 2 0 ) , ( 3 1 1 ) , ( − 1 1 1 ) , ( 2 0 4 ) ] ⊆ ℝ 3

    The most straightforward approach is to transpose those columns to rows, use Gauss’s Method to find a basis for the span of the rows, and then transpose them back to columns.

    ( 1 2 0 3 1 1 − 1 1 1 2 0 4 ) ⟶ ρ 1 + ρ 3 − 2 ρ 1 + ρ 4 − 3 ρ 1 + ρ 2 ( ⟶ − ( 4 / 5 ) ρ 2 + ρ 4 ( 3 / 5 ) ρ 2 + ρ 3 ( ⟶ − 2 ρ 3 + ρ 4 ( ( 1 2 0 0 − 5 1 0 0 8 / 5 0 0 0 )

    Discard the zero vector as showing that there was a redundancy among the starting vectors, to get this basis for the column space.

    ⟨ ( 1 2 0 ) , ( 0 − 5 1 ) , ( 0 0 8 / 5 ) ⟩

    The matrix’s rank is the dimension of its column space, so it is three. (It is also equal to the dimension of its row space.)

  8. Exercise 3.23 Worked answer

    Recommended. Find a basis for the span of each set.

    1. { ( 1 3 ) , ( − 1 3 ) , ( 1 4 ) , ( 2 1 ) } ⊆ ℳ 1 × 2

    2. { ( 1 2 1 ) , ( 3 1 − 1 ) , ( 1 − 3 − 3 ) } ⊆ ℝ 3

    3. { 1 + x , 1 − x 2 , 3 + 2 x − x 2 } ⊆ 𝒫 3

    4. { ( 1 0 1 3 1 − 1 ) , ( 1 0 3 2 1 4 ) , ( − 1 0 − 5 − 1 − 1 − 9 ) } ⊆ ℳ 2 × 3

    Back to Exercise 3.23

    Answer.

    1. This reduction

      ( 1 3 − 1 3 1 4 2 1 ) ⟶ − ρ 1 + ρ 3 − 2 ρ 1 + ρ 4 ρ 1 + ρ 2 ( ⟶ ( 5 / 6 ) ρ 2 + ρ 4 − ( 1 / 6 ) ρ 2 + ρ 3 ( ( 1 3 0 6 0 0 0 0 )

      gives ⟨ ( 1 3 ) , ( 0 6 ) ⟩ .

    2. Transposing and reducing

      ( 1 2 1 3 1 − 1 1 − 3 − 3 ) ⟶ − ρ 1 + ρ 3 − 3 ρ 1 + ρ 2 ( ( 1 2 1 0 − 5 − 4 0 − 5 − 4 ) ⟶ − ρ 2 + ρ 3 ( ( 1 2 1 0 − 5 − 4 0 0 0 )

      and then transposing back gives this basis.

      ⟨ ( 1 2 1 ) , ( 0 − 5 − 4 ) ⟩

    3. Notice first that the surrounding space is as 𝒫 3 , not 𝒫 2 . Then, taking the first polynomial 1 + 1 ⋅ x + 0 ⋅ x 2 + 0 ⋅ x 3 to be “the same” as the row vector ( 1 1 0 0 ) , etc., leads to

      ( 1 1 0 0 1 0 − 1 0 3 2 − 1 0 ) ⟶ − 3 ρ 1 + ρ 3 − ρ 1 + ρ 2 ( ⟶ − ρ 2 + ρ 3 ( ( 1 1 0 0 0 − 1 − 1 0 0 0 0 0 )

      which yields the basis ⟨ 1 + x , − x − x 2 ⟩ .

    4. Here “the same” gives

      ( 1 0 1 3 1 − 1 1 0 3 2 1 4 − 1 0 − 5 − 1 − 1 − 9 ) ⟶ ρ 1 + ρ 3 − ρ 1 + ρ 2 ( ⟶ 2 ρ 2 + ρ 3 ( ( 1 0 1 3 1 − 1 0 0 2 − 1 0 5 0 0 0 0 0 0 )

      leading to this basis.

      ⟨ ( 1 0 1 3 1 − 1 ) , ( 0 0 2 − 1 0 5 ) ⟩

  9. Exercise 3.24 Worked answer

    Give a basis for the span of each set, in the natural vector space.

    1. { ( 1 1 3 ) , ( − 1 2 0 ) , ( 0 12 6 ) }

    2. { x + x 2 , 2 − 2 x , 7 , 4 + 3 x + 2 x 2 }

    Back to Exercise 3.24

    Answer.

    1. Transpose the columns to rows, bring to echelon form (and then lose any zero rows), and transpose back to columns.

      ( 1 1 3 − 1 2 0 0 12 6 ) ⟶ ρ 1 + ρ 2 ( ⟶ − 4 ρ 2 + ρ 3 ( ( 1 1 3 0 3 3 0 0 − 6 )

      One basis for the span is this.

      ⟨ ( 1 1 3 ) , ( 0 3 3 ) , ( 0 0 − 6 ) ⟩

    2. As in the prior part we think of those as rows, to take advantage of the work we’ve done with Gauss’s Method.

      ( 0 1 1 2 − 2 0 7 0 0 4 3 2 ) ⟶ ρ 1 ↔ ρ 2 ( ⟶ 2 ρ 1 + ρ 4 − ( 7 / 2 ) ρ 1 + ρ 3 ( ⟶ − 7 ρ 2 + ρ 4 − 7 ρ 2 + ρ 3 ( ⟶ − ( 5 / 7 ) ρ 3 + ρ 4 ( ( 2 − 2 0 0 1 1 0 0 − 7 0 0 0 )

      One basis for the span of that set is ⟨ 2 − 2 x , x + x 2 , − 5 x 2 ⟩ .

  10. Exercise 3.25 Worked answer

    Which matrices have rank zero? Rank one?

    Back to Exercise 3.25

    Answer. Only the zero matrices have rank of zero. The only matrices of rank one have the form

    ( k 1 ⋅ ρ ⋮ k m ⋅ ρ )

    where ρ is some nonzero row vector, and not all of the k i ’s are zero. (Remark. We can’t simply say that all of the rows are multiples of the first because the first row might be the zero row. Another Remark. The above also applies with ‘column’ replacing ‘row’.)

  11. Exercise 3.26 Worked answer

    Recommended. Given a , b , c ∈ ℝ , what choice of d will cause this matrix to have the rank of one?

    ( a b c d )

    Back to Exercise 3.26

    Answer. If a ≠ 0 then a choice of d = ( c / a ) b will make the second row be a multiple of the first, specifically, c / a times the first. If a = 0 and b = 0 then any non- 0 choice for d will ensure that the second row is nonzero. If a = 0 and b ≠ 0 and c = 0 then any choice for d will do, since the matrix will automatically have rank one (even with the choice of d = 0 ). Finally, if a = 0 and b ≠ 0 and c ≠ 0 then no choice for d will suffice because the matrix is sure to have rank two.

  12. Exercise 3.27 Worked answer

    Find the column rank of this matrix.

    ( 1 3 − 1 5 0 4 2 0 1 0 4 1 )

    Back to Exercise 3.27

    Answer. The column rank is two. One way to see this is by inspection—the column space consists of two-tall columns and so can have a dimension of at least two, and we can easily find two columns that together form a linearly independent set (the fourth and fifth columns, for instance). Another way to see this is to recall that the column rank equals the row rank, and to perform Gauss’s Method, which leaves two nonzero rows.

  13. Exercise 3.28 Worked answer

    Show that a linear system with at least one solution has at most one solution if and only if the matrix of coefficients has rank equal to the number of its columns.

    Back to Exercise 3.28

    Answer. We apply Theorem 3.13. The number of columns of a matrix of coefficients A of a linear system equals the number n of unknowns. A linear system with at least one solution has at most one solution if and only if the space of solutions of the associated homogeneous system has dimension zero (recall: in the ‘ General = Particular + Homogeneous ’ equation v → = p → + h → , provided that such a p → exists, the solution v → is unique if and only if the vector h → is unique, namely h → = 0 → ). But that means, by the theorem, that n = r .

  14. Exercise 3.29 Worked answer

    Recommended. If a matrix is 5 × 9 , which set must be dependent, its set of rows or its set of columns?

    Back to Exercise 3.29

    Answer. The set of columns must be dependent because the rank of the matrix is at most five while there are nine columns.

  15. Exercise 3.30 Worked answer

    Give an example to show that, despite that they have the same dimension, the row space and column space of a matrix need not be equal. Are they ever equal?

    Back to Exercise 3.30

    Answer. There is little danger of their being equal since the row space is a set of row vectors while the column space is a set of columns (unless the matrix is 1 × 1 , in which case the two spaces must be equal).

    Remark. Consider

    A = ( 1 3 2 6 )

    and note that the row space is the set of all multiples of ( 1 3 ) while the column space consists of multiples of

    ( 1 2 )

    so we also cannot argue that the two spaces must be simply transposes of each other.

  16. Exercise 3.31 Worked answer

    Show that the set { ( 1 , − 1 , 2 , − 3 ) , ( 1 , 1 , 2 , 0 ) , ( 3 , − 1 , 6 , − 6 ) } does not have the same span as { ( 1 , 0 , 1 , 0 ) , ( 0 , 2 , 0 , 3 ) } . What, by the way, is the vector space?

    Back to Exercise 3.31

    Answer. First, the vector space is the set of four-tuples of real numbers, under the natural operations. Although this is not the set of four-wide row vectors, the difference is slight—it is “the same” as that set. So we will treat the four-tuples like four-wide vectors.

    With that, one way to see that ( 1 , 0 , 1 , 0 ) is not in the span of the first set is to note that this reduction

    ( 1 − 1 2 − 3 1 1 2 0 3 − 1 6 − 6 ) ⟶ − 3 ρ 1 + ρ 3 − ρ 1 + ρ 2 ( ⟶ − ρ 2 + ρ 3 ( ( 1 − 1 2 − 3 0 2 0 3 0 0 0 0 )

    and this one

    ( 1 − 1 2 − 3 1 1 2 0 3 − 1 6 − 6 1 0 1 0 ) ⟶ − 3 ρ 1 + ρ 3 − ρ 1 + ρ 4 − ρ 1 + ρ 2 ( ⟶ − ( 1 / 2 ) ρ 2 + ρ 4 − ρ 2 + ρ 3 ( ⟶ ρ 3 ↔ ρ 4 ( ( 1 − 1 2 − 3 0 2 0 3 0 0 − 1 3 / 2 0 0 0 0 )

    yield matrices differing in rank. This means that addition of ( 1 , 0 , 1 , 0 ) to the set of the first three four-tuples increases the rank, and hence the span, of that set. Therefore ( 1 , 0 , 1 , 0 ) is not already in the span.

  17. Exercise 3.32 Worked answer

    Recommended. Show that this set of column vectors

    { ( d 1 d 2 d 3 ) ∣ there are  x ,  y , and  z  such that:  3 x + 2 y + 4 z = d 1 x − z = d 2 2 x + 2 y + 5 z = d 3 }

    is a subspace of ℝ 3 . Find a basis.

    Back to Exercise 3.32

    Answer. It is a subspace because it is the column space of the matrix

    ( 3 2 4 1 0 − 1 2 2 5 )

    of coefficients. To find a basis for the column space,

    { c 1 ( 3 1 2 ) + c 2 ( 2 0 2 ) + c 3 ( 4 − 1 5 ) ∣ c 1 , c 2 , c 3 ∈ ℝ }

    we eliminate linear relationships among the three column vectors from the spanning set by transposing, reducing,

    ( 3 1 2 2 0 2 4 − 1 5 ) ⟶ − ( 4 / 3 ) ρ 1 + ρ 3 − ( 2 / 3 ) ρ 1 + ρ 2 ( ⟶ − ( 7 / 2 ) ρ 2 + ρ 3 ( ( 3 1 2 0 − 2 / 3 2 / 3 0 0 0 )

    omitting the zero row, and transposing back.

    ⟨ ( 3 1 2 ) , ( 0 − 2 / 3 2 / 3 ) ⟩

  18. Exercise 3.33 Worked answer

    Show that the transpose operation is linear:

    ( r A + s B ) 𝖳 = r A 𝖳 + s B 𝖳

    for r , s ∈ ℝ and A , B ∈ ℳ m × n .

    Back to Exercise 3.33

    Answer. We can do this as a straightforward calculation.

    ( r A + s B ) 𝖳 = ( r a 1 , 1 + s b 1 , 1 … r a 1 , n + s b 1 , n ⋮ r a m , 1 + s b m , 1 … r a m , n + s b m , n ) 𝖳 = ( r a 1 , 1 + s b 1 , 1 … r a m , 1 + s b m , 1 ⋮ r a 1 , n + s b 1 , n … r a m , n + s b m , n ) = ( r a 1 , 1 … r a m , 1 ⋮ r a 1 , n … r a m , n ) + ( s b 1 , 1 … s b m , 1 ⋮ s b 1 , n … s b m , n ) = r A 𝖳 + s B 𝖳

  19. Exercise 3.34 Worked answer

    Recommended. In this subsection we have shown that Gaussian reduction finds a basis for the row space.

    1. Show that this basis is not unique—different reductions may yield different bases.

    2. Produce matrices with equal row spaces but unequal numbers of rows.

    3. Prove that two matrices have equal row spaces if and only if after Gauss-Jordan reduction they have the same nonzero rows.

    Back to Exercise 3.34

    Answer.

    1. These reductions give different bases.

      ( 1 2 0 1 2 1 ) ⟶ − ρ 1 + ρ 2 ( ( 1 2 0 0 0 1 ) ( 1 2 0 1 2 1 ) ⟶ − ρ 1 + ρ 2 ( ⟶ 2 ρ 2 ( ( 1 2 0 0 0 2 )

    2. An easy example is this.

      ( 1 2 1 3 1 4 ) ( 1 2 1 3 1 4 0 0 0 )

      This is a less simplistic example.

      ( 1 2 1 3 1 4 ) ( 1 2 1 3 1 4 2 4 2 4 3 5 )

    3. Because the row spaces of A and B are equal, the two are row equivalent. Because each row equivalence class contains a unique reduced echelon form (Theorem One.III.2.6), the reduced echelon form of A must equal the reduced echelon form of B .

  20. Exercise 3.35 Worked answer

    Why is there not a problem with Remark 3.15 in the case that r is bigger than n ?

    Back to Exercise 3.35

    Answer. It cannot be bigger.

  21. Exercise 3.36 Worked answer

    Show that the row rank of an m × n matrix is at most m . Is there a better bound?

    Back to Exercise 3.36

    Answer. The number of rows in a maximal linearly independent set cannot exceed the number of rows. A better bound (the bound that is, in general, the best possible) is the minimum of m and n , because the row rank equals the column rank.

  22. Exercise 3.37 Worked answer

    Show that the rank of a matrix equals the rank of its transpose.

    Back to Exercise 3.37

    Answer. Because the rows of a matrix A are the columns of A 𝖳 the dimension of the row space of A equals the dimension of the column space of A 𝖳 . But the dimension of the row space of A is the rank of A and the dimension of the column space of A 𝖳 is the rank of A 𝖳 . Thus the two ranks are equal.

  23. Exercise 3.38 Worked answer

    True or false: the column space of a matrix equals the row space of its transpose.

    Back to Exercise 3.38

    Answer. False. The first is a set of columns while the second is a set of rows.

    This example, however,

    A = ( 1 2 3 4 5 6 ) , A 𝖳 = ( 1 4 2 5 3 6 )

    indicates that as soon as we have a formal meaning for “the same”, we can apply it here:

    Columnspace ⁡ ( A ) = [ { ( 1 4 ) , ( 2 5 ) , ( 3 6 ) } ]

    while

    Rowspace ⁡ ( A 𝖳 ) = [ { ( 1 4 ) , ( 2 5 ) , ( 3 6 ) } ]

    are “the same” as each other.

  24. Exercise 3.39 Worked answer

    Recommended. We have seen that a row operation may change the column space. Must it?

    Back to Exercise 3.39

    Answer. No. Here, Gauss’s Method does not change the column space.

    ( 1 0 3 1 ) ⟶ − 3 ρ 1 + ρ 2 ( ( 1 0 0 1 )

  25. Exercise 3.40 Worked answer

    Prove that a linear system has a solution if and only if that system’s matrix of coefficients has the same rank as its augmented matrix.

    Back to Exercise 3.40

    Answer. A linear system

    c 1 a → 1 + ⋯ + c n a → n = d →

    has a solution if and only if d → is in the span of the set { a → 1 , … , a → n } . That’s true if and only if the column rank of the augmented matrix equals the column rank of the matrix of coefficients. Since rank equals the column rank, the system has a solution if and only if the rank of its augmented matrix equals the rank of its matrix of coefficients.

  26. Exercise 3.41 Worked answer

    An m × n matrix has full row rank if its row rank is m , and it has full column rank if its column rank is n .

    1. Show that a matrix can have both full row rank and full column rank only if it is square.

    2. Prove that the linear system with matrix of coefficients A has a solution for any d 1 , …, d n ’s on the right side if and only if A has full row rank.

    3. Prove that a homogeneous system has a unique solution if and only if its matrix of coefficients A has full column rank.

    4. Prove that the statement “if a system with matrix of coefficients A has any solution then it has a unique solution” holds if and only if A has full column rank.

    Back to Exercise 3.41

    Answer.

    1. Row rank equals column rank so each is at most the minimum of the number of rows and columns. Hence both can be full only if the number of rows equals the number of columns. (Of course, the converse does not hold: a square matrix need not have full row rank or full column rank.)

    2. If A has full row rank then, no matter what the right-hand side, Gauss’s Method on the augmented matrix ends with a leading one in each row and none of those leading ones in the furthest right column (the “augmenting” column). Back substitution then gives a solution.

      On the other hand, if the linear system lacks a solution for some right-hand side it can only be because Gauss’s Method leaves some row so that it has all zeroes on the left of the “augmenting” bar and has a nonzero entry on the right. Thus, if A does not have a solution for some right-hand sides, then A does not have full row rank because some of its rows have been eliminated.

    3. The matrix A has full column rank if and only if its columns form a linearly independent set. That’s equivalent to the existence of only the trivial linear relationship among the columns, so the only solution of the system is where each variable is 0 .

    4. The matrix A has full column rank if and only if the set of its columns is linearly independent, and so forms a basis for its span. That’s equivalent to the existence of a unique linear representation of all vectors in that span. That proves it, since any linear representation of a vector in the span is a solution of the linear system.

  27. Exercise 3.42 Worked answer

    How would the conclusion of Lemma 3.3 change if Gauss’s Method were changed to allow multiplying a row by zero?

    Back to Exercise 3.42

    Answer. Instead of the row spaces being the same, the row space of B would be a subspace (possibly equal to) the row space of A .

  28. Exercise 3.43 Worked answer

    What is the relationship between rank ( A ) and rank ( − A ) ? Between rank ( A ) and rank ( k A ) ? What, if any, is the relationship between rank ( A ) , rank ( B ) , and rank ( A + B ) ?

    Back to Exercise 3.43

    Answer. Clearly rank ( A ) = rank ( − A ) as Gauss’s Method allows us to multiply all rows of a matrix by − 1 . In the same way, when k ≠ 0 we have rank ( A ) = rank ( k A ) .

    Addition is more interesting. The rank of a sum can be smaller than the rank of the summands.

    ( 1 2 3 4 ) + ( − 1 − 2 − 3 − 4 ) = ( 0 0 0 0 )

    The rank of a sum can be bigger than the rank of the summands.

    ( 1 2 0 0 ) + ( 0 0 3 4 ) = ( 1 2 3 4 )

    But there is an upper bound (other than the size of the matrices). In general, rank ( A + B ) ≤ rank ( A ) + rank ( B ) .

    To prove this, note that we can perform Gaussian elimination on A + B in either of two ways: we can first add A to B and then apply the appropriate sequence of reduction steps

    ( A + B ) ⟶ step 1 ( ⋯ ⟶ step k ( echelon form

    or we can get the same results by performing step 1 through step k separately on A and B , and then adding. The largest rank that we can end with in the second case is clearly the sum of the ranks. (The matrices above give examples of both possibilities, rank ( A + B ) < rank ( A ) + rank ( B ) and rank ( A + B ) = rank ( A ) + rank ( B ) , happening.)

Combining Subspaces

This subsection is optional. It is required only for the last sections of Chapter Three and Chapter Five and for occasional exercises. You can pass it over without loss of continuity.

One way to understand something is to see how to build it from component parts. For instance, we sometimes think of ℝ 3 put together from the x -axis, the y -axis, and z -axis. In this subsection we will describe how to decompose a vector space into a combination of some of its subspaces. In developing this idea of subspace combination, we will keep the ℝ 3 example in mind as a prototype.

Subspaces are subsets and sets combine via union. But taking the combination operation for subspaces to be the simple set union operation isn’t what we want. For instance, the union of the x -axis, the y -axis, and z -axis is not all of ℝ 3 . In fact this union is not a subspace because it is not closed under addition: this vector

( 1 0 0 ) + ( 0 1 0 ) + ( 0 0 1 ) = ( 1 1 1 )

is in none of the three axes and hence is not in the union. Therefore to combine subspaces, in addition to the members of those subspaces, we must at least also include all of their linear combinations.

Definition 4.1 Where W 1 , … , W k are subspaces of a vector space, their sum is the span of their union W 1 + W 2 + ⋯ + W k = [ W 1 ∪ W 2 ∪ ⋯ W k ] .

Writing ‘ + ’ fits with the conventional practice of using this symbol for a natural accumulation operation.

Example 4.2 Our ℝ 3 prototype works with this. Any vector w → ∈ ℝ 3 is a linear combination c 1 v → 1 + c 2 v → 2 + c 3 v → 3 where v → 1 is a member of the x -axis, etc., in this way

( w 1 w 2 w 3 ) = 1 ⋅ ( w 1 0 0 ) + 1 ⋅ ( 0 w 2 0 ) + 1 ⋅ ( 0 0 w 3 )

and so x -axis + y -axis + z -axis = ℝ 3 .

Example 4.3 A sum of subspaces can be less than the entire space. Inside of 𝒫 4 , let L be the subspace of linear polynomials { a + b x ∣ a , b ∈ ℝ } and let C be the subspace of purely-cubic polynomials { c x 3 ∣ c ∈ ℝ } . Then L + C is not all of 𝒫 4 . Instead, L + C = { a + b x + c x 3 ∣ a , b , c ∈ ℝ } .

Example 4.4 A space can be described as a combination of subspaces in more than one way. Besides the decomposition ℝ 3 = x -axis + y -axis + z -axis , we can also write ℝ 3 = x y -plane + y z -plane . To check this, note that any w → ∈ ℝ 3 can be written as a linear combination of a member of the x y -plane and a member of the y z -plane; here are two such combinations.

( w 1 w 2 w 3 ) = 1 ⋅ ( w 1 w 2 0 ) + 1 ⋅ ( 0 0 w 3 ) ( w 1 w 2 w 3 ) = 1 ⋅ ( w 1 w 2 / 2 0 ) + 1 ⋅ ( 0 w 2 / 2 w 3 )

The above definition gives one way in which we can think of a space as a combination of some of its parts. However, the prior example shows that there is at least one interesting property of our benchmark model that is not captured by the definition of the sum of subspaces. In the familiar decomposition of ℝ 3 , we often speak of a vector’s ‘ x  part’ or ‘ y  part’ or ‘ z  part’. That is, in our prototype each vector has a unique decomposition into pieces from the parts making up the whole space. But in the decomposition used in Example 4.4, we cannot refer to the “ x y  part” of a vector—these three sums

( 1 2 3 ) = ( 1 2 0 ) + ( 0 0 3 ) = ( 1 0 0 ) + ( 0 2 3 ) = ( 1 1 0 ) + ( 0 1 3 )

all describe the vector as comprised of something from the first plane plus something from the second plane, but the “ x y  part” is different in each.

That is, when we consider how ℝ 3 is put together from the three axes we might mean “in such a way that every vector has at least one decomposition,” which gives the definition above. But if we take it to mean “in such a way that every vector has one and only one decomposition” then we need another condition on combinations. To see what this condition is, recall that vectors are uniquely represented in terms of a basis. We can use this to break a space into a sum of subspaces such that any vector in the space breaks uniquely into a sum of members of those subspaces.

Example 4.5 Consider ℝ 3 with its standard basis ℰ 3 = ⟨ e → 1 , e → 2 , e → 3 ⟩ . The subspace with the basis B 1 = ⟨ e → 1 ⟩ is the x -axis, the subspace with the basis B 2 = ⟨ e → 2 ⟩ is the y -axis, and the subspace with the basis B 3 = ⟨ e → 3 ⟩ is the z -axis. The fact that any member of ℝ 3 is expressible as a sum of vectors from these subspaces

( x y z ) = ( x 0 0 ) + ( 0 y 0 ) + ( 0 0 z )

reflects the fact that ℰ 3 spans the space—this equation

( x y z ) = c 1 ( 1 0 0 ) + c 2 ( 0 1 0 ) + c 3 ( 0 0 1 )

has a solution for any x , y , z ∈ ℝ . And the fact that each such expression is unique reflects that fact that ℰ 3 is linearly independent, so any equation like the one above has a unique solution.

Example 4.6 We don’t have to take the basis vectors one at a time, we can conglomerate them into larger sequences. Consider again the space ℝ 3 and the vectors from the standard basis ℰ 3 . The subspace with the basis B 1 = ⟨ e → 1 , e → 3 ⟩ is the x z -plane. The subspace with the basis B 2 = ⟨ e → 2 ⟩ is the y -axis. As in the prior example, the fact that any member of the space is a sum of members of the two subspaces in one and only one way

( x y z ) = ( x 0 z ) + ( 0 y 0 )

is a reflection of the fact that these vectors form a basis—this equation

( x y z ) = ( c 1 ( 1 0 0 ) + c 3 ( 0 0 1 ) ) + c 2 ( 0 1 0 )

has one and only one solution for any x , y , z ∈ ℝ .

Definition 4.7 The concatenation of the sequences B 1 = ⟨ β → 1 , 1 , … , β → 1 , n 1 ⟩ , …, B k = ⟨ β → k , 1 , … , β → k , n k ⟩ adjoins them into a single sequence.

B 1 ⌢ B 2 ⌢ ⋯ ⌢ B k = ⟨ β → 1 , 1 , … , β → 1 , n 1 , β → 2 , 1 , … , β → k , n k ⟩

Lemma 4.8 Let V be a vector space that is the sum of some of its subspaces V = W 1 + ⋯ + W k . Let B 1 , …, B k be bases for these subspaces. The following are equivalent.

  1. The expression of any v → ∈ V as a combination v → = w → 1 + ⋯ + w → k with w → i ∈ W i is unique.

  2. The concatenation B 1 ⌢ ⋯ ⌢ B k is a basis for V .

  3. Among nonzero vectors from different W i ’s every linear relationship is trivial.

Proof We will show that (1) ⟹ (2) , that (2) ⟹ (3) , and finally that (3) ⟹ (1) . For these arguments, observe that we can pass from a combination of w → ’s to a combination of β → ’s

d 1 w → 1 + ⋯ + d k w → k = d 1 ( c 1 , 1 β → 1 , 1 + ⋯ + c 1 , n 1 β → 1 , n 1 ) + ⋯ + d k ( c k , 1 β → k , 1 + ⋯ + c k , n k β → k , n k ) = d 1 c 1 , 1 ⋅ β → 1 , 1 + ⋯ + d k c k , n k ⋅ β → k , n k ( ∗ )

and vice versa (we can move from the bottom to the top by taking each d i to be 1 ).

For (1) ⟹ (2) , assume that all decompositions are unique. We will show that B 1 ⌢ ⋯ ⌢ B k spans the space and is linearly independent. It spans the space because the assumption that V = W 1 + ⋯ + W k means that every v → can be expressed as v → = w → 1 + ⋯ + w → k , which translates by equation ( ∗ ) to an expression of v → as a linear combination of the β → ’s from the concatenation. For linear independence, consider this linear relationship.

0 → = c 1 , 1 β → 1 , 1 + ⋯ + c k , n k β → k , n k

Regroup as in ( ∗ ) (that is, move from bottom to top) to get the decomposition 0 → = w → 1 + ⋯ + w → k . Because the zero vector obviously has the decomposition 0 → = 0 → + ⋯ + 0 → , the assumption that decompositions are unique shows that each w → i is the zero vector. This means that c i , 1 β → i , 1 + ⋯ + c i , n i β → i , n i = 0 → , and since each B i is a basis we have the desired conclusion that all of the c ’s are zero.

For (2) ⟹ (3) assume that the concatenation of the bases is a basis for the entire space. Consider a linear relationship among nonzero vectors from different W i ’s. This might or might not involve a vector from W 1 , or one from W 2 , etc., so we write it 0 → = ⋯ + d i w → i + ⋯ . As in equation ( ∗ ) expand the vector.

0 → = ⋯ + d i ( c i , 1 β → i , 1 + ⋯ + c i , n i β → i , n i ) + ⋯ = ⋯ + d i c i , 1 ⋅ β → i , 1 + ⋯ + d i c i , n i ⋅ β → i , n i + ⋯

The linear independence of B 1 ⌢ ⋯ ⌢ B k gives that each coefficient d i c i , j is zero. Since w → i is nonzero vector, at least one of the c i , j ’s is not zero, and thus d i is zero. This holds for each d i , and therefore the linear relationship is trivial.

Finally, for (3) ⟹ (1) , assume that among nonzero vectors from different W i ’s any linear relationship is trivial. Consider two decompositions of a vector v → = ⋯ + w → i + ⋯ and v → = ⋯ + u → j + ⋯ where w → i ∈ W i and u → j ∈ W j . Subtract one from the other to get a linear relationship, something like this (if there is no u → i or w → j then leave those out).

0 → = ⋯ + ( w → i − u → i ) + ⋯ + ( w → j − u → j ) + ⋯

The case assumption that statement (3) holds implies that the terms each equal the zero vector w → i − u → i = 0 → . Hence decompositions are unique.

QED

Definition 4.9 A collection of subspaces { W 1 , … , W k } is independent if no nonzero vector from any W i is a linear combination of vectors from the other subspaces W 1 , … , W i − 1 , W i + 1 , … , W k .

Definition 4.10 A vector space V is the direct sum (or internal direct sum) of its subspaces W 1 , … , W k if V = W 1 + W 2 + ⋯ + W k and the collection { W 1 , … , W k } is independent. We write V = W 1 ⊕ W 2 ⊕ ⋯ ⊕ W k .

Example 4.11 Our prototype works: ℝ 3 = x -axis ⊕ y -axis ⊕ z -axis .

Example 4.12 The space of 2 × 2 matrices is this direct sum.

{ ( a 0 0 d ) ∣ a , d ∈ ℝ } ⊕ { ( 0 b 0 0 ) ∣ b ∈ ℝ } ⊕ { ( 0 0 c 0 ) ∣ c ∈ ℝ }

It is the direct sum of subspaces in many other ways as well; direct sum decompositions are not unique.

Corollary 4.13 The dimension of a direct sum is the sum of the dimensions of its summands.

Proof In Lemma 4.8, the number of basis vectors in the concatenation equals the sum of the number of vectors in the sub-bases.

QED

The special case of two subspaces is worth its own mention.

Definition 4.14 When a vector space is the direct sum of two of its subspaces then they are complements.

Lemma 4.15 A vector space V is the direct sum of two of its subspaces W 1 and W 2 if and only if it is the sum of the two V = W 1 + W 2 and their intersection is trivial W 1 ∩ W 2 = { 0 → } .

Proof Suppose first that V = W 1 ⊕ W 2 . By definition, V is the sum of the two V = W 1 + W 2 . To show that their intersection is trivial let v → be a vector from W 1 ∩ W 2 and consider the equation v → = v → . On that equation’s left side is a member of W 1 and on the right is a member of W 2 , which we can think of as a linear combination of members of W 2 . But the two spaces are independent so the only way that a member of W 1 can be a linear combination of vectors from W 2 is if that member is the zero vector v → = 0 → .

For the other direction, suppose that V is the sum of two spaces with a trivial intersection. To show that V is a direct sum of the two we need only show that the spaces are independent—that no nonzero member of the first is expressible as a linear combination of members of the second, and vice versa. This holds because any relationship w → 1 = c 1 w → 2 , 1 + ⋯ + c k w → 2 , k (with w → 1 ∈ W 1 and w → 2 , j ∈ W 2 for all j ) shows that the vector on the left is also in W 2 , since the right side is a combination of members of W 2 . The intersection of these two spaces is trivial, so w → 1 = 0 → . The same argument works for any w → 2 .

QED

Example 4.16 In ℝ 2 the x -axis and the y -axis are complements, that is, ℝ 2 = x -axis ⊕ y -axis . This points out that subspace complement is slightly different than set complement; the x and  y axes are not set complements because their intersection is not the empty set.

A space can have more than one pair of complementary subspaces; another pair for  ℝ 2 are the subspaces consisting of the lines y = x and y = 2 x .

Example 4.17 In the space F = { a cos ⁡ θ + b sin ⁡ θ ∣ a , b ∈ ℝ } , the subspaces W 1 = { a cos ⁡ θ ∣ a ∈ ℝ } and W 2 = { b sin ⁡ θ ∣ b ∈ ℝ } are complements. The prior example noted that a space can be decomposed into more than one pair of complements. In addition note that F can has more than one pair of complementary subspaces where the first in the pair is W 1 —another complement of W 1 is W 3 = { b sin ⁡ θ + b cos ⁡ θ ∣ b ∈ ℝ } .

Example 4.18 In ℝ 3 , the x y -plane and the y z -planes are not complements, which is the point of the discussion following Example 4.4. One complement of the x y -plane is the z -axis.

Here is a natural question that arises from Lemma 4.15: for k > 2 is the simple sum V = W 1 + ⋯ + W k also a direct sum if and only if the intersection of the subspaces is trivial?

Example 4.19 If there are more than two subspaces then having a trivial intersection is not enough to guarantee unique decomposition (i.e., is not enough to ensure that the spaces are independent). In ℝ 3 , let W 1 be the x -axis, let W 2 be the y -axis, and let W 3 be this.

W 3 = { ( q q r ) ∣ q , r ∈ ℝ }

The check that ℝ 3 = W 1 + W 2 + W 3 is easy. The intersection W 1 ∩ W 2 ∩ W 3 is trivial, but decompositions aren’t unique.

( x y z ) = ( 0 0 0 ) + ( 0 y − x 0 ) + ( x x z ) = ( x − y 0 0 ) + ( 0 0 0 ) + ( y y z )

(This example also shows that this requirement is also not enough: that all pairwise intersections of the subspaces be trivial. See Exercise 4.30.)

In this subsection we have seen two ways to regard a space as built up from component parts. Both are useful; in particular we will use the direct sum definition at the end of the Chapter Five.

Exercises

  1. Exercise 4.20 Worked answer

    Recommended. Decide if ℝ 2 is the direct sum of each W 1 and W 2 .

    1. W 1 = { ( x 0 ) ∣ x ∈ ℝ } , W 2 = { ( x x ) ∣ x ∈ ℝ }

    2. W 1 = { ( s s ) ∣ s ∈ ℝ } , W 2 = { ( s 1.1 s ) ∣ s ∈ ℝ }

    3. W 1 = ℝ 2 , W 2 = { 0 → }

    4. W 1 = W 2 = { ( t t ) ∣ t ∈ ℝ }

    5. W 1 = { ( 1 0 ) + ( x 0 ) ∣ x ∈ ℝ } , W 2 = { ( − 1 0 ) + ( 0 y ) ∣ y ∈ ℝ }

    Back to Exercise 4.20

    Answer. With each of these we can apply Lemma 4.15.

    1. Yes. The plane is the sum of this W 1 and W 2 because for any scalars a and b

      ( a b ) = ( a − b 0 ) + ( b b )

      shows that the general vector is a sum of vectors from the two parts. And, these two subspaces are (different) lines through the origin, and so have a trivial intersection.

    2. Yes. To see that any vector in the plane is a combination of vectors from these parts, consider this relationship.

      ( a b ) = c 1 ( 1 1 ) + c 2 ( 1 1.1 )

      We could now simply note that the set

      { ( 1 1 ) , ( 1 1.1 ) }

      is a basis for the space (because it is clearly linearly independent, and has size two in ℝ 2 ), and thus there is one and only one solution to the above equation, implying that all decompositions are unique. Alternatively, we can solve

      c 1 + c 2 = a c 1 + 1.1 c 2 = b ⟶ − ρ 1 + ρ 2 ( c 1 + c 2 = a 0.1 c 2 = − a + b

      to get that c 2 = 10 ( − a + b ) and c 1 = 11 a − 10 b , and so we have

      ( a b ) = ( 11 a − 10 b 11 a − 10 b ) + ( − 10 a + 10 b 1.1 ⋅ ( − 10 a + 10 b ) )

      as required. As with the prior answer, each of the two subspaces is a line through the origin, and their intersection is trivial.

    3. Yes. Each vector in the plane is a sum in this way

      ( x y ) = ( x y ) + ( 0 0 )

      and the intersection of the two subspaces is trivial.

    4. No. The intersection is not trivial.

    5. No. These are not subspaces.

  2. Exercise 4.21 Worked answer

    Recommended. Show that ℝ 3 is the direct sum of the x y -plane with each of these.

    1. the z -axis

    2. the line

      { ( z z z ) ∣ z ∈ ℝ }

    Back to Exercise 4.21

    Answer. With each of these we can use Lemma 4.15.

    1. Any vector in ℝ 3 can be decomposed as this sum.

      ( x y z ) = ( x y 0 ) + ( 0 0 z )

      And, the intersection of the x y -plane and the z -axis is the trivial subspace.

    2. Any vector in ℝ 3 can be decomposed as

      ( x y z ) = ( x − z y − z 0 ) + ( z z z )

      and the intersection of the two spaces is trivial.

  3. Exercise 4.22 Worked answer

    Is 𝒫 2 the direct sum of { a + b x 2 ∣ a , b ∈ ℝ } and { c x ∣ c ∈ ℝ } ?

    Back to Exercise 4.22

    Answer. It is. Showing that these two are subspaces is routine. To see that the space is the direct sum of these two, just note that each member of 𝒫 2 has the unique decomposition m + n x + p x 2 = ( m + p x 2 ) + ( n x ) .

  4. Exercise 4.23 Worked answer

    Recommended. In 𝒫 n , the even polynomials are the members of this set

    ℰ = { p ∈ 𝒫 n ∣ p ( − x ) = p ( x )  for all  x }

    and the odd polynomials are the members of this set.

    𝒪 = { p ∈ 𝒫 n ∣ p ( − x ) = − p ( x )  for all  x }

    Show that these are complementary subspaces.

    Back to Exercise 4.23

    Answer. To show that they are subspaces is routine. We will argue they are complements with Lemma 4.15. The intersection ℰ ∩ 𝒪 is trivial because the only polynomial satisfying both conditions p ( − x ) = p ( x ) and p ( − x ) = − p ( x ) is the zero polynomial. To see that the entire space is the sum of the subspaces ℰ + 𝒪 = 𝒫 n , note that the polynomials p 0 ( x ) = 1 , p 2 ( x ) = x 2 , p 4 ( x ) = x 4 , etc., are in ℰ and also note that the polynomials p 1 ( x ) = x , p 3 ( x ) = x 3 , etc., are in 𝒪 . Hence any member of 𝒫 n is a combination of members of ℰ and 𝒪 .

  5. Exercise 4.24 Worked answer

    Which of these subspaces of ℝ 3

    W 1 : the x -axis, W 2 : the y -axis, W 3 : the z -axis,
    W 4 : the plane x + y + z = 0 , W 5 : the y z -plane

    can be combined to

    1. sum to ℝ 3 ?

    2. direct sum to ℝ 3 ?

    Back to Exercise 4.24

    Answer. Each of these is ℝ 3 .

    1. These are broken into some separate lines for readability.

      W 1 + W 2 + W 3 , W 1 + W 2 + W 3 + W 4 , W 1 + W 2 + W 3 + W 5 ,
      W 1 + W 2 + W 3 + W 4 + W 5 , W 1 + W 2 + W 4 , W 1 + W 2 + W 4 + W 5 ,
      W 1 + W 2 + W 5 , W 1 + W 3 + W 4 , W 1 + W 3 + W 5 , W 1 + W 3 + W 4 + W 5 ,

      W 1 + W 4 , W 1 + W 4 + W 5 , W 1 + W 5 ,

      W 2 + W 3 + W 4 , W 2 + W 3 + W 4 + W 5 , W 2 + W 4 , W 2 + W 4 + W 5 ,
      W 3 + W 4 , W 3 + W 4 + W 5 ,
      W 4 + W 5
    2. W 1 ⊕ W 2 ⊕ W 3 , W 1 ⊕ W 4 , W 1 ⊕ W 5 , W 2 ⊕ W 4 , W 3 ⊕ W 4

  6. Exercise 4.25 Worked answer

    Recommended. Show that 𝒫 n = { a 0 ∣ a 0 ∈ ℝ } ⊕ ⋯ ⊕ { a n x n ∣ a n ∈ ℝ } .

    Back to Exercise 4.25

    Answer. Clearly each is a subspace. The bases B i = ⟨ x i ⟩ for the subspaces, when concatenated, form a basis for the whole space.

  7. Exercise 4.26 Worked answer

    What is W 1 + W 2 if W 1 ⊆ W 2 ?

    Back to Exercise 4.26

    Answer. It is W 2 .

  8. Exercise 4.27 Worked answer

    Does Example 4.5 generalize? That is, is this true or false: if a vector space V has a basis ⟨ β → 1 , … , β → n ⟩ then it is the direct sum of the spans of the one-dimensional subspaces V = [ { β → 1 } ] ⊕ ⋯ ⊕ [ { β → n } ] ?

    Back to Exercise 4.27

    Answer. True by Lemma 4.8.

  9. Exercise 4.28 Worked answer

    Can ℝ 4 be decomposed as a direct sum in two different ways? Can ℝ 1 ?

    Back to Exercise 4.28

    Answer. Two distinct direct sum decompositions of ℝ 4 are easy to find. Two such are W 1 = [ { e → 1 , e → 2 } ] and W 2 = [ { e → 3 , e → 4 } ] , and also U 1 = [ { e → 1 } ] and U 2 = [ { e → 2 , e → 3 , e → 4 } ] . (Many more are possible, for example ℝ 4 and its trivial subspace.)

    In contrast, any partition of ℝ 1 ’s single-vector basis will give one basis with no elements and another with a single element. Thus any decomposition involves ℝ 1 and its trivial subspace.

  10. Exercise 4.29 Worked answer

    This exercise makes the notation of writing ‘ + ’ between sets more natural. Prove that, where W 1 , … , W k are subspaces of a vector space,

    W 1 + ⋯ + W k = { w → 1 + w → 2 + ⋯ + w → k ∣ w → 1 ∈ W 1 , … , w → k ∈ W k } ,

    and so the sum of subspaces is the subspace of all sums.

    Back to Exercise 4.29

    Answer. Set inclusion one way is easy: { w → 1 + ⋯ + w → k ∣ w → i ∈ W i } is a subset of [ W 1 ∪ ⋯ ∪ W k ] because each w → 1 + ⋯ + w → k is a sum of vectors from the union.

    For the other inclusion, to any linear combination of vectors from the union apply commutativity of vector addition to put vectors from W 1 first, followed by vectors from W 2 , etc. Add the vectors from W 1 to get a w → 1 ∈ W 1 , add the vectors from W 2 to get a w → 2 ∈ W 2 , etc. The result has the desired form.

  11. Exercise 4.30 Worked answer

    (Refer to Example 4.19. This exercise shows that the requirement that pairwise intersections be trivial is genuinely stronger than the requirement only that the intersection of all of the subspaces be trivial.) Give a vector space and three subspaces W 1 , W 2 , and W 3 such that the space is the sum of the subspaces, the intersection of all three subspaces W 1 ∩ W 2 ∩ W 3 is trivial, but the pairwise intersections W 1 ∩ W 2 , W 1 ∩ W 3 , and W 2 ∩ W 3 are nontrivial.

    Back to Exercise 4.30

    Answer. One example is to take the space to be ℝ 3 , and to take the subspaces to be the x y -plane, the x z -plane, and the y z -plane.

  12. Exercise 4.31 Worked answer

    Prove that if V = W 1 ⊕ ⋯ ⊕ W k then W i ∩ W j is trivial whenever i ≠ j . This shows that the first half of the proof of Lemma 4.15 extends to the case of more than two subspaces. (Example 4.19 shows that this implication does not reverse; the other half does not extend.)

    Back to Exercise 4.31

    Answer. Of course, the zero vector is in all of the subspaces, so the intersection contains at least that one vector.. By the definition of direct sum the set { W 1 , … , W k } is independent and so no nonzero vector of W i is a multiple of a member of W j , when i ≠ j . In particular, no nonzero vector from W i equals a member of W j .

  13. Exercise 4.32 Worked answer

    Recall that no linearly independent set contains the zero vector. Can an independent set of subspaces contain the trivial subspace?

    Back to Exercise 4.32

    Answer. It can contain a trivial subspace; this set of subspaces of ℝ 3 is independent: { { 0 → } , x -axis } . No nonzero vector from the trivial space { 0 → } is a multiple of a vector from the x -axis, simply because the trivial space has no nonzero vectors to be candidates for such a multiple (and also no nonzero vector from the x -axis is a multiple of the zero vector from the trivial subspace).

  14. Exercise 4.33 Worked answer

    Recommended. Does every subspace have a complement?

    Back to Exercise 4.33

    Answer. Yes. For any subspace of a vector space we can take any basis ⟨ ω → 1 , … , ω → k ⟩ for that subspace and extend it to a basis ⟨ ω → 1 , … , ω → k , β → k + 1 , … , β → n ⟩ for the whole space. Then the complement of the original subspace has this basis ⟨ β → k + 1 , … , β → n ⟩ .

  15. Exercise 4.34 Worked answer

    Recommended. Let W 1 , W 2 be subspaces of a vector space.

    1. Assume that the set S 1 spans W 1 , and that the set S 2 spans W 2 . Can S 1 ∪ S 2 span W 1 + W 2 ? Must it?

    2. Assume that S 1 is a linearly independent subset of W 1 and that S 2 is a linearly independent subset of W 2 . Can S 1 ∪ S 2 be a linearly independent subset of W 1 + W 2 ? Must it?

    Back to Exercise 4.34

    Answer.

    1. It must. We can write any member of W 1 + W 2 as w → 1 + w → 2 where w → 1 ∈ W 1 and w → 2 ∈ W 2 . As S 1 spans W 1 , the vector w → 1 is a combination of members of S 1 . Similarly w → 2 is a combination of members of S 2 .

    2. An easy way to see that it can be linearly independent is to take each to be the empty set. On the other hand, in the space ℝ 1 , if W 1 = ℝ 1 and W 2 = ℝ 1 and S 1 = { 1 } and S 2 = { 2 } , then their union S 1 ∪ S 2 is not independent.

  16. Exercise 4.35 Worked answer

    When we decompose a vector space as a direct sum, the dimensions of the subspaces add to the dimension of the space. The situation with a space that is given as the sum of its subspaces is not as simple. This exercise considers the two-subspace special case.

    1. For these subspaces of ℳ 2 × 2 find W 1 ∩ W 2 , dim ⁡ ( W 1 ∩ W 2 ) , W 1 + W 2 , and dim ⁡ ( W 1 + W 2 ) .

      W 1 = { ( 0 0 c d ) ∣ c , d ∈ ℝ } W 2 = { ( 0 b c 0 ) ∣ b , c ∈ ℝ }

    2. Suppose that U and W are subspaces of a vector space. Suppose that the sequence ⟨ β → 1 , … , β → k ⟩ is a basis for U ∩ W . Finally, suppose that the prior sequence has been expanded to give a sequence ⟨ μ → 1 , … , μ → j , β → 1 , … , β → k ⟩ that is a basis for U , and a sequence ⟨ β → 1 , … , β → k , ω → 1 , … , ω → p ⟩ that is a basis for W . Prove that this sequence

      ⟨ μ → 1 , … , μ → j , β → 1 , … , β → k , ω → 1 , … , ω → p ⟩

      is a basis for the sum U + W .

    3. Conclude that dim ⁡ ( U + W ) = dim ⁡ ( U ) + dim ⁡ ( W ) − dim ⁡ ( U ∩ W ) .

    4. Let W 1 and W 2 be eight-dimensional subspaces of a ten-di­men­sion­al space. List all values possible for dim ⁡ ( W 1 ∩ W 2 ) .

    Back to Exercise 4.35

    Answer.

    1. The intersection and sum are

      { ( 0 0 c 0 ) ∣ c ∈ ℝ } { ( 0 b c d ) ∣ b , c , d ∈ ℝ }

      which have dimensions one and three.

    2. We write B U ∩ W for the basis for U ∩ W , we write B U for the basis for U , we write B W for the basis for W , and we write B U + W for the basis under consideration.

      To see that B U + W spans U + W , observe that we can write any vector c u → + d w → from U + W as a linear combination of the vectors in B U + W , simply by expressing u → in terms of B U and expressing w → in terms of B W .

      We finish by showing that B U + W is linearly independent. Consider

      c 1 μ → 1 + ⋯ + c j + 1 β → 1 + ⋯ + c j + k + p ω → p = 0 →

      which can be rewritten in this way.

      c 1 μ → 1 + ⋯ + c j μ → j = − c j + 1 β → 1 − ⋯ − c j + k + p ω → p

      Note that the left side sums to a vector in U while right side sums to a vector in W , and thus both sides sum to a member of U ∩ W . Since the left side is a member of U ∩ W , it is expressible in terms of the members of B U ∩ W , which gives the combination of μ → ’s from the left side above as equal to a combination of β → ’s. But, the fact that the basis B U is linearly independent shows that any such combination is trivial, and in particular, the coefficients c 1 , …, c j from the left side above are all zero. Similarly, the coefficients of the ω → ’s are all zero. This leaves the above equation as a linear relationship among the β → ’s, but B U ∩ W is linearly independent, and therefore all of the coefficients of the β → ’s are also zero.

    3. Just count the basis vectors in the prior item:  dim ⁡ ( U + W ) = j + k + p , and dim ⁡ ( U ) = j + k , and dim ⁡ ( W ) = k + p , and dim ⁡ ( U ∩ W ) = k .

    4. We know that dim ⁡ ( W 1 + W 2 ) = dim ⁡ ( W 1 ) + dim ⁡ ( W 2 ) − dim ⁡ ( W 1 ∩ W 2 ) . Because W 1 ⊆ W 1 + W 2 , we know that W 1 + W 2 must have dimension greater than that of W 1 , that is, must have dimension eight, nine, or ten. Substituting gives us three possibilities 8 = 8 + 8 − dim ⁡ ( W 1 ∩ W 2 ) or 9 = 8 + 8 − dim ⁡ ( W 1 ∩ W 2 ) or 10 = 8 + 8 − dim ⁡ ( W 1 ∩ W 2 ) . Thus dim ⁡ ( W 1 ∩ W 2 ) must be either eight, seven, or six. (Giving examples to show that each of these three cases is possible is easy, for instance in ℝ 10 .)

  17. Exercise 4.36 Worked answer

    Let V = W 1 ⊕ ⋯ ⊕ W k and for each index i suppose that S i is a linearly independent subset of W i . Prove that the union of the S i ’s is linearly independent.

    Back to Exercise 4.36

    Answer. Expand each S i to a basis B i for W i . The concatenation of those bases B 1 ⌢ ⋯ ⌢ B k is a basis for V and thus its members form a linearly independent set. But the union S 1 ∪ ⋯ ∪ S k is a subset of that linearly independent set, and thus is itself linearly independent.

  18. Exercise 4.37 Worked answer

    A matrix is symmetric if for each pair of indices i and j , the i , j entry equals the j , i entry. A matrix is antisymmetric if each i , j entry is the negative of the j , i entry.

    1. Give a symmetric 2 × 2 matrix and an antisymmetric 2 × 2 matrix. (Remark. For the second one, be careful about the entries on the diagonal.)

    2. What is the relationship between a square symmetric matrix and its transpose? Between a square antisymmetric matrix and its transpose?

    3. Show that ℳ n × n is the direct sum of the space of symmetric matrices and the space of antisymmetric matrices.

    Back to Exercise 4.37

    Answer.

    1. Two such are these.

      ( 1 2 2 3 ) ( 0 1 − 1 0 )

      For the antisymmetric one, entries on the diagonal must be zero.

    2. A square symmetric matrix equals its transpose. A square antisymmetric matrix equals the negative of its transpose.

    3. Showing that the two sets are subspaces is easy. Suppose that A ∈ ℳ n × n . To express A as a sum of a symmetric and an antisymmetric matrix, we observe that

      A = ( 1 / 2 ) ( A + A 𝖳 ) + ( 1 / 2 ) ( A − A 𝖳 )

      and note the first summand is symmetric while the second is antisymmetric. Thus ℳ n × n is the sum of the two subspaces. To show that the sum is direct, assume a matrix A is both symmetric A = A 𝖳 and antisymmetric A = − A 𝖳 . Then A = − A and so all of A ’s entries are zeroes.

  19. Exercise 4.38 Worked answer

    Let W 1 , W 2 , W 3 be subspaces of a vector space. Prove that ( W 1 ∩ W 2 ) + ( W 1 ∩ W 3 ) ⊆ W 1 ∩ ( W 2 + W 3 ) . Does the inclusion reverse?

    Back to Exercise 4.38

    Answer. Assume that v → ∈ ( W 1 ∩ W 2 ) + ( W 1 ∩ W 3 ) . Then v → = w → 2 + w → 3 where w → 2 ∈ W 1 ∩ W 2 and w → 3 ∈ W 1 ∩ W 3 . Note that w → 2 , w → 3 ∈ W 1 and, as a subspace is closed under addition, w → 2 + w → 3 ∈ W 1 . Thus v → = w → 2 + w → 3 ∈ W 1 ∩ ( W 2 + W 3 ) .

    This example proves that the inclusion may be strict: in ℝ 2 take W 1 to be the x -axis, take W 2 to be the y -axis, and take W 3 to be the line y = x . Then W 1 ∩ W 2 and W 1 ∩ W 3 are trivial and so their sum is trivial. But W 2 + W 3 is all of ℝ 2 so W 1 ∩ ( W 2 + W 3 ) is the x -axis.

  20. Exercise 4.39 Worked answer

    The example of the x -axis and the y -axis in ℝ 2 shows that W 1 ⊕ W 2 = V does not imply that W 1 ∪ W 2 = V . Can W 1 ⊕ W 2 = V and W 1 ∪ W 2 = V happen?

    Back to Exercise 4.39

    Answer. It happens when at least one of W 1 , W 2 is trivial. But that is the only way it can happen.

    To prove this, assume that both are non-trivial, select nonzero vectors w → 1 , w → 2 from each, and consider w → 1 + w → 2 . This sum is not in W 1 because w → 1 + w → 2 = v → ∈ W 1 would imply that w → 2 = v → − w → 1 is in W 1 , which violates the assumption of the independence of the subspaces. Similarly, w → 1 + w → 2 is not in W 2 . Thus there is an element of V that is not in W 1 ∪ W 2 .

  21. Exercise 4.40 Worked answer

    Consider Corollary 4.13. Does it work both ways—that is, supposing that V = W 1 + ⋯ + W k , is V = W 1 ⊕ ⋯ ⊕ W k if and only if dim ⁡ ( V ) = dim ⁡ ( W 1 ) + ⋯ + dim ⁡ ( W k ) ?

    Back to Exercise 4.40

    Answer. Yes. The left-to-right implication is Corollary 4.13. For the other direction, assume that dim ⁡ ( V ) = dim ⁡ ( W 1 ) + ⋯ + dim ⁡ ( W k ) . Let B 1 , … , B k be bases for W 1 , … , W k . As V is the sum of the subspaces, we can write any v → ∈ V as v → = w → 1 + ⋯ + w → k and expressing each w → i as a combination of vectors from the associated basis B i shows that the concatenation B 1 ⌢ ⋯ ⌢ B k spans V . Now, that concatenation has dim ⁡ ( W 1 ) + ⋯ + dim ⁡ ( W k ) members, and so it is a spanning set of size dim ⁡ ( V ) . The concatenation is therefore a basis for V . Thus V is the direct sum.

  22. Exercise 4.41 Worked answer

    We know that if V = W 1 ⊕ W 2 then there is a basis for V that splits into a basis for W 1 and a basis for W 2 . Can we make the stronger statement that every basis for V splits into a basis for W 1 and a basis for W 2 ?

    Back to Exercise 4.41

    Answer. No. The standard basis for ℝ 2 does not split into bases for the complementary subspaces the line x = y and the line x = − y .

  23. Exercise 4.42 Worked answer

    We can ask about the algebra of the ‘ + ’ operation.

    1. Is it commutative; is W 1 + W 2 = W 2 + W 1 ?

    2. Is it associative; is ( W 1 + W 2 ) + W 3 = W 1 + ( W 2 + W 3 ) ?

    3. Let W be a subspace of some vector space. Show that W + W = W .

    4. Must there be an identity element, a subspace I such that I + W = W + I = W for all subspaces W ?

    5. Does left-cancellation hold: if W 1 + W 2 = W 1 + W 3 then W 2 = W 3 ? Right cancellation?

    Back to Exercise 4.42

    Answer.

    1. Yes, W 1 + W 2 = W 2 + W 1 for all subspaces W 1 , W 2 because each side is the span of W 1 ∪ W 2 = W 2 ∪ W 1 .

    2. This one is similar to the prior one—each side of that equation is the span of ( W 1 ∪ W 2 ) ∪ W 3 = W 1 ∪ ( W 2 ∪ W 3 ) .

    3. Because this is an equality between sets, we can show that it holds by mutual inclusion. Clearly W ⊆ W + W . For W + W ⊆ W just recall that every subset is closed under addition so any sum of the form w → 1 + w → 2 is in W .

    4. In each vector space, the identity element with respect to subspace addition is the trivial subspace.

    5. Neither of left or right cancellation needs to hold. For an example, in ℝ 3 take W 1 to be the x y -plane, take W 2 to be the x -axis, and take W 3 to be the y -axis.

References cited in this section

Sheffer

Adam Sheffer (attributed to Bob Krueger), A Linear Algebra Riddle, blog post, https://adamsheffer.wordpress.com/2018/07/21/linear-algebra-riddle/ July 21, 2018.

Wohascum no. 47

The Wohascum County Problem Book problem number 47.

Munkres

James R. Munkres, Elementary Linear Algebra, Addison-Wesley, 1964.


  1. More information on sequences is in the appendix.↩︎