72.1.33 problem 3 (a)

Internal problem ID [19374]
Book : DIFFERENTIAL EQUATIONS WITH APPLICATIONS AND HISTORICAL NOTES by George F. Simmons. 3rd edition. 2017. CRC press, Boca Raton FL.
Section : Chapter 1. The Nature of Differential Equations. Separable Equations. Section 2. Problems at page 9
Problem number : 3 (a)
Date solved : Thursday, October 02, 2025 at 04:19:58 PM
CAS classification : [_quadrature]

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

With initial conditions

\begin{align*} y \left (1\right )&=3 \\ \end{align*}
Maple. Time used: 0.022 (sec). Leaf size: 12
ode:=diff(y(x),x) = x*exp(x); 
ic:=[y(1) = 3]; 
dsolve([ode,op(ic)],y(x), singsol=all);
 
\[ y = \left (x -1\right ) {\mathrm e}^{x}+3 \]
Mathematica. Time used: 0.01 (sec). Leaf size: 14
ode=D[y[x],x]==x*Exp[x]; 
ic={y[1]==3}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to e^x (x-1)+3 \end{align*}
Sympy. Time used: 0.071 (sec). Leaf size: 12
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x*exp(x) + Derivative(y(x), x),0) 
ics = {y(1): 3} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = x e^{x} - e^{x} + 3 \]