I am working through the questions of the Mathematics for Machine Learning book (Page 73 Q2.12, Here) and came across this question on finding a basis for the intersection of two subspaces, given by the following vectors which span $U_1$ and $U_2$, respectively.
$$ U_1 = \operatorname{span} \big[ \begin{pmatrix} 1 \\\\ 1 \\\\ -3 \\\\ 1\\\\ \end{pmatrix}, \begin{pmatrix} 2 \\\\ -1 \\\\ 0 \\\\ -1\\\\ \end{pmatrix}, \begin{pmatrix} -1 \\\\ 1 \\\\ -1 \\\\ 1\\\\ \end{pmatrix} \big]$$
$$ U_2 = \operatorname{span} \big[ \begin{pmatrix} -1\\\\ -2\\\\ 2\\\\ 1\\\\ \end{pmatrix}, \begin{pmatrix} 2\\\\ -2\\\\ 0\\\\ 0\\\\ \end{pmatrix}, \begin{pmatrix} -3\\\\ 6\\\\ 2\\\\ -1\\\\ \end{pmatrix} \big] $$
I have read through some helpful posts, namely (How to find a basis for the intersection of two vector spaces in $\mathbb{R}^n$?) which I found helpful to get started. My understanding is that for any vector $x$ that lies within the intersection of $U_1 \cap U_2$, then it must satisfy the following $\{x^4 \in \Bbb{R}^4 | \ A\lambda = x, By = x\}$ where $A$ and $B$ are matrices whose columns are the column vectors of $U_1$ and $U_2$, respectively.
Having then set up $A\lambda = By$ and then rearranging to $A\lambda - By = 0$ the task then becomes solving for the null space of $L = [ A \ | \ - B]$ but having went through the process of gaussian elimination in an attempt to reduce the matrix to reduced row echelon form, I seem to be stuck with how to proceed. The matrix that I have ended up with is as follows and I would appreciate your thoughts on the below questions / thoughts.
$$ L = \begin{pmatrix} 1 & 2 & -1 & 1 & -2 & 3\\\\ 0 & 1 & \frac{-2}{3} & \frac{-1}{3} & \frac{-4}{3} & 3\\\\ 0 & 0 & 0 & 0 & 0 & 0\\\\ 0 & 0 & 0 & -3 & -2 & 7\\\\ \end{pmatrix} $$
- Would you agree that the matrix is in the correct form? I am not confident this is the case, even though I am not sure where I have gone wrong
- If so, my understanding is that this implies the pivot columns of this matrix (columns $1$ and $2$, $c_1$ and $c_2$), should be able to express each of the other redundant (linearly dependent) columns as a linear combination to get the zero vector and while this seems fine to do for $c_3$, it seems impossible for $c_{i ; \ i = 4, .., 6}$ because of the entry in the fourth positions. Any ideas where I have gone wrong here?
I would greatly appreciate the communities thoughts / guidance of how to proceed here. Many thanks!