3.22 problem Problem 23

3.22.1 Maple step by step solution

Internal problem ID [12303]
Internal file name [OUTPUT/10956_Saturday_September_30_2023_08_26_36_PM_79997059/index.tex]

Book: APPLIED DIFFERENTIAL EQUATIONS The Primary Course by Vladimir A. Dobrushkin. CRC Press 2015
Section: Chapter 5.5 Laplace transform. Homogeneous equations. Problems page 357
Problem number: Problem 23.
ODE order: 3.
ODE degree: 1.

The type(s) of ODE detected by this program : "higher_order_laplace"

Maple gives the following as the ode type

[[_3rd_order, _missing_x]]

\[ \boxed {y^{\prime \prime \prime }-6 y^{\prime \prime }+13 y^{\prime }=0} \] With initial conditions \begin {align*} [y \left (0\right ) = 1, y^{\prime }\left (0\right ) = 1, y^{\prime \prime }\left (0\right ) = 6] \end {align*}

Solving using the Laplace transform method. Let \[ \mathcal {L}\left (y\right ) =Y(s) \] Taking the Laplace transform of the ode and using the relations that \begin {align*} \mathcal {L}\left (y^{\prime }\right )&= s Y(s) - y \left (0\right )\\ \mathcal {L}\left (y^{\prime \prime }\right ) &= s^2 Y(s) - y'(0) - s y \left (0\right )\\ \mathcal {L}\left (y^{\prime \prime \prime }\right ) &= s^3 Y(s) - y''(0) - s y'(0) - s^2 y \left (0\right ) \end {align*}

The given ode becomes an algebraic equation in the Laplace domain \[ s^{3} Y \left (s \right )-y^{\prime \prime }\left (0\right )-s y^{\prime }\left (0\right )-s^{2} y \left (0\right )-6 s^{2} Y \left (s \right )+6 y^{\prime }\left (0\right )+6 s y \left (0\right )+13 s Y \left (s \right )-13 y \left (0\right ) = 0\tag {1} \] But the initial conditions are \begin {align*} y \left (0\right )&=1\\ y^{\prime }\left (0\right )&=1\\ y^{\prime \prime }\left (0\right )&=6 \end {align*}

Substituting these initial conditions in above in Eq (1) gives \[ s^{3} Y \left (s \right )-13+5 s -s^{2}-6 s^{2} Y \left (s \right )+13 s Y \left (s \right ) = 0 \] Solving the above equation for \(Y(s)\) results in \[ Y(s) = \frac {s^{2}-5 s +13}{s \left (s^{2}-6 s +13\right )} \] Applying partial fractions decomposition results in \[ Y(s)= \frac {1}{s}-\frac {i}{4 \left (s -3-2 i\right )}+\frac {i}{4 s -12+8 i} \] The inverse Laplace of each term above is now found, which gives \begin {align*} \mathcal {L}^{-1}\left (\frac {1}{s}\right ) &= 1\\ \mathcal {L}^{-1}\left (-\frac {i}{4 \left (s -3-2 i\right )}\right ) &= -\frac {i {\mathrm e}^{\left (3+2 i\right ) t}}{4}\\ \mathcal {L}^{-1}\left (\frac {i}{4 s -12+8 i}\right ) &= \frac {i {\mathrm e}^{\left (3-2 i\right ) t}}{4} \end {align*}

Adding the above results and simplifying gives \[ y=1+\frac {{\mathrm e}^{3 t} \sin \left (2 t \right )}{2} \]

Summary

The solution(s) found are the following \begin{align*} \tag{1} y &= 1+\frac {{\mathrm e}^{3 t} \sin \left (2 t \right )}{2} \\ \end{align*}

Figure 39: Solution plot

Verification of solutions

\[ y = 1+\frac {{\mathrm e}^{3 t} \sin \left (2 t \right )}{2} \] Verified OK.

3.22.1 Maple step by step solution

