60.1.327 problem 334

Internal problem ID [10341]
Book : Differential Gleichungen, E. Kamke, 3rd ed. Chelsea Pub. NY, 1948
Section : Chapter 1, linear first order
Problem number : 334
Date solved : Wednesday, March 05, 2025 at 10:22:19 AM
CAS classification : [[_homogeneous, `class C`], _dAlembert]

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

Maple. Time used: 0.023 (sec). Leaf size: 19
ode:=(1+(x+y(x))^(1/2))*diff(y(x),x)+1 = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ -y-2 \sqrt {x +y}-c_{1} = 0 \]
Mathematica. Time used: 0.092 (sec). Leaf size: 39
ode=1 + (1 + Sqrt[x + y[x]])*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to -2 \sqrt {x+1+c_1}+2+c_1 \\ y(x)\to 2 \sqrt {x+1+c_1}+2+c_1 \\ \end{align*}
Sympy. Time used: 1.192 (sec). Leaf size: 31
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq((sqrt(x + y(x)) + 1)*Derivative(y(x), x) + 1,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \left [ y{\left (x \right )} = C_{1} - 2 \sqrt {C_{1} + x + 1} + 2, \ y{\left (x \right )} = C_{1} + 2 \sqrt {C_{1} + x + 1} + 2\right ] \]