29.3.29 problem 83

Internal problem ID [4691]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 3
Problem number : 83
Date solved : Sunday, March 30, 2025 at 03:39:22 AM
CAS classification : [_Bernoulli]

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

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