64.1.8 problem 3(b)

Internal problem ID [13253]
Book : Differential Equations by Shepley L. Ross. Third edition. John Willey. New Delhi. 2004.
Section : Chapter 1, Differential equations and their solutions. Exercises page 13
Problem number : 3(b)
Date solved : Tuesday, January 28, 2025 at 05:13:14 AM
CAS classification : [_separable]

\begin{align*} y^{\prime }+4 y x&=8 x \end{align*}

Solution by Maple

Time used: 0.001 (sec). Leaf size: 14

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

Solution by Mathematica

Time used: 0.052 (sec). Leaf size: 22

DSolve[D[y[x],x]+4*x*y[x]==8*x,y[x],x,IncludeSingularSolutions -> True]
 
\begin{align*} y(x)\to 2+c_1 e^{-2 x^2} \\ y(x)\to 2 \\ \end{align*}