There was a similar question here, but I either did not understand the answers or the answers were too general. I am wondering specifically how to find the solutions. For example, what are the least squares solutions of
$$ \begin{pmatrix} 1 & 2\\ 2 & 4\\ -2 & -4\\ \end{pmatrix} \vec{x}= \begin{pmatrix} 3 \\ -4\\ 2\\ \end{pmatrix}. $$
When I attempt to solving using $A^TA\vec{x}=A^T\vec{b}$, I got that $det(A^TA)=0$, and thus it is noninvertible. I ran into similar problems attempting to use $A\vec{x}=proj_{Col A}\vec{b}$.
I would have explained the case in the following way:
Let $\vec{x}=(x \ y )^T$.
For your matrix equation we have three linear equations:
$x+2y=3$
$2x+4y=-4$
$-2x-4y=2$
which can be transformed into three similarly looking equations
$x+2y=3$
$x+2y=-2$
$x+2y=-1$
So we have in fact three equations of parallel straight lines crossing $Ox$ axis at different points.
There is no sense to ask what is the most appropriate single vector $(x,y)^T$ to be the closest to satisfy this system of equations.
What we can ask instead of it:
We can for example take crossings of the lines with $Ox$ axis ( when $y=0$) and calculate from them the mean crossing - from this method we obtain $a=0$.
Finally $\vec{x}$ can be parametrized with parameter $y$.
$\vec{x}=(-2y \ \ y )^T$