77.1.70 problem 90 (a)(page 123)

Internal problem ID [17881]
Book : V.V. Stepanov, A course of differential equations (in Russian), GIFML. Moscow (1958)
Section : All content
Problem number : 90 (a)(page 123)
Date solved : Thursday, March 13, 2025 at 11:08:20 AM
CAS classification : [[_1st_order, _with_linear_symmetries], _Clairaut]

\begin{align*} y^{\prime }&=-x +\sqrt {x^{2}+2 y} \end{align*}

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