A basis is where the chapter comes together. Earlier notes taught you how to build vectors from other vectors, how to test whether a set is a subspace, and how to recognize linear dependence. This note combines those ideas into one question:
When do we have exactly enough vectors to describe a space without keeping any redundant directions?
Intuition first: enough directions, but not extra baggage
If a set of vectors spans a space, then it gives you enough directions to build every vector in that space.
If the set is also linearly independent, then none of those directions is wasted. No vector in the set can already be made from the others.
So a basis is the "just right" situation:
- enough vectors to reach every target in the space;
- not so many vectors that one of them is unnecessary.
That is why a basis is often the most useful coordinate system for a space. Once you choose a basis, every vector can be described in terms of those basis vectors.
Definition
Basis
A set of vectors is a basis for a vector space if both conditions hold:
- are linearly independent.
- .
The two conditions do different jobs.
- The spanning condition says the set is large enough.
- The independence condition says the set is not larger than necessary.
If you forget either condition, you can misidentify a basis.
Pause and vary the coefficients in a spanning example. Watch how changing the generators changes the set of vectors you can reach.
Read and try
Build one vector from a span
The live explorer lets you vary coefficients and watch the resulting vector move inside the span.
u
(1, 0)
v
(0, 1)
α
β
Result
αu + βv = (1, 0)
Every output vector is built from the horizontal and vertical directions.
The standard basis is the model example
The first basis most students meet is the standard basis of :
These vectors are important because each one isolates one coordinate direction.
Worked example
Why the standard basis of really is a basis
To show that is a basis for , you must check the two basis conditions.
First, they span . If
then
So every vector in can be built from .
Second, they are linearly independent. If
then comparing coordinates gives
So the only linear relation is the trivial one.
Since both conditions hold, is a basis for .
This example also explains why basis coordinates are useful. Once the basis is
fixed, the coefficients a, b, and c tell you exactly how to rebuild the
vector.
Why the number of basis vectors matters
The notes stress a fact that is easy to say and very important to use:
Theorem
Every basis of the same space has the same size
If and are both bases of the same vector space , then and contain the same number of vectors.
This statement is what makes dimension well-defined. Without it, the phrase "the number of vectors in a basis" would depend on which basis you picked, and dimension would not be a stable idea.
The reason behind the theorem is the following counting principle.
Theorem
Too many vectors in a spanned space force dependence
Suppose spans a vector space . Then any collection of
more than m vectors in is linearly dependent.
Here is the idea. If are vectors in with , then each can be written as a linear combination of . A linear relation
then becomes a homogeneous system with m equations and n unknowns. Since
there are more unknowns than equations, a non-trivial solution exists. That
non-trivial solution gives a non-trivial linear relation among the , so the
are dependent.
This also explains why two different bases of the same space must have the same size. If one basis had more vectors than the other, the larger one would be a linearly dependent set inside a space spanned by the smaller one, contradicting the definition of basis.
Dimension is a count of independent directions
Definition
Dimension
The dimension of a vector space , written dim(V), is the number of vectors
in any basis of .
Dimension tells you how many genuinely independent directions the space has.
- the space of all real polynomials has infinite dimension, because no finite list can span all powers .
The zero space is the exceptional case:
That makes sense because the zero space has no nonzero direction at all.
A basis does not have to look like the standard one
A basis is not required to use the standard coordinate vectors. Many different sets can serve as a basis for the same space, as long as they span the space and stay linearly independent.
Worked example
A basis for a plane inside
Let
This is the plane inside .
Consider
Every vector in has the form
so and span .
They are also linearly independent, because
forces .
Therefore is a basis for , and
So dimension does not count how many entries a vector happens to have. It counts how many independent directions the space itself contains.
How dimension becomes a shortcut
Once you know the dimension of a space, many basis questions become shorter.
If , then:
- any
mlinearly independent vectors in automatically form a basis; - any
mvectors in that span automatically form a basis; - fewer than
mvectors cannot span ; - more than
mvectors cannot all remain linearly independent.
This is why dimension is powerful. It turns a long two-part basis test into a one-part check when the number of vectors already matches the dimension.
A useful way to package the shortcut is the following three-way criterion. Suppose are vectors in a subspace . Consider the three statements:
- .
- are linearly independent.
- .
If any two of these statements are true, then the third is automatically true, and is a basis for .
This is often the cleanest way to write a solution. Instead of proving both independence and spanning from scratch, you first identify the dimension and then prove whichever of independence or spanning is easier.
Worked example
Using dimension to avoid a second calculation in
Let
We want to show that these three vectors form a basis for .
First test linear independence. The equation
has coefficient matrix
Row reduction gives an echelon form with a pivot in every column, for example
Therefore the homogeneous equation has only the trivial solution, and are linearly independent.
Since , three linearly independent vectors in automatically span . Hence the vectors form a basis. The point is that the spanning part is not ignored; it is supplied by the dimension theorem.
Try a few typical dependence patterns before you use that shortcut.
Read and try
Test one set for dependence
The live checker compares small vector sets and explains whether a nontrivial linear relation exists.
Verdict
Independent
The only way to solve c1e1 + c2e2 = 0 is c1 = c2 = 0, so this pair is linearly independent.
Key relation
No nontrivial linear relation appears.
A practical checklist for basis questions
When you are asked whether a set is a basis, work in this order:
- Identify the space you are trying to span.
- Count how many vectors you were given.
- Check linear independence, or check spanning.
- Use dimension to finish the argument when the count matches.
For example, in , three independent vectors already form a basis. You do not need a second long spanning calculation after that.
The same idea also gives two important repair operations.
Theorem
Extension and reduction consequences
If , then:
- no set of fewer than
mvectors can span ; - every linearly independent set with fewer than
mvectors can be extended to a basis of ; - every spanning set with more than
mvectors can be reduced to a basis of by deleting redundant vectors.
These consequences are not separate tricks. They all say the same thing: dimension is the exact size of a just-right list. A list that is too short cannot cover the whole space; an independent list that is too short can still accept more directions; a spanning list that is too long must contain unnecessary vectors.
Null spaces: a rank-nullity basis test
For a homogeneous system, the dimension shortcut becomes especially concrete.
Let be a matrix with rank r. Then
So vectors form a basis for N(A) exactly when all three checks
hold:
- each vector is actually in the null space, so ;
- the number of proposed vectors is correct, so ;
- the proposed vectors are linearly independent.
This avoids proving the full set equality directly.
Worked example
Testing a proposed basis for a null space
Let
and
First check membership. Direct multiplication gives and , so both vectors lie in .
Next compute the dimension of . A row-reduced form of is
so . Since has four columns,
Finally check independence. Put the proposed vectors into a matrix:
Row reduction gives a pivot in each column, so are linearly
independent. We now have membership, the correct dimension count, and
independence. Therefore form a basis for N(A).
The failure modes are just as important:
- if some does not satisfy , the list cannot be a basis for
N(A); - if the list has fewer or more than vectors, the size is wrong;
- if the list has the correct size but is dependent, it still fails to be a basis.
Extracting a minimal spanning set
Sometimes the input is not a clean proposed basis. You may be given a long list of vectors and asked for the dimension of its span. The efficient method is to extract a basis from the original list.
Theorem
Pivot columns give a minimal spanning set
Let
Row-reduce . If the pivot columns of the reduced matrix occur in positions , then
is a basis for , and .
The positions are read from a row-reduced form, but the basis vectors themselves come from the original list. This is the same rule used for column space.
Worked example
Extracting a basis from a generating list
Let , where
Put the vectors into the columns of :
The pivot columns are columns 1 and 2, so
is a basis for , and . The non-pivot column also tells us the redundancy relation:
Subspaces with the same dimension
Dimension also controls when one subspace can equal another. If and are subspaces of the same ambient space and , then
Moreover,
The containment hypothesis matters. Equal dimension alone does not force two subspaces to be equal. For example, two different lines through the origin in both have dimension 1, but neither line contains the other. The theorem applies when one subspace is already known to sit inside the other.
Worked example
Using dimension to prove equality of subspaces
Let
and let
Every vector in has third coordinate zero, so . We also know from the earlier plane example that . Since the two displayed generators of are linearly independent, as well.
Thus is a subspace of and both have dimension 2. The comparable-subspace theorem gives .
Common mistake
Common mistake
Dimension is not just the number of coordinates
A subspace of can have dimension 1, 2, or 3. The ambient space tells you how many entries vectors have; the dimension tells you how many independent directions the subspace itself has.
Another common mistake is to check spanning and stop there. A spanning set can still fail to be a basis if one vector is redundant.
Quick checks
Quick check
Can \{(1,0), (2,0)\} be a basis for ?
Think about both basis conditions, not just the number of vectors.
Solution
Answer
Quick check
Suppose and you already found three linearly independent vectors in . What remains to prove?
Use the dimension shortcut from this note.
Solution
Answer
Exercises
Quick check
Do the vectors , , and form a basis for ?
Try to test independence first. If they are independent, dimension does the rest.
Solution
Guided solution
Read this first
This note depends on 6.4 Linear dependence and independence and 6.3 Linear combinations and span.