I have come across this question in my research:
Let $X$ and $Y$ be symmetric $2 \times 2$ matrices. Suppose that tr$(XY)>0$ for all positive-definite $X$. Then is it true that $Y$ is always positive-definite?
The question Product of positive-definite matrices has positive trace deals with the (sort of) reverse implication, but doesn't appear to help all that much.
I've tried a few things, beginning with assuming Y is not positive-definite, and trying to get a contradiction. We can simultaneously diagonalise $X$ and $Y$ (since $X$ is pos-def, and $Y$ symmetric), i.e. there is a nonsingular $B$ such that $B^TXB=I$, and $B^tYB = D$, where $D$ is diagonal. Note that $B$ is not necessarily orthogonal. Since trace is invariant under similarity transformations, we know tr$(XY) = $ tr$(B^{-1}XYB)=$ tr$(B^{-1}XBB^{-1}YB)$, but this doesn't help us since $B$ is not orthogonal.
It seems like the claim should be true, so I think I'm overlooking something obvious. Any ideas would be helpful, thanks.