2

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.

2 Answers2

2

The best you can get is that $Y$ is positive-semidefinite and not zero. That is, if $Y$ is positive-semidefinite, then $\operatorname{Tr}(XY)>0$ for all positive-definite $X$. Indeed, since $Y$ is symmetric, it is orthogonal-diagonalizable. That is, $Y=UDU^T$ with $U$ orthogonal. If $Y\ne0$, then there exists $k$ with $D_{kk}>0$. Then \begin{align*} \operatorname{Tr}(XY) &=\operatorname{Tr}(XUDU^T)=\operatorname{Tr}(U^TXU\,D) =\sum_j D_{jj}\,(U^TXU)_{jj}\geq D_{kk}\,(U^TXU)_{kk}>0, \end{align*} where we use that $X$ is positive-definite, so is $U^TXU$, and $(U^TXU)_{jj}=e_j^T(U^TXU)e_j>0$ for all $j$.

To prove that if $\operatorname{Tr}(XY)>0$ for all positive-definite $X$ then $Y$ is positive-semidefinite and nonzero, suppose that $Y$ is not positive-semidefinite. This means that there exists $j$ with $D_{jj}<0$. Now let $X$ be the diagonal matrix with diagonal $$ (1,\ldots,1,-\frac{\sum_{k\ne j}D_{kk}}{D_{jj}}+1,1,\ldots,1), $$ where the distinct entry is in the $j^{\rm th}$ position. Then $X$ is positive-definite and $$ \operatorname{Tr}(UXU^TY)=\operatorname{Tr}(XD)=\sum_{j\ne k}D_{kk}-\sum_{k\ne j}D_{kk}+D_{jj}=D_{jj}<0. $$

Martin Argerami
  • 205,756
  • Thank you very much. I'm just wondering how you can conclude that after diagonalising $Y$, you can assume that one of the diagonal entries is positive (i.e. $D_{kk}>0$). – Elliot Herrington Nov 20 '19 at 06:42
  • Because I'm assuming that $Y $ is positive-semidefinite and nonzero. – Martin Argerami Nov 20 '19 at 13:33
  • Right. Okay, I think I understand your proof. One last question: to establish the contradiction, you seem to be assuming that Tr($XY$) = Tr($UXU^TY$). I'm just wondering how we can assume this. – Elliot Herrington Nov 21 '19 at 00:22
  • No, it's not a $Y$. Unless I made a typo, it's $\operatorname{Tr}(XY)=\operatorname{Tr}(UXU^TD)$. – Martin Argerami Nov 21 '19 at 00:54
  • What you have in the final line is not equivalent to what you have in the top line. – Elliot Herrington Nov 21 '19 at 03:08
  • I have no idea what you mean by "top line", and why it is supposed to be "equivalent" with the last line. If you ask a concrete question, I'll most likely be able to answer it. – Martin Argerami Nov 21 '19 at 03:41
  • What I mean by the top line is the line Tr($XY$) = Tr($XUDU^T$) = Tr($U^TXUD$) =... , and what I mean by the bottom line is the line Tr($UXU^TY$) = Tr($XD$) =... . As far as I can see, these do not match up. – Elliot Herrington Nov 21 '19 at 03:46
  • I don't see why you expect them to match, they are not part of the same computation. The last line is about producing a matrix $Z$ such that $\operatorname{Tr}(ZY)<0$. Such matrix is $UXU^T$, where $X$ is diagonal as described in the second to last formula. – Martin Argerami Nov 21 '19 at 03:50
  • Yes, you are right. Apologies for overlooking this. – Elliot Herrington Nov 21 '19 at 03:55
  • No need to apologize. I don't think I was particularly clear. – Martin Argerami Nov 21 '19 at 04:05
2

No. E.g. when $Y=\pmatrix{1&0\\ 0&0}$, we have $\operatorname{tr}(XY)=x_{11}$, which is positive when $X$ is positive definite. Yet, $Y$ is singular and hence it is not positive definite.

What the trace condition implies is that $Y$ is positive semidefinite. Let $\{v_1,\ldots,v_n\}$ be an orthonormal eigenbasis of $Y$ and $Yv_j=\lambda_jv_j$ for each $j$. Pick any $\epsilon>0$ and define a strictly positive linear operator $X$ such that $Xv_1=v_1$ and $Xv_j=\epsilon v_j$ for each $j\ge2$. Then $XYv_1=\lambda_1v_1$ and $XYv_j=\epsilon\lambda_jv_j$ for each $j\ge2$. Hence the spectrum of $XY$ is $\{\lambda_1,\epsilon \lambda_2,\ldots,\epsilon \lambda_n\}$ and by assumption, $0<\operatorname{tr}(XY)=\lambda_1+\epsilon\sum_{j\ge1}\lambda_j$. So, when $\epsilon\to0$, we see that $\lambda_1\ge0$. By a similar argument, $\lambda_i\ge0$ for other indices $i$ too. Hence $Y$ is positive semidefinite.

Conversely, if $Y$ is positive semidefinite, so is $X^{1/2}YX^{1/2}$ whenever $X$ is positive definite. Hence $\operatorname{tr}(XY)=\operatorname{tr}(X^{1/2}(X^{1/2}Y))=\operatorname{tr}(X^{1/2}YX^{1/2})\ge0$.

user1551
  • 139,064