Let $b$ be a column vector, $A$ a symmetric square matrix and $X$ a square matrix. Define the scalar $$ f(X) = b^T(I-X)^{-1}A((I-X)^{-1})^Tb. $$ I would like to find an expression for $\frac{dF}{dX}$. Note that this should be a matrix.
The question derivative of inverse matrix by itself provides an answer for a simpler expression, but I am not able to adapt the derivations to the current setup.