How to calculate the gradient with respect to $A$ of $\log(\det(AX))$?
Here, $X$ and $A$ are positive definite matrixes, and $\det$ is the determinant.
How to calculate this? Or, what is the result? Thanks!
How to calculate the gradient with respect to $A$ of $\log(\det(AX))$?
Here, $X$ and $A$ are positive definite matrixes, and $\det$ is the determinant.
How to calculate this? Or, what is the result? Thanks!
Using $\frac{\partial}{\partial \pmb{A}} \text{log(det(}\pmb{A}\text{))} = \pmb{A}^{-T} $ and $\text{log(det(}\pmb{A}\pmb{X}\text{))} = \text{log(det(}\pmb{A}\text{)det(}\pmb{X}\text{)))} = \text{log(det(}\pmb{A}\text{))} + \text{log(det(}\pmb{X}\text{))}$, then $\frac{\partial}{\partial \pmb{A}} \text{log(det(}\pmb{A}\pmb{X}\text{))} = \pmb{A}^{-T} $
If $(A,X)$ were rectangular matrices, then assuming that $M=AX$ is non-singular, you could proceed this way $$\eqalign{\cr f &= \log\det M \cr\cr df &= d\log\det M \cr &= d\operatorname{tr}log M \cr &= M^{-T}:dM \cr &= M^{-T}:dA\,X \cr &= M^{-T}X^T:dA \cr &= (X^TA^T)^{-1}X^T:dA \cr\cr \frac{\partial f}{\partial A} &= (X^TA^T)^{-1}X^T \cr\cr }$$