78.1.15 problem 2 (a)

Internal problem ID [18070]
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 : 2 (a)
Date solved : Tuesday, January 28, 2025 at 11:25:27 AM
CAS classification : [_quadrature]

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

Solution by Maple

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

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

Solution by Mathematica

Time used: 0.010 (sec). Leaf size: 24

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