74.2.11 problem 16

Internal problem ID [15773]
Book : INTRODUCTORY DIFFERENTIAL EQUATIONS. Martha L. Abell, James P. Braselton. Fourth edition 2014. ElScAe. 2014
Section : Chapter 1. Introduction to Differential Equations. Review exercises, page 23
Problem number : 16
Date solved : Thursday, March 13, 2025 at 06:19:33 AM
CAS classification : [_quadrature]

\begin{align*} y^{\prime }&=x \,{\mathrm e}^{-x^{2}} \end{align*}

Maple. Time used: 0.003 (sec). Leaf size: 14
ode:=diff(y(x),x) = x*exp(-x^2); 
dsolve(ode,y(x), singsol=all);
 
\[ y = -\frac {{\mathrm e}^{-x^{2}}}{2}+c_{1} \]
Mathematica. Time used: 0.004 (sec). Leaf size: 19
ode=D[y[x],x]==x*Exp[-x^2]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to -\frac {e^{-x^2}}{2}+c_1 \]
Sympy. Time used: 0.179 (sec). Leaf size: 12
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x*exp(-x**2) + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} - \frac {e^{- x^{2}}}{2} \]