Basically, I have an equation in the form
$$ f = \left \| A^{-1} \right \|^2 $$
I need to differentiate the above equation wrt A.
The matrix A is just a 2X2 matrix so I tried to solve it by brute force. It worked but the solution is very long. Not to mention, it is very time-consuming. I was wondering if there is a general method to solve this problem that will work for any order of matrix A.
Wikipedia tells us: $$\|M\|=\sqrt{\mathrm{tr}(A^*A)}$$ Thus \begin{align*} \|A+tX\|^2&=\mathrm{tr}(A^*A+tX^*A+tA^*X+t^2X^*X) \\ &=\mathrm{tr}(A^*A)+2t\,\mathrm{tr}(X^*A)+t^2\mathrm{tr}(X^*X) \end{align*} by linearity, conjugation invariance, and cyclic invariance. Looking for the linear term, $$D_A{(\|A\|^2)}(X)=2\mathrm{tr}(X^*A)$$ Likewise, $$D_A(A^{-1})(X)=-A^{-1}XA^{-1}$$ Thus by the chain rule, $$D_A{(\|A^{-1}\|^2)}(X)=2\mathrm{tr}((-A^{-1}XA^{-1})^*A^{-1})$$