Consider a $n$-dimensional real symmetric matrix $A\in\mathbb{R}^{n\times n}$ having exactly $m$ negative eigenvalues and $n-m$ positive eigenvalues ($1\leq m\leq n$). Let $D\in\mathbb{R}^{n\times n}$ be a diagonal matrix with non-negative elements. My question is: To make $A+D\succ0$, i.e. positive definite, at least how many positive elements of $D$ do we need? For $n=1, 2$, it is easy to show that the answer is exactly $m$. Does this conclusion still hold for $n\geq3$ ?
Any ideas and suggestions are welcomed. Thanks in advance!
No, it's not necessarily $m$. Consider the matrix
$$ A = \pmatrix{1 & -1 & -1\cr -1 & 1 & -1\cr -1 & -1 & 1\cr} $$ This has $m=1$ negative eigenvalue (namely $-1$), but if $D$ is a diagonal matrix with one nonzero element, $\det(A+D) = \det(A) = -4$ because the cofactor is $0$.