77.28.2 problem 2

Internal problem ID [20652]
Book : A Text book for differentional equations for postgraduate students by Ray and Chaturvedi. First edition, 1958. BHASKAR press. INDIA
Section : Chapter VII. Exact differential equations and certain particular forms of equations. Exercise VII (B) at page 106
Problem number : 2
Date solved : Thursday, October 02, 2025 at 06:17:57 PM
CAS classification : [[_2nd_order, _quadrature]]

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