§5 Vector Spaces
1. The Big Idea
Vector spaces are about building objects using addition and scalar multiplication.
The objects might be ordinary vectors, polynomials, matrices, or something more abstract. The same questions keep coming back:
- Can these objects build the whole space?
- Is any object redundant?
- Do we have the perfect set of building blocks?
Here is the vocabulary in plain language:
| Idea | Plain meaning |
|---|---|
| linear combination | a recipe made by scaling and adding vectors |
| span | everything those recipes can build |
| linear independence | no redundancy |
| basis | spans the space and has no redundancy |
| coordinates | instructions for building a vector from a chosen basis |
| dimension | number of vectors in a basis |
The main theme is simple: a basis is the cleanest possible way to describe a space.
2. Linear Combinations
A vector is a linear combination of vectors if
where are scalars.
The scalars are called coefficients.
Think of a linear combination as a recipe:
- the vectors are the ingredients
- the coefficients say how much of each ingredient to use
- the final result is the vector you build
For example, if
then
So is a linear combination of and .
3. Span
The span of a set of vectors is the set of all possible linear combinations of those vectors.
means all vectors you can build using .
If a set spans a space, then the vectors in the set can build every vector in that space.
Standard Basis of
Let
These vectors span , because every vector
can be written as
So can build every vector in .
4. Spanning Polynomial Spaces
Vector spaces do not have to contain arrows. They can contain polynomials too.
For , the space of polynomials of degree at most 2, every polynomial looks like
The standard spanning set is
because
This is the same idea as vectors in . The objects look different, but we are still building everything from a few basic pieces.
5. Spanning Matrix Spaces
Matrices can also form vector spaces.
For , the space of all matrices, every matrix looks like
The standard spanning set is
Each matrix turns on one entry and leaves the others zero.
Any matrix in can be built as
So those four matrices span .
6. How to Check Linear Combinations and Span
To check whether a vector is in a span, turn the question into a system of equations.
Suppose you want to know whether is a linear combination of .
Set up
Then solve for .
| Result of the system | Meaning |
|---|---|
| has a solution | is in the span |
| has no solution | is not in the span |
Checking Whether Vectors Span
If you have vectors in , place them as columns in a matrix:
For three vectors in :
means the vectors span .
If
then they do not span all of .
This determinant shortcut works when the number of vectors matches the dimension, so the matrix is square.
7. Linear Independence
A set of vectors is linearly independent if no vector in the set is redundant.
The formal test is:
If the only solution is
then the vectors are linearly independent.
This is called the trivial solution.
If there is a solution where at least one coefficient is not zero, then the vectors are linearly dependent.
Meaning
| Situation | Meaning |
|---|---|
| independent | no vector can be built from the others |
| dependent | at least one vector is unnecessary because it can be built from the others |
So linear independence is really a no-redundancy test.
8. Fast Independence Test with Determinants
For vectors in , place the vectors as columns in a square matrix .
If
then the vectors are linearly independent.
If
then the vectors are linearly dependent.
This is one of the fastest exam methods, but remember the condition: it works directly when you have exactly vectors in .
For example, three vectors in form a matrix, so the determinant test applies.
9. Basis
A basis is a set of vectors that does two things:
- It spans the space.
- It is linearly independent.
So a basis is the perfect set of building blocks.
It has enough vectors to build the whole space, but no extra unnecessary vectors.
| Property | Why it matters |
|---|---|
| spans | can build every object in the space |
| independent | has no redundant builders |
Basis of
The standard basis is
Every vector in can be built from these vectors, and none of them is redundant.
10. Coordinates Relative to a Basis
Coordinates depend on the basis you choose.
If
is an ordered basis, and
then the coordinate vector of relative to basis is
These coordinates are not the vector itself. They are the instructions for building the vector from the basis .
The order of the basis matters. If you swap the order of the basis vectors, the coordinate vector changes too.
11. Basis for Subspaces
A subspace is a smaller vector space sitting inside a larger vector space.
To find a basis for a subspace, look for the free parameters. Each free parameter usually gives one basis vector.
Example: Trace-Zero Matrices
Let
This means is the set of all matrices whose trace is zero.
A general matrix in looks like
The trace condition is
so
Thus every matrix in this subspace looks like
Now break it apart by parameters:
So a basis is
There are three free parameters: , , and . That is why the basis has three matrices and the subspace has dimension 3.
12. Problem-Solving Routine
For vector space problems, use this routine:
- Identify the space. Are you working in , a polynomial space, a matrix space, or a subspace?
- To test a linear combination, set up coefficients. Write the target as a combination of the given vectors and solve.
- To test span, ask whether every object can be built. For vectors in , use a determinant if possible.
- To test independence, set the combination equal to zero. Only the trivial solution means independent.
- To find a basis, keep enough vectors to span but remove redundancy. A basis must do both jobs.
- For subspaces, look for free parameters. Break the general object into parameter times basic objects.
- Dimension equals the number of basis vectors. Count the final basis elements.
13. Key Takeaways
- A linear combination is a recipe made from scalar multiples and addition.
- The span is everything those recipes can build.
- A vector is in a span if the matching coefficient system has a solution.
- Linear independence means no redundancy.
- A basis is both spanning and linearly independent.
- Coordinates relative to a basis are instructions for building a vector from that basis.
- Dimension is the number of vectors in a basis.
- For subspaces, free parameters often reveal the basis.
Mini-Self-Check
- What does it mean for to be in ?
It means can be written as a linear combination of and :
for some scalars and .
- What is the difference between a spanning set and a basis?
A spanning set can build the whole space, but it might have redundant vectors. A basis spans the space and is linearly independent, so it has no redundancy.
- If three vectors in are placed as columns of and , what does that mean?
The vectors are linearly dependent and do not span all of .
- Why does order matter in a basis?
Because coordinates are listed according to the order of the basis vectors. Changing the order changes the meaning of each coordinate entry.
- Why is the trace-zero matrix subspace dimension 3?
The trace condition forces , leaving three free parameters: , , and . Therefore the basis has three matrices, so the dimension is 3.