Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It only takes a minute to sign up.
Let matrices $A, B \in \mathbb{R}^{n \times n}$ be positive semidefinite (PSD). Let $B = V V^T$, where $V \in \mathbb{R}^{n \times n}$. Why does the last equality hold in the following?
$$ \mbox{tr} (A B) = \mbox{tr} \left(A V V^T\right) = \mbox{tr} \left(V^T A V\right)$$
$\begingroup$Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.$\endgroup$
That's due to the cyclic property of the trace operator:
$$\operatorname{tr}(\mathbf{A}\mathbf{B}\mathbf{C}\mathbf{D}) = \operatorname{tr}(\mathbf{B}\mathbf{C}\mathbf{D}\mathbf{A}) = \operatorname{tr}(\mathbf{C}\mathbf{D}\mathbf{A}\mathbf{B}) = \operatorname{tr}(\mathbf{D}\mathbf{A}\mathbf{B}\mathbf{C}).$$
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.