For a given square symmetric invertible matrix $\mathbf{X}$ and scalar $\alpha$ (such that the entries of $\mathbf{X}$ depend on $\alpha$), I would like to use the following well-known expression for the derivative of the determinant wrt a scalar (e.g. see wikipedia):
$$ \frac{\partial}{\partial \alpha} \det(\mathbf{X}) = \det(\mathbf{X}) \operatorname{tr} \left( \mathbf{X}^{-1} \frac{\partial \mathbf{X}}{\partial \alpha} \right) $$
However, I am concerned that this expression may not apply when there exists any kind of special "structure" in the matrix (e.g. an $n \times n$ symmetric matrix contains fewer than $n^2$ independent entries).
Consider for a moment another situation, where such structure matters: differentiating the determinant wrt the matrix entries (instead of a scalar). First, let $\mathbf{Y}$ be a square invertible "unstructured" matrix (i.e. all elements are independent). It is well-known (e.g. see The Matrix Cookbook section 2.1.2, or wikipedia) that, in this case:
$$ \frac{\partial}{\partial \mathbf{Y}} \det(\mathbf{Y}) = \det(\mathbf{Y}) \, (\mathbf{Y}^{-1})^T $$
Now consider $\mathbf{X}$ again, a square symmetric matrix. In this case, the entries are no longer independent (as described in The Matrix Cookbook, beginning of section 2.8), so we have instead (see section 2.8.2 for the symmetric case):
$$ \frac{\partial}{\partial \mathbf{X}} \det(\mathbf{X}) = \det(\mathbf{X}) \, (2 \mathbf{X}^{-1} - (\mathbf{X}^{-1} \circ \mathbf{I})) $$
So, when differentiating the determinant wrt matrix entries, the matrix structure clearly matters.
Here is my question: when differentiating a matrix determinant wrt a scalar, does the matrix structure matter? And if so, what is the correct expression for $\frac{\partial}{\partial \alpha} \det(\mathbf{X})$ for the specific case where $\mathbf{X}$ is symmetric?