Find the dimension of the subspace of $\mathbb{R}^4$ spanned by $x_1= (1, 2, -1, 0)$, $x_2=(2, 5, -3, 2)$, $x_3=(2, 4, -2, 0)$, $x_4=(3, 8, -5, 4)$

linear algebravector-spaces

Find the dimension of the subspace of $\mathbb{R}^4$ spanned by the vectors
$$x_1= \begin{bmatrix}
1 & 2 & -1& 0
\end{bmatrix}^T, \qquad
x_2= \begin{bmatrix}
2 & 5 & -3& 2
\end{bmatrix}^T$$

$$x_3= \begin{bmatrix}
2 & 4 & -2& 0
\end{bmatrix}^T, \quad \text{and} \quad x_4= \begin{bmatrix}
3 & 8 & -5& 4
\end{bmatrix}^T.$$

The answer
The subspace $$Span(x_1,x_2,x_3,x_4)$$ is the same as the column space of the matrix
$$
X = \begin{pmatrix} 1 & 2 & 2 & 3 \\
2 & 5 & 4 & 8 \\
-1 & -3 & -2 & -5 \\
0 & 2 & 0 & 4
\end{pmatrix}
$$

The row echelon form of X is
$$
\begin{pmatrix}
1 & 2 & 2 & 3 \\
0 & 1 & 0 & 2 \\
0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0
\end{pmatrix}
$$

The first two columns x1,x2 of X will form a basis for the column space of X. Thus, dim $$Span(x_1 , x_2 ,x_3 ,x_4)=2$$

My question
I know how to reduce the row echelon form of X, but I have no idea how to know which coloums form a basis a column space and why not use row space?

Best Answer

The dimension of the subspace $S$ of $\Bbb R^4$ is the column rank of the matrix

$$X=\begin{bmatrix}\color{blue}1&\color{red}2&\color{green}2&\color{brown}3\\ \color{blue}2&\color{red}5&\color{green}4&\color{brown}8\\ \color{blue}{-1}&\color{red}{-3}&\color{green}{-2}&\color{brown}{-5}\\ \color{blue}0&\color{red}{2}&\color{green}0&\color{brown}4 \end{bmatrix}$$

since you have written the spanning vectors as the column vectors of the matrix and it is the column rank that gives the number of linearly independent column vectors. The column rank is found by using column transformations to obtain the column echelon form of $X$.

The dimension of the subspace $S$ of $\Bbb R^4$ is also the row rank of the matrix

$$X'=\begin{bmatrix}\color{blue}1&\color{blue}2&\color{blue}{-1}&\color{blue}0\\ \color{red}2&\color{red}5&\color{red}{-3}&\color{red}2\\ \color{green}2&\color{green}4&\color{green}{-2}&\color{green}0\\ \color{brown}3&\color{brown}8&\color{brown}{-5}&\color{brown}4 \end{bmatrix}$$

where the spanning vectors have been written as row vectors of the matrix and the row rank gives the number of linearly dependent row vectors. The row rank is found by using row transformations to obtain the row echelon form of $X'$.

You have made use of the useful property that the row rank and column rank of a matrix are identical. This means you can alternatively obtain the row echelon form of $X$, as you have done, or the column echelon form of $X'$.

Edit. As mentioned in a useful comment, the basis of the column space of $X$ consists of the column vectors of $X$ corresponding to the pivot columns in $REF(X)$. In your case, it is the first two columns, giving the basis as $\{(1,2,-1,0),(2,5,-3,2)\}$. To see why, note that if you remove the last two columns of $X$, it will still have rank $2$, meaning that the first $2$ columns are independent. Adding the third/fourth column will not change the rank.

Related Question