3.8 problem 4 (H)

Internal problem ID [12302]

Book: Ordinary Differential Equations by Charles E. Roberts, Jr. CRC Press. 2010
Section: Chapter 2. The Initial Value Problem. Exercises 2.1, page 40
Problem number: 4 (H).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_separable]

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

Solution by Maple

Time used: 0.016 (sec). Leaf size: 12

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

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

Solution by Mathematica

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

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

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