4.22 problem 5.3 (b)

4.22.1 Existence and uniqueness analysis
4.22.2 Solving as quadrature ode
4.22.3 Maple step by step solution

Internal problem ID [13367]
Internal file name [OUTPUT/12539_Wednesday_February_14_2024_11_55_31_PM_43388930/index.tex]

Book: Ordinary Differential Equations. An introduction to the fundamentals. Kenneth B. Howell. second edition. CRC Press. FL, USA. 2020
Section: Chapter 5. LINEAR FIRST ORDER EQUATIONS. Additional exercises. page 103
Problem number: 5.3 (b).
ODE order: 1.
ODE degree: 1.

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

Maple gives the following as the ode type

[_quadrature]

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

4.22.1 Existence and uniqueness analysis

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

Where here \begin {align*} p(x) &=-3\\ q(x) &=6 \end {align*}

Hence the ode is \begin {align*} -3 y+y^{\prime } = 6 \end {align*}

The domain of \(p(x)=-3\) is \[ \{-\infty

4.22.2 Solving as quadrature ode

Since ode has form \(y^{\prime }= f(y)\) and initial conditions \(y = -2\) is verified to satisfy the ode, then the solution is \begin {align*} y&=y_0 \\ &=-2 \end {align*}

Summary

The solution(s) found are the following \begin{align*} \tag{1} y &= -2 \\ \end{align*}

(a) Solution plot

(b) Slope field plot

Verification of solutions

\[ y = -2 \] Verified OK.

4.22.3 Maple step by step solution

\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \left [-3 y+y^{\prime }=6, y \left (0\right )=-2\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 }=3 y+6 \\ \bullet & {} & \textrm {Separate variables}\hspace {3pt} \\ {} & {} & \frac {y^{\prime }}{3 y+6}=1 \\ \bullet & {} & \textrm {Integrate both sides with respect to}\hspace {3pt} x \\ {} & {} & \int \frac {y^{\prime }}{3 y+6}d x =\int 1d x +c_{1} \\ \bullet & {} & \textrm {Evaluate integral}\hspace {3pt} \\ {} & {} & \frac {\ln \left (y+2\right )}{3}=x +c_{1} \\ \bullet & {} & \textrm {Solve for}\hspace {3pt} y \\ {} & {} & y={\mathrm e}^{3 c_{1} +3 x}-2 \\ \bullet & {} & \textrm {Use initial condition}\hspace {3pt} y \left (0\right )=-2 \\ {} & {} & -2={\mathrm e}^{3 c_{1}}-2 \\ \bullet & {} & \textrm {Solve for}\hspace {3pt} c_{1} \\ {} & {} & c_{1} =\left (\right ) \\ \bullet & {} & \textrm {Solution does not satisfy initial condition}\hspace {3pt} \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: 0.016 (sec). Leaf size: 5

dsolve([diff(y(x),x)-3*y(x)=6,y(0) = -2],y(x), singsol=all)
 

\[ y \left (x \right ) = -2 \]

Solution by Mathematica

Time used: 0.001 (sec). Leaf size: 6

DSolve[{y'[x]-3*y[x]==6,{y[0]==-2}},y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to -2 \]