65.3.8 problem 4 (H)

Internal problem ID [15645]
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)
Date solved : Thursday, October 02, 2025 at 10:21:42 AM
CAS classification : [_separable]

\begin{align*} y^{\prime }&=-y x \end{align*}
Maple. Time used: 0.001 (sec). Leaf size: 12
ode:=diff(y(x),x) = -x*y(x); 
dsolve(ode,y(x), singsol=all);
 
\[ y = c_1 \,{\mathrm e}^{-\frac {x^{2}}{2}} \]
Mathematica. Time used: 0.015 (sec). Leaf size: 22
ode=D[y[x],x]==-x*y[x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to c_1 e^{-\frac {x^2}{2}}\\ y(x)&\to 0 \end{align*}
Sympy. Time used: 0.154 (sec). Leaf size: 10
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*y(x) + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} e^{- \frac {x^{2}}{2}} \]