20.4 problem 4

20.4.1 Existence and uniqueness analysis
20.4.2 Solved as second order linear constant coeff ode
20.4.3 Solved as second order ode using Kovacic algorithm
20.4.4 Solved as second order ode adjoint method
20.4.5 Maple step by step solution
20.4.6 Maple trace
20.4.7 Maple dsolve solution
20.4.8 Mathematica DSolve solution

Internal problem ID [15544]
Book : INTRODUCTORY DIFFERENTIAL EQUATIONS. Martha L. Abell, James P. Braselton. Fourth edition 2014. ElScAe. 2014
Section : Chapter 5. Applications of Higher Order Equations. Exercises 5.2, page 241
Problem number : 4
Date solved : Friday, October 18, 2024 at 01:40:10 PM
CAS classification : [[_2nd_order, _missing_x]]

Solve

\begin{align*} 4 x^{\prime \prime }+2 x^{\prime }+8 x&=0 \end{align*}

With initial conditions

\begin{align*} x \left (0\right )&=0\\ x^{\prime }\left (0\right )&=2 \end{align*}

20.4.1 Existence and uniqueness analysis

This is a linear ODE. In canonical form it is written as

\begin{align*} x^{\prime \prime } + p(t)x^{\prime } + q(t) x &= F \end{align*}

Where here

\begin{align*} p(t) &={\frac {1}{2}}\\ q(t) &=2\\ F &=0 \end{align*}

Hence the ode is

\begin{align*} x^{\prime \prime }+\frac {x^{\prime }}{2}+2 x = 0 \end{align*}

The domain of \(p(t)={\frac {1}{2}}\) is

\[ \{-\infty <t <\infty \} \]

And the point \(t_0 = 0\) is inside this domain. The domain of \(q(t)=2\) is

\[ \{-\infty <t <\infty \} \]

And the point \(t_0 = 0\) is also inside this domain. Hence solution exists and is unique.

20.4.2 Solved as second order linear constant coeff ode

Time used: 0.147 (sec)

This is second order with constant coefficients homogeneous ODE. In standard form the ODE is