\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \left [y^{\prime \prime \prime }-6 y^{\prime \prime }+13 y^{\prime }=0, y \left (0\right )=1, y^{\prime }{\raise{-0.36em}{\Big |}}{\mstack {}{_{\left \{t \hiderel {=}0\right \}}}}=1, y^{\prime \prime }{\raise{-0.36em}{\Big |}}{\mstack {}{_{\left \{t \hiderel {=}0\right \}}}}=6\right ] \\ \bullet & {} & \textrm {Highest derivative means the order of the ODE is}\hspace {3pt} 3 \\ {} & {} & y^{\prime \prime \prime } \\ \square & {} & \textrm {Convert linear ODE into a system of first order ODEs}\hspace {3pt} \\ {} & \circ & \textrm {Define new variable}\hspace {3pt} y_{1}\left (t \right ) \\ {} & {} & y_{1}\left (t \right )=y \\ {} & \circ & \textrm {Define new variable}\hspace {3pt} y_{2}\left (t \right ) \\ {} & {} & y_{2}\left (t \right )=y^{\prime } \\ {} & \circ & \textrm {Define new variable}\hspace {3pt} y_{3}\left (t \right ) \\ {} & {} & y_{3}\left (t \right )=y^{\prime \prime } \\ {} & \circ & \textrm {Isolate for}\hspace {3pt} y_{3}^{\prime }\left (t \right )\hspace {3pt}\textrm {using original ODE}\hspace {3pt} \\ {} & {} & y_{3}^{\prime }\left (t \right )=6 y_{3}\left (t \right )-13 y_{2}\left (t \right ) \\ & {} & \textrm {Convert linear ODE into a system of first order ODEs}\hspace {3pt} \\ {} & {} & \left [y_{2}\left (t \right )=y_{1}^{\prime }\left (t \right ), y_{3}\left (t \right )=y_{2}^{\prime }\left (t \right ), y_{3}^{\prime }\left (t \right )=6 y_{3}\left (t \right )-13 y_{2}\left (t \right )\right ] \\ \bullet & {} & \textrm {Define vector}\hspace {3pt} \\ {} & {} & {\moverset {\rightarrow }{y}}\left (t \right )=\left [\begin {array}{c} y_{1}\left (t \right ) \\ y_{2}\left (t \right ) \\ y_{3}\left (t \right ) \end {array}\right ] \\ \bullet & {} & \textrm {System to solve}\hspace {3pt} \\ {} & {} & {\moverset {\rightarrow }{y}}^{\prime }\left (t \right )=\left [\begin {array}{ccc} 0 & 1 & 0 \\ 0 & 0 & 1 \\ 0 & -13 & 6 \end {array}\right ]\cdot {\moverset {\rightarrow }{y}}\left (t \right ) \\ \bullet & {} & \textrm {Define the coefficient matrix}\hspace {3pt} \\ {} & {} & A =\left [\begin {array}{ccc} 0 & 1 & 0 \\ 0 & 0 & 1 \\ 0 & -13 & 6 \end {array}\right ] \\ \bullet & {} & \textrm {Rewrite the system as}\hspace {3pt} \\ {} & {} & {\moverset {\rightarrow }{y}}^{\prime }\left (t \right )=A \cdot {\moverset {\rightarrow }{y}}\left (t \right ) \\ \bullet & {} & \textrm {To solve the system, find the eigenvalues and eigenvectors of}\hspace {3pt} A \\ \bullet & {} & \textrm {Eigenpairs of}\hspace {3pt} A \\ {} & {} & \left [\left [0, \left [\begin {array}{c} 1 \\ 0 \\ 0 \end {array}\right ]\right ], \left [3-2 \,\mathrm {I}, \left [\begin {array}{c} \frac {5}{169}+\frac {12 \,\mathrm {I}}{169} \\ \frac {3}{13}+\frac {2 \,\mathrm {I}}{13} \\ 1 \end {array}\right ]\right ], \left [3+2 \,\mathrm {I}, \left [\begin {array}{c} \frac {5}{169}-\frac {12 \,\mathrm {I}}{169} \\ \frac {3}{13}-\frac {2 \,\mathrm {I}}{13} \\ 1 \end {array}\right ]\right ]\right ] \\ \bullet & {} & \textrm {Consider eigenpair}\hspace {3pt} \\ {} & {} & \left [0, \left [\begin {array}{c} 1 \\ 0 \\ 0 \end {array}\right ]\right ] \\ \bullet & {} & \textrm {Solution to homogeneous system from eigenpair}\hspace {3pt} \\ {} & {} & {\moverset {\rightarrow }{y}}_{1}=\left [\begin {array}{c} 1 \\ 0 \\ 0 \end {array}\right ] \\ \bullet & {} & \textrm {Consider complex eigenpair, complex conjugate eigenvalue can be ignored}\hspace {3pt} \\ {} & {} & \left [3-2 \,\mathrm {I}, \left [\begin {array}{c} \frac {5}{169}+\frac {12 \,\mathrm {I}}{169} \\ \frac {3}{13}+\frac {2 \,\mathrm {I}}{13} \\ 1 \end {array}\right ]\right ] \\ \bullet & {} & \textrm {Solution from eigenpair}\hspace {3pt} \\ {} & {} & {\mathrm e}^{\left (3-2 \,\mathrm {I}\right ) t}\cdot \left [\begin {array}{c} \frac {5}{169}+\frac {12 \,\mathrm {I}}{169} \\ \frac {3}{13}+\frac {2 \,\mathrm {I}}{13} \\ 1 \end {array}\right ] \\ \bullet & {} & \textrm {Use Euler identity to write solution in terms of}\hspace {3pt} \sin \hspace {3pt}\textrm {and}\hspace {3pt} \cos \\ {} & {} & {\mathrm e}^{3 t}\cdot \left (\cos \left (2 t \right )-\mathrm {I} \sin \left (2 t \right )\right )\cdot \left [\begin {array}{c} \frac {5}{169}+\frac {12 \,\mathrm {I}}{169} \\ \frac {3}{13}+\frac {2 \,\mathrm {I}}{13} \\ 1 \end {array}\right ] \\ \bullet & {} & \textrm {Simplify expression}\hspace {3pt} \\ {} & {} & {\mathrm e}^{3 t}\cdot \left [\begin {array}{c} \left (\frac {5}{169}+\frac {12 \,\mathrm {I}}{169}\right ) \left (\cos \left (2 t \right )-\mathrm {I} \sin \left (2 t \right )\right ) \\ \left (\frac {3}{13}+\frac {2 \,\mathrm {I}}{13}\right ) \left (\cos \left (2 t \right )-\mathrm {I} \sin \left (2 t \right )\right ) \\ \cos \left (2 t \right )-\mathrm {I} \sin \left (2 t \right ) \end {array}\right ] \\ \bullet & {} & \textrm {Both real and imaginary parts are solutions to the homogeneous system}\hspace {3pt} \\ {} & {} & \left [{\moverset {\rightarrow }{y}}_{2}\left (t \right )={\mathrm e}^{3 t}\cdot \left [\begin {array}{c} \frac {5 \cos \left (2 t \right )}{169}+\frac {12 \sin \left (2 t \right )}{169} \\ \frac {3 \cos \left (2 t \right )}{13}+\frac {2 \sin \left (2 t \right )}{13} \\ \cos \left (2 t \right ) \end {array}\right ], {\moverset {\rightarrow }{y}}_{3}\left (t \right )={\mathrm e}^{3 t}\cdot \left [\begin {array}{c} -\frac {5 \sin \left (2 t \right )}{169}+\frac {12 \cos \left (2 t \right )}{169} \\ -\frac {3 \sin \left (2 t \right )}{13}+\frac {2 \cos \left (2 t \right )}{13} \\ -\sin \left (2 t \right ) \end {array}\right ]\right ] \\ \bullet & {} & \textrm {General solution to the system of ODEs}\hspace {3pt} \\ {} & {} & {\moverset {\rightarrow }{y}}=c_{1} {\moverset {\rightarrow }{y}}_{1}+c_{2} {\moverset {\rightarrow }{y}}_{2}\left (t \right )+c_{3} {\moverset {\rightarrow }{y}}_{3}\left (t \right ) \\ \bullet & {} & \textrm {Substitute solutions into the general solution}\hspace {3pt} \\ {} & {} & {\moverset {\rightarrow }{y}}=c_{2} {\mathrm e}^{3 t}\cdot \left [\begin {array}{c} \frac {5 \cos \left (2 t \right )}{169}+\frac {12 \sin \left (2 t \right )}{169} \\ \frac {3 \cos \left (2 t \right )}{13}+\frac {2 \sin \left (2 t \right )}{13} \\ \cos \left (2 t \right ) \end {array}\right ]+c_{3} {\mathrm e}^{3 t}\cdot \left [\begin {array}{c} -\frac {5 \sin \left (2 t \right )}{169}+\frac {12 \cos \left (2 t \right )}{169} \\ -\frac {3 \sin \left (2 t \right )}{13}+\frac {2 \cos \left (2 t \right )}{13} \\ -\sin \left (2 t \right ) \end {array}\right ]+\left [\begin {array}{c} c_{1} \\ 0 \\ 0 \end {array}\right ] \\ \bullet & {} & \textrm {First component of the vector is the solution to the ODE}\hspace {3pt} \\ {} & {} & y=\frac {\left (\left (5 c_{2} +12 c_{3} \right ) \cos \left (2 t \right )+12 \sin \left (2 t \right ) \left (c_{2} -\frac {5 c_{3}}{12}\right )\right ) {\mathrm e}^{3 t}}{169}+c_{1} \\ \bullet & {} & \textrm {Use the initial condition}\hspace {3pt} y \left (0\right )=1 \\ {} & {} & 1=\frac {5 c_{2}}{169}+\frac {12 c_{3}}{169}+c_{1} \\ \bullet & {} & \textrm {Calculate the 1st derivative of the solution}\hspace {3pt} \\ {} & {} & y^{\prime }=\frac {\left (-2 \left (5 c_{2} +12 c_{3} \right ) \sin \left (2 t \right )+24 \cos \left (2 t \right ) \left (c_{2} -\frac {5 c_{3}}{12}\right )\right ) {\mathrm e}^{3 t}}{169}+\frac {3 \left (\left (5 c_{2} +12 c_{3} \right ) \cos \left (2 t \right )+12 \sin \left (2 t \right ) \left (c_{2} -\frac {5 c_{3}}{12}\right )\right ) {\mathrm e}^{3 t}}{169} \\ \bullet & {} & \textrm {Use the initial condition}\hspace {3pt} y^{\prime }{\raise{-0.36em}{\Big |}}{\mstack {}{_{\left \{t \hiderel {=}0\right \}}}}=1 \\ {} & {} & 1=\frac {3 c_{2}}{13}+\frac {2 c_{3}}{13} \\ \bullet & {} & \textrm {Calculate the 2nd derivative of the solution}\hspace {3pt} \\ {} & {} & y^{\prime \prime }=\frac {\left (-4 \left (5 c_{2} +12 c_{3} \right ) \cos \left (2 t \right )-48 \sin \left (2 t \right ) \left (c_{2} -\frac {5 c_{3}}{12}\right )\right ) {\mathrm e}^{3 t}}{169}+\frac {6 \left (-2 \left (5 c_{2} +12 c_{3} \right ) \sin \left (2 t \right )+24 \cos \left (2 t \right ) \left (c_{2} -\frac {5 c_{3}}{12}\right )\right ) {\mathrm e}^{3 t}}{169}+\frac {9 \left (\left (5 c_{2} +12 c_{3} \right ) \cos \left (2 t \right )+12 \sin \left (2 t \right ) \left (c_{2} -\frac {5 c_{3}}{12}\right )\right ) {\mathrm e}^{3 t}}{169} \\ \bullet & {} & \textrm {Use the initial condition}\hspace {3pt} y^{\prime \prime }{\raise{-0.36em}{\Big |}}{\mstack {}{_{\left \{t \hiderel {=}0\right \}}}}=6 \\ {} & {} & 6=c_{2} \\ \bullet & {} & \textrm {Solve for the unknown coefficients}\hspace {3pt} \\ {} & {} & \left \{c_{1} =1, c_{2} =6, c_{3} =-\frac {5}{2}\right \} \\ \bullet & {} & \textrm {Solution to the IVP}\hspace {3pt} \\ {} & {} & y=1+\frac {{\mathrm e}^{3 t} \sin \left (2 t \right )}{2} \end {array} \]

Maple trace

`Methods for third order ODEs: 
--- Trying classification methods --- 
trying a quadrature 
checking if the LODE has constant coefficients 
<- constant coefficients successful`
 

Solution by Maple

Time used: 4.532 (sec). Leaf size: 16

dsolve([diff(y(t),t$3)-6*diff(y(t),t$2)+13*diff(y(t),t)=0,y(0) = 1, D(y)(0) = 1, (D@@2)(y)(0) = 6],y(t), singsol=all)
 

\[ y \left (t \right ) = \frac {{\mathrm e}^{3 t} \sin \left (2 t \right )}{2}+1 \]

Solution by Mathematica

Time used: 0.443 (sec). Leaf size: 17

DSolve[{y'''[t]-6*y''[t]+13*y'[t]==0,{y[0]==1,y'[0]==1,y''[0]==6}},y[t],t,IncludeSingularSolutions -> True]
 

\[ y(t)\to e^{3 t} \sin (t) \cos (t)+1 \]