I need advice on this task, so if anyone had a similar dilemma it would help me.
The task is: Let $U$ be a subspace of space $\mathbb{R^4}$generated by vectors $u1=(1,2,0,-1), u2=(0,3,1,2), u3=(-1,1,1,3)$ and W a subspace generated by vectors $w1=(1,1,1,1), w2=(0,1,1,2), w3=(-1,0,0,1)$. Determine one base for vector spaces $U,W,U + W, U \cap W$.
I did it like this:
For $U$, I placed the vectors in the matrix, found the pivots, and determined that the base was made up of vectors $(1,0,0,0),(0,1,0,0)$.
I did the same for the vector space W.
$U + W$:
I placed the vectors in the matrix and found the pivots:
$$\left[\begin{matrix} 1 & 0 & -1 & 1 & 0 & -1\\ 2 & 3 & 1 & 1 & 1 & 0\\ 0 & 1 & 1 & 1 & 1 & 0\\ -1 & 2 & 3 & 1 & 2 & 1\\ \end{matrix}\right]\rightarrow \left[\begin{matrix} 1 & 0 & {\color{red}{-1}} & 1 & {\color{red}{0}} & {\color{red}{-1}}\\ 0 & 1 & {\color{red}{1}} & 1 & {\color{red}{1}} & {\color{red}{0}}\\ 0 & 0 & {\color{red}{0}} & -4 & {\color{red}{-2}} & {\color{red}{2}}\\ 0 & 0 & {\color{red}{0}} & 0 & {\color{red}{0}} & {\color{red}{2}}\\ \end{matrix}\right]$$
The basis of vector space $U + W$ are vectors: $ u1,u2,w1$.
My dilemma is whether the vectors are marked in red by the bases of the vector space $U \cap W$ ?