20.1.27 problem Problem 35

Internal problem ID [3584]
Book : Differential equations and linear algebra, Stephen W. Goode and Scott A Annin. Fourth edition, 2015
Section : Chapter 1, First-Order Differential Equations. Section 1.2, Basic Ideas and Terminology. page 21
Problem number : Problem 35
Date solved : Monday, January 27, 2025 at 07:46:36 AM
CAS classification : [[_2nd_order, _quadrature]]

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

Solution by Maple

Time used: 0.002 (sec). Leaf size: 15

dsolve(diff(y(x),x$2)=x*exp(x),y(x), singsol=all)
 
\[ y \left (x \right ) = \left (x -2\right ) {\mathrm e}^{x}+c_{1} x +c_{2} \]

Solution by Mathematica

Time used: 0.013 (sec). Leaf size: 19

DSolve[D[y[x],{x,2}]==x*Exp[x],y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to e^x (x-2)+c_2 x+c_1 \]