Consider $f(x):=\|A-xx^T\|^2_F$, where $A \in \mathbb{R}^{n \times n}$ a symmetric matrix and positive eigenvalues $\lambda_1>\lambda_2>\cdots>\lambda_n>0$ with corresponding eigenvectors $u_1,u_2,\ldots,u_n$
I want to compute gradient and Hessian of $f(x)$, find all stationary points, and find the global minimizer and maximizer, and finally show that other stationary points have the Hessian that is neither PSD nor NSD.
So far, I did:
$$f(x)=\|A-xx^T\|^2_F = \|A\|^2_F -2\operatorname{tr}(x^TAx) + \operatorname{tr}(xx^Txx^T),$$
thus,
$$\nabla f(x) = 4(xx^T-A)x$$
Setting equal to 0, all the stationary points are $x$ such that
$$(xx^T-A)x = O_{n \times n}$$
Then the Hessian $\nabla^2 f(x) = 4(x^Tx) + 4(xx^T-A) = 8xx^T-4A$
I am stuck at this point. From here, how do I find which stationary point is the global minimizer and maximizer?
I think it has something to do with Hessian, but how do I do it? Also, how do I show that every other stationary points have Hessian that is neither PSD nor NSD?