1.9 problem 8

Internal problem ID [3272]

Book: Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section: Various 1
Problem number: 8.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

\[ \boxed {y^{\prime }-x \left ({\mathrm e}^{-x^{2}}+y a \right )=0} \]

Solution by Maple

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

dsolve(diff(y(x),x) = x*(exp(-x^2)+a*y(x)),y(x), singsol=all)
 

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

Solution by Mathematica

Time used: 0.122 (sec). Leaf size: 42

DSolve[y'[x]==x*(Exp[-x^2]+a*y[x]),y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to \frac {e^{\frac {a x^2}{2}} \left (-e^{-\frac {1}{2} (a+2) x^2}+(a+2) c_1\right )}{a+2} \]