29.4.15 problem 104

Internal problem ID [4706]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 4
Problem number : 104
Date solved : Tuesday, March 04, 2025 at 07:06:33 PM
CAS classification : [_quadrature]

\begin{align*} y^{\prime }&=y \sqrt {a +b y} \end{align*}

Maple. Time used: 0.001 (sec). Leaf size: 24
ode:=diff(y(x),x) = y(x)*(a+b*y(x))^(1/2); 
dsolve(ode,y(x), singsol=all);
 
\[ x +\frac {2 \,\operatorname {arctanh}\left (\frac {\sqrt {a +b y \left (x \right )}}{\sqrt {a}}\right )}{\sqrt {a}}+c_{1} = 0 \]
Mathematica. Time used: 17.603 (sec). Leaf size: 42
ode=D[y[x],x]==y[x] Sqrt[a+b y[x]]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to -\frac {a \text {sech}^2\left (\frac {1}{2} \sqrt {a} (x+c_1)\right )}{b} \\ y(x)\to 0 \\ y(x)\to -\frac {a}{b} \\ \end{align*}
Sympy. Time used: 1.176 (sec). Leaf size: 19
from sympy import * 
x = symbols("x") 
a = symbols("a") 
b = symbols("b") 
y = Function("y") 
ode = Eq(-sqrt(a + b*y(x))*y(x) + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {2 a}{b \left (\cosh {\left (\sqrt {a} \left (C_{1} + x\right ) \right )} - 1\right )} \]