5.11 problem 41

5.11.1 Existence and uniqueness analysis
5.11.2 Solving as laplace ode
5.11.3 Maple step by step solution

Internal problem ID [6666]
Internal file name [OUTPUT/5914_Sunday_June_05_2022_04_01_23_PM_90062451/index.tex]

Book: DIFFERENTIAL EQUATIONS with Boundary Value Problems. DENNIS G. ZILL, WARREN S. WRIGHT, MICHAEL R. CULLEN. Brooks/Cole. Boston, MA. 2013. 8th edition.
Section: CHAPTER 7 THE LAPLACE TRANSFORM. 7.2.2 TRANSFORMS OF DERIVATIVES Page 289
Problem number: 41.
ODE order: 1.
ODE degree: 1.

The type(s) of ODE detected by this program : "exact", "linear", "first_order_ode_lie_symmetry_lookup"

Maple gives the following as the ode type

[[_linear, `class A`]]

\[ \boxed {y^{\prime }+y={\mathrm e}^{-3 t} \cos \left (2 t \right )} \] With initial conditions \begin {align*} [y \left (0\right ) = 0] \end {align*}

5.11.1 Existence and uniqueness analysis

This is a linear ODE. In canonical form it is written as \begin {align*} y^{\prime } + p(t)y &= q(t) \end {align*}

Where here \begin {align*} p(t) &=1\\ q(t) &={\mathrm e}^{-3 t} \cos \left (2 t \right ) \end {align*}

Hence the ode is \begin {align*} y^{\prime }+y = {\mathrm e}^{-3 t} \cos \left (2 t \right ) \end {align*}

