TITLE: Formula for Nth Derivative of Matrix Inverse
QUESTION [5 upvotes]: I was looking for an equation for the nth derivative of a matrix inverse, ie
$\frac{d^n \bf{A}^{-1}}{dx^n}$
I know that the first derivative
$\frac{\text{d} \bf{A}^{-1}}{\text{d}x} = -\bf{A}^{-1} \frac{\text{d} \bf{A}}{\text{d} x} \bf{A}^{-1}$
But is there some sort of generalization of this without having to chain/product rule it?

REPLY [4 votes]: Let $A(t)$ be any matrix valued function which is invertible and both it and its inverse are real analytic on a neighbor of $t = 0$. For small $t$, we have:
$$\begin{align}
A^{-1}(t) = A(t)^{-1}
= & \left[ A(0) + \sum_{c=1}^{\infty} \frac{A^{(c)}(0)}{c!} t^c \right]^{-1}\\
= & \left[ \left( I + \sum_{c=1}^{\infty} \frac{A^{(c)}(0) A^{-1}(0)}{c!} t^c \right) A(0) \right]^{-1}\\
= & A^{-1}(0) + A^{-1}(0) \sum_{s=1}^{\infty}(-1)^s \left( \prod_{i=1}^{s} \frac{A^{(c_i)}(0) A^{-1}(0)}{c_i!}\right) t^{\sum_{i=1}^s c_i}
\end{align}$$
For simplicity of further discussion, we will use $A, A^{-1}$ and $A^{(c)}$ as a short hand
for their value evaluated at $0$. If one compare above expansion with the 
regular taylor series expansion of $A^{-1}(t)$ at $t = 0$, we find for $n \ge 1$, 
$$
\frac{d^n A^{-1}}{dt^n} 
= n!\sum_{s=1}^n (-1)^s\!\!\!\!\sum_{\stackrel{1 \le c_1,\ldots,c_s \le n}{c_1+\cdots+c_s=n}} \left\{A^{-1} \prod_{i=1}^{s} 
\left( \frac{A^{(c_s)}}{c_s!} A^{-1}\right)\right\}
$$
Or expanding everyting out,
$$\begin{align}
\frac{d^n A^{-1}}{dx^n}
= - A^{-1}A^{(n)}A^{-1} & 
+ \;\;\sum_{\stackrel{1 \le c_1, c_2 < n}{c_1+c_2 = n}}\frac{n!}{c_1!c_2!}A^{-1}A^{(c_1)} A^{-1} A^{(c_2)} A^{-1}\\
  & - \sum_{\stackrel{1 \le c_1, c_2, c_3 < n}{c_1+c_2+c_3=n}}\frac{n!}{c_1!c_2!c_3!}A^{-1}A^{(c_1)} A^{-1} A^{(c_2)}A^{-1} A^{(c_3)} A^{-1}\\
  & \;\;\vdots
\end{align}$$
The recipe is you find all possible ways of writing $n$ as a sum of positive integers $c_1, c_2, \ldots, c_s$, calculate corresponding 
derivatives $A^{(c_1)}, A^{(c_2)}, \ldots$, sandwiching and join them by a bunch of $A^{-1}$. Multiply each factor by $\displaystyle (-1)^s \frac{n!}{\prod_{i=1}^{s}c_s!}$ and sum the resulting mess.
Please note that when $A(t)$ is not real analytic, above derivation of course no longer works. However, the above recipe of writing down the expansion continues to work. You can
derive them the hard way by repeat application of chain rule.