Under the constraint that $Ax = 0$ and $A$ is full row rank, how would you get the solution to the optimisation problem $$\text{min } \frac{1}{2}\|x\|^2 + \langle c,x \rangle$$
My text says that $x = −(I − A^{\dagger}A)c$ is a unique solution but I am unsure as to how to verify it as I am unsure what a feasible direction is under this constraint.
$A^{\dagger}$ is the Moore Penrose inverse
EDIT: Another way to think about this is as follows
Note that
$$\frac{1}{2}\|x-(-c)\|_2^2 = \frac{1}{2}\|x\|^2 + \frac{1}{2}\|c\|^2 + c^Tx.$$
Now we want $x$ to be in the Null space of $A$ and hence we look at the projection of $-c$ onto the null space of $A$.
Let $u$ be the projection of $c$ onto the null space of $A$. Let $v$ be such that $c = u+v$ and $v \in \mathcal{N}(A)^\perp$. Then we have that for any $x \in \mathcal{N}(A)$ we have that
$$c^Tx = u^Tx.$$
Thus our objective is equivalent to
$$\frac{1}{2}\|x\|^2 + u^Tx.$$
Suppose this was unconstrained, then taking the derivative and setting it to $0$, we get
$$ x +u = 0 \Rightarrow x = -u.$$
Now $-u \in \mathcal{N}(A)$, hence this is the constrained solution as well.
Finally note that $(I-A^\dagger A)$ is the projection matrix for $ \mathcal{N}(A)$. Thus,
$$-(I-A^\dagger A)c = -u.$$