I am attempting to set up a second-order Taylor method for a second-order ODE $$y''(x) = f(y'(x),y(x))$$ I have substituted a vector $\textbf{u}=(y,y')$ and then a new function $\textbf{g}(x,\textbf{u})=(u^{(2)},f(u^{(2)},u^{(1)}))$
To set up the Taylor method I believe that I need to calculate the total derivative $\frac{d\textbf{g}(x,\textbf{u})}{dx}$ but I'm struggling to do this.
I am able to calculate the partial derivative $\frac{\partial \textbf{g}}{\partial \textbf{u}}$ which I believe comes out as a 2x2 matrix but I am struggling to calculate the partial $\frac{\partial \textbf{g}}{\partial x}$ which I believe is necessary as I am currently working on the assumption that the total derivative I need is $\frac{d\textbf{g}(x,\textbf{u})}{dx}=\frac{\partial \textbf{g}}{\partial x}+\frac{\partial \textbf{g}}{\partial \textbf{u}}\cdot \textbf{g}(x,\textbf{u})$
Am I going about this the right way and if so how do I go about calculating it. Thanks in advance for any help