Let $ W = \left \{\mathbf{x} = \begin{pmatrix} x_1 \\x_2 \\x_3 \end{pmatrix} : x_1 + x_2 + x_3 = 0 \right\}$ and find a basis for $W$
I don't really know how to do it by guess work so I tried this method:
Solve $x_1 + x_2 + x_3 = 0$ to row echelon form (which it already is in) and so we get the solution $ \begin{pmatrix} x_1 \\x_2 \\x_3 \end{pmatrix} = \begin{pmatrix} -x_2 -x_3 \\x_2 \\x_3 \end{pmatrix}$
then use a simple method to find the matrix, let $x_2 = 1$ and $x_3 = 0$ which gives us $\begin{pmatrix} -1 \\1 \\0 \end{pmatrix}$ and let $x_3 = 1$ and $x_2 = 0$ giving $\begin{pmatrix} -1 \\ 0 \\1 \end{pmatrix}$ so the basis is $\left \{\begin{pmatrix} -1 \\1 \\0 \end{pmatrix}, \begin{pmatrix} -1 \\ 0 \\1 \end{pmatrix} \right\}$
Is this a valid method as I really don't like guess work (which my teacher said for us to do). I have tested and it is a basis for the vector space $W$
thanks