Let $x \in \mathbb{R}^n$ be a unit vector, i.e., $\|x\|=1$. Show that the following matrix $A$ has at most one negative eigenvalue: $$A:=(I-xx^\top)(I-3 \mathrm{Diag}(xx^\top))(I-xx^\top).$$ $\mathrm{Diag}(xx^\top)$ is the diagonal matrix whose $i$-th diagonal entry is $x_i^2$. ($\mathrm{Diag}$ extracts the diagonal of a matrix.)
Some of my thoughts/attempts:
- The inner matrix $I-3 \mathrm{Diag}(xx^\top)$ clearly has at most 2 negative eigenvalues, as $\|x\|^2=1$.
- The matrix $(I-xx^\top)$ is of course the orthogonal projector to the orthogonal complement of $x$. So we can add anything of the form $z x^\top + x z^\top$ to the inner matrix without changing $A$.
- I believe it suffices to show that there is some $y \in \mathbb{R}^n$ such that $A + y y^\top \succeq 0$ -- see this MSE post. So it suffices to show that there exists a $y$ such that $$z^\top (I-3 \mathrm{Diag}(xx^\top) + y y^\top) z \geq 0$$ for all $z$ orthogonal to $x$.
- Maybe we can somehow appeal to Sylvester's law of inertia -- also not clear though.

This is not a complete answer, but a sketch. (Thanks to @BenGrossmann for suggesting to look at the trace of $A$.)
We have $$tr(A) = tr(A(I-xx^\top)) = tr(I-xx^\top - 3\mathrm{Diag}(xx^\top) + 3 \mathrm{Diag}(xx^\top) x x^\top ) \\= n-4 + 3 x^\top \mathrm{Diag}(xx^\top) x.$$ Assume for contradiction that at at least two of the eigenvalues of $A$ are negative. We know that one eigenvalue of $A$ is zero, so we conclude that the largest $n-3$ eigenvalues of $A$ are strictly bigger than $tr(A)$.
As $B := I - 3\mathrm{Diag}(x x^\top)$ dominates $A$, we know that the eigenvalues of $B$ are at least as big as those of $A$ (see for example here). We conclude $$n-4 + 3 x^\top \mathrm{Diag}(xx^\top) x = tr(A) <\sum_{\ell=1}^{n-3} \lambda_{\ell}(B) = \sum_{\ell=1}^{n-3} \lambda_{\ell}(I - 3\mathrm{Diag}(x x^\top)) = n - 3 - 3S$$ where $S$ is the sum of the smallest $n-3$ entries of $(x_1^2, x_2^2, ..., x_n^2)$. Rearranging this gives $$x_1^4+x_2^2+...+x_n^4 + S= x^\top \mathrm{Diag}(xx^\top) x + S < 1/3.$$
On the other hand, it seems that $x^\top \mathrm{Diag}(xx^\top) x + S \geq 1/3$, which would give a contradiction. Indeed, one should be able to check that the minimum of $$\min a_1^2+ ... + a_n^2 + a_1 + ... +a_{n-3} \text{ subject to } a_1 + ... + a_n = 1 \text{ and } 0\leq a_1 \leq a_2 \leq ... \leq a_n$$ equals $1/3$ by writing out the KKT conditions (this is a convex optimization problem). (Note here I made a change of variables $a_i := x_i^2$ and WLOG assumed the $a_i$ are ordered.) I didn't do this explicitly, but Mathematica seems to confirm that the minimum of this problem is $1/3$, attained at $$a_1=...=a_{n-3}=0, a_{n-2}=a_{n-1}=a_n.$$