Artificial intelligent assistant

Differentiation of tr$(AD^{-3\alpha}B)$ with respect to scalar $\alpha$, $D$ is positive diagonal. Please, may I know how to differentiate tr$(AD^{-3\alpha}B)$ with respect to scalar $\alpha$. I'm thinking of an approach with the Frobenius inner product, but I'm not conversant with the rules. I'm open to any convenient approach. Thanks. Edit: Let $D$ be positive diagonal so we can have negative powers of $D$.

Define the variables $$\eqalign{ L &= \log(D),\quad \beta = -3\alpha \cr }$$ One nice thing about diagonal matrices is that they can be manipulated almost like scalars. Consider the following diagonal matrix function and its differential. $$\eqalign{ F &= D^\beta = \exp(\beta L) \cr dF &= FL\,d\beta = -3FL\,d\alpha \cr }$$ Write the trace function in terms of the Frobenius (:) product and the $F$-function.
Then find its differential and gradient. $$\eqalign{ \phi &= {\rm Tr}(BAF) = BA:F \cr d\phi &= BA:dF = -3BA:FL\,d\alpha \cr \frac{d\phi}{d\alpha} &= -3BA:FL \cr }$$ **NB:** You stated that the $D$-matrix was non-negative, but that's not good enough. For the logarithm (or negative powers) to make sense, there can be no zeros on its diagonal.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy d4b635b6cc802d9d50753054b30d7d61