2.2.9.5 ✓ Maple. Time used: 0.016 (sec). Leaf size: 6
ode:=diff(diff(x(t),t),t)+x(t) = 0;
ic:=[x(0) = 0, D(x)(0) = 1];
dsolve([ode,op(ic)],x(t), singsol=all);
\begin{align*} x = \sin \left (t \right ) \end{align*}
Maple trace
Methods for second order ODEs:
--- Trying classification methods ---
trying a quadrature
checking if the LODE has constant coefficients
<- constant coefficients successful
Maple step by step
\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \left [\frac {d^{2}}{d t^{2}}x \left (t \right )+x \left (t \right )=0, x \left (0\right )=0, \left (\frac {d}{d t}x \left (t \right )\right )\bigg | {\mstack {}{_{\left \{t \hiderel {=}0\right \}}}}=1\right ] \\ \bullet & {} & \textrm {Highest derivative means the order of the ODE is}\hspace {3pt} 2 \\ {} & {} & \frac {d^{2}}{d t^{2}}x \left (t \right ) \\ \bullet & {} & \textrm {Characteristic polynomial of ODE}\hspace {3pt} \\ {} & {} & r^{2}+1=0 \\ \bullet & {} & \textrm {Use quadratic formula to solve for}\hspace {3pt} r \\ {} & {} & r =\frac {0\pm \left (\sqrt {-4}\right )}{2} \\ \bullet & {} & \textrm {Roots of the characteristic polynomial}\hspace {3pt} \\ {} & {} & r =\left (\mathrm {-I}, \mathrm {I}\right ) \\ \bullet & {} & \textrm {1st solution of the ODE}\hspace {3pt} \\ {} & {} & x_{1}\left (t \right )=\cos \left (t \right ) \\ \bullet & {} & \textrm {2nd solution of the ODE}\hspace {3pt} \\ {} & {} & x_{2}\left (t \right )=\sin \left (t \right ) \\ \bullet & {} & \textrm {General solution of the ODE}\hspace {3pt} \\ {} & {} & x \left (t \right )=\mathit {C1} x_{1}\left (t \right )+\mathit {C2} x_{2}\left (t \right ) \\ \bullet & {} & \textrm {Substitute in solutions}\hspace {3pt} \\ {} & {} & x \left (t \right )=\mathit {C1} \cos \left (t \right )+\mathit {C2} \sin \left (t \right ) \\ \square & {} & \textrm {Check validity of solution}\hspace {3pt} x \left (t \right )=\textit {\_C1} \cos \left (t \right )+\textit {\_C2} \sin \left (t \right ) \\ {} & \circ & \textrm {Use initial condition}\hspace {3pt} x \left (0\right )=0 \\ {} & {} & 0=\textit {\_C1} \\ {} & \circ & \textrm {Compute derivative of the solution}\hspace {3pt} \\ {} & {} & \frac {d}{d t}x \left (t \right )=-\textit {\_C1} \sin \left (t \right )+\textit {\_C2} \cos \left (t \right ) \\ {} & \circ & \textrm {Use the initial condition}\hspace {3pt} \left (\frac {d}{d t}x \left (t \right )\right )\bigg | {\mstack {}{_{\left \{t \hiderel {=}0\right \}}}}=1 \\ {} & {} & 1=\textit {\_C2} \\ {} & \circ & \textrm {Solve for}\hspace {3pt} \textit {\_C1} \hspace {3pt}\textrm {and}\hspace {3pt} \textit {\_C2} \\ {} & {} & \left \{\textit {\_C1} =0, \textit {\_C2} =1\right \} \\ {} & \circ & \textrm {Substitute constant values into general solution and simplify}\hspace {3pt} \\ {} & {} & x \left (t \right )=\sin \left (t \right ) \\ \bullet & {} & \textrm {Solution to the}\hspace {3pt} \hspace {3pt}\textrm {IVP}\hspace {3pt} \\ {} & {} & x \left (t \right )=\sin \left (t \right ) \end {array} \]