3.24 problem Problem 25

3.24.1 Maple step by step solution

Internal problem ID [12305]
Internal file name [OUTPUT/10958_Saturday_September_30_2023_08_26_37_PM_81202127/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 25.
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 }+25 y^{\prime }=0} \] With initial conditions \begin {align*} [y \left (0\right ) = 1, y^{\prime }\left (0\right ) = 4, y^{\prime \prime }\left (0\right ) = -24] \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 )+25 s Y \left (s \right )-25 y \left (0\right ) = 0\tag {1} \] But the initial conditions are \begin {align*} y \left (0\right )&=1\\ y^{\prime }\left (0\right )&=4\\ y^{\prime \prime }\left (0\right )&=-24 \end {align*}

Substituting these initial conditions in above in Eq (1) gives \[ s^{3} Y \left (s \right )-25-10 s -s^{2}+6 s^{2} Y \left (s \right )+25 s Y \left (s \right ) = 0 \] Solving the above equation for \(Y(s)\) results in \[ Y(s) = \frac {s^{2}+10 s +25}{s \left (s^{2}+6 s +25\right )} \] Applying partial fractions decomposition results in \[ Y(s)= \frac {1}{s}-\frac {i}{2 \left (s +3-4 i\right )}+\frac {i}{2 s +6+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}{2 \left (s +3-4 i\right )}\right ) &= -\frac {i {\mathrm e}^{\left (-3+4 i\right ) t}}{2}\\ \mathcal {L}^{-1}\left (\frac {i}{2 s +6+8 i}\right ) &= \frac {i {\mathrm e}^{\left (-3-4 i\right ) t}}{2} \end {align*}

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

Summary

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

Figure 41: Solution plot

Verification of solutions

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

3.24.1 Maple step by step solution

