I have a dynamical system whose state is a vector $\mathbf{y}\in \mathbf{R}^m$. The vectors $\mathbf{y},\dot{\mathbf{y}},\ddot{\mathbf{y}}\in \mathbf{R}^m$ relate to the vectors $\mathbf{z},\dot{\mathbf{z}},\ddot{\mathbf{z}}\in \mathbf{R}^n$ through the transformations \begin{align} \mathbf{y}&=g(\mathbf{z})\\ \dot{\mathbf{y}}&=J(\mathbf{z})\dot{\mathbf{z}}\\ \ddot{\mathbf{y}}&=J(\mathbf{z})\ddot{\mathbf{z}} + \dot{J}(\mathbf{z})\dot{\mathbf{z}} \end{align} where $J$ is the Jacobian matrix of the nonlinear transformation $g$.
What are the entries of $\dot{J}(\mathbf{z})$? For example, if $J_{ij}=\frac{\partial y_i}{\partial z_j}=a\sin(z_j)$, then what is $\dot{J}_{ij}$?
(There is a similar but unanswered question here.)