I have been trying to differentiate the following function with respect to time
$$ t \mapsto \frac{1}{2}\dot{f}(t)^T A (f)\dot{f}(t) $$
but I am struggling with the chain rule for matrix calculus. Here, $f$ is a vector dependent on time and the matrix is a function of the vector $f$. I tried following these ideas but didn't come very far. Any help would be appreciated!
$ \def\Diag{\operatorname{Diag}} \def\a{\alpha}\def\b{\beta}\def\l{\lambda} \def\h{\frac 12} \def\E{{\cal E}} \def\qiq{\quad\implies\quad} $For ease of typing define $$\eqalign{ v &= \dot f &\big({\rm velocity}\big) \\ a &= \dot v = \ddot f \qquad&\big({\rm acceleration}\big) \\ }$$ then it is straightforward to calculate the derivative of the given expression $$\eqalign{ \E &= \h \Big(v^TAv\Big) \\ \dot\E &= \h \Big(a^TAv+v^T\dot Av+v^TAa\Big) \\ &= v^TAa + \frac{v^T\dot Av}{2} \\ }$$ Now consider three plausible formulas for the symmetric $A$ matrix $$\eqalign{ A &= ff^T &\qiq \dot A = vf^T+fv^T \\ A &= \Diag(f) &\qiq \dot A = \Diag(v) \\ A &= fb^T + bf^T &\qiq \dot A = vb^T+bv^T \\ }$$ So the calculation of $\dot A$ is seldom a difficult problem.