I googled and found that the derivative of the trace of the product:
$$\frac{d}{dX} \mbox{Trace} (X^TX) = 2X$$
But I can't find:
$$\frac{d}{dX} \mbox{Trace} (XX^T)$$
I don't major in mathematics, so I don't know how to derive this. Could anyone help me out?
$tr(X+H)=Tr((X+H)(X+H)^T)=Tr(XX^T+XH^T+HX^T+HH^T)=f(X)+Tr(XH^T+HX^T)+O(H)$ implies that the derivative is $df_X(H)=Tr(XH^T+HX^T)$.