Let $f : Gl_{n}(\mathbb{R}) \to Gl_{n}(\mathbb{R})$ defined by $f(X)=X^{-1}$. Compute $f''(X)(H,K)$.
I calculated $f'(X).H=-X^{-1}HX^{-1}$ so I tried to use some composition of linear functions but did not find the appropriate functions. Can anyone help me in this matter?
Let $f (\mathrm X) := \mathrm X^{-1}$. Hence,
$$\begin{array}{rl} f (\mathrm X + h \mathrm V) &= (\mathrm X + h \mathrm V)^{-1}\\ &= \left(\mathrm X \left(\mathrm I + h \mathrm X^{-1} \mathrm V \right) \right)^{-1}\\ &= \left(\mathrm I + h \mathrm X^{-1} \mathrm V \right)^{-1} \mathrm X^{-1}\\ &\approx \left(\mathrm I - h \mathrm X^{-1} \mathrm V + h^2 \mathrm X^{-1} \mathrm V \mathrm X^{-1} \mathrm V \right) \mathrm X^{-1}\\ &= f (\mathrm X) - h \mathrm X^{-1} \mathrm V \mathrm X^{-1} + h^2 \mathrm X^{-1} \mathrm V \mathrm X^{-1} \mathrm V \mathrm X^{-1}\end{array}$$
Thus, the 2nd directional derivative of $f$ in the direction of $\mathrm V$ at $\mathrm X$ is $\color{blue}{2 \mathrm X^{-1} \mathrm V \mathrm X^{-1} \mathrm V \mathrm X^{-1}}$.