[Math] Positive Semi-Definite matrices and subtraction

eigenvalues-eigenvectorsmatrices

I have been wondering about this for some time, and I haven't been able to answer the question myself. I also haven't been able to find anything about it on the internet. So I will ask the question here:

Question: Assume that $A$ and $B$ both are positive semi-definite. When is $C = (A-B)$ positive semi-definite?

I know that I can figure it out for given matrices, but I am looking for a necessary and sufficient condition.

It is of importance when trying to find solutions to conic-inequality systems, where the cone is the cone generated by all positive semi-definite matrices. The question I'm actually interested in finding nice result for are:

Let $x \in \mathbb{R}^n$, and let $A_1,\ldots,A_n,B$ be positive semi-definite. When is

$(\sum^n_{i=1}x_iA_i) – B$

positive semi-definite?

I feel the answer to my first question should yield the answer to the latter. I am looking for something simpler than actually calculating the eigenvalues.

Best Answer

There's a form of Sylvester's criterion for positive semi-definiteness, which unfortunately requires a lot more computations than the better known test for positive definiteness. Namely, all principal minors (not just the leading ones) must be nonnegative. Principal minors are obtained by deleting some of the rows and the same-numbered columns. Source

The book Matrix Analysis by Horn and Johnson is the best reference for positive (semi)definiteness that I know.