[Math] Common basis for subspace intersection

linear algebra

Let $ W_1 = \textrm{span}\left\{\begin{pmatrix}1\\2\\3\end{pmatrix}, \begin{pmatrix}2\\1\\1\end{pmatrix}\right\}$, and $ W_2 = \textrm{span}\left\{\begin{pmatrix}1\\0\\1\end{pmatrix}, \begin{pmatrix}3\\0\\-1\end{pmatrix}\right\}$. Find a basis for $W_1 \cap W_2$

I first thought of solving the augmented matrix:

$ \begin{pmatrix}1 && 2 && 1 && 3\\2 && 1 && 0 && 0\\3 && 1 && 1 && -1\end{pmatrix}$

But this matrix can have 3 pivots and so it's column space dimension can be at most 3 (which doesn't make sense since the basis I'm looking for must have dimension 2.

So, what is the correct way to solve these exercise.

Best Answer

Note that both the spaces have dimension $2$, this means that if their intersection had dimension $2$ they were equal. However it is immediate that no vector in $W_2$ can be written as $(x,y,z)$ with $y\neq 0$, and therefore $W_1\neq W_2$.

From this follows that the intersection has to have dimension $1$ or $0$. But we can also rule out the case where the intersection is zero, because then the direct sum of these spaces would be a $4$ dimensional subspace of $\Bbb R^3$. Impossible! So the intersection must have dimension $1$.

Since we already know that vectors in $W_2$ have their $y$ coordinate $0$, it is sufficient to see if we can find such vector in $W_1$, and then we can try to see whether or not this vector is in $W_2$ as well. The simplest and most obvious way would be: $$\begin{pmatrix}1\\2\\3\end{pmatrix}-2\begin{pmatrix}2\\1\\1\end{pmatrix}=\begin{pmatrix}1-4\\2-2\\3-2\end{pmatrix}=\begin{pmatrix}-3\\0\\1\end{pmatrix}=-\begin{pmatrix}3\\0\\-1\end{pmatrix}$$

Clearly this vector is in $W_2$ and therefore in the intersection. Since the intersection is of no more than one dimension, this is indeed a basis for $W_1\cap W_2$.


Some remarks: Note that I did not present a "general method" of solving this problem. I pointed out several heuristics which helped me solve this very quickly.

The reward for understanding the approach above, except the approach itself, is to understand that sometimes the general method is tedious and riddled with indices, whereas when one stops to ponder and observe the objects, one can draw immediate conclusions which cut the work in half.

Related Question