5.2: Independence and Dimension
- Page ID
- 58856
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\dsum}{\displaystyle\sum\limits} \)
\( \newcommand{\dint}{\displaystyle\int\limits} \)
\( \newcommand{\dlim}{\displaystyle\lim\limits} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\(\newcommand{\longvect}{\overrightarrow}\)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\ket}[1]{\left| #1 \right>}\)
\(\newcommand{\bra}[1]{\left< #1 \right|}\)
\(\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right| \left. #2 \vphantom{#1} \right>}\)
\(\newcommand{\braopket}[3]{\left< #1 \vphantom{#2}\vphantom{#3} \right| #2 \vphantom{#1}\vphantom{#3} \left| #3 \vphantom{#1}\vphantom{#2} \right>}\)
\(\newcommand{\qmvec}[1]{\mathbf{\vec{#1}}}\)
\(\newcommand{\op}[1]{\hat{\mathbf{#1}}}\)
\(\newcommand{\expect}[1]{\langle #1 \rangle}\)
\(\newcommand{\dfn}[1]{\emph{\textbf{#1}}}\)
Some spanning sets are better than others. If \(U = span \;\{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{k}\}\) is a subspace of \(\mathbb{R}^n\), then every vector in \(U\) can be written as a linear combination of the \(\mathbf{x}_{i}\) in at least one way. Our interest here is in spanning sets where each vector in \(U\) has exactly one representation as a linear combination of these vectors.
Linear Independence
Given \(\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{k}\) in \(\mathbb{R}^n\), suppose that two linear combinations are equal:
\[r_1\mathbf{x}_1 + r_2\mathbf{x}_2 + \dots + r_k\mathbf{x}_k = s_1\mathbf{x}_1 + s_2\mathbf{x}_2 + \dots + s_k\mathbf{x}_k \nonumber \]
We are looking for a condition on the set \(\{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{k}\}\) of vectors that guarantees that this representation is unique; that is, \(r_{i} = s_{i}\) for each \(i\). Taking all terms to the left side gives
\[(r_1 - s_1)\mathbf{x}_1 + (r_2 - s_2)\mathbf{x}_2 + \dots + (r_k - s_k)\mathbf{x}_k = \mathbf{0} \nonumber \]
so the required condition is that this equation forces all the coefficients \(r_{i} - s_{i}\) to be zero.
With this in mind, we call a set \(\{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{k}\}\) of vectors linearly independent (or simply independent) if it satisfies the following condition:
\[\mbox{If } t_1\mathbf{x}_1 + t_2\mathbf{x}_2 + \dots + t_k\mathbf{x}_k = \mathbf{0} \mbox{ then } t_1 = t_2 = \dots = t_k = 0 \nonumber \]
We record the result of the above discussion for reference.
If \(\{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{k}\}\) is an independent set of vectors in \(\mathbb{R}^n\), then every vector in \(span \;\{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{k}\}\) has a unique representation as a linear combination of the \(\mathbf{x}_{i}\).
It is useful to state the definition of independence in different language. Let us say that a linear combination vanishes if it equals the zero vector, and call a linear combination trivial if every coefficient is zero. Then the definition of independence can be compactly stated as follows:
A set of vectors is independent if and only if the only linear combination that vanishes is the trivial one.
Hence we have a procedure for checking that a set of vectors is independent:
To verify that a set \(\{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{k}\}\) of vectors in \(\mathbb{R}^n\) is independent, proceed as follows:
- Set a linear combination equal to zero: \(t_{1}\mathbf{x}_{1} + t_{2}\mathbf{x}_{2} + \dots + t_{k}\mathbf{x}_{k} = \mathbf{0}\).
- Show that \(t_i = 0\) for each \(i\) (that is, the linear combination is trivial).
Of course, if some nontrivial linear combination vanishes, the vectors are not independent.
Determine whether \(\{(1, 0, -2, 5), (2, 1, 0, -1), (1, 1, 2, 1)\}\) is independent in \(\mathbb{R}^4\).
Solution
Suppose a linear combination vanishes:
\[r(1, 0, -2, 5) + s(2, 1, 0, -1) + t(1, 1, 2, 1) = (0, 0, 0, 0) \nonumber \]
Equating corresponding entries gives a system of four equations:
\[r + 2s + t = 0, s + t = 0, -2r + 2t = 0, \mbox{ and } 5r -s + t = 0 \nonumber \]
The only solution is the trivial one \(r = s = t = 0\) (verify), so these vectors are independent by the independence test.
Recall from Definition 2.3 that the standard basis of \(\mathbb{R}^n\) is the set of columns of the identity matrix \(I_n\).
Show that the standard basis \(\{\mathbf{e}_{1}, \mathbf{e}_{2}, \dots, \mathbf{e}_{n}\}\) of \(\mathbb{R}^n\) is independent.
Solution
The components of \(t_{1}\mathbf{e}_{1} + t_{2}\mathbf{e}_{2} + \dots + t_{n}\mathbf{e}_{n}\) are \(t_{1}, t_{2}, \dots, t_{n}\) (see the discussion preceding Example 5.1.6) So the linear combination vanishes if and only if each \(t_{i} = 0\). Hence the independence test applies.
If \(\{\mathbf{x}, \mathbf{y}\}\) is independent, show that \(\{2\mathbf{x} + 3\mathbf{y}, \mathbf{x} - 5\mathbf{y}\}\) is also independent.
Solution
If \(s(2\mathbf{x} + 3\mathbf{y}) + t(\mathbf{x} - 5\mathbf{y}) = \mathbf{0}\), collect terms to get \((2s + t)\mathbf{x} + (3s - 5t)\mathbf{y} = \mathbf{0}\). Since \(\{\mathbf{x}, \mathbf{y}\}\) is independent this combination must be trivial; that is, \(2s + t = 0\) and \(3s - 5t = 0\). These equations have only the trivial solution \(s = t = 0\), as required.
Show that the zero vector in \(\mathbb{R}^n\) does not belong to any independent set.
Solution
No set \(\{\mathbf{0}, \mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{k}\}\) of vectors is independent because we have a vanishing, nontrivial linear combination \(1 \cdot \mathbf{0} + 0\mathbf{x}_{1} + 0\mathbf{x}_{2} + \dots + 0\mathbf{x}_{k} = \mathbf{0}\).
Given \(\mathbf{x}\) in \(\mathbb{R}^n\), show that \(\{\mathbf{x}\}\) is independent if and only if \(\mathbf{x} \neq \mathbf{0}\).
Solution
A vanishing linear combination from \(\{\mathbf{x}\}\) takes the form \(t\mathbf{x} = \mathbf{0}\), \(t\) in \(\mathbb{R}\). This implies that \(t = 0\) because \(\mathbf{x} \neq \mathbf{0}\).
The next example will be needed later.
Show that the nonzero rows of a row-echelon matrix \(R\) are independent.
Solution
We illustrate the case with 3 leading \(1\)s; the general case is analogous. Suppose \(R\) has the form
\[R = \left[ \begin{array}{rrrrrr} 0 & 1 & * & * & * & * \\ 0 & 0 & 0 & 1 & * & * \\ 0 & 0 & 0 & 0 & 1 & * \\ 0 & 0 & 0 & 0 & 0 & 0 \\ \end{array} \right] \nonumber\]
where \(*\) indicates a nonspecified number. Let \(R_{1}\), \(R_{2}\), and \(R_{3}\) denote the nonzero rows of \(R\). If \(t_{1}R_{1} + t_{2}R_{2} + t_{3}R_{3} = 0\) we show that \(t_{1} = 0\), then \(t_{2} = 0\), and finally \(t_{3} = 0\). The condition \(t_{1}R_{1} + t_{2}R_{2} + t_{3}R_{3} = 0\) becomes
\[(0, t_1, *, *, *, *) + (0, 0, 0, t_2, *, *) + (0, 0, 0, 0, t_3, *) = (0, 0, 0, 0, 0, 0) \nonumber \]
Equating second entries show that \(t_{1} = 0\), so the condition becomes \(t_{2}R_{2} + t_{3}R_{3} = 0\). Now the same argument shows that \(t_{2} = 0\). Finally, this gives \(t_{3}R_{3} = 0\) and we obtain \(t_{3} = 0\).
A set of vectors in \(\mathbb{R}^n\) is called linearly dependent (or simply dependent) if it is not linearly independent, equivalently if some nontrivial linear combination vanishes.
If \(\mathbf{v}\) and \(\mathbf{w}\) are nonzero vectors in \(\mathbb{R}^3\), show that \(\{\mathbf{v}, \mathbf{w}\}\) is dependent if and only if \(\mathbf{v}\) and \(\mathbf{w}\) are parallel.
Solution
If \(\mathbf{v}\) and \(\mathbf{w}\) are parallel, then one is a scalar multiple of the other (Theorem 4.1.5), say \(\mathbf{v} = a\mathbf{w}\) for some scalar \(a\). Then the nontrivial linear combination \(\mathbf{v} - a\mathbf{w} = \mathbf{0}\) vanishes, so \(\{\mathbf{v}, \mathbf{w}\}\) is dependent.
Conversely, if \(\{\mathbf{v}, \mathbf{w}\}\) is dependent, let \(s\mathbf{v} + t\mathbf{w} = \mathbf{0}\) be nontrivial, say \(s \neq 0\). Then \(\mathbf{v} = -\frac{t}{s}\mathbf{w}\) so \(\mathbf{v}\) and \(\mathbf{w}\) are parallel (by Theorem 4.1.5). A similar argument works if \(t \neq 0\).
With this we can give a geometric description of what it means for a set \(\{\mathbf{u}, \mathbf{v}, \mathbf{w}\}\) in \(\mathbb{R}^3\) to be independent. Note that this requirement means that \(\{\mathbf{v}, \mathbf{w}\}\) is also independent (\(a\mathbf{v} + b\mathbf{w} = \mathbf{0}\) means that \(0\mathbf{u} + a\mathbf{v} + b\mathbf{w} = \mathbf{0}\)), so \(M = span \;\{\mathbf{v}, \mathbf{w}\}\) is the plane containing \(\mathbf{v}\), \(\mathbf{w}\), and \(\mathbf{0}\) (see the discussion preceding Example 5.1.4). So we assume that \(\{\mathbf{v}, \mathbf{w}\}\) is independent in the following example.
Let \(\mathbf{u}\), \(\mathbf{v}\), and \(\mathbf{w}\) be nonzero vectors in \(\mathbb{R}^3\) where \(\{\mathbf{v}, \mathbf{w}\}\) independent. Show that \(\{\mathbf{u}, \mathbf{v}, \mathbf{w}\}\) is independent if and only if \(\mathbf{u}\) is not in the plane \(M = span \;\{\mathbf{v}, \mathbf{w}\}\). This is illustrated in the diagrams.


Solution
If \(\{\mathbf{u}, \mathbf{v}, \mathbf{w}\}\) is independent, suppose \(\mathbf{u}\) is in the plane \(M = span \;\{\mathbf{v}, \mathbf{w}\}\), say \(\mathbf{u} = a\mathbf{v} + b\mathbf{w}\), where \(a\) and \(b\) are in \(\mathbb{R}\). Then \(1\mathbf{u} - a\mathbf{v} - b\mathbf{w} = \mathbf{0}\), contradicting the independence of \(\{\mathbf{u}, \mathbf{v}, \mathbf{w}\}\).
On the other hand, suppose that \(\mathbf{u}\) is not in \(M\); we must show that \(\{\mathbf{u}, \mathbf{v}, \mathbf{w}\}\) is independent. If \(r\mathbf{u} + s\mathbf{v} + t\mathbf{w} = \mathbf{0}\) where \(r\), \(s\), and \(t\) are in \(\mathbb{R}^3\), then \(r = 0\) since otherwise \(\mathbf{u} = -\frac{s}{r}\mathbf{v} + \frac{-t}{r}\mathbf{w}\) is in \(M\). But then \(s\mathbf{v} + t\mathbf{w} = \mathbf{0}\), so \(s = t = 0\) by our assumption. This shows that \(\{\mathbf{u}, \mathbf{v}, \mathbf{w}\}\) is independent, as required.
By the inverse theorem, the following conditions are equivalent for an \(n \times n\) matrix \(A\):
- \(A\) is invertible.
- If \(A\mathbf{x} = \mathbf{0}\) where \(\mathbf{x}\) is in \(\mathbb{R}^n\), then \(\mathbf{x} = \mathbf{0}\).
- \(A\mathbf{x} = \mathbf{b}\) has a solution \(\mathbf{x}\) for every vector \(\mathbf{b}\) in \(\mathbb{R}^n\).
While condition 1 makes no sense if \(A\) is not square, conditions 2 and 3 are meaningful for any matrix \(A\) and, in fact, are related to independence and spanning. Indeed, if \(\mathbf{c}_{1}, \mathbf{c}_{2}, \dots, \mathbf{c}_{n}\) are the columns of \(A\), and if we write \(\mathbf{x} = \left[ \begin{array}{r} x_1 \\ x_2 \\ \vdots \\ x_n \end{array} \right]\), then
\[A\mathbf{x} = x_1\mathbf{c}_1 + x_2\mathbf{c}_2 + \dots + x_n\mathbf{c}_n \nonumber \]
by Definition 2.2.1. Hence the definitions of independence and spanning show, respectively, that condition 2 is equivalent to the independence of \(\{\mathbf{c}_{1}, \mathbf{c}_{2}, \dots, \mathbf{c}_{n}\}\) and condition 3 is equivalent to the requirement that \(span \;\{\mathbf{c}_{1}, \mathbf{c}_{2}, \dots, \mathbf{c}_{n}\} = \mathbb{R}^m\). This discussion is summarized in the following theorem:
If \(A\) is an \(m \times n\) matrix, let \(\{\mathbf{c}_{1}, \mathbf{c}_{2}, \dots, \mathbf{c}_{n}\}\) denote the columns of \(A\).
- \(\{\mathbf{c}_{1}, \mathbf{c}_{2}, \dots, \mathbf{c}_{n}\}\) is independent in \(\mathbb{R}^m\) if and only if \(A\mathbf{x} = \mathbf{0}\), \(\mathbf{x}\) in \(\mathbb{R}^n\), implies \(\mathbf{x} = \mathbf{0}\).
- \(\mathbb{R}^m = span \;\{\mathbf{c}_{1}, \mathbf{c}_{2}, \dots, \mathbf{c}_{n}\}\) if and only if \(A\mathbf{x} = \mathbf{b}\) has a solution \(\mathbf{x}\) for every vector \(\mathbf{b}\) in \(\mathbb{R}^m\).
For a square matrix \(A\), Theorem 5.2.2 characterizes the invertibility of \(A\) in terms of the spanning and independence of its columns (see the discussion preceding Theorem 5.2.2). It is important to be able to discuss these notions for rows. If \(\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{k}\) are \(1 \times n\) rows, we define \(span \;\{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{k}\}\) to be the set of all linear combinations of the \(\mathbf{x}_{i}\) (as matrices), and we say that \(\{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{k}\}\) is linearly independent if the only vanishing linear combination is the trivial one (that is, if \(\{\mathbf{x}_1^T, \mathbf{x}_2^T, \dots, \mathbf{x}_k^T \}\) is independent in \(\mathbb{R}^n\), as the reader can verify).1
The following are equivalent for an \(n \times n\) matrix \(A\):
- \(A\) is invertible.
- The columns of \(A\) are linearly independent.
- The columns of \(A\) span \(\mathbb{R}^n\).
- The rows of \(A\) are linearly independent.
- The rows of \(A\) span the set of all \(1 \times n\) rows.
Let \(\mathbf{c}_{1}, \mathbf{c}_{2}, \dots, \mathbf{c}_{n}\) denote the columns of \(A\).
(1) \(\Leftrightarrow\) (2). By Theorem 2.4.5, \(A\) is invertible if and only if \(A\mathbf{x} = \mathbf{0}\) implies \(\mathbf{x} = \mathbf{0}\); this holds if and only if \(\{\mathbf{c}_{1}, \mathbf{c}_{2}, \dots, \mathbf{c}_{n}\}\) is independent by Theorem 5.2.2.
(1) \(\Leftrightarrow\) (3). Again by Theorem 2.4.5, \(A\) is invertible if and only if \(A\mathbf{x} = \mathbf{b}\) has a solution for every column \(B\) in \(\mathbb{R}^n\); this holds if and only if \(span \;\{\mathbf{c}_{1}, \mathbf{c}_{2}, \dots, \mathbf{c}_{n}\} = \mathbb{R}^n\) by Theorem 5.2.2.
(1) \(\Leftrightarrow\) (4). The matrix \(A\) is invertible if and only if \(A^{T}\) is invertible (by Corollary 2.4.2 to Theorem 2.4.4); this in turn holds if and only if \(A^{T}\) has independent columns (by (1) \(\Leftrightarrow\) (2)); finally, this last statement holds if and only if \(A\) has independent rows (because the rows of \(A\) are the transposes of the columns of \(A^{T}\)).
(1) \(\Leftrightarrow\) (5). The proof is similar to (1) \(\Leftrightarrow\) (4).
Show that \(S = \{(2, -2, 5), (-3, 1, 1), (2, 7, -4)\}\) is independent in \(\mathbb{R}^3\).
Solution
Consider the matrix \(A = \left[ \begin{array}{rrr} 2 & -2 & 5 \\ -3 & 1 & 1 \\ 2 & 7 & -4 \end{array} \right]\) with the vectors in \(S\) as its rows. A routine computation shows that \(\det A = -117 \neq 0\), so \(A\) is invertible. Hence \(S\) is independent by Theorem 5.2.3. Note that Theorem 5.2.3 also shows that \(\mathbb{R}^3 = span \; S\).
Dimension
It is common geometrical language to say that \(\mathbb{R}^3\) is 3-dimensional, that planes are 2-dimensional and that lines are 1-dimensional. The next theorem is a basic tool for clarifying this idea of “dimension”. Its importance is difficult to exaggerate.
Let \(U\) be a subspace of \(\mathbb{R}^n\). If \(U\) is spanned by \(m\) vectors, and if \(U\) contains \(k\) linearly independent vectors, then \(k \leq m\).
This proof is given in Theorem 6.3.2 in much greater generality.
If \(U\) is a subspace of \(\mathbb{R}^n\), a set \(\{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{m}\}\) of vectors in \(U\) is called a basis of \(U\) if it satisfies the following two conditions:
- \(\{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{m}\}\) is linearly independent.
- \(U = span \;\{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{m}\}\).
The most remarkable result about bases2 is:
If \(\{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{m}\}\) and \(\{\mathbf{y}_{1}, \mathbf{y}_{2}, \dots, \mathbf{y}_{k}\}\) are bases of a subspace \(U\) of \(\mathbb{R}^n\), then \(m = k\).
We have \(k \leq m\) by the fundamental theorem because \(\{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{m}\}\) spans \(U\), and \(\{\mathbf{y}_{1}, \mathbf{y}_{2}, \dots, \mathbf{y}_{k}\}\) is independent. Similarly, by interchanging \(\mathbf{x}\)’s and \(\mathbf{y}\)’s we get \(m \leq k\). Hence \(m = k\).
\(\square\)
The invariance theorem guarantees that there is no ambiguity in the following definition:
If \(U\) is a subspace of \(\mathbb{R}^n\) and \(\{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{m}\}\) is any basis of \(U\), the number, \(m\), of vectors in the basis is called the dimension of \(U\), denoted
\[dim \; U = m \nonumber \]
The importance of the invariance theorem is that the dimension of \(U\) can be determined by counting the number of vectors in any basis.3
Let \(\{\mathbf{e}_{1}, \mathbf{e}_{2}, \dots, \mathbf{e}_{n}\}\) denote the standard basis of \(\mathbb{R}^n\), that is the set of columns of the identity matrix. Then \(\mathbb{R}^n = span \;\{\mathbf{e}_{1}, \mathbf{e}_{2}, \dots, \mathbf{e}_{n}\}\) by Example 5.1.6, and \(\{\mathbf{e}_{1}, \mathbf{e}_{2}, \dots, \mathbf{e}_{n}\}\) is independent by Example 5.2.2. Hence it is indeed a basis of \(\mathbb{R}^n\) in the present terminology, and we have
\(dim \;(\mathbb{R}^n) = n\) and \(\{\mathbf{e}_{1}, \mathbf{e}_{2}, \dots, \mathbf{e}_{n}\}\) is a basis.
This agrees with our geometric sense that \(\mathbb{R}^2\) is two-dimensional and \(\mathbb{R}^3\) is three-dimensional. It also says that \(\mathbb{R}^1 = \mathbb{R}\) is one-dimensional, and \(\{1\}\) is a basis. Returning to subspaces of \(\mathbb{R}^n\), we define
\[dim \;\{\mathbf{0}\} = 0 \nonumber \]
This amounts to saying \(\{\mathbf{0}\}\) has a basis containing no vectors. This makes sense because \(\mathbf{0}\) cannot belong to any independent set (Example 5.2.4).
Let \(U = \left \{ \left[ \begin{array}{r} r \\ s \\ r \end{array} \right] \middle| \, r, s \mbox{ in } \mathbb{R} \right \}\). Show that \(U\) is a subspace of \(\mathbb{R}^3\), find a basis, and calculate \(dim \; U\).
Solution
Clearly, \(\left[ \begin{array}{r} r \\ s \\ r \end{array} \right] = r\mathbf{u} + s\mathbf{v}\) where \(\mathbf{u} = \left[ \begin{array}{r} 1 \\ 0\\ 1 \end{array} \right]\) and \(\mathbf{v} = \left[ \begin{array}{r} 0 \\ 1 \\ 0 \end{array} \right]\). It follows that \(U = span \;\{\mathbf{u}, \mathbf{v}\}\), and hence that \(U\) is a subspace of \(\mathbb{R}^3\). Moreover, if \(r\mathbf{u} + s\mathbf{v} = \mathbf{0}\), then \(\left[ \begin{array}{rrr} r \\ s \\ r \end{array} \right] = \left[ \begin{array}{rrr} 0 \\ 0 \\ 0 \end{array} \right]\) so \(r = s = 0\). Hence \(\{\mathbf{u}, \mathbf{v}\}\) is independent, and so a basis of \(U\). This means \(dim \; U = 2\).
Let \(B = \{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{n}\}\) be a basis of \(\mathbb{R}^n\). If \(A\) is an invertible \(n \times n\) matrix, then \(D = \{A\mathbf{x}_{1}, A\mathbf{x}_{2}, \dots, A\mathbf{x}_{n}\}\) is also a basis of \(\mathbb{R}^n\).
Solution
Let \(\mathbf{x}\) be a vector in \(\mathbb{R}^n\). Then \(A^{-1}\mathbf{x}\) is in \(\mathbb{R}^n\) so, since \(B\) is a basis, we have \(A^{-1}\mathbf{x} = t_{1}\mathbf{x}_{1} + t_{2}\mathbf{x}_{2} + \dots + t_{n}\mathbf{x}_{n}\) for \(t_{i}\) in \(\mathbb{R}\). Left multiplication by \(A\) gives \(\mathbf{x} = t_{1}(A\mathbf{x}_{1}) + t_{2}(A\mathbf{x}_{2}) + \dots + t_{n}(A\mathbf{x}_{n})\), and it follows that \(D\) spans \(\mathbb{R}^n\). To show independence, let \(s_{1}(A\mathbf{x}_{1}) + s_{2}(A\mathbf{x}_{2}) + \dots + s_{n}(A\mathbf{x}_{n}) = \mathbf{0}\), where the \(s_{i}\) are in \(\mathbb{R}\). Then \(A(s_{1}\mathbf{x}_{1} + s_{2}\mathbf{x}_{2} + \dots + s_{n}\mathbf{x}_{n}) = \mathbf{0}\) so left multiplication by \(A^{-1}\) gives \(s_{1}\mathbf{x}_{1} + s_{2}\mathbf{x}_{2} + \dots + s_{n}\mathbf{x}_{n} = \mathbf{0}\). Now the independence of \(B\) shows that each \(s_{i} = 0\), and so proves the independence of \(D\). Hence \(D\) is a basis of \(\mathbb{R}^n\).
While we have found bases in many subspaces of \(\mathbb{R}^n\), we have not yet shown that every subspace has a basis. This is part of the next theorem, the proof of which is deferred to Section 6.4 (Theorem 6.4.1) where it will be proved in more generality.
Let \(U \neq \mathbf{0}\) be a subspace of \(\mathbb{R}^n\). Then:
- \(U\) has a basis and \(dim \; U \leq n\).
- Any independent set in \(U\) can be enlarged (by adding vectors from any fixed basis of \(U\)) to a basis of \(U\).
- Any spanning set for \(U\) can be cut down (by deleting vectors) to a basis of \(U\).
Find a basis of \(\mathbb{R}^4\) containing \(S = \{\mathbf{u}, \mathbf{v}\}\) where \(\mathbf{u} = (0, 1, 2, 3)\) and \(\mathbf{v} = (2, -1, 0, 1)\).
Solution
By Theorem 5.2.6 we can find such a basis by adding vectors from the standard basis of \(\mathbb{R}^4\) to \(S\). If we try \(\mathbf{e}_{1} = (1, 0, 0, 0)\), we find easily that \(\{\mathbf{e}_{1}, \mathbf{u}, \mathbf{v}\}\) is independent. Now add another vector from the standard basis, say \(\mathbf{e}_{2}\).
Again we find that \(B = \{\mathbf{e}_{1}, \mathbf{e}_{2}, \mathbf{u}, \mathbf{v}\}\) is independent. Since \(B\) has \(4 = dim \; \mathbb{R}^4\) vectors, then \(B\) must span \(\mathbb{R}^4\) by Theorem 5.2.7 below (or simply verify it directly). Hence \(B\) is a basis of \(\mathbb{R}^4\).
Theorem 5.2.6 has a number of useful consequences. Here is the first.
Let \(U\) be a subspace of \(\mathbb{R}^n\) where \(dim \; U = m\) and let \(B = \{\mathbf{x}_{1}, \mathbf{x}_{2}, \dots, \mathbf{x}_{m}\}\) be a set of \(m\) vectors in \(U\). Then \(B\) is independent if and only if \(B\) spans \(U\).
Suppose \(B\) is independent. If \(B\) does not span \(U\) then, by Theorem 5.2.6, \(B\) can be enlarged to a basis of \(U\) containing more than \(m\) vectors. This contradicts the invariance theorem because \(dim \; U = m\), so \(B\) spans \(U\). Conversely, if \(B\) spans \(U\) but is not independent, then \(B\) can be cut down to a basis of \(U\) containing fewer than \(m\) vectors, again a contradiction. So \(B\) is independent, as required.
\(\square\)
As we saw in Example 5.2.13, Theorem 5.2.7 is a “labour-saving” result. It asserts that, given a subspace \(U\) of dimension \(m\) and a set \(B\) of exactly \(m\) vectors in \(U\), to prove that \(B\) is a basis of \(U\) it suffices to show either that \(B\) spans \(U\) or that \(B\) is independent. It is not necessary to verify both properties.
Let \(U \subseteq W\) be subspaces of \(\mathbb{R}^n\). Then:
- \(dim \; U \leq dim \; W\).
- If \(dim \; U = dim \; W\), then \(U = W\).
Write \(dim \; W = k\), and let \(B\) be a basis of \(U\).
- If \(dim \; U > k\), then \(B\) is an independent set in \(W\) containing more than \(k\) vectors, contradicting the fundamental theorem. So \(dim \; U \leq k = dim \; W\).
- If \(dim \; U = k\), then \(B\) is an independent set in \(W\) containing \(k\) = \(dim \; W\) vectors, so \(B\) spans \(W\) by Theorem 5.2.7. Hence \(W = span \; B = U\), proving (2).
It follows from Theorem 5.2.8 that if \(U\) is a subspace of \(\mathbb{R}^n\), then \(dim \; U\) is one of the integers \(0, 1, 2, \dots, n\), and that:
\[\begin{array}{l} dim \; U = 0 \quad \mbox{ if and only if } \quad U = \{\mathbf{0}\}, \\ dim \; U = n \quad \mbox{ if and only if } \quad U = \mathbb{R}^n \end{array} \nonumber \]
The other subspaces of \(\mathbb{R}^n\) are called proper. The following example uses Theorem 5.2.8 to show that the proper subspaces of \(\mathbb{R}^2\) are the lines through the origin, while the proper subspaces of \(\mathbb{R}^3\) are the lines and planes through the origin.
- If \(U\) is a subspace of \(\mathbb{R}^2\) or \(\mathbb{R}^3\), then \(dim \; U = 1\) if and only if \(U\) is a line through the origin.
- If \(U\) is a subspace of \(\mathbb{R}^3\), then \(dim \; U = 2\) if and only if \(U\) is a plane through the origin.
- Since \(dim \; U = 1\), let \(\{\mathbf{u}\}\) be a basis of \(U\). Then \(U = span \;\{\mathbf{u}\} = \{t\mathbf{u} \mid t \mbox{ in }\mathbb{R}\}\), so \(U\) is the line through the origin with direction vector \(\mathbf{u}\). Conversely each line \(L\) with direction vector \(\mathbf{d} \neq \mathbf{0}\) has the form \(L = \{t\mathbf{d} \mid t \mbox{ in }\mathbb{R}\}\). Hence \(\{\mathbf{d}\}\) is a basis of \(U\), so \(U\) has dimension 1.
- Conversely, if \(U\) is a plane through the origin, then \(dim \; U = 0\), \(1\), \(2\), or \(3\) by Theorem 5.2.8. But \(dim \; U \neq 0\) or \(3\) because \(U \neq \{\mathbf{0}\}\) and \(U \neq \mathbb{R}^3\), and \(dim \; U \neq 1\) by (1). So \(dim \; U = 2\).
Note that this proof shows that if \(\mathbf{v}\) and \(\mathbf{w}\) are nonzero, nonparallel vectors in \(\mathbb{R}^3\), then \(span \;\{\mathbf{v}, \mathbf{w}\}\) is the plane with normal \(\mathbf{n} = \mathbf{v} \times \mathbf{w}\). We gave a geometrical verification of this fact in Section 5.1.
- It is best to view columns and rows as just two different notations for ordered \(n\)-tuples. This discussion will become redundant in Chapter 6 where we define the general notion of a vector space.
- The plural of “basis” is “bases”.
- We will show in Theorem 5.2.6 that every subspace of \(\mathbb{R}^n\) does indeed have a basis.