\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \left [y^{\prime \prime \prime }+6 y^{\prime \prime }+25 y^{\prime }=0, y \left (0\right )=1, y^{\prime }{\raise{-0.36em}{\Big |}}{\mstack {}{_{\left \{t \hiderel {=}0\right \}}}}=4, y^{\prime \prime }{\raise{-0.36em}{\Big |}}{\mstack {}{_{\left \{t \hiderel {=}0\right \}}}}=-24\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 )-25 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 )-25 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 & -25 & -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 & -25 & -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-4 \,\mathrm {I}, \left [\begin {array}{c} -\frac {7}{625}-\frac {24 \,\mathrm {I}}{625} \\ -\frac {3}{25}+\frac {4 \,\mathrm {I}}{25} \\ 1 \end {array}\right ]\right ], \left [-3+4 \,\mathrm {I}, \left [\begin {array}{c} -\frac {7}{625}+\frac {24 \,\mathrm {I}}{625} \\ -\frac {3}{25}-\frac {4 \,\mathrm {I}}{25} \\ 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-4 \,\mathrm {I}, \left [\begin {array}{c} -\frac {7}{625}-\frac {24 \,\mathrm {I}}{625} \\ -\frac {3}{25}+\frac {4 \,\mathrm {I}}{25} \\ 1 \end {array}\right ]\right ] \\ \bullet & {} & \textrm {Solution from eigenpair}\hspace {3pt} \\ {} & {} & {\mathrm e}^{\left (-3-4 \,\mathrm {I}\right ) t}\cdot \left [\begin {array}{c} -\frac {7}{625}-\frac {24 \,\mathrm {I}}{625} \\ -\frac {3}{25}+\frac {4 \,\mathrm {I}}{25} \\ 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 (4 t \right )-\mathrm {I} \sin \left (4 t \right )\right )\cdot \left [\begin {array}{c} -\frac {7}{625}-\frac {24 \,\mathrm {I}}{625} \\ -\frac {3}{25}+\frac {4 \,\mathrm {I}}{25} \\ 1 \end {array}\right ] \\ \bullet & {} & \textrm {Simplify expression}\hspace {3pt} \\ {} & {} & {\mathrm e}^{-3 t}\cdot \left [\begin {array}{c} \left (-\frac {7}{625}-\frac {24 \,\mathrm {I}}{625}\right ) \left (\cos \left (4 t \right )-\mathrm {I} \sin \left (4 t \right )\right ) \\ \left (-\frac {3}{25}+\frac {4 \,\mathrm {I}}{25}\right ) \left (\cos \left (4 t \right )-\mathrm {I} \sin \left (4 t \right )\right ) \\ \cos \left (4 t \right )-\mathrm {I} \sin \left (4 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 {7 \cos \left (4 t \right )}{625}-\frac {24 \sin \left (4 t \right )}{625} \\ -\frac {3 \cos \left (4 t \right )}{25}+\frac {4 \sin \left (4 t \right )}{25} \\ \cos \left (4 t \right ) \end {array}\right ], {\moverset {\rightarrow }{y}}_{3}\left (t \right )={\mathrm e}^{-3 t}\cdot \left [\begin {array}{c} \frac {7 \sin \left (4 t \right )}{625}-\frac {24 \cos \left (4 t \right )}{625} \\ \frac {3 \sin \left (4 t \right )}{25}+\frac {4 \cos \left (4 t \right )}{25} \\ -\sin \left (4 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 {7 \cos \left (4 t \right )}{625}-\frac {24 \sin \left (4 t \right )}{625} \\ -\frac {3 \cos \left (4 t \right )}{25}+\frac {4 \sin \left (4 t \right )}{25} \\ \cos \left (4 t \right ) \end {array}\right ]+c_{3} {\mathrm e}^{-3 t}\cdot \left [\begin {array}{c} \frac {7 \sin \left (4 t \right )}{625}-\frac {24 \cos \left (4 t \right )}{625} \\ \frac {3 \sin \left (4 t \right )}{25}+\frac {4 \cos \left (4 t \right )}{25} \\ -\sin \left (4 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 (-7 c_{2} -24 c_{3} \right ) \cos \left (4 t \right )-24 \sin \left (4 t \right ) \left (c_{2} -\frac {7 c_{3}}{24}\right )\right ) {\mathrm e}^{-3 t}}{625}+c_{1} \\ \bullet & {} & \textrm {Use the initial condition}\hspace {3pt} y \left (0\right )=1 \\ {} & {} & 1=-\frac {7 c_{2}}{625}-\frac {24 c_{3}}{625}+c_{1} \\ \bullet & {} & \textrm {Calculate the 1st derivative of the solution}\hspace {3pt} \\ {} & {} & y^{\prime }=\frac {\left (-4 \left (-7 c_{2} -24 c_{3} \right ) \sin \left (4 t \right )-96 \cos \left (4 t \right ) \left (c_{2} -\frac {7 c_{3}}{24}\right )\right ) {\mathrm e}^{-3 t}}{625}-\frac {3 \left (\left (-7 c_{2} -24 c_{3} \right ) \cos \left (4 t \right )-24 \sin \left (4 t \right ) \left (c_{2} -\frac {7 c_{3}}{24}\right )\right ) {\mathrm e}^{-3 t}}{625} \\ \bullet & {} & \textrm {Use the initial condition}\hspace {3pt} y^{\prime }{\raise{-0.36em}{\Big |}}{\mstack {}{_{\left \{t \hiderel {=}0\right \}}}}=4 \\ {} & {} & 4=-\frac {3 c_{2}}{25}+\frac {4 c_{3}}{25} \\ \bullet & {} & \textrm {Calculate the 2nd derivative of the solution}\hspace {3pt} \\ {} & {} & y^{\prime \prime }=\frac {\left (-16 \left (-7 c_{2} -24 c_{3} \right ) \cos \left (4 t \right )+384 \sin \left (4 t \right ) \left (c_{2} -\frac {7 c_{3}}{24}\right )\right ) {\mathrm e}^{-3 t}}{625}-\frac {6 \left (-4 \left (-7 c_{2} -24 c_{3} \right ) \sin \left (4 t \right )-96 \cos \left (4 t \right ) \left (c_{2} -\frac {7 c_{3}}{24}\right )\right ) {\mathrm e}^{-3 t}}{625}+\frac {9 \left (\left (-7 c_{2} -24 c_{3} \right ) \cos \left (4 t \right )-24 \sin \left (4 t \right ) \left (c_{2} -\frac {7 c_{3}}{24}\right )\right ) {\mathrm e}^{-3 t}}{625} \\ \bullet & {} & \textrm {Use the initial condition}\hspace {3pt} y^{\prime \prime }{\raise{-0.36em}{\Big |}}{\mstack {}{_{\left \{t \hiderel {=}0\right \}}}}=-24 \\ {} & {} & -24=c_{2} \\ \bullet & {} & \textrm {Solve for the unknown coefficients}\hspace {3pt} \\ {} & {} & \left \{c_{1} =1, c_{2} =-24, c_{3} =7\right \} \\ \bullet & {} & \textrm {Solution to the IVP}\hspace {3pt} \\ {} & {} & y=1+{\mathrm e}^{-3 t} \sin \left (4 t \right ) \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.656 (sec). Leaf size: 15

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

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

Solution by Mathematica

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

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

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