2.2.11.4 Maple. Time used: 0.022 (sec). Leaf size: 9
ode:=diff(diff(x(t),t),t)-2*diff(x(t),t)+2*x(t) = 0; 
ic:=[x(0) = 0, D(x)(0) = 1]; 
dsolve([ode,op(ic)],x(t), singsol=all);
 
\begin{align*} x = {\mathrm e}^{t} \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 )-2 \frac {d}{d t}x \left (t \right )+2 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}-2 r +2=0 \\ \bullet & {} & \textrm {Use quadratic formula to solve for}\hspace {3pt} r \\ {} & {} & r =\frac {2\pm \left (\sqrt {-4}\right )}{2} \\ \bullet & {} & \textrm {Roots of the characteristic polynomial}\hspace {3pt} \\ {} & {} & r =\left (1-\mathrm {I}, 1+\mathrm {I}\right ) \\ \bullet & {} & \textrm {1st solution of the ODE}\hspace {3pt} \\ {} & {} & x_{1}\left (t \right )={\mathrm e}^{t} \cos \left (t \right ) \\ \bullet & {} & \textrm {2nd solution of the ODE}\hspace {3pt} \\ {} & {} & x_{2}\left (t \right )={\mathrm e}^{t} \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} \,{\mathrm e}^{t} \cos \left (t \right )+\mathit {C2} \,{\mathrm e}^{t} \sin \left (t \right ) \\ \square & {} & \textrm {Check validity of solution}\hspace {3pt} x \left (t \right )=\textit {\_C1} {\mathrm e}^{t} \cos \left (t \right )+\textit {\_C2} {\mathrm e}^{t} \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} \,{\mathrm e}^{t} \cos \left (t \right )-\textit {\_C1} \,{\mathrm e}^{t} \sin \left (t \right )+\textit {\_C2} \,{\mathrm e}^{t} \sin \left (t \right )+\textit {\_C2} \,{\mathrm e}^{t} \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 {\_C1} +\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 )={\mathrm e}^{t} \sin \left (t \right ) \\ \bullet & {} & \textrm {Solution to the}\hspace {3pt} \hspace {3pt}\textrm {IVP}\hspace {3pt} \\ {} & {} & x \left (t \right )={\mathrm e}^{t} \sin \left (t \right ) \end {array} \]