10.6.4 problem 4

Internal problem ID [1221]
Book : Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section : Miscellaneous problems, end of chapter 2. Page 133
Problem number : 4
Date solved : Monday, January 27, 2025 at 04:45:49 AM
CAS classification : [_separable]

\begin{align*} y^{\prime }&=3-6 x +y-2 y x \end{align*}

Solution by Maple

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

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

Solution by Mathematica

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

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