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.