4.5 Dimension
Quantifying the “Size” of a Vector Space
The number of vectors in a basis is intrinsically linked to the “dimension” of a vector space.
Our goal is to make this intuitive notion precise.
THEOREM 4.5.1
All bases for a finite-dimensional vector space have the same number of vectors.
This theorem is foundational; it means the “number of vectors in a basis” is a well-defined property of the vector space itself, not just a property of a particular basis.
To prove Theorem 4.5.1, we rely on properties of sets of vectors relative to a basis.
THEOREM 4.5.2
Let \(V\) be an \(n\)-dimensional vector space, and let \(S = \{\mathbf{v}_{1}, \mathbf{v}_{2}, \ldots , \mathbf{v}_{n}\}\) be any basis.
Proof of Theorem 4.5.1: If \(S_1\) and \(S_2\) are two bases for \(V\) with \(n_1\) and \(n_2\) vectors respectively. If \(n_1 > n_2\), then by Theorem 4.5.2(a), \(S_1\) would be linearly dependent, which contradicts it being a basis. If \(n_1 < n_2\), then by Theorem 4.5.2(b), \(S_1\) would not span \(V\), which also contradicts it being a basis. Therefore, \(n_1\) must equal \(n_2\).
With Theorem 4.5.1 established, we can now formally define dimension.
DEFINITION 1
The dimension of a finite-dimensional vector space \(V\) is denoted by \(\dim (V)\) and is defined to be the number of vectors in a basis for \(V\). In addition, the zero vector space is defined to have dimension zero.
This definition aligns with our intuitive understanding of dimension.
Let’s apply the definition to some common vector spaces.
\(\dim (R^{n}) = n\) The standard basis \(\{\mathbf{e}_{1}, \ldots, \mathbf{e}_{n}\}\) has \(n\) vectors. Example: \(\dim (R^3) = 3\).
\(\dim (P_{n}) = n + 1\) The standard basis \(\{1, x, x^{2}, \ldots , x^{n}\}\) has \(n + 1\) vectors. Example: \(\dim (P_2) = 3\) (basis \(\{1, x, x^2\}\)).
\(\dim (M_{mn}) = mn\) The standard basis (matrices with a single ‘1’ and rest ‘0’) has \(mn\) vectors. Example: \(\dim (M_{22}) = 4\) (basis \(M_1, M_2, M_3, M_4\)).
\(\dim (\{\mathbf{0}\}) = 0\) The zero vector space has no non-zero vectors, so its basis is the empty set.
If a set of vectors \(S\) is linearly independent, it forms a basis for the space it spans.
If \(S = \{\mathbf{v}_{1}, \mathbf{v}_{2}, \ldots , \mathbf{v}_{r}\}\) is a linearly independent set, then: \[ \dim [\operatorname {span}\{\mathbf{v}_{1}, \mathbf{v}_{2}, \ldots , \mathbf{v}_{r}\} ] = r \]
In words: The dimension of the space spanned by a linearly independent set of vectors is equal to the number of vectors in that set.
Find a basis for and the dimension of the solution space of the homogeneous system:
\[ \begin{array}{r l r} & {} & {x_{1} + 3x_{2} - 2x_{3}\qquad +2x_{5}\qquad = 0}\\ & {} & {2x_{1} + 6x_{2} - 5x_{3} - 2x_{4} + 4x_{5} - 3x_{6} = 0}\\ & {} & {5x_{3} + 10x_{4}\qquad +15x_{6} = 0}\\ & {} & {2x_{1} + 6x_{2}\qquad +8x_{4} + 4x_{5} + 18x_{6} = 0} \end{array} \]
The solution to the system is given by: \(x_{1} = -3r - 4s - 2t\), \(x_{2} = r\), \(x_{3} = -2s\), \(x_{4} = s\), \(x_{5} = t\), \(x_{6} = 0\)
This can be written in vector form as: \[ (x_{1},x_{2},x_{3},x_{4},x_{5},x_{6}) = r(-3,1,0,0,0,0) + s(-4,0, - 2,1,0,0) + t(-2,0,0,0,1,0) \]
The vectors that span the solution space are: \[ \mathbf{v}_{1} = (-3,1,0,0,0,0),\quad \mathbf{v}_{2} = (-4,0, - 2,1,0,0),\quad \mathbf{v}_{3} = (-2,0,0,0,1,0) \]
These vectors are linearly independent.
Thus, the solution space has dimension 3.
Let’s verify the linear independence of the spanning vectors using Python.
We’ll form a matrix with these vectors and check its rank.
We will now look at theorems that reveal interrelationships among linear independence, spanning sets, basis, and dimension.
Note
Informal Idea:
- Add a vector not in the span of a linearly independent set, and the set remains independent. - Remove a redundant vector from a spanning set, and it still spans the same space.
Figure 4.5.1: Illustrating adding/removing vectors.
This theorem formally describes how adding or removing vectors affects linear independence and spanning.
Plus/Minus Theorem
Let \(S\) be a nonempty set of vectors in a vector space \(V\).
If \(S\) is a linearly independent set, and if \(\mathbf{v}\) is a vector in \(V\) that is outside of \(\operatorname{span}(S)\), then the set \(S\cup \{\mathbf{v}\}\) that results by inserting \(\mathbf{v}\) into \(S\) is still linearly independent.
If \(\mathbf{v}\) is a vector in \(S\) that is expressible as a linear combination of other vectors in \(S\), and if \(S - \{\mathbf{v}\}\) denotes the set obtained by removing \(\mathbf{v}\) from \(S\), then \(S\) and \(S - \{\mathbf{v}\}\) span the same space; that is, \(\operatorname{span}(S) = \operatorname{span}(S - \{\mathbf{v}\})\).
Show that \(\mathbf{p}_{1} = 1 - x^{2}\), \(\mathbf{p}_{2} = 2 - x^{2}\), and \(\mathbf{p}_{3} = x^{3}\) are linearly independent vectors.
Solution:
Consider \(S_1 = \{\mathbf{p}_{1}, \mathbf{p}_{2}\}\). \(\mathbf{p}_{1} = 1 - x^2\) \(\mathbf{p}_{2} = 2 - x^2\) Neither is a scalar multiple of the other, so \(S_1\) is linearly independent.
Consider \(\mathbf{p}_{3} = x^{3}\). Can \(x^3\) be expressed as \(c_1(1-x^2) + c_2(2-x^2)\)? No, because the linear combination of \(\mathbf{p}_{1}\) and \(\mathbf{p}_{2}\) will only produce polynomials of degree at most 2, while \(\mathbf{p}_{3}\) is degree 3. Thus, \(\mathbf{p}_{3}\) is outside of \(\operatorname{span}(S_1)\).
Conclusion:
By Theorem 4.5.3(a), since \(S_1\) is linearly independent and \(\mathbf{p}_{3}\) is outside of \(\operatorname{span}(S_1)\), the set \(S_1 \cup \{\mathbf{p}_{3}\} = \{\mathbf{p}_{1}, \mathbf{p}_{2}, \mathbf{p}_{3}\}\) is also linearly independent.
This method allows us to build up linearly independent sets step-by-step.
If you know the dimension of a vector space, you only need to check one condition for a set of vectors to be a basis.
THEOREM 4.5.4
Let \(V\) be an \(n\)-dimensional vector space, and let \(S\) be a set in \(V\) with exactly \(n\) vectors. Then \(S\) is a basis for \(V\) if and only if \(S\) spans \(V\) or \(S\) is linearly independent.
Proof Logic: This theorem is powerful because it uses Theorem 4.5.2 and 4.5.3. If \(S\) spans \(V\) but isn’t a basis, it must be linearly dependent. Then, by 4.5.3(b), you could remove a vector, leaving \(n-1\) vectors that still span \(V\), which contradicts 4.5.2(b). A similar argument holds if \(S\) is linearly independent but doesn’t span \(V\).
Explain why the vectors \(\mathbf{v}_{1} = (-3,7)\) and \(\mathbf{v}_{2} = (5,5)\) form a basis for \(R^{2}\).
Solution (a):
Let’s visualize \(\mathbf{v}_{1} = (-3,7)\) and \(\mathbf{v}_{2} = (5,5)\) and confirm linear independence.
Explain why \(\mathbf{v}_{1} = (2,0, - 1)\), \(\mathbf{v}_{2} = (4,0,7)\), and \(\mathbf{v}_{3} = (-1,1,4)\) form a basis for \(R^{3}\).
Solution (b):
This theorem provides methods for constructing bases from spanning sets or linearly independent sets.
THEOREM 4.5.5
Let \(S\) be a finite set of vectors in a finite-dimensional vector space \(V\).
If \(S\) spans \(V\) but is not a basis for \(V\), then \(S\) can be reduced to a basis for \(V\) by removing appropriate vectors from \(S\).
If \(S\) is a linearly independent set that is not already a basis for \(V\), then \(S\) can be enlarged to a basis for \(V\) by inserting appropriate vectors into \(S\).
These processes are fundamental in many algorithms, such as Gram-Schmidt orthogonalization.
The dimension of a subspace is always less than or equal to the dimension of the parent space.
THEOREM 4.5.6
If \(W\) is a subspace of a finite-dimensional vector space \(V\), then:
Figure 4.5.2: Geometric relationship between subspaces of \(R^3\).