Jump to content

Linear Algebra/Basis

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

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

We denote a basis with angle brackets ⟨β1→,β2→,…⟩ to signify that this collection is a sequence[1] — the order of the elements is significant. (The requirement that a basis be ordered will be needed, for instance, in Definition 1.13.)

Example 1.2

This is a basis for ℝ2 .

⟨(24),(11)⟩

It is linearly independent

c1(24)+c2(11)=(00)⟹2c1+1c2=04c1+1c2=0⟹c1=c2=0

and it spans ℝ2 .

2c1+1c2=x4c1+1c2=y⟹c2=2x−y and c1=y−x2
Example 1.3

This basis for ℝ2

⟨(11),(24)⟩

differs from the prior one because the vectors are 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.

⟨(10),(01)⟩

The verification is easy.

Definition 1.5

For any ℝn ,

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

is the standard (or natural) basis. We denote these vectors by e1→,…,en→ .


(Calculus books refer to ℝ2's standard basis vectors ı→ and ȷ→ instead of e→1 and e→2, and they refer to ℝ3's standard basis vectors ı→, ȷ→, and k→ instead of e→1, e→2, and e→3.) Note that the symbol "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 θ.

⟨1⋅cos⁡θ+0⋅sin⁡θ,0⋅cos⁡θ+1⋅sin⁡θ⟩=⟨cos⁡θ,sin⁡θ⟩

Another basis is ⟨cos⁡θ−sin⁡θ,2cos⁡θ+3sin⁡θ⟩. Verification that these two are bases is Problem 7.

Example 1.7

A natural for the vector space of cubic polynomials 𝒫3 is ⟨1,x,x2,x3⟩. Two other bases for this space are ⟨x3,3x2,6x,6⟩ and ⟨1,1+x,1+x+x2,1+x+x2+x3⟩. Checking that these are linearly independent and span 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,x2,…⟩.

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=0z+w=0

by parametrizing.

{(−1100)y+(10−11)w|y,w∈ℝ}

That is, we described the vector space of solutions as the span of a two-element set. We can easily check that this two-vector set is also linearly independent. Thus the solution set is a subspace of ℝ4 with a two-element basis.

Example 1.11

Parameterization helps find bases for other vector spaces, not just for solution sets of homogeneous systems. To find a basis for this subspace of ℳ2×2

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

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

{(−b+2cbc0)|b,c∈ℝ}={b(−1100)+c(2010)|b,c∈ℝ}

Thus, this is a good candidate for a basis.

⟨(−1100),(2010)⟩

The above work shows that it spans the space. To show that it is linearly independent is routine.

Consider again Example 1.2. It involves two verifications.

In the first, to check that the set is linearly independent we looked at linear combinations of the set's members that total to the zero vector c1β→1+c2β→2=(00). The resulting calculation shows that such a combination is unique, that c1 must be 0 and c2 must be 0.

The second verification, that the set spans the space, looks at linear combinations that total to any member of the space c1β→1+c2β→2=(xy). In Example 1.2 we noted only that the resulting calculation shows that such a combination exists, that for each x,y there is a c1,c2. However, in fact the calculation also shows that the combination is unique: c1 must be (y−x)/2 and c2 must be 2x−y.

That is, the first calculation is a special case of the second. The next result says that this holds in general for a spanning set: the combination totaling to the zero vector is unique if and only if the combination totaling to any vector is unique.

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 a unique way.

We consider combinations to be the same if they differ only in the order of summands or in the addition or deletion of terms of the form "0⋅β→".

Proof

By definition, a sequence is a basis if and only if its vectors form both a spanning set and a linearly independent set. 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, to finish we need only show that a 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 basis. We can 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→=c1β→1+c2β→2+⋯+cnβ→n and v→=d1β→1+d2β→2+⋯+dnβ→n. Now

c1β→1+c2β→2+⋯+cnβ→n=d1β→1+d2β→2+⋯+dnβ→n

holds if and only if

(c1−d1)β→1+…+(cn−dn)β→n=0→

holds, and so asserting that each coefficient in the lower equation is zero is the same thing as asserting that ci=di for each i.

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:

RepB(v→)=(c1c2⋮cn)

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

We will later do representations in contexts that involve more than one basis. To help with the bookkeeping, we shall often attach a subscript B to the column vector.

