Let $A$ be an $m\times n$ matrix that describes an injective linear transformation $T_A:\mathbb{R}^n\to\mathbb{R}^m$ and fix $b\in\mathbb{R}^n$ then there exists a unique $x\in\mathbb{R}^n$ that minimizes $\|Ax-b\|$. And then show that $x$ is the unique solution of the system $A^tAx=A^tb$.
Now the solution is trivial if $b$ is in the image of $T_A$. Now I couldn't figure out what to do for the other case.