Let $M$ be a real symmetric positive semi-definite matrix s.t. there is only one zero eigenvalue.
Question: Is it true that there is a unique principal submatrix that is positive definite? If so, how to determine this submatrix?
First trial: Let the eigenvector corresponding to the zero eigenvalue be $v$. We can represent $M$ as \begin{equation}M=Q'DQ,\tag{*}\end{equation} where $Q'Q=I$ and $D$ is a diagonal matrix. Suppose for certainty that the last element of D is equal to $0$, i.e., $d_{nn}=0$. This means that the last column of $Q$ is equal to $v$.
Now let's write $D=\begin{bmatrix}D_1& 0\\0& 0\end{bmatrix}$ and $Q=\begin{bmatrix}\tilde Q& q_1\\q_2'& x\end{bmatrix}$, where $D_1$ is a PD diagonal matrix, $\tilde Q$ is an $[n-1,n-1]$ matrix, $q_1$ and $q_2$ are vectors, and $x$ is a scalar.
With this, we rewrite (*) as $$M=\begin{bmatrix}\tilde Q'& q_2\\q_1'& x\end{bmatrix}\begin{bmatrix}D_1& 0\\0& 0\end{bmatrix}\begin{bmatrix}\tilde Q& q_1\\q_2'& x\end{bmatrix}= \begin{bmatrix}\tilde Q'D_1& 0\\q_1'D_1& 0\end{bmatrix}\begin{bmatrix}\tilde Q& q_1\\q_2'& x\end{bmatrix}= \begin{bmatrix}\tilde Q'D_1\tilde Q& \tilde Q'D_1q_1\\q_1'D_1\tilde Q& q_1'D_1q_1\end{bmatrix}$$
Here, $\tilde Q'D_1\tilde Q$ is the $(n,n)$-principal submatrix of $M$, which is positive definite if $\tilde Q$ is non-singular. Thus the problem boils down to deternining non-singular principal submatrices of $Q$. However, I'm not sure is this makes the problem any simpler..
Solution (?): The number of PD principal submatrices id equal to the number of non-zero elements in the eigenvector $v$. If $v_i\neq 0$, $M[i]$ is PD.
I will post the proof in a day or so.