Let $A \in \mathbb{R}^{n \times n}$ be an invertible matrix, $v \in \mathbb{R}^{n}$ and $\kappa: \mathbb{R}^{n} \rightarrow \mathbb{R} $ . What is $\frac{\partial\ \kappa(A^{-1}v)}{\partial\ A}$?
I've been trying all sorts of equations from the Matrix Cookbook, but none of them leads to success.
For convenience, let's define two new vector variables $$\eqalign{ x &= A^{-1}v \cr g &= \frac{\partial\kappa}{\partial x} \cr }$$ Also, let's use a colon to denote the trace/Frobenius product, i.e. $$A:BC = {\rm tr}(A^TBC)$$ The properties of the trace give rise to lots of rules for rearranging the terms in a Frobenius product, e.g. $$\eqalign{ A:BC &= BC:A \cr &= AC^T:B \cr &= B^TA:C \cr }$$ Write the differential and gradient of the function in terms of these new variables $$\eqalign{ d\kappa &= g:dx \cr &= g:dA^{-1}\,v \cr &= -gv^T:A^{-1}\,dA\,A^{-1} \cr &= -A^{-T}gv^TA^{-T}:dA \cr \frac{\partial\kappa}{\partial A} &= -A^{-T}gv^TA^{-T} \cr }$$ From your other comments, we have an expression for $g$ which we can substitute $$\eqalign{ \frac{\partial\kappa}{\partial A} &= -A^{-T}(-\kappa x)v^TA^{-T} \cr &= \kappa A^{-T}A^{-1}vv^TA^{-T} \cr }$$