Some basic question about matrix calculus. Let $X$, $A$, $B$ be real matrices. Let $\operatorname{Tr}$ denote trace. Is \begin{equation} \frac{d }{dX} \operatorname{Tr}(X^T A XB) \end{equation} equal $(A+ A^T)XB$?
If not, How to compute it?
Some basic question about matrix calculus. Let $X$, $A$, $B$ be real matrices. Let $\operatorname{Tr}$ denote trace. Is \begin{equation} \frac{d }{dX} \operatorname{Tr}(X^T A XB) \end{equation} equal $(A+ A^T)XB$?
If not, How to compute it?
The derivative of $F:X\mapsto X^T A X B =: F(X)$ is $D_V F (X) = V^TAXB+ X^TAVB$ while the derivative of $Y\mapsto Tr(Y)$ is simply
$D_V Tr(X)= Tr (V)$ Hence the derivative of your function is $D_V (Tr\circ F)(X) =DTr(F(X))D_VF(X) = Tr(V^TAXB+ X^TAVB)$