10.2.9 problem 9

Internal problem ID [1137]
Book : Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section : Section 2.2. Page 48
Problem number : 9
Date solved : Monday, January 27, 2025 at 04:35:19 AM
CAS classification : [_separable]

\begin{align*} y^{\prime }&=\left (1-2 x \right ) y^{2} \end{align*}

With initial conditions

\begin{align*} y \left (0\right )&=-{\frac {1}{6}} \end{align*}

Solution by Maple

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

dsolve([diff(y(x),x) = (1-2*x)*y(x)^2,y(0) = -1/6],y(x), singsol=all)
 
\[ y = \frac {1}{x^{2}-x -6} \]

Solution by Mathematica

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

DSolve[{D[y[x],x] == (1-2*x)*y[x]^2,y[0]==-1/6},y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to \frac {1}{x^2-x-6} \]