Expanding a basis of a subspace to a basis for the vector space I'm not really sure how to extend a basis. I'm trying to do the following question.
Consider the subspace $ W = \{(x_1, x_2, x_3, x_4) \in \mathbb{R}^4 : x_1 = -x_4, x_2 = x_3\}$ of $ \mathbb{R}^4$. Extend the basis $\{(0,2,2,0),(1,0,0,-1)\}$ of $W$ to a basis of $ \mathbb{R}^4$. 
I know I need to add another two vectors for it to be a basis of $ \mathbb{R}^4$ but I'm not sure how to pick the vectors. In general, how do you expand a basis?
 A: You might take a different 2-D subspace $X = \{(x_1, x_2, x_3, x_4) \in \mathbb{R}^4 : x_1 = x_4, x_2 = -x_3\}$ which has a trivial intersection with $W$ and find a basis for it, for example $\{(0,2,-2,0),(1,0,0,1)\}$.
A: Hint: Any $2$ additional vectors will do, as long as the resulting $4$ vectors form a linearly independent set. Many choices! I would go for a couple of very simple vectors, check for linear independence. Or check that you can express the standard basis vectors as linear combinations of your $4$ vectors.
A: Put those vectors into the rows of a matrix of A. By definition of row equivalence, the row reduced echelon form of A, call it R, has the same same row space as A. Now's it's easy to see which vectors are not in row(R). An easy solution for your extended vectors, for example, each should have a 1 at one of the free variables, and 0 at all the other variables.
A: Write the given vectors with $e_1, e_2, e_3, e_4$, the standard basis of $\mathbb{R}^4$ in the columns of a matrix. By some row operations you will have four linearly independent vectors that will be basis.
A: I suppose the easiest way to approach the problem is as follows. Consider the orthogonal complement of the subspace. A little trial and inspection shows that it is,

$ W^{\perp} = \{(y_1, y_2, y_3, y_4) \in \mathbb{R}^4 : y_1 = y_4, y_2 = - y_3\}$.

It is very easily to find a basis for this subspace as well. It is, 

$ \beta=\{ (1,0,0,1), (0,1,-1,0) \}$.

Using the result that any vector space can be written as a direct sum of the a subspace and its orhogonal complement, one can derive the result that the union of the basis of a subspace and the basis of the orthogonal complement of its subspaces generates the vector space. You can proving it on your own.
Hence, take the union of $\beta$ and your basis to get the result.
