What is the second derivative of $f^{-1}(g(x))$?
$f^{-1}$ is the inverse of $f$:
The first derivative of $f^{-1}(x)$ is given by $\frac{1}{f'(f^{-1}(x))}$
The second derivative of $f^{-1}(x)$ is given by $-\frac{f''(f^{-1}(x))}{[f'(f^{-1}(x))]^3}$
The second derivative of $f(g(x))$ (by the chain rule) is given by $g'(x)^2\cdot f''(g(x))+g''(x) \cdot f'(g(x))$. Substituting the derivatives into this equation, we have that the second derivative of $f^{-1}(g(x))$ is
$$-\frac{g'(x)^2\cdot f''(f^{-1}(g(x)))}{[f'(f^{-1}(g(x)))]^3}+\frac{g''(x)}{f'(f^{-1}(g(x)))}$$
Which is the same as
$$\frac{g''(x)*[f'(f^{-1}(g(x))]^2-g'(x)^2*f''(f^{-1}(g(x)))}{[f'(f^{-1}(g(x)))]^3}$$
Is this correct?
You result seems correct here is an alternative way
Let $h(x) =f^{-1}(g(x)) $ then $$h'(x) =g'(x)(f^{-1})'(g(x)) =g'(x)\frac{1}{f'f^{-1}(g(x))}$$ $$h''(x) =g''(x)\frac{1}{f'f^{-1}(g(x))} +g'(x)\left(\frac{1}{f'f^{-1}(g(x))}\right)'\\=g''(x)\frac{1}{f'f^{-1}(g(x))} -g'(x)\frac{\left(f'(f^{-1}(g(x)))\right)'}{\left(f'f^{-1}(g(x))\right)^2}$$
and $$\left(f'(f^{-1}(g(x)))\right)'=f''(f^{-1}(g(x)))\left(f^{-1}(g(x))\right)' \\= f''(f^{-1}(g(x)))g'(x)\left(f^{-1}\right)'(g(x))\\= \frac{g'(x)f''(f^{-1}(g(x)))}{f'f^{-1}(g(x))}$$
Thus, $$h''(x) =\frac{g''(x)}{f'f^{-1}(g(x))} -g'(x)^2\frac{f''(f^{-1}(g(x)))}{\left(f'f^{-1}(g(x))\right)^3}$$