\[ A x''(t) + B x'(t) + C x(t) = 0 \]

Where in the above \(A=4, B=2, C=8\). Let the solution be \(x=e^{\lambda t}\). Substituting this into the ODE gives

\[ 4 \lambda ^{2} {\mathrm e}^{t \lambda }+2 \lambda \,{\mathrm e}^{t \lambda }+8 \,{\mathrm e}^{t \lambda } = 0 \tag {1} \]

Since exponential function is never zero, then dividing Eq(2) throughout by \(e^{\lambda t}\) gives

\[ 4 \lambda ^{2}+2 \lambda +8 = 0 \tag {2} \]

Equation (2) is the characteristic equation of the ODE. Its roots determine the general solution form.Using the quadratic formula

\[ \lambda _{1,2} = \frac {-B}{2 A} \pm \frac {1}{2 A} \sqrt {B^2 - 4 A C} \]

Substituting \(A=4, B=2, C=8\) into the above gives

\begin{align*} \lambda _{1,2} &= \frac {-2}{(2) \left (4\right )} \pm \frac {1}{(2) \left (4\right )} \sqrt {2^2 - (4) \left (4\right )\left (8\right )}\\ &= -{\frac {1}{4}} \pm \frac {i \sqrt {31}}{4} \end{align*}

Hence

\begin{align*} \lambda _1 &= -{\frac {1}{4}} + \frac {i \sqrt {31}}{4}\\ \lambda _2 &= -{\frac {1}{4}} - \frac {i \sqrt {31}}{4} \end{align*}

Which simplifies to

\begin{align*} \lambda _1 &= -\frac {1}{4}+\frac {i \sqrt {31}}{4} \\ \lambda _2 &= -\frac {1}{4}-\frac {i \sqrt {31}}{4} \\ \end{align*}

Since roots are complex conjugate of each others, then let the roots be

\[ \lambda _{1,2} = \alpha \pm i \beta \]

Where \(\alpha =-{\frac {1}{4}}\) and \(\beta =\frac {\sqrt {31}}{4}\). Therefore the final solution, when using Euler relation, can be written as

\[ x = e^{\alpha t} \left ( c_1 \cos (\beta t) + c_2 \sin (\beta t) \right ) \]

Which becomes

\[ x = e^{-\frac {t}{4}}\left (c_1 \cos \left (\frac {\sqrt {31}\, t}{4}\right )+c_2 \sin \left (\frac {\sqrt {31}\, t}{4}\right )\right ) \]

Will add steps showing solving for IC soon.

(a) Solution plot
\(x = \frac {8 \,{\mathrm e}^{-\frac {t}{4}} \sqrt {31}\, \sin \left (\frac {\sqrt {31}\, t}{4}\right )}{31}\)

(b) Slope field plot
\(4 x^{\prime \prime }+2 x^{\prime }+8 x = 0\)
20.4.3 Solved as second order ode using Kovacic algorithm

Time used: 0.187 (sec)

Writing the ode as

\begin{align*} 4 x^{\prime \prime }+2 x^{\prime }+8 x &= 0 \tag {1} \\ A x^{\prime \prime } + B x^{\prime } + C x &= 0 \tag {2} \end{align*}

Comparing (1) and (2) shows that

\begin{align*} A &= 4 \\ B &= 2\tag {3} \\ C &= 8 \end{align*}

Applying the Liouville transformation on the dependent variable gives

\begin{align*} z(t) &= x e^{\int \frac {B}{2 A} \,dt} \end{align*}

Then (2) becomes

\begin{align*} z''(t) = r z(t)\tag {4} \end{align*}

Where \(r\) is given by

\begin{align*} r &= \frac {s}{t}\tag {5} \\ &= \frac {2 A B' - 2 B A' + B^2 - 4 A C}{4 A^2} \end{align*}

Substituting the values of \(A,B,C\) from (3) in the above and simplifying gives

\begin{align*} r &= \frac {-31}{16}\tag {6} \end{align*}

Comparing the above to (5) shows that

\begin{align*} s &= -31\\ t &= 16 \end{align*}

Therefore eq. (4) becomes

\begin{align*} z''(t) &= -\frac {31 z \left (t \right )}{16} \tag {7} \end{align*}

Equation (7) is now solved. After finding \(z(t)\) then \(x\) is found using the inverse transformation

\begin{align*} x &= z \left (t \right ) e^{-\int \frac {B}{2 A} \,dt} \end{align*}

The first step is to determine the case of Kovacic algorithm this ode belongs to. There are 3 cases depending on the order of poles of \(r\) and the order of \(r\) at \(\infty \). The following table summarizes these cases.

Case

Allowed pole order for \(r\)

Allowed value for \(\mathcal {O}(\infty )\)

1

\(\left \{ 0,1,2,4,6,8,\cdots \right \} \)

\(\left \{ \cdots ,-6,-4,-2,0,2,3,4,5,6,\cdots \right \} \)

2

Need to have at least one pole that is either order \(2\) or odd order greater than \(2\). Any other pole order is allowed as long as the above condition is satisfied. Hence the following set of pole orders are all allowed. \(\{1,2\}\),\(\{1,3\}\),\(\{2\}\),\(\{3\}\),\(\{3,4\}\),\(\{1,2,5\}\).

no condition

3

\(\left \{ 1,2\right \} \)

\(\left \{ 2,3,4,5,6,7,\cdots \right \} \)

Table 319: Necessary conditions for each Kovacic case

The order of \(r\) at \(\infty \) is the degree of \(t\) minus the degree of \(s\). Therefore

\begin{align*} O\left (\infty \right ) &= \text {deg}(t) - \text {deg}(s) \\ &= 0 - 0 \\ &= 0 \end{align*}

There are no poles in \(r\). Therefore the set of poles \(\Gamma \) is empty. Since there is no odd order pole larger than \(2\) and the order at \(\infty \) is \(0\) then the necessary conditions for case one are met. Therefore

\begin{align*} L &= [1] \end{align*}

Since \(r = -{\frac {31}{16}}\) is not a function of \(t\), then there is no need run Kovacic algorithm to obtain a solution for transformed ode \(z''=r z\) as one solution is

\[ z_1(t) = \cos \left (\frac {\sqrt {31}\, t}{4}\right ) \]

Using the above, the solution for the original ode can now be found. The first solution to the original ode in \(x\) is found from

\begin{align*} x_1 &= z_1 e^{ \int -\frac {1}{2} \frac {B}{A} \,dt} \\ &= z_1 e^{ -\int \frac {1}{2} \frac {2}{4} \,dt} \\ &= z_1 e^{-\frac {t}{4}} \\ &= z_1 \left ({\mathrm e}^{-\frac {t}{4}}\right ) \\ \end{align*}

Which simplifies to

\[ x_1 = {\mathrm e}^{-\frac {t}{4}} \cos \left (\frac {\sqrt {31}\, t}{4}\right ) \]

The second solution \(x_2\) to the original ode is found using reduction of order

\[ x_2 = x_1 \int \frac { e^{\int -\frac {B}{A} \,dt}}{x_1^2} \,dt \]

Substituting gives

\begin{align*} x_2 &= x_1 \int \frac { e^{\int -\frac {2}{4} \,dt}}{\left (x_1\right )^2} \,dt \\ &= x_1 \int \frac { e^{-\frac {t}{2}}}{\left (x_1\right )^2} \,dt \\ &= x_1 \left (\frac {4 \sqrt {31}\, \tan \left (\frac {\sqrt {31}\, t}{4}\right )}{31}\right ) \\ \end{align*}

Therefore the solution is

\begin{align*} x &= c_1 x_1 + c_2 x_2 \\ &= c_1 \left ({\mathrm e}^{-\frac {t}{4}} \cos \left (\frac {\sqrt {31}\, t}{4}\right )\right ) + c_2 \left ({\mathrm e}^{-\frac {t}{4}} \cos \left (\frac {\sqrt {31}\, t}{4}\right )\left (\frac {4 \sqrt {31}\, \tan \left (\frac {\sqrt {31}\, t}{4}\right )}{31}\right )\right ) \\ \end{align*}

Will add steps showing solving for IC soon.

(a) Solution plot
\(x = \frac {8 \,{\mathrm e}^{-\frac {t}{4}} \sqrt {31}\, \sin \left (\frac {\sqrt {31}\, t}{4}\right )}{31}\)

(b) Slope field plot
\(4 x^{\prime \prime }+2 x^{\prime }+8 x = 0\)
20.4.4 Solved as second order ode adjoint method

Time used: 1.251 (sec)

In normal form the ode

\begin{align*} 4 x^{\prime \prime }+2 x^{\prime }+8 x = 0 \tag {1} \end{align*}

Becomes

\begin{align*} x^{\prime \prime }+p \left (t \right ) x^{\prime }+q \left (t \right ) x&=r \left (t \right ) \tag {2} \end{align*}

Where

\begin{align*} p \left (t \right )&={\frac {1}{2}}\\ q \left (t \right )&=2\\ r \left (t \right )&=0 \end{align*}

The Lagrange adjoint ode is given by

\begin{align*} \xi ^{''}-(\xi \, p)'+\xi q &= 0\\ \xi ^{''}-\left (\frac {\xi \left (t \right )}{2}\right )' + \left (2 \xi \left (t \right )\right ) &= 0\\ \xi ^{\prime \prime }\left (t \right )-\frac {\xi ^{\prime }\left (t \right )}{2}+2 \xi \left (t \right )&= 0 \end{align*}

Which is solved for \(\xi (t)\). This is second order with constant coefficients homogeneous ODE. In standard form the ODE is

\[ A \xi ''(t) + B \xi '(t) + C \xi (t) = 0 \]

Where in the above \(A=1, B=-{\frac {1}{2}}, C=2\). Let the solution be \(\xi =e^{\lambda t}\). Substituting this into the ODE gives

\[ \lambda ^{2} {\mathrm e}^{t \lambda }-\frac {\lambda \,{\mathrm e}^{t \lambda }}{2}+2 \,{\mathrm e}^{t \lambda } = 0 \tag {1} \]

Since exponential function is never zero, then dividing Eq(2) throughout by \(e^{\lambda t}\) gives

\[ \lambda ^{2}-\frac {1}{2} \lambda +2 = 0 \tag {2} \]

Equation (2) is the characteristic equation of the ODE. Its roots determine the general solution form.Using the quadratic formula

\[ \lambda _{1,2} = \frac {-B}{2 A} \pm \frac {1}{2 A} \sqrt {B^2 - 4 A C} \]

Substituting \(A=1, B=-{\frac {1}{2}}, C=2\) into the above gives

\begin{align*} \lambda _{1,2} &= \frac {{\frac {1}{2}}}{(2) \left (1\right )} \pm \frac {1}{(2) \left (1\right )} \sqrt {-{\frac {1}{2}}^2 - (4) \left (1\right )\left (2\right )}\\ &= {\frac {1}{4}} \pm \frac {i \sqrt {31}}{4} \end{align*}

Hence

\begin{align*} \lambda _1 &= {\frac {1}{4}} + \frac {i \sqrt {31}}{4}\\ \lambda _2 &= {\frac {1}{4}} - \frac {i \sqrt {31}}{4} \end{align*}

Which simplifies to

\begin{align*} \lambda _1 &= \frac {1}{4}+\frac {i \sqrt {31}}{4} \\ \lambda _2 &= \frac {1}{4}-\frac {i \sqrt {31}}{4} \\ \end{align*}

Since roots are complex conjugate of each others, then let the roots be

\[ \lambda _{1,2} = \alpha \pm i \beta \]

Where \(\alpha ={\frac {1}{4}}\) and \(\beta =\frac {\sqrt {31}}{4}\). Therefore the final solution, when using Euler relation, can be written as

\[ \xi = e^{\alpha t} \left ( c_1 \cos (\beta t) + c_2 \sin (\beta t) \right ) \]

Which becomes

\[ \xi = e^{\frac {t}{4}}\left (c_1 \cos \left (\frac {\sqrt {31}\, t}{4}\right )+c_2 \sin \left (\frac {\sqrt {31}\, t}{4}\right )\right ) \]

Will add steps showing solving for IC soon.

The original ode (2) now reduces to first order ode

\begin{align*} \xi \left (t \right ) x^{\prime }-x \xi ^{\prime }\left (t \right )+\xi \left (t \right ) p \left (t \right ) x&=\int \xi \left (t \right ) r \left (t \right )d t\\ x^{\prime }+x \left (p \left (t \right )-\frac {\xi ^{\prime }\left (t \right )}{\xi \left (t \right )}\right )&=\frac {\int \xi \left (t \right ) r \left (t \right )d t}{\xi \left (t \right )}\\ x^{\prime }+x \left (\frac {1}{2}-\frac {\left (\frac {{\mathrm e}^{\frac {t}{4}} \left (c_1 \cos \left (\frac {\sqrt {31}\, t}{4}\right )+c_2 \sin \left (\frac {\sqrt {31}\, t}{4}\right )\right )}{4}+{\mathrm e}^{\frac {t}{4}} \left (-\frac {c_1 \sin \left (\frac {\sqrt {31}\, t}{4}\right ) \sqrt {31}}{4}+\frac {c_2 \sqrt {31}\, \cos \left (\frac {\sqrt {31}\, t}{4}\right )}{4}\right )\right ) {\mathrm e}^{-\frac {t}{4}}}{c_1 \cos \left (\frac {\sqrt {31}\, t}{4}\right )+c_2 \sin \left (\frac {\sqrt {31}\, t}{4}\right )}\right )&=0 \end{align*}

Which is now a first order ode. This is now solved for \(x\). In canonical form a linear first order is

\begin{align*} x^{\prime } + q(t)x &= p(t) \end{align*}

Comparing the above to the given ode shows that

\begin{align*} q(t) &=-\frac {c_2 \sqrt {31}\, \cos \left (\frac {\sqrt {31}\, t}{4}\right )-c_1 \sin \left (\frac {\sqrt {31}\, t}{4}\right ) \sqrt {31}-c_1 \cos \left (\frac {\sqrt {31}\, t}{4}\right )-c_2 \sin \left (\frac {\sqrt {31}\, t}{4}\right )}{4 \left (c_1 \cos \left (\frac {\sqrt {31}\, t}{4}\right )+c_2 \sin \left (\frac {\sqrt {31}\, t}{4}\right )\right )}\\ p(t) &=0 \end{align*}

The integrating factor \(\mu \) is

\begin{align*} \mu &= e^{\int {q\,dt}}\\ &= {\mathrm e}^{\int -\frac {c_2 \sqrt {31}\, \cos \left (\frac {\sqrt {31}\, t}{4}\right )-c_1 \sin \left (\frac {\sqrt {31}\, t}{4}\right ) \sqrt {31}-c_1 \cos \left (\frac {\sqrt {31}\, t}{4}\right )-c_2 \sin \left (\frac {\sqrt {31}\, t}{4}\right )}{4 \left (c_1 \cos \left (\frac {\sqrt {31}\, t}{4}\right )+c_2 \sin \left (\frac {\sqrt {31}\, t}{4}\right )\right )}d t}\\ &= \frac {\sqrt {\sec \left (\frac {\sqrt {31}\, t}{4}\right )^{2}}\, {\mathrm e}^{\frac {\sqrt {31}\, \arctan \left (\tan \left (\frac {\sqrt {31}\, t}{4}\right )\right )}{31}}}{\tan \left (\frac {\sqrt {31}\, t}{4}\right ) c_2 +c_1} \end{align*}

The ode becomes

\begin{align*} \frac {\mathop {\mathrm {d}}}{ \mathop {\mathrm {d}t}} \mu x &= 0 \\ \frac {\mathop {\mathrm {d}}}{ \mathop {\mathrm {d}t}} \left (\frac {x \sqrt {\sec \left (\frac {\sqrt {31}\, t}{4}\right )^{2}}\, {\mathrm e}^{\frac {\sqrt {31}\, \arctan \left (\tan \left (\frac {\sqrt {31}\, t}{4}\right )\right )}{31}}}{\tan \left (\frac {\sqrt {31}\, t}{4}\right ) c_2 +c_1}\right ) &= 0 \end{align*}

Integrating gives

\begin{align*} \frac {x \sqrt {\sec \left (\frac {\sqrt {31}\, t}{4}\right )^{2}}\, {\mathrm e}^{\frac {\sqrt {31}\, \arctan \left (\tan \left (\frac {\sqrt {31}\, t}{4}\right )\right )}{31}}}{\tan \left (\frac {\sqrt {31}\, t}{4}\right ) c_2 +c_1}&= \int {0 \,dt} + c_3 \\ &=c_3 \end{align*}

Dividing throughout by the integrating factor \(\frac {\sqrt {\sec \left (\frac {\sqrt {31}\, t}{4}\right )^{2}}\, {\mathrm e}^{\frac {\sqrt {31}\, \arctan \left (\tan \left (\frac {\sqrt {31}\, t}{4}\right )\right )}{31}}}{\tan \left (\frac {\sqrt {31}\, t}{4}\right ) c_2 +c_1}\) gives the final solution

\[ x = \frac {\left (\tan \left (\frac {\sqrt {31}\, t}{4}\right ) c_2 +c_1 \right ) {\mathrm e}^{-\frac {\sqrt {31}\, \arctan \left (\tan \left (\frac {\sqrt {31}\, t}{4}\right )\right )}{31}} c_3}{\sqrt {\sec \left (\frac {\sqrt {31}\, t}{4}\right )^{2}}} \]

Hence, the solution found using Lagrange adjoint equation method is

\begin{align*} x &= \frac {\left (\tan \left (\frac {\sqrt {31}\, t}{4}\right ) c_2 +c_1 \right ) {\mathrm e}^{-\frac {\sqrt {31}\, \arctan \left (\tan \left (\frac {\sqrt {31}\, t}{4}\right )\right )}{31}} c_3}{\sqrt {\sec \left (\frac {\sqrt {31}\, t}{4}\right )^{2}}} \\ \end{align*}

Will add steps showing solving for IC soon.

(a) Solution plot
\(x = \frac {8 \tan \left (\frac {\sqrt {31}\, t}{4}\right ) \sqrt {31}\, {\mathrm e}^{-\frac {\sqrt {31}\, \arctan \left (\tan \left (\frac {\sqrt {31}\, t}{4}\right )\right )}{31}}}{31 \sqrt {\sec \left (\frac {\sqrt {31}\, t}{4}\right )^{2}}}\)

(b) Slope field plot
\(4 x^{\prime \prime }+2 x^{\prime }+8 x = 0\)
20.4.5 Maple step by step solution
\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \left [4 \frac {d^{2}}{d t^{2}}x \left (t \right )+2 \frac {d}{d t}x \left (t \right )+8 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 \}}}}=2\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 {Isolate 2nd derivative}\hspace {3pt} \\ {} & {} & \frac {d^{2}}{d t^{2}}x \left (t \right )=-\frac {\frac {d}{d t}x \left (t \right )}{2}-2 x \left (t \right ) \\ \bullet & {} & \textrm {Group terms with}\hspace {3pt} x \left (t \right )\hspace {3pt}\textrm {on the lhs of the ODE and the rest on the rhs of the ODE; ODE is linear}\hspace {3pt} \\ {} & {} & \frac {d^{2}}{d t^{2}}x \left (t \right )+\frac {\frac {d}{d t}x \left (t \right )}{2}+2 x \left (t \right )=0 \\ \bullet & {} & \textrm {Characteristic polynomial of ODE}\hspace {3pt} \\ {} & {} & r^{2}+\frac {1}{2} r +2=0 \\ \bullet & {} & \textrm {Use quadratic formula to solve for}\hspace {3pt} r \\ {} & {} & r =\frac {\left (-\frac {1}{2}\right )\pm \left (\sqrt {-\frac {31}{4}}\right )}{2} \\ \bullet & {} & \textrm {Roots of the characteristic polynomial}\hspace {3pt} \\ {} & {} & r =\left (-\frac {1}{4}-\frac {\mathrm {I} \sqrt {31}}{4}, -\frac {1}{4}+\frac {\mathrm {I} \sqrt {31}}{4}\right ) \\ \bullet & {} & \textrm {1st solution of the ODE}\hspace {3pt} \\ {} & {} & x_{1}\left (t \right )={\mathrm e}^{-\frac {t}{4}} \cos \left (\frac {\sqrt {31}\, t}{4}\right ) \\ \bullet & {} & \textrm {2nd solution of the ODE}\hspace {3pt} \\ {} & {} & x_{2}\left (t \right )={\mathrm e}^{-\frac {t}{4}} \sin \left (\frac {\sqrt {31}\, t}{4}\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}^{-\frac {t}{4}} \cos \left (\frac {\sqrt {31}\, t}{4}\right )+\mathit {C2} \,{\mathrm e}^{-\frac {t}{4}} \sin \left (\frac {\sqrt {31}\, t}{4}\right ) \\ \square & {} & \textrm {Check validity of solution}\hspace {3pt} x \left (t \right )=\textit {\_C1} {\mathrm e}^{-\frac {t}{4}} \cos \left (\frac {\sqrt {31}\, t}{4}\right )+\textit {\_C2} {\mathrm e}^{-\frac {t}{4}} \sin \left (\frac {\sqrt {31}\, t}{4}\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 )=-\frac {\textit {\_C1} \,{\mathrm e}^{-\frac {t}{4}} \cos \left (\frac {\sqrt {31}\, t}{4}\right )}{4}-\frac {\textit {\_C1} \,{\mathrm e}^{-\frac {t}{4}} \sqrt {31}\, \sin \left (\frac {\sqrt {31}\, t}{4}\right )}{4}-\frac {\textit {\_C2} \,{\mathrm e}^{-\frac {t}{4}} \sin \left (\frac {\sqrt {31}\, t}{4}\right )}{4}+\frac {\textit {\_C2} \,{\mathrm e}^{-\frac {t}{4}} \sqrt {31}\, \cos \left (\frac {\sqrt {31}\, t}{4}\right )}{4} \\ {} & \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 \}}}}=2 \\ {} & {} & 2=-\frac {\textit {\_C1}}{4}+\frac {\textit {\_C2} \sqrt {31}}{4} \\ {} & \circ & \textrm {Solve for}\hspace {3pt} \textit {\_C1} \hspace {3pt}\textrm {and}\hspace {3pt} \textit {\_C2} \\ {} & {} & \left \{\textit {\_C1} =0, \textit {\_C2} =\frac {8 \sqrt {31}}{31}\right \} \\ {} & \circ & \textrm {Substitute constant values into general solution and simplify}\hspace {3pt} \\ {} & {} & x \left (t \right )=\frac {8 \sqrt {31}\, {\mathrm e}^{-\frac {t}{4}} \sin \left (\frac {\sqrt {31}\, t}{4}\right )}{31} \\ \bullet & {} & \textrm {Solution to the IVP}\hspace {3pt} \\ {} & {} & x \left (t \right )=\frac {8 \sqrt {31}\, {\mathrm e}^{-\frac {t}{4}} \sin \left (\frac {\sqrt {31}\, t}{4}\right )}{31} \end {array} \]

20.4.6 Maple trace
`Methods for second order ODEs: 
--- Trying classification methods --- 
trying a quadrature 
checking if the LODE has constant coefficients 
<- constant coefficients successful`
 
20.4.7 Maple dsolve solution

Solving time : 0.040 (sec)
Leaf size : 20

dsolve([4*diff(diff(x(t),t),t)+2*diff(x(t),t)+8*x(t) = 0, 
       op([x(0) = 0, D(x)(0) = 2])],x(t),singsol=all)
 
\[ x = \frac {8 \sqrt {31}\, {\mathrm e}^{-\frac {t}{4}} \sin \left (\frac {\sqrt {31}\, t}{4}\right )}{31} \]
20.4.8 Mathematica DSolve solution

Solving time : 0.023 (sec)
Leaf size : 30

DSolve[{4*D[x[t],{t,2}]+2*D[x[t],t]+8*x[t]==0,{x[0]==0,Derivative[1][x][0 ]==2}}, 
       x[t],t,IncludeSingularSolutions->True]
 
\[ x(t)\to \frac {8 e^{-t/4} \sin \left (\frac {\sqrt {31} t}{4}\right )}{\sqrt {31}} \]