Suppose I have the following expression:
$$\dot{\mathbf{x}}^\intercal\left(\mathbf{A}-\mathbf{B}\mathbf{D}^{-1}\mathbf{B}^\intercal\right)\dot{\mathbf{x}}$$
where $\mathbf{x}(t)\in \mathbb{R}^{m}$ is a vector and $\mathbf{A}\in \mathbb{R}^{m\times m}, \mathbf{B}\in \mathbb{R}^{m\times (m-n)}$ and $\mathbf{D}\in \mathbb{R}^{(m-n)\times(m-n)}$ are matrices that are dependent on $\mathbf{x}(t)$.
Derivation of the expression with respect to $\dot{\mathbf{x}}$ yields
$$2\dot{\mathbf{x}}^\intercal\left(\mathbf{A}-\mathbf{B}\mathbf{D}^{-1}\mathbf{B}^\intercal\right)$$
according to the rules discussed in this Wikipedia article about matrix calculus.
What happens if I would like to further derive this expression w.r.t. time?
So my question in short: What does this expression equal to?
$$\dfrac{\text{d}}{\text{d}t}\left(\dfrac{\partial}{\partial \dot{\mathbf{x}}}\left(\dot{\mathbf{x}}^\intercal\left(\mathbf{A}(\mathbf{x}(t))-\mathbf{B}(\mathbf{x}(t))\mathbf{D}^{-1}(\mathbf{x}(t))\mathbf{B}^\intercal(\mathbf{x}(t))\right)\dot{\mathbf{x}}\right)\right)$$
Thank you in advance!