29.3.26 problem 80

Internal problem ID [4688]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 3
Problem number : 80
Date solved : Tuesday, March 04, 2025 at 07:02:53 PM
CAS classification : [_quadrature]

\begin{align*} y^{\prime }&=y \left (a +b y^{2}\right ) \end{align*}

Maple. Time used: 0.009 (sec). Leaf size: 70
ode:=diff(y(x),x) = y(x)*(a+b*y(x)^2); 
dsolve(ode,y(x), singsol=all);
 
\begin{align*} y \left (x \right ) &= \frac {\sqrt {\left (c_{1} a \,{\mathrm e}^{-2 a x}-b \right ) a}}{c_{1} a \,{\mathrm e}^{-2 a x}-b} \\ y \left (x \right ) &= -\frac {\sqrt {\left (c_{1} a \,{\mathrm e}^{-2 a x}-b \right ) a}}{c_{1} a \,{\mathrm e}^{-2 a x}-b} \\ \end{align*}
Mathematica. Time used: 1.969 (sec). Leaf size: 118
ode=D[y[x],x]==y[x](a+b y[x]^2); 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to -\frac {i \sqrt {a} e^{a (x+c_1)}}{\sqrt {-1+b e^{2 a (x+c_1)}}} \\ y(x)\to \frac {i \sqrt {a} e^{a (x+c_1)}}{\sqrt {-1+b e^{2 a (x+c_1)}}} \\ y(x)\to 0 \\ y(x)\to -\frac {i \sqrt {a}}{\sqrt {b}} \\ y(x)\to \frac {i \sqrt {a}}{\sqrt {b}} \\ \end{align*}
Sympy. Time used: 6.206 (sec). Leaf size: 58
from sympy import * 
x = symbols("x") 
a = symbols("a") 
b = symbols("b") 
y = Function("y") 
ode = Eq((-a - b*y(x)**2)*y(x) + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \left [ y{\left (x \right )} = \sqrt {\frac {a e^{2 a \left (C_{1} + x\right )}}{b \left (1 - e^{2 a \left (C_{1} + x\right )}\right )}}, \ y{\left (x \right )} = - \sqrt {- \frac {a e^{2 a \left (C_{1} + x\right )}}{b \left (e^{2 a \left (C_{1} + x\right )} - 1\right )}}\right ] \]