3.1 problem 1(a)

3.1.1 Solving as linear ode
3.1.2 Maple step by step solution

Internal problem ID [6157]
Internal file name [OUTPUT/5405_Sunday_June_05_2022_03_36_26_PM_99668702/index.tex]

Book: Differential Equations: Theory, Technique, and Practice by George Simmons, Steven Krantz. McGraw-Hill NY. 2007. 1st Edition.
Section: Chapter 1. What is a differential equation. Section 1.4 First Order Linear Equations. Page 15
Problem number: 1(a).
ODE order: 1.
ODE degree: 1.

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

Maple gives the following as the ode type

[_separable]

\[ \boxed {y^{\prime }-y x=0} \]

3.1.1 Solving as linear ode

Entering Linear first order ODE solver. In canonical form a linear first order is \begin {align*} y^{\prime } + p(x)y &= q(x) \end {align*}

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

Hence the ode is \begin {align*} y^{\prime }-y x = 0 \end {align*}

The integrating factor \(\mu \) is \begin{align*} \mu &= {\mathrm e}^{\int -x d x} \\ &= {\mathrm e}^{-\frac {x^{2}}{2}} \\ \end{align*} The ode becomes \begin {align*} \frac {\mathop {\mathrm {d}}}{ \mathop {\mathrm {d}x}} \mu y &= 0 \\ \frac {\mathop {\mathrm {d}}}{ \mathop {\mathrm {d}x}} \left ({\mathrm e}^{-\frac {x^{2}}{2}} y\right ) &= 0 \end {align*}

Integrating gives \begin {align*} {\mathrm e}^{-\frac {x^{2}}{2}} y &= c_{1} \end {align*}

Dividing both sides by the integrating factor \(\mu ={\mathrm e}^{-\frac {x^{2}}{2}}\) results in \begin {align*} y &= c_{1} {\mathrm e}^{\frac {x^{2}}{2}} \end {align*}

Summary

The solution(s) found are the following \begin{align*} \tag{1} y &= c_{1} {\mathrm e}^{\frac {x^{2}}{2}} \\ \end{align*}

Figure 59: Slope field plot

Verification of solutions

\[ y = c_{1} {\mathrm e}^{\frac {x^{2}}{2}} \] Verified OK.

3.1.2 Maple step by step solution

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

dsolve(diff(y(x),x)-x*y(x)=0,y(x), singsol=all)
 

\[ y \left (x \right ) = {\mathrm e}^{\frac {x^{2}}{2}} c_{1} \]

Solution by Mathematica

Time used: 0.025 (sec). Leaf size: 22

DSolve[y'[x]-x*y[x]==0,y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to c_1 e^{\frac {x^2}{2}} \\ y(x)\to 0 \\ \end{align*}