Let $\Bbb S_n^{++}$ denote the set of $n \times n$ symmetric positive definite matrices over $\Bbb R$. Let scalar field $f : \Bbb S_n^{++} \to \Bbb R$ be defined by $$ f (X) := \frac1{\sqrt{\det(X)}} $$ Find the gradient $\nabla_X f$.
What I got was
$$\nabla_X f (X) = -\frac12\det(X)^{-\frac32} \operatorname{tr} \left( X^{-1} \right)$$
Is it correct? Full explanation, please.