Question
So I am stuck on this example from my Into. Linear Algerbra book
I'm not exactly sure how I'm supposed to find the basis in this case. Am I just supposed to use a random t and s value and call the single vector a basis? (There were no previous examples in the book that were similar)
Thank you
Answer
Virtuoso, you have two free variables to choose from in forming a vector in a subspace $\mathbb{W}$, namely $s$ and $t$, they determine your vector. So, we know that we can represent any vector in $\mathbb{W}$ as $\begin{bmatrix}2s-t\\ s\\ t\\ s\end{bmatrix}$ = $\begin{bmatrix}2s\\ s\\ 0\\ s\end{bmatrix} + \begin{bmatrix}-t\\ 0\\ t\\ 0\end{bmatrix}$. Here, I am just decomposing any generic vector in our subspace into the independent components -- you can't break it down any further, as it is determined by these two variables. Now, you can pull out $s$ and $t$, to get that any vector in $\mathbb{W}$ can be represented as $s \begin{bmatrix}2\\ 1\\ 0\\ 1\end{bmatrix} + t \begin{bmatrix}-1\\ 0\\ 1\\ 0\end{bmatrix}$, where you can pick any $s, t \in \mathbb{R}$. In other words, vectors $\begin{bmatrix}2\\ 1\\ 0\\ 1\end{bmatrix}$ and $\begin{bmatrix}-1\\ 0\\ 1\\ 0\end{bmatrix}$ span the subspace $\mathbb{W}$, and since they are linearly independent, they form a basis for your subspace. Since the dimension of the subspace is equal to the number of linearly independent vectors needed to span the subspace (or, alternatively speaking, the number of basis vectors), you can infer that the dimension of $\mathbb{W}$ is equal to 2.
Note, that this is not the basis, as there is no such thing -- there are infinitely many combinations of two vectors that would form a basis for $\mathbb{W}$. All you need is for these two vectors to be (1) linearly independent and (2) contained in the subspace $\mathbb{W}$. So, you could, for example, multiply our basis vectors by any real numbers you want, as one way of getting a new couple of basis vectors.
Check more discussion of this question.