85.22.1 problem 3

Internal problem ID [22573]
Book : Applied Differential Equations. By Murray R. Spiegel. 3rd edition. 1980. Pearson. ISBN 978-0130400970
Section : Chapter two. First order and simple higher order ordinary differential equations. B Exercises at page 55
Problem number : 3
Date solved : Thursday, October 02, 2025 at 08:51:54 PM
CAS classification : [_Bernoulli]

\begin{align*} y^{\prime }-y&=x y^{2} \end{align*}
Maple. Time used: 0.002 (sec). Leaf size: 17
ode:=diff(y(x),x)-y(x) = x*y(x)^2; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {1}{1+{\mathrm e}^{-x} c_1 -x} \]
Mathematica. Time used: 0.095 (sec). Leaf size: 27
ode=D[y[x],x]-y[x]==x*y[x]^2; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to \frac {e^x}{-e^x (x-1)+c_1}\\ y(x)&\to 0 \end{align*}
Sympy. Time used: 0.128 (sec). Leaf size: 15
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x*y(x)**2 - y(x) + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {e^{x}}{C_{1} - x e^{x} + e^{x}} \]