Chapter 1. Vector spaces and bases
Linear algebra begins with two operations, addition and scalar multiplication. Together they let us construct vectors by linear combinations. A span records which vectors can be constructed, while a basis gives each vector a unique description. These ideas also explain linear transformations. Such a transformation carries a linear combination to the same combination of the transformed vectors. Choosing bases turns that rule into a matrix calculation. This chapter develops the language behind that connection.
1.1 Vector spaces
Let be a field, such as or .
Definition 1.1.1. A vector space over is a nonempty set with addition and scalar multiplication
satisfying the following axioms for all and .
Addition.
-
(A1) (associativity).
-
(A2) (commutativity).
-
(A3) There is a vector such that for every .
-
(A4) Each has an inverse with .
Scalar multiplication.
-
(S1) (associativity).
-
(S2) (distributivity over scalar addition).
-
(S3) (distributivity over vector addition).
-
(S4) (scalar identity).
The elements of are vectors, and the elements of are scalars. The vector is called the zero vector or the origin. We write it as when the vector space is clear from the context.
The word vector describes an object’s role under addition and scalar multiplication. Coordinate columns, functions, and matrices can all play this role. The axioms specify the common structure that allows us to work with these different objects in the same way.
In the real plane, vector addition can be drawn by completing a parallelogram, as in Figure 1.1.
The parallelogram makes addition visible in the plane. In a function space or a matrix space, the same operation is performed on functions or matrices. The expression therefore has a meaning beyond arrows in a drawing. It is a construction using the two vector-space operations, which we study next through linear combinations and span.
Exercise 1.1.2 (Consequences of the axioms)
Let denote or . Let be a vector space over , , and . Prove the following statements directly from the vector space axioms.
-
(a) The zero vector and the additive inverse of each vector are unique.
-
(b) and .
-
(c) .
-
(d) If , then or .
Distinguish scalar zeros from vector zeros in your proofs.
1.2 Linear combinations and bases
Linear combinations and span
A linear combination is one result of choosing vectors and coefficients. The span collects every result obtainable when those coefficients and the finite selection of vectors are allowed to vary.
Definition 1.2.1. A linear combination of is a vector of the form
For , its span, denoted , is the set of all finite linear combinations of elements of . Explicitly,
where ranges over the nonnegative integers. The subset need not be finite, but each linear combination uses finitely many of its vectors.
The empty linear combination is the zero vector, so . A vector space is finite-dimensional when it has a finite spanning set. Unless explicitly stated otherwise, the vector spaces in this book are finite-dimensional.
Set equalities can be proved by checking both inclusions. The template in Subsection* B.1 recalls this method.
Linear independence
Definition 1.2.2. A subset is linearly independent if, for every finite selection of distinct vectors ,
The empty set is linearly independent.
Equivalently, coefficients in a linear combination of distinct vectors from an independent set are unique. If
then for each . Thus independence answers a different question from spanning. Spanning asks whether a vector can be constructed from the chosen vectors. Independence asks whether two different coefficient choices can construct the same vector.
Definition 1.2.3. A subset is linearly dependent if some finite selection of distinct vectors from it satisfies
with at least one coefficient nonzero.
Figure 1.2 compares two-vector configurations in . A dependent pair lies on a line through zero. An independent pair supplies two directions in the plane.
Bases and dimension
Definition 1.2.4. A basis of is a linearly independent subset that spans . The dimension of a finite-dimensional vector space is the number of vectors in a basis.
Every finite-dimensional vector space has a basis, as Proposition 1.2.6 will show. The general existence result is proved in Theorem 1.2.10. The zero vector space has the empty basis. The three standard coordinate vectors span and are independent, so .
More generally, a basis of allows every vector in to be written uniquely as . The spanning property guarantees that the representation exists, and linear independence makes its coefficients unique.
An ordered basis makes these coefficients into coordinates. For example, with an ordered basis of a real two-dimensional space,
identifies by the coordinate column . Figure 1.3 shows how repeated steps in the two basis directions build a coordinate grid. The lines need not meet at right angles. Uniqueness of the coefficients, rather than the angles in the drawing, makes this a coordinate system.
Theorem 1.2.5 (Comparison of independent and spanning sets). Let be a finite spanning set of a vector space . Every linearly independent subset is finite, and
Proof. Write . If , then , whose only independent subset is empty. Suppose and that contains distinct vectors . We will replace the vectors of , one at a time, by , preserving the spanning property.
At step , write the current spanning list as
Its first entries are the vectors already chosen from . Since the list spans , there are coefficients such that
At least one is nonzero. Otherwise would be a linear combination of , contradicting the independence of the chosen vectors from . For an index with , solve this equation for . It expresses as a linear combination of and the other vectors in the current list. Replacing by therefore leaves a spanning list. Reorder the remaining to prepare the next step.
After steps, span . In particular, is a linear combination of them, again contradicting independence. Thus cannot contain distinct vectors. It is consequently finite and has at most elements. ◻
Proposition 1.2.6 (Finite basis extension). Every linearly independent subset of a finite-dimensional vector space is contained in a finite basis of . In particular, has a finite basis.
Proof. Let be independent, and choose a finite spanning set of . By Theorem 1.2.5, is finite. Starting with , consider in order. Add to the current set precisely when it is outside its span.
Each addition preserves independence. Indeed, if the current independent set is and
a nonzero would express as a linear combination of the current vectors. Since was outside their span, , and independence then gives .
The resulting set is finite, independent, and contains . Every element of belongs to its span, whether it was added or was already in the span when considered. The resulting set therefore spans and is a basis. Taking gives the final assertion. ◻
Corollary 1.2.7 (The size of a finite basis). Any two bases of a finite-dimensional vector space have the same finite number of elements. Thus its dimension is well-defined.
Proof. Any basis is finite by Theorem 1.2.5, applied to a finite spanning set of the space. If and are two bases, the same theorem gives , since is independent and spans. Interchanging and gives . Hence . ◻
Subspaces
Definition 1.2.8. A nonempty subset is a subspace if it is closed under linear combinations. That is, for and ,
A subspace inherits addition and scalar multiplication from .
Equivalently, every finite linear combination of elements of lies in . Every subspace contains the zero vector. Choose , which is possible because is nonempty. Taking in the closure condition gives .
Proposition 1.2.9 (Subspaces of a finite-dimensional space). If is a subspace of a finite-dimensional vector space , then is finite-dimensional, and every basis of extends to a basis of . Moreover,
Proof. Put . Every independent subset of is independent in , so its size is at most by Theorem 1.2.5. The possible sizes of independent subsets of form a nonempty subset of , since the empty set is independent. Choose an independent subset of largest possible size.
If did not span , there would be a vector outside its span. Adjoining would preserve independence, by the coefficient argument in the proof of Proposition 1.2.6. This contradicts the choice of . Thus is a finite basis of .
Every basis of is an independent subset of , so Proposition 1.2.6 extends it to a basis of . Consequently . If these dimensions are equal, the extended basis has no additional vectors. The original basis of then spans , giving . Conversely, immediately gives equality of their dimensions. ◻
Zorn’s lemma and infinite-dimensional bases
In infinite-dimensional spaces, a basis is still linearly independent, and each vector is a finite linear combination of elements of .
The finite basis-extension argument examines a finite spanning set one vector at a time. For a space with no finite spanning set, we instead use a set-theoretic principle that guarantees a maximal independent set.
Let be a nonempty family of sets, ordered by inclusion. A chain in is a subfamily such that any two of its members are comparable by inclusion. An upper bound for this chain is a member containing every member of . A member is maximal if no member of properly contains . Maximality does not require to contain every other member.
Zorn’s lemma (Zorn 1935). If every chain in a nonempty family has an upper bound in , then has a maximal member.
We use this inclusion-ordered form of Zorn’s lemma as a set-theoretic prerequisite. It is equivalent to the axiom of choice. The finite-dimensional arguments above do not require this principle. In the basis-existence proof, the sets are independent subsets of , and the upper bound for a chain will be its union. Maximality then forces the resulting independent set to span .
Theorem 1.2.10 (Existence of a basis). Every vector space has a basis.
Proof. Let be the family of all linearly independent subsets of , ordered by inclusion. This family is nonempty because . We first show that every chain in has an upper bound in .
For a nonempty chain , let . Every finite selection of vectors from lies in a single member of . Indeed, choose a chain member containing each vector and take the largest of these finitely many members, using their comparability. Since that member is independent, any zero linear combination of the selected vectors has all coefficients zero. Thus is independent and is an upper bound for . The empty chain has the independent upper bound .
Zorn’s lemma now gives an inclusion-maximal independent subset . Suppose were outside . In any relation
with the distinct, a nonzero would express as a finite linear combination of vectors from . Hence , and independence of gives . Therefore would be independent, contradicting maximality. It follows that spans and is a basis. ◻
Example 1.2.11. The vector space of polynomials in with real coefficients has the basis
Every polynomial is a finite linear combination of these monomials. Such a combination is the zero polynomial only when all its coefficients are zero, so the monomials are independent as well as spanning.
For the vector space of continuous functions , Theorem 1.2.10 guarantees a basis. No explicit basis is constructed here. This example motivates the study of topological vector spaces.
From bases to linear transformations
The same linear combinations connect vector spaces to maps between them. A linear map, also called a linear transformation, is a map between vector spaces over the same field that satisfies, for every and ,
It preserves the way a vector is assembled. If , then
The coefficients are retained, while the building blocks are replaced by their images. Since a basis describes every input uniquely, specifying its images determines a linear map everywhere.
In the real plane, consider the shear , illustrated in Figure 1.4. Its action on two basis vectors determines the action on the entire grid. The origin stays fixed, and repeated equal steps in a basis direction become repeated equal steps in its image direction. This is the geometric content of preserving linear combinations.
To calculate such an action, we choose output coordinates and record the coordinates of the basis-vector images as columns of a matrix. Matrix multiplication then forms their linear combination using the input coefficients. This is the link between the basis language of this chapter and the column calculations in § 2.1. The general definition of linearity and its grid interpretation are developed in § 3.2, and § 3.3 explains how the matrix records a map in chosen input and output bases.
Exercises on span, bases, and subspaces
The following exercises apply the definitions to coordinate vectors, polynomials, functions, and sequences. The basis-extension question uses Theorem 1.2.5.
Exercise 1.2.12 (An unfamiliar vector space)
On , define
-
(a) Prove that these operations make a vector space over . Identify its zero vector and the additive inverse of .
-
(b) Determine the dimension of and characterize all its bases.
You may use the usual properties of real powers and logarithms.
Exercise 1.2.13 (What span does)
Let be a vector space over , where denotes or . Let be arbitrary subsets, possibly empty or infinite. Recall that an empty linear combination is equal to .
-
(a) Prove that is a subspace containing .
-
(b) Prove that every subspace containing contains . Deduce that is the intersection of all subspaces containing .
Exercise 1.2.14 (A parameter that changes the span)
Let denote or . For , set
-
(a) Determine exactly when is a basis of . For each remaining value of , find a basis and the dimension of its span, and describe the span by a linear equation.
-
(b) When the three vectors form a basis, express any as their linear combination.
Exercise 1.2.15 (Solutions and differences of solutions)
Let denote or . In , define
-
(a) Prove that is a subspace and find a basis and its dimension. Determine whether is a subspace.
-
(b) Find for which , and prove this equality. Prove that the difference of any two elements of belongs to .
Exercise 1.2.16 (A polynomial determined by three values)
Let denote or , and work in , the polynomials of degree at most two with coefficients in , including the zero polynomial.
-
(a) Construct such that, for ,
-
(b) Prove that these polynomials form a basis and that every satisfies
-
(c) Find the unique polynomial for which , , and .
Exercise 1.2.17 (A vector space of recursively defined sequences)
Let be or . Let consist of the infinite sequences , where each , that satisfy
-
(a) Prove that is a vector space where vector addition is
and scalar multiplication is
Construct a basis and determine its dimension.
-
(b) Prove that the only sequence in with finitely many nonzero terms is the zero sequence.
Hint. For (a), consider the two sequences with initial values and .
Exercise 1.2.18 (Intersecting two spans)
Let denote or . In , let
-
(a) Find bases and dimensions of , , and .
-
(b) Define . Prove directly that is a subspace, find a basis and its dimension, and describe it by one linear equation. Do not assume a dimension formula for sums of subspaces.
Exercise 1.2.19 (Extending an independent set)
Let be a vector space over , where denotes or , and let have dimension .
-
(a) Prove that every linearly independent subset of is finite and can be extended to a basis of .
-
(b) Deduce that any linearly independent vectors form a basis, and that any set of vectors spanning is a basis.
-
(c) Prove that a subspace with must equal . Give an example showing that an infinite-dimensional space can have a proper subspace of the same dimension. Exhibit bases to justify the comparison.
Hint. For (a), show that adjoining to an independent set preserves independence. Use the comparison theorem to bound the number of steps.
Exercise 1.2.20 (Testing plausible assertions)
Decide whether each statement is true or false. Prove every true statement and give an explicit counterexample for every false one. Here are subsets of a vector space over , where denotes or .
-
(a) If and are linearly independent, then is linearly independent.
-
(b) If and are linearly independent, then is linearly independent.
-
(c) If and are finite and , then and have the same number of elements.
-
(d) .
-
(e) If and is linearly independent, then .
Exercise 1.2.21
Let be a basis of a real vector space .
-
(a) Show that is also a basis.
-
(b) Is it possible that a subset is linearly dependent but the set is linearly independent?
Exercise 1.2.22
Let be the vector space of continuous real-valued functions with domain . Prove that this space has infinite dimension.