Consider the matrix vector equation $Ax=b$ with $$ A = \begin{pmatrix} 1 & 2\\ 2 & 4 \end{pmatrix}, \quad b= \begin{pmatrix} 4\\ 8 \end{pmatrix}. $$ Since the second row of matrix $A$ is a multiple of the first, $A^{-1}$ does not exist and the system has infinitely many solutions. The set of solutions is a line in $\mathbb{R}^2$ which satisfy $$\label{abc} x_1 + 2 x_2 = 4. $$ However, calculating the Pseudo-Inverse $A^+$ of $A$ (using python or similar) is get a unique solution $x^+ = (0.8, 1.6)^T$.
As far as I understood correctly, the Pseudo-Inverse is an explicit way of calculating the least squares solution given by $$ x^+ = \arg\min_x \frac{1}{2} || Ax - b||_2^2. $$ This can be seen by using the singular value decomposition of $A$.
But obviously, all points satisfying $x_1+2x_2=4$ minimize the norm, hence there are infinitely many least squares solutions.
Why does the Pseudo-Inverse then give me a unique solution $x^+=(0.8, 1.6)^T$?
Thanks in advance.