62.18.2 problem Ex 2

Internal problem ID [12842]
Book : An elementary treatise on differential equations by Abraham Cohen. DC heath publishers. 1906
Section : Chapter V, Singular solutions. Article 30. Page 63
Problem number : Ex 2
Date solved : Monday, March 31, 2025 at 07:21:23 AM
CAS classification : [[_homogeneous, `class A`], _rational, _dAlembert]

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

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