I am in trouble with these exercise: Consider the vectors $v_1=(1, 0, 0, 1), v_2=(2, h, h, 2), v_3=(1, 1+h, 2h +1, 1)$ with $h\in\mathbb{R}$. Determine the dimension of the subspace $S$ generated by $v_1, v_2, v_3, v_4$ by varying $h\in\mathbb{R}$. Thus, choosen $h\in\mathbb{R}$ such that $dim(S) =3$, find $v_4$ such that $span\{v_1, v_2, v_3, v_4\} = \mathbb{R}^4$.
In order to find the dimension of the generated subspace $S$ by varying $h\in\mathbb{R}$, I evaluate
$\begin{vmatrix} 1 &2&1\\ 0&h &1+h\\ 0& h&2h+1\\ 1&2&1 \end{vmatrix}$
I observe that $rank(A) = 3$ for all $h\neq 0$ and if $h=0, rank(A) = 2$. So (I guess) the answer to the first question is that $dim(S) =3$ for all $h\neq 0$.
How to proceed to find $v_4$ such that $span\{v_1, v_2, v_3, v_4\}=\mathbb{R}^4$? Could anyone please help me?
Thank you in advance!