Linear Algebra: determine whether the sets span the same subspace
Solution 1:
Two sets of vectors in the same vector space, $S_1$ and $S_2$, span the same subspace if and only if:
- Each vector in $S_1$ can be written as a linear combination of the vectors in $S_2$; and
- Each vector in $S_2$ can be written as a linear combination of the vectors in $S_1$.
There may be ways of infering these properties without actually showing them directly (such as dimension arguments liike user6312 suggests), but it really ends up coming down to showing this holds or that this cannot hold.
Note that these conditions are not intrinsic: it's almost never enough to just look at $S_1$ without thinking about $S_2$, and to then look at $S_2$ without looking at $S_1$; it is only in very extreme circumstances that this suffices (when you can prove that the "sizes" of the spans don't match, a dimension argument) that this can prove to be enough.
So just figuring out if the sets are linearly dependent or independent is not enough in this case.
So: are $(-2,-6,0)$ and $(1,1,-2)$ each linear combinations of $(1,2,-1)$, $(0,1,1)$, and $(2,5,-1)$? Yes: you can try solving the two systems of linear equations: $$\begin{align*} \alpha_1 \left(\begin{array}{r}1\\2\\-1\end{array}\right) + \beta_1\left(\begin{array}{c}0\\1\\1\end{array}\right) + \gamma_1\left(\begin{array}{r}2\\5\\-1\end{array}\right) &= \left(\begin{array}{r}-2\\-6\\0\end{array}\right)\\ \alpha_2 \left(\begin{array}{r}1\\2\\-1\end{array}\right) + \beta_2\left(\begin{array}{c}0\\1\\1\end{array}\right) + \gamma_2\left(\begin{array}{r}2\\5\\-1\end{array}\right) &= \left(\begin{array}{r}1\\1\\-2\end{array}\right) \end{align*}$$ and see if they each have solutions. (It can even be done both at once, by doing row reduction on $$\left(\begin{array}{rrr|rr} 1 & 0 & 2 & -2 & 1\\ 2 & 1 & 5 & -6 & 1\\ -1 & 1 & -1 & 0 & -2 \end{array}\right).$$ If either system has no solutions, then you know that not every vector in $S_2$ is in the span of $S_1$ and you are done; if both systems have solutions, then every vector in $S_2$ is in the span of $S_1$, so $\mathrm{span}(S_2)\subseteq \mathrm{span}(S_1)$.
Then you need to see if the converse inclusion holds: is every vector in $S_1$ a linear combination of the vectors in $S_2$? That is, can we solve the three systems of linear equations? $$\begin{align*} \rho_1\left(\begin{array}{r}-2\\-6\\0\end{array}\right) + \sigma_1 \left(\begin{array}{r}1\\1\\-2\end{array}\right) &= \left(\begin{array}{r}1\\2\\-1\end{array}\right)\\ \rho_2\left(\begin{array}{r}-2\\-6\\0\end{array}\right) + \sigma_2 \left(\begin{array}{r}1\\1\\-2\end{array}\right) &= \left(\begin{array}{r}0\\1\\1\end{array}\right)\\ \rho_3\left(\begin{array}{r}-2\\-6\\0\end{array}\right) + \sigma_3 \left(\begin{array}{r}1\\1\\-2\end{array}\right) &= \left(\begin{array}{r}2\\5\\-1\end{array}\right) \end{align*}$$ If we can solve all, then each vector in $S_1$ is in the span of $S_2$, so $\mathrm{span}(S_1)\subseteq \mathrm{span}(S_2)$; together with the previous inclusion, this would show the spans are equal. If some equation cannot be solved, then not every vector in $S_1$ is in the span of $S_2$, so the spans are different.
(There is one thing that you can rescue from your efforts: since you proved that the set $S_1$ is linearly dependent, you can extract from it a linearly independent set (in this case, for instance, the first two vectors), and replace $S_1$ with that set of two vectors (because the third vector is a linear combination of the first two). That will mean that checking that "every vector in $S_1$ is a linear combination of the vectors in $S_2$" and checking that "every vector in $S_2$ is a linear combination of the vectors in $S_1$" will be simpler: instead of checking five things, you only need to check four.)
Solution 2:
For this kind of problem, finding the reduced row echelon form (rref) seems to be a rather straightforward method.
For the set $S_1$, you form the matrix $$ \begin{pmatrix} 1 & 2 &-1 \\ 0 & 1 & 1 \\ 2 & 5 &-1 \end{pmatrix}\sim \begin{pmatrix} 1 & 2 &-1 \\ 0 & 1 & 1 \\ 0 & 1 & 1 \end{pmatrix}\sim \begin{pmatrix} 1 & 2 &-1 \\ 0 & 1 & 1 \\ 0 & 0 & 0 \end{pmatrix}\sim \begin{pmatrix} 1 & 0 &-3 \\ 0 & 1 & 1 \\ 0 & 0 & 0 \end{pmatrix} $$ For the set $S_2$, you form the matrix $$ \begin{pmatrix} -2 &-6 & 0 \\ 1 & 1 &-2 \end{pmatrix}\sim \begin{pmatrix} 1 & 3 & 0 \\ 1 & 1 &-2 \end{pmatrix}\sim \begin{pmatrix} 1 & 3 & 0 \\ 0 &-2 &-2 \end{pmatrix}\sim \begin{pmatrix} 1 & 3 & 0 \\ 0 & 1 & 1 \end{pmatrix}\sim \begin{pmatrix} 1 & 0 &-3 \\ 0 & 1 & 1 \end{pmatrix} $$
Since we know that elementary row operations do not change row space, we see that $$\newcommand{\span}{\operatorname{span}}\span(S_1) = \span\{(1,0,-3),(0,1,1)\} = \span(S_2).$$
This methods works in general. If the non-zero rows in the rrefs are different, that means $\span(S_1) \ne \span(S_2)$.
To formulate this more clearly, we know that:
Theorem. Let $A$ and $B$ be two $m\times n$ matrices over the same field. The following conditions are equivalent:
- The matrices $A$ and $B$ are row equivalent.
- The matrices $A$ and $B$ have the same row space.
- The matrices $A$ and $B$ have the same reduced row echelon form.