I'm trying to work out the derivative of $Tr(A\log(X))$ with respect to $X$. Assume $X$ is positive so the $\log$ is well defined. I know that
$$Tr(A\log(X)) = A^\dagger: \log(X)$$
but what I should be doing is to express it in the form $F : X$ similar to this answer so that I can take $d Tr(A(\log(X)) = F: dX$. How can I proceed?
$ \def\LR#1{\left(#1\right)} \def\op#1{\operatorname{#1}} \def\trace#1{\op{Tr}\LR{#1}} \def\Diag#1{\op{Diag}\LR{#1}} \def\diag#1{\op{diag}\LR{#1}} \def\qiq{\quad\implies\quad} \def\p{\partial} \def\grad#1#2{\frac{\p #1}{\p #2}} \def\c#1{\color{red}{#1}} \def\CLR#1{\c{\LR{#1}}} $For typing convenience, define $$F = \log(X)$$ Then write the function and calculate its differential $$\eqalign{ \phi &= A:F \qiq d\phi &= A:\c{dF} \\ }$$ A positive definite matrix can be diagonalized with orthogonal factors $$\eqalign{ X &= QBQ^T,\quad B=\Diag b,\quad Q^TQ=I \\ }$$ The Daleckii-Krein theorem says that $$\eqalign{ Q^T dF\:Q &= R\odot\LR{Q^T dX\:Q} \\ dF &=Q\LR{R\odot\LR{Q^T dX\:Q}}Q^T \\ }$$ where $(\odot)$ denotes the Hadamard product.
Substituting into the previous differential yields $$\eqalign{ d\phi &= A:\c{Q\LR{R\odot\LR{Q^T dX\:Q}}Q^T} \\ &= Q\LR{R\odot\LR{Q^TAQ}}Q^T:dX \\ \grad{\phi}{X} &= Q\LR{R\odot\LR{Q^TAQ}}Q^T \\ }$$ All that remains is to calculate the symmetric $R$ matrix which lies at the heart of the theorem $$\eqalign{ R_{ij} = \begin{cases} {\Large\frac{f(b_i)-f(b_j)}{b_i-b_j}} \qquad{\rm if}\;b_i\ne b_j \\ \\ \quad f'(b_j) \qquad\qquad {\rm otherwise} \\ \end{cases} }$$ NB:$\:$ For the current problem $$f(b_j) = \log(b_j),\qquad f'(b_j) = \frac{\tt1}{b_j}$$