Lesson 4.1 · Vector Spaces
Vector spaces and subspaces
So far every vector you have met has been a column of numbers in . But polynomials, matrices and functions can also be added and scaled, and they obey exactly the same algebraic rules. A vector space captures those rules once, so that every theorem you prove about spans, independence and bases applies to all of these objects at the same time.
The axioms of a vector space
What made work was never the fact that its vectors are lists of numbers. It was that you could add two vectors, multiply a vector by a scalar, and those operations behaved predictably. The definition below keeps the behavior and drops everything else.
Definition
Vector space
A vector space is a nonempty set of objects, called vectors, together with two operations, addition and multiplication by real scalars, such that for all in and all scalars and :
- is in (closure under addition).
- .
- .
- There is a zero vector in with .
- Each has a negative in with .
- is in (closure under scalar multiplication).
- .
- .
- .
- .
From these ten axioms alone you can prove familiar facts, for example that and for every . (For the first: , then add to both sides.)
Some standard examples:
- with the usual entrywise operations.
- , the polynomials of degree at most , . You add polynomials by adding matching coefficients, and the zero vector is the zero polynomial.
- , the matrices, with matrix addition and scalar multiplication.
- The set of all real-valued functions on an interval, with and .
In each case, checking the ten axioms comes down to properties of real numbers you already trust.
Subspaces
Most vector spaces you will work with live inside a bigger one you already know. A plane through the origin in is a vector space in its own right, but you don't need to recheck all ten axioms: most of them (commutativity, associativity, distributivity) are inherited automatically from . Only three things can go wrong.
Definition
Subspace
A subspace of a vector space is a subset of with three properties:
- The zero vector of is in .
- is closed under addition: if and are in , so is .
- is closed under scalar multiplication: if is in and is any scalar, is in .
Every subspace is itself a vector space, using the operations of . Two subspaces always exist: itself and the zero subspace .
Geometrically, the subspaces of are exactly , lines through the origin, planes through the origin and itself. A line or plane that misses the origin is never a subspace.
Worked example: A plane through the origin
Show that is a subspace of .
Zero vector. , so is in .
Addition. Suppose and are in . Their sum satisfies
Scalars. For in and any : .
All three conditions hold, so is a subspace.
The same argument works for the solution set of any homogeneous linear system. It fails the moment a right-hand side is nonzero, because then is not a solution.
Worked example: Sets that are not subspaces
(a) is a line in , but is not on it (). It is not a subspace.
(b) is the union of the first and third quadrants, axes included. It contains , and it is closed under scalar multiplication, since . But it is not closed under addition: and are in , while their sum has . So is not a subspace.
To show a set is not a subspace you need only one specific counterexample. To show it is one, you must verify each condition for arbitrary vectors.
Common mistake
Containing the zero vector is necessary but not sufficient. Part (b) above contains and is closed under scaling, yet it still fails. Always check both closure properties, and when you suspect a failure, hunt for concrete vectors that break it.
Spans are subspaces
The most important way to build a subspace is to take a span.
Every span is a subspace
If are in a vector space , then is a subspace of . It is called the subspace spanned (or generated) by .
The proof is short. The zero vector is . If and , then and are again linear combinations.
This gives a fast subspace test: if you can write every vector of as a linear combination of fixed vectors, is a span and therefore a subspace.
Worked example: Recognizing a span
Let be the set of all vectors of the form with real. Show is a subspace of .
Split the vector by parameter:
So , which is a subspace by the Key Idea. No axiom checking needed.
Tip
Before checking anything else, test the zero vector. If is not in the set, you are done: it is not a subspace. For sets described by equations, a nonzero constant term or a squared variable is a strong hint that something fails.
Practice
Which set is a subspace of ?
For what value of is a subspace of ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
The vector lies in the subspace . Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Let in . Which statement is true?
Which subset of is a subspace?
Let and . The vector is in . Find the weights with .
Enter a point like (2, -3)
Let be the set of all matrices with determinant . Which statement is true?