I'm having a bit of trouble proving the following:
Let $A \in \mathbb{R}^{m\times n}$ and $b \in \mathbb{R}^{m}$ and define $f: \mathbb{R}^n \to \mathbb{R}$ by $f(x) = ||Ax - b||^2$. How can I show that $x_*$ is a global minimizer for $f$ if and only if $x_*$ solves $A^TAx = A^Tb$?
I would appreciate any help proving this!