The domain of \(p(t)=1\) is \[ \{-\infty

5.11.2 Solving as laplace ode

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 ) \end {align*}

The given ode now becomes an algebraic equation in the Laplace domain \begin {align*} s Y \left (s \right )-y \left (0\right )+Y \left (s \right ) = \frac {s +3}{\left (s +3\right )^{2}+4}\tag {1} \end {align*}

Replacing initial condition gives \begin {align*} s Y \left (s \right )+Y \left (s \right ) = \frac {s +3}{\left (s +3\right )^{2}+4} \end {align*}

Solving for \(Y(s)\) gives \begin {align*} Y(s) = \frac {s +3}{\left (s^{2}+6 s +13\right ) \left (s +1\right )} \end {align*}

Applying partial fractions decomposition results in \[ Y(s)= \frac {-\frac {1}{8}-\frac {i}{8}}{s +3-2 i}+\frac {-\frac {1}{8}+\frac {i}{8}}{s +3+2 i}+\frac {1}{4 s +4} \] The inverse Laplace of each term above is now found, which gives \begin {align*} \mathcal {L}^{-1}\left (\frac {-\frac {1}{8}-\frac {i}{8}}{s +3-2 i}\right ) &= \left (-\frac {1}{8}-\frac {i}{8}\right ) {\mathrm e}^{\left (-3+2 i\right ) t}\\ \mathcal {L}^{-1}\left (\frac {-\frac {1}{8}+\frac {i}{8}}{s +3+2 i}\right ) &= \left (-\frac {1}{8}+\frac {i}{8}\right ) {\mathrm e}^{\left (-3-2 i\right ) t}\\ \mathcal {L}^{-1}\left (\frac {1}{4 s +4}\right ) &= \frac {{\mathrm e}^{-t}}{4} \end {align*}

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

Summary

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

(a) Solution plot

(b) Slope field plot

Verification of solutions

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

5.11.3 Maple step by step solution

\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \left [y^{\prime }+y={\mathrm e}^{-3 t} \cos \left (2 t \right ), y \left (0\right )=0\right ] \\ \bullet & {} & \textrm {Highest derivative means the order of the ODE is}\hspace {3pt} 1 \\ {} & {} & y^{\prime } \\ \bullet & {} & \textrm {Solve for the highest derivative}\hspace {3pt} \\ {} & {} & y^{\prime }=-y+{\mathrm e}^{-3 t} \cos \left (2 t \right ) \\ \bullet & {} & \textrm {Group terms with}\hspace {3pt} y\hspace {3pt}\textrm {on the lhs of the ODE and the rest on the rhs of the ODE}\hspace {3pt} \\ {} & {} & y^{\prime }+y={\mathrm e}^{-3 t} \cos \left (2 t \right ) \\ \bullet & {} & \textrm {The ODE is linear; multiply by an integrating factor}\hspace {3pt} \mu \left (t \right ) \\ {} & {} & \mu \left (t \right ) \left (y^{\prime }+y\right )=\mu \left (t \right ) {\mathrm e}^{-3 t} \cos \left (2 t \right ) \\ \bullet & {} & \textrm {Assume the lhs of the ODE is the total derivative}\hspace {3pt} \frac {d}{d t}\left (y \mu \left (t \right )\right ) \\ {} & {} & \mu \left (t \right ) \left (y^{\prime }+y\right )=y^{\prime } \mu \left (t \right )+y \mu ^{\prime }\left (t \right ) \\ \bullet & {} & \textrm {Isolate}\hspace {3pt} \mu ^{\prime }\left (t \right ) \\ {} & {} & \mu ^{\prime }\left (t \right )=\mu \left (t \right ) \\ \bullet & {} & \textrm {Solve to find the integrating factor}\hspace {3pt} \\ {} & {} & \mu \left (t \right )={\mathrm e}^{t} \\ \bullet & {} & \textrm {Integrate both sides with respect to}\hspace {3pt} t \\ {} & {} & \int \left (\frac {d}{d t}\left (y \mu \left (t \right )\right )\right )d t =\int \mu \left (t \right ) {\mathrm e}^{-3 t} \cos \left (2 t \right )d t +c_{1} \\ \bullet & {} & \textrm {Evaluate the integral on the lhs}\hspace {3pt} \\ {} & {} & y \mu \left (t \right )=\int \mu \left (t \right ) {\mathrm e}^{-3 t} \cos \left (2 t \right )d t +c_{1} \\ \bullet & {} & \textrm {Solve for}\hspace {3pt} y \\ {} & {} & y=\frac {\int \mu \left (t \right ) {\mathrm e}^{-3 t} \cos \left (2 t \right )d t +c_{1}}{\mu \left (t \right )} \\ \bullet & {} & \textrm {Substitute}\hspace {3pt} \mu \left (t \right )={\mathrm e}^{t} \\ {} & {} & y=\frac {\int {\mathrm e}^{t} {\mathrm e}^{-3 t} \cos \left (2 t \right )d t +c_{1}}{{\mathrm e}^{t}} \\ \bullet & {} & \textrm {Evaluate the integrals on the rhs}\hspace {3pt} \\ {} & {} & y=\frac {\frac {\left (-2 \cos \left (t \right )+2 \sin \left (t \right )\right ) {\mathrm e}^{-2 t} \cos \left (t \right )}{4}+\frac {1}{4 \left ({\mathrm e}^{t}\right )^{2}}+c_{1}}{{\mathrm e}^{t}} \\ \bullet & {} & \textrm {Simplify}\hspace {3pt} \\ {} & {} & y=\frac {\left (-\cos \left (2 t \right )+\sin \left (2 t \right )\right ) {\mathrm e}^{-t} {\mathrm e}^{-2 t}}{4}+{\mathrm e}^{-t} c_{1} \\ \bullet & {} & \textrm {Use initial condition}\hspace {3pt} y \left (0\right )=0 \\ {} & {} & 0=-\frac {1}{4}+c_{1} \\ \bullet & {} & \textrm {Solve for}\hspace {3pt} c_{1} \\ {} & {} & c_{1} =\frac {1}{4} \\ \bullet & {} & \textrm {Substitute}\hspace {3pt} c_{1} =\frac {1}{4}\hspace {3pt}\textrm {into general solution and simplify}\hspace {3pt} \\ {} & {} & y=-\frac {{\mathrm e}^{-t} \left (-1+\left (\cos \left (2 t \right )-\sin \left (2 t \right )\right ) {\mathrm e}^{-2 t}\right )}{4} \\ \bullet & {} & \textrm {Solution to the IVP}\hspace {3pt} \\ {} & {} & y=-\frac {{\mathrm e}^{-t} \left (-1+\left (\cos \left (2 t \right )-\sin \left (2 t \right )\right ) {\mathrm e}^{-2 t}\right )}{4} \end {array} \]

Maple trace

`Methods for first order ODEs: 
--- Trying classification methods --- 
trying a quadrature 
trying 1st order linear 
<- 1st order linear successful`
 

Solution by Maple

Time used: 2.0 (sec). Leaf size: 28

dsolve([diff(y(t),t)+y(t)=exp(-3*t)*cos(2*t),y(0) = 0],y(t), singsol=all)
 

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

Solution by Mathematica

Time used: 0.124 (sec). Leaf size: 30

DSolve[{y'[t]+y[t]==Exp[-3*t]*Cos[2*t],{y[0]==0}},y[t],t,IncludeSingularSolutions -> True]
 

\[ y(t)\to \frac {1}{4} e^{-3 t} \left (e^{2 t}+\sin (2 t)-\cos (2 t)\right ) \]