This is a follow-up to a previous question I asked regarding the hessian of a similar log determinant. The log determinant I am considering is given by $$ L(\vec{x}) = \log \det \left( A^T A + R^T D_x^{-1} R \right), $$ where $x \in \mathbb{R}^q$ with all positive entries, $D_x = \operatorname{diag}(x)$ is a diagonal matrix, and $A \in \mathbb{R}^{p \times n}$, $B \in \mathbb{R}^{q \times n}$.
What is the Hessian of $L(x)$ with respect to $x = (x_1, \ldots, x_q)^T$?
I have determined that the gradient can be written as $$ \nabla_x L(x) = - \operatorname{diag}\left( D_x^{-1} R \left( A^T A + R^T D_x^{-1} R \right)^{-1} R^T D_x^{-1} \right). $$ Using an identity for the $\operatorname{diag}$ operator, this can also be written as $$ \nabla_x L(x) = - \left( \left( D_x^{-1} R \right) \odot \left( D_x^{-1} R \right) \right) \operatorname{diag}\left( \left( A^T A + R^T D_x^{-1} R \right)^{-1} \right). $$ Any advice on how to proceed from here? I am thinking the next step to find the gradient is to apply a product rule to this expression.