Skip to main content

Section 2.9 Dimension and Rank

Handout 2.9 Dimension and Rank

Key idea: Many different bases may be chosen for a given subspace. The choice can dramatically affect coordinate representations.

Example 2.57.

Sketch \(\vec b_1 + \vec b_2\) in each coordinate system below.
Two coordinate systems showing different basis orientations.
Two grids with different bases; vectors \(\vec b_1\) and \(\vec b_2\) are drawn.

Definition 2.58. Coordinates Relative to a Basis.

Let \(\mathcal{B}=\{\vec b_1,\dots,\vec b_p\}\) be a basis for a subspace \(H\text{.}\) For any \(\vec x\in H\text{,}\) the coordinates of \(\vec x\) relative to \(\mathcal B\) are the scalars \(c_1,\dots,c_p\) such that
\begin{equation*} \vec x = c_1\vec b_1 + \cdots + c_p\vec b_p. \end{equation*}
The coordinate vector of \(\vec x\) relative to \(\mathcal B\) is:
\begin{equation*} [\vec x]_{\mathcal B} = \begin{bmatrix} c_1\\ \vdots\\ c_p \end{bmatrix}. \end{equation*}

Example 2.59.

\begin{equation*} \vec v_1=\begin{bmatrix}1\\0\\1\end{bmatrix},\qquad \vec v_2=\begin{bmatrix}1\\1\\1\end{bmatrix},\qquad \vec x=\begin{bmatrix}5\\3\\5\end{bmatrix}. \end{equation*}
Verify that \(\vec x\) is in the span of \(\mathcal B=\{\vec v_1,\vec v_2\}\text{,}\) and compute \([\vec x]_{\mathcal B}\text{.}\)

Example 2.60.

\begin{equation*} \vec v_1=\begin{bmatrix}-1\\0\\1\\0\end{bmatrix},\qquad \vec v_2=\begin{bmatrix}0\\1\\3\\2\end{bmatrix},\qquad \vec v_3=\begin{bmatrix}3\\6\\2\\-1\end{bmatrix},\qquad \vec x=\begin{bmatrix}3\\11\\4\\-4\end{bmatrix}, \end{equation*}
and \(H = \textrm{Span}\{\vec v_1, \vec v_2, \vec v_3\}\text{.}\)
(a)
Verify that \(\mathcal B=\{\vec v_1,\vec v_2,\vec v_3\}\) is a basis for \(H\text{.}\)

Definition 2.61. Dimension.

The dimension of a nonzero subspace \(H\text{,}\) written \(\operatorname{dim}(H)\text{,}\) is the number of vectors in any basis of \(H\text{.}\) We define \(\operatorname{dim}(\{0\})=0\text{.}\)

Note 2.63.

Some Examples:
  1. \(\operatorname{dim}(\mathbb{R}^n)=n\text{.}\)
  2. \(H=\{(x_1,\dots,x_n): x_1+\cdots+x_n=0\}\) has dimension \(n-1\text{.}\)
  3. \(\operatorname{dim}(\operatorname{Nul}A)\) is the number of free variables.
  4. \(\operatorname{dim}(\operatorname{Col}A)\) is the number of pivotal columns.

Definition 2.64. Rank.

The rank of a matrix \(A\) is the dimension of its column space.

Example 2.65.

Compute \(\operatorname{rank}(A)\) and \(\operatorname{dim}(\operatorname{Nul}A)\) and find a basis for \(\Col(A)\) and \(\Nul(A)\text{,}\) where
\begin{equation*} A = \begin{bmatrix} 2 \amp -3 \amp -12 \amp 4 \amp -7\\ 4 \amp -5 \amp -22 \amp 3 \amp 1\\ -5 \amp 2 \amp 19 \amp -10 \amp -10\\ 0 \amp 2 \amp 4 \amp 7 \amp -4 \end{bmatrix} \sim \begin{bmatrix} 1 \amp 0 \amp -3 \amp 0 \amp 8\\ 0 \amp 1 \amp 2 \amp 0 \amp 5\\ 0 \amp 0 \amp 0 \amp 1 \amp -2\\ 0 \amp 0 \amp 0 \amp 0 \amp 0 \end{bmatrix}. \end{equation*}