Example 1.14

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

RepB(x+x2)=(01/21/20)B

(note that the coordinates are scalars, not vectors). With respect to a different basis D=⟨1+x,1−x,x+x2,x+x3⟩, the representation

RepD(x+x2)=(0010)D

is different.

Remark 1.15

This use of column notation and the term "coordinates" has both a down side and an up side.

The down side is that representations look like vectors from ℝn, which can be confusing when the vector space we are working with is ℝn, especially since we sometimes omit the subscript base. We must then infer the intent from the context. For example, the phrase "in ℝ2, where v→=(32)" refers to the plane vector that, when in canonical position, ends at (3,2). To find the coordinates of that vector with respect to the basis

B=⟨(11),(02)⟩

we solve

c1(11)+c2(02)=(32)

to get that c1=3 and c2=−1/2. Then we have this.

RepB(v→)=(3−1/2)

Here, although we've ommited the subscript B from the column, the fact that the right side is a representation is clear from the context.

The up side of the notation and the term "coordinates" is that they generalize the use that we are familiar with:~in ℝn and with respect to the standard basis ℰn, the vector starting at the origin and ending at (v1,…,vn) has this representation.


Repℰn((v1⋮vn))=(v1⋮vn)ℰn

Our main use of representations will come in the third chapter. 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 two points. First, we fix an order for the elements of a basis so that coordinates can be stated in that order. Second, for calculation of coordinates, among other things, we shall restrict our attention to spaces with bases having only finitely many elements. We will see that in the next subsection.

Exercises

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

Decide if each is a basis for ℝ3.

  1. ⟨(123),(321),(001)⟩
  2. ⟨(123),(321)⟩
  3. ⟨(02−1),(111),(250)⟩
  4. ⟨(02−1),(111),(130)⟩
This exercise is recommended for all readers.
Problem 2

Represent the vector with respect to the basis.

  1. (12), B=⟨(11),(−11)⟩⊆ℝ2
  2. x2+x3, D=⟨1,1+x,1+x+x2,1+x+x2+x3⟩⊆𝒫3
  3. (0−101), ℰ4⊆ℝ4
Problem 3

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?

Problem 4

Find a basis for the solution set of this system.

x1−4x2+3x3−x4=02x1−8x2+6x3−2x4=0
This exercise is recommended for all readers.
Problem 5

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

This exercise is recommended for all readers.
Problem 6

Find a basis for each.

  1. The subspace {a2x2+a1x+a0|a2−2a1=a0} 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
    {(ab0c)|c−2b=0}
Problem 7

Check Example 1.6.

This exercise is recommended for all readers.
Problem 8

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

  1. {1+x,1+2x} in 𝒫2
  2. {2−2x,3+4x2} in 𝒫2
This exercise is recommended for all readers.
Problem 9

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
Problem 10

We've seen that it is possible for a basis to remain a basis when it is reordered. Must it always remain a basis?

Problem 11

Can a basis contain a zero vector?

This exercise is recommended for all readers.
Problem 12

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

  1. Show that ⟨c1β→1,c2β→2,c3β→3⟩ is a basis when c1,c2,c3≠0. What happens when at least one ci is 0?
  2. Prove that ⟨α→1,α→2,α→3⟩ is a basis where α→i=β→1+β→i.
Problem 13

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

  1. ⟨(11),v→⟩ in ℝ2
  2. ⟨(110),(010),v→⟩ in ℝ3
  3. ⟨x,1+x2,v→⟩ in 𝒫2
This exercise is recommended for all readers.
Problem 14

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

c1β→1+…+ckβ→k=ck+1β→k+1+…+cnβ→n

each of the ci's is zero. Generalize.

Problem 15

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

Problem 16

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?

This exercise is recommended for all readers.
Problem 17

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.
This exercise is recommended for all readers.
Problem 18

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, when applied to two vectors, cannot yield all of ℝ3.)
Problem 19

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

{(xyz)|x+y+z=1}

is a vector space under these operations.

(x1y1z1)+(x2y2z2)=(x1+x2−1y1+y2z1+z2)r(xyz)=(rx−r+1ryrz)

Find a basis.

Solutions

Footnotes

[edit | edit source]
  1. ↑ More information on sequences is in the appendix.
Linear Algebra
 ← Basis and Dimension Basis Dimension →