Suppose the complete set of solutions to $Ax = b$ where $b = [2, 4, 2]^T$ is given by $$ x = [2, 0, 0]^T + c[1, 1, 0]^T + d[0, 0, 1]^T. $$
This is from a YouToube Video of Gilbert Strang's lecture on Linear Algebra. He said that the rank of the matrix $A$ was $1$. I understand that $b$ is a column vector so its rank is $1$. How did the students identify the dimension of the null space of $A$ to be $2$? This is something that baffles me.
$$A = \begin{bmatrix}1 & -1 & 0 \\ 2 & -2 & 0 \\ 1 & -1 & 0 \end{bmatrix}$$
Firstly, why is it that if $[0, 0, 1]^T$ is in the null space, the third column is a zero vector.
Assuming $c = 1$, $d = 1,$
and $A$ is the matrix as proposed, in the first row of $B$, $1\times 2 - 1 \times 1 + 1 \times 0$ gives $1$ instead of $2.$