We follow the same procedure as the previous example. We define variables \(u_1\text{,}\) \(u_2\text{,}\) \(u_3\) as
\begin{equation*}
u_1 = x \quad u_2 = x' \quad u_3 = x''
\end{equation*}
so that we have the differential equations
\begin{equation*}
u_1' = u_2 \quad u_2' = u_3 \quad u_3' = x''' = 4e^tu_3 - 3u_2^2 + t^2\sin(u_1) + (t^2 + 1)
\end{equation*}
which we can write in vector form as
\begin{equation*}
\vec{u}' = \begin{bmatrix} u_1'\\ u_2'\\ u_3' \end{bmatrix} = \begin{bmatrix} u_2 \\ u_3 \\ 4e^tu_3 - 3u_2^2 + t^2\sin(u_1) + (t^2 + 1) \end{bmatrix}.
\end{equation*}
We would now want to try to convert this into matrix form. However, the matrix that we come up with should not depend on \(u\) at all. In this case, it would mean that we want to write this equation as
\begin{equation*}
\vec{u}\ ` = \begin{bmatrix} * & * & * \\ * & * & * \\ * & * & * \end{bmatrix} \begin{bmatrix} u_1 \\ u_2 \\ u_3 \end{bmatrix} + \begin{bmatrix} 0 \\ 0 \\ t^2 + 1 \end{bmatrix}
\end{equation*}
since the extra term needs to be everything that does not depend on \(u\text{.}\) However, while we can determine the first two rows of the matrix, we can not determine the last row. There is no way to pick terms independent of \(u\) to fill in the three stars in the bottom row in order to make the bottom term in the matrix-vector product to equal \(4e^tu_3 - 3u_2^2 + t^2\sin(u_1)\text{.}\) The issue here is that the equation is non-linear; the \(u_2^2\) term and the \(\sin(u_1)\) term can not be written in this way. Therefore, the best we can do is the vector form, and it canβt be written in matrix form.
The last thing we need to deal with is the initial conditions. Since the conditions say that
\begin{equation*}
x(0) = 2,\ x'(0) = -1,\ x''(0) = 4
\end{equation*}
and we have that \(u_1 = x,\ u_2 = x',\ u_3 = x''\text{,}\) this means that the initial condition should be
\begin{equation*}
u_1(0) = 2,\ u_2(0) = -1,\ u_3(0) = 4,
\end{equation*}
or
\begin{equation*}
\vec{u}(0) = \begin{bmatrix} 2 \\ -1 \\ 4 \end{bmatrix}.
\end{equation*}
Thus, the full way to write this initial value problem in system form is
\begin{equation*}
\vec{u}' = \begin{bmatrix} u_2 \\ u_3 \\ 4e^tu_3 - 3u_2^2 + t^2\sin(u_1) + (t^2 + 1) \end{bmatrix} \qquad \vec{u}(0) = \begin{bmatrix} 2 \\ -1 \\ 4 \end{bmatrix}.
\end{equation*}