I have a 2nd ODE: ${d^2u \over dt^2} =5tu+\sin ({du\over dt})$, $u(0)=1$, ${du\over dt}(0)=0$. Iwas reading my notes and it asked to write the 2nd order ODE as a system of 1st order ODEs. And then to construct a forward euler discretisation of the ODE with step size $\tau =1/2$ and interval $[0,2]$.
What was done in the notes was:
$\text{Let }v={du \over dt}\\{dv \over dt}={d^2u \over dt^2}\\ \Rightarrow {dv \over dt}=5tu+\sin v, \ v(0)=0.$
I understood the above, but I'm not sure what was done after that. Could someone explain to me what was done below? Let
$w= \left( \begin{array}{c} u \\ v \end{array} \right)$, then ${dw \over dt}=f(t,w), \ w(0)=w_0$ where $f(t,w)=\left( \begin{array}{c} v \\ 5tu+\sin v \end{array} \right)$ and $w_0=\left( \begin{array}{c} 1 \\ 0 \end{array} \right)$
Continuing on from there, how does the following work? In particular how does $f(t_0, W^0)= \left( \begin{array}{c} V^0 \\ 5\cdot 0 \cdot U^0 + \sin V^0 \end{array} \right) = \left( \begin{array}{c} 0 \\ 0 \end{array} \right)$?
Forward euler for the 1st order system: Given $W^0=w_0$, find $W^{n+1}$ such that $W^{n+1}=W^n+\tau f(t_n,w)$.
$n=0$, $W^0= \left( \begin{array}{c} 1 \\ 0 \end{array} \right) \\f(t_0, W^0)= \left( \begin{array}{c} V^0 \\ 5\cdot 0 \cdot U^0 + \sin V^0 \end{array} \right) = \left( \begin{array}{c} 0 \\ 0 \end{array} \right) \\ \Rightarrow W^1 = W^0 +\tau \left( \begin{array}{c} 0 \\ 0 \end{array} \right) \Rightarrow W^1 = W^0$
