A spanning list represents every vector in a space, but a dependent list can give several coefficient lists for the same vector. Requiring independence as well as spanning makes each representation unique. A basis combines these two conditions.
Definition
Basis
A set of vectors is a basis for a vector space if both conditions hold:
- are linearly independent.
- .
Here the scalars are real and the displayed bases are finite. Fixing an order gives unique coordinates: spanning provides an expression for , and if , subtraction gives . Independence forces for every . Thus existence and uniqueness come from different parts of the definition.
Spanning and independence answer different questions
The following sequence separates the two basis conditions: spanning supplies every target, while independence removes redundant representations. Dimension records the common size of a basis; the counting proof comes next.
Compare a pair of scalar-multiple generators with an independent pair, and identify the span in each case.
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 .
Once the standard basis is fixed, the coefficients , , and rebuild the vector uniquely.
Why the number of basis vectors matters
Different bases can use different vectors. To define dimension, we must first show that their lengths cannot differ:
Theorem
Every basis of the same space has the same size
If and are finite bases of the same real vector space , then they 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 vectors in is linearly dependent.
Proof
Count coefficients before defining dimension
The goal is to produce a nontrivial relation among vectors , using only the fact that vectors span . Write
The coefficient matrix has rows and columns. Elimination gives at most pivots, so the homogeneous system has a free variable and a nonzero solution . For that solution,
This is the required nontrivial relation. We imposed the coefficient equations as a sufficient condition for the vector sum to vanish. We did not assume the spanning vectors were independent, so we must not infer conversely that every vanishing sum has zero coefficients relative to that list. When , the span is the zero space and any nonempty list in it contains only zero vectors, hence is dependent directly.
Now let the two finite bases have sizes . The first spans and the second is independent, so . Interchanging their roles gives , hence . This uses the earlier homogeneous-system theorem, not dimension itself; therefore defining dimension by basis size is not circular.
Dimension is a count of independent directions
Definition
Dimension
The dimension of a vector space , written , 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:
Its basis is the empty list: its only linear combination is the empty sum, defined as zero, and it has no nontrivial coefficient relation. The singleton spans the zero space but is dependent, so it is not a basis.
A subspace has its own dimension
A vector can have three entries while belonging to a space with only two independent directions. The next example separates the ambient coordinate count from the dimension of the subspace.
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 linearly independent vectors in automatically form a basis;
- any vectors in that span automatically form a basis;
- fewer than vectors cannot span ;
- more than vectors 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.
A nontrivial zero relation detects redundancy in the given list.
Extending and reducing lists
Theorem
Extension and reduction consequences
If , then:
- no set of fewer than vectors can span ;
- every linearly independent set with fewer than vectors can be extended to a basis of ;
- every spanning set with more than vectors can be reduced to a basis of by deleting redundant vectors.
A basis is also an inclusion-minimal spanning set: deleting any member loses spanning, since otherwise that member would be a combination of the others. Conversely, a dependent spanning list can be shortened by the redundancy theorem. A basis is inclusion-maximal among independent lists inside : every further vector already lies in its span. Conversely, if an independent list does not span , appending a vector outside its span preserves independence. These are inclusion statements, not merely guesses from list length.
Null spaces: a rank-nullity basis test
For a homogeneous system, the dimension shortcut becomes especially concrete. Let be a matrix with rank . Then
An RREF with pivots has free coordinates. Setting one free coordinate to one and the others to zero gives one null-space vector for each free coordinate. Every solution is their combination, and their free coordinates force the coefficients of any zero combination to vanish. This gives the dimension formula, including the empty basis when . Here rank is the pivot count; 6.6 Column space, row space, and rank identifies it with the dimensions of the row and column spaces.
So vectors form a basis for 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 .
The failure modes are just as important:
- if some does not satisfy , the list cannot be a basis for ;
- 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 and , 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. Suppose is finite-dimensional, is a subspace of , and both use the same real scalars. 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.
To see the equality implication, take a basis of . It is an independent list inside of size , so the dimension criterion makes it a basis of too. Its span is both spaces. The finite-dimensional hypothesis is necessary for this counting argument; the earlier infinite polynomial space does not license extending this criterion to arbitrary infinite-dimensional inclusions.
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 0, 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
Checkpoint
Can be a basis for ?
Think about both basis conditions, not just the number of vectors.
Solution · Answer
No. The two vectors point in the same direction, so they are linearly dependent. They also fail to span the vertical direction. Therefore they are not a basis for .
Checkpoint
Suppose and you already found three linearly independent vectors in . What remains to prove?
Use the dimension shortcut from this note.
Solution · Answer
Nothing essential remains. In a 3-dimensional space, any three linearly independent vectors automatically form a basis, so they already span .
Exercises
Checkpoint
Do the vectors , , and form a basis for ?
Try to test independence first. If they are independent, dimension does the rest.
Solution · Guided solution
Set
Comparing coordinates gives
Subtract the first two equations to get , so . Then the third equation becomes , so , and therefore too.
So the three vectors are linearly independent. Because has dimension 3, they automatically form a basis for .
Read this first
This note depends on 6.4 Linear dependence and independence and 6.3 Linear combinations and span.