78.1.45 problem 5

Internal problem ID [18100]
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 : 5
Date solved : Tuesday, January 28, 2025 at 11:26:19 AM
CAS classification : [_linear]

\begin{align*} y^{\prime }&=2 y x +1 \end{align*}

Solution by Maple

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

dsolve(diff(y(x),x)=2*x*y(x)+1,y(x), singsol=all)
 
\[ y = \frac {\left (\sqrt {\pi }\, \operatorname {erf}\left (x \right )+2 c_{1} \right ) {\mathrm e}^{x^{2}}}{2} \]

Solution by Mathematica

Time used: 0.053 (sec). Leaf size: 27

DSolve[D[y[x],x]==2*x*y[x]+1,y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to \frac {1}{2} e^{x^2} \left (\sqrt {\pi } \text {erf}(x)+2 c_1\right ) \]