77.1.72 problem 91 (page 135)

Internal problem ID [17891]
Book : V.V. Stepanov, A course of differential equations (in Russian), GIFML. Moscow (1958)
Section : All content
Problem number : 91 (page 135)
Date solved : Monday, March 31, 2025 at 04:48:19 PM
CAS classification : [[_homogeneous, `class A`], _rational, _dAlembert]

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

Maple. Time used: 0.037 (sec). Leaf size: 30
ode:=x*diff(y(x),x)^2-2*y(x)*diff(y(x),x)+4*x = 0; 
dsolve(ode,y(x), singsol=all);
 
\begin{align*} y &= -2 x \\ y &= 2 x \\ y &= \frac {4 c_1^{2}+x^{2}}{2 c_1} \\ \end{align*}
Mathematica. Time used: 0.286 (sec). Leaf size: 43
ode=x*D[y[x],x]^2-2*y[x]*D[y[x],x]+4*x==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to -2 x \cosh (-\log (x)+c_1) \\ y(x)\to -2 x \cosh (\log (x)+c_1) \\ y(x)\to -2 x \\ y(x)\to 2 x \\ \end{align*}
Sympy. Time used: 2.204 (sec). Leaf size: 15
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*Derivative(y(x), x)**2 + 4*x - 2*y(x)*Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = 2 x^{2} e^{- C_{1}} + \frac {e^{C_{1}}}{2} \]