I’m trying to solve the following question:
Find a $3\times 3$ matrix $A$ such that $\operatorname{Null}(A)=\operatorname{span}\left\lbrace \begin{bmatrix}1 \\1 \\1 \\\end{bmatrix},\begin{bmatrix}1\\2\\3\end{bmatrix}\right\rbrace$.
My attempt was this. Let $A=\begin{bmatrix}a_{11}&a_{12}&a_{13}\\a_{21}&a_{22}&a_{23}\\a_{31}&a_{32}&a_{33} \end{bmatrix}$. Then I solved $A\begin{bmatrix}1 \\1 \\1 \\\end{bmatrix}=\begin{bmatrix}0\\0\\0\end{bmatrix}$ and $A\begin{bmatrix}1\\2\\3\end{bmatrix}=\begin{bmatrix}0\\0\\0\end{bmatrix}$ which gave me the following conditions $a_{12}+2a_{13}$=0 , $a_{22}+2a_{23}=0$ and $a_{32}+2a_{33}=0$. Solving these I can get a matrix that look like this $A=\begin{bmatrix}1&-2&1\\1&-2&1\\1&-2&1\\\end{bmatrix}$.
Is my approach correct? I’m asking because I wanted to check my answer and calculated the null space for the matrix I found above and the null space was spanned by $\left\lbrace\begin{bmatrix}-1\\0\\1\end{bmatrix},\begin{bmatrix}2\\1\\0\end{bmatrix}\right\rbrace$.
You did everything right. You have $$ \begin{bmatrix} 1\\1\\1\end{bmatrix}= \begin{bmatrix}-1\\0\\1\end{bmatrix}+\begin{bmatrix}2\\1\\0\end{bmatrix} $$ and $$ \begin{bmatrix} 1\\2\\3\end{bmatrix}= 3\,\begin{bmatrix}-1\\0\\1\end{bmatrix}+2\,\begin{bmatrix}2\\1\\0\end{bmatrix}. $$