1

If the matrices $A$ and $B$ are positive semidefinite, is the scalar field $$ X \mapsto \mbox{tr} \left( X A X^T B \right) $$ always convex? I get an error when I put this in CVX even though I double-checked that $A$ and $B$ do not have negative eigenvalues.


Related: Is the function $X \mapsto \mbox{trace} \left( X X^T \right)$ convex?

2 Answers2

1

Yes, this is $trace(Y Y^T)$ where $Y = B^{1/2} X A^{1/2}$ is a linear function of $X$, so it is indeed convex.

Robert Israel
  • 448,999
  • Indeed; and this in turn means that $\mathop{\textrm{Tr}}(XAX^TB)=|B^{1/2}XA^{1/2}|_F^2$, which can be represented in CVX as square_pos(norm(sqrtm(B)*X*sqrtm(A),'Fro')). – Michael Grant Dec 31 '13 at 06:09
0

If $B$ is positive semi-definite, it is equal to $CC^t,$ so your expression is equal to $\mathrm{trace}((C^t X) A (C^t X)^t).$ This is basically just the Frobenius norm of the vector $C^t X,$ which is a linear function of $X,$ and is convex (strictly if $A, B$ are positive definite, not strictly otherwise).

Igor Rivin
  • 25,994
  • 1
  • 19
  • 40