[Math] Does a positive semidefinite matrix always have a non-negative trace

matricespositive-semidefinitetrace

If $A$ is a positive semidefinite matrix ($A\succeq 0)$, does it imply that $\mbox{Tr}(A)\geq 0$, where the $\mbox{Tr}(\cdot)$ denotes the trace.

If not, any counter-example? Thanks.

Best Answer

Suppose that $A = [a_{ij}]_{i,j=1}^n$ is such that $a_{ii} < 0$ for some $i$. Let $e_i$ be the $i$th standard basis vector; that is, $$ e_i = (\overbrace{0,\cdots,0}^{i-1},1,0,\dots,0) $$ then $e_i^T Ae_i = a_{ii} < 0$, which means that $A$ is not positive semidefinite.

So, if $A$ is positive semidefinite, then all diagonal elements are non-negative, which means that the trace is non-negative.