83.46.10 problem Ex 10 page 74

Internal problem ID [19504]
Book : A Text book for differentional equations for postgraduate students by Ray and Chaturvedi. First edition, 1958. BHASKAR press. INDIA
Section : Book Solved Excercises. Chapter V. Singular solutions
Problem number : Ex 10 page 74
Date solved : Monday, March 31, 2025 at 07:26:33 PM
CAS classification : [[_homogeneous, `class A`], _rational, _dAlembert]

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

Maple. Time used: 0.080 (sec). Leaf size: 44
ode:=x*diff(y(x),x)^2-2*diff(y(x),x)*y(x)+x+2*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\begin{align*} y &= \left (1-\sqrt {2}\right ) x \\ y &= \left (1+\sqrt {2}\right ) x \\ y &= \frac {2 c_1^{2}+2 c_1 x +x^{2}}{2 c_1} \\ \end{align*}
Mathematica. Time used: 0.218 (sec). Leaf size: 78
ode=x*D[y[x],x]^2-2*y[x]*D[y[x],x]+x+2*y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to -\frac {1}{2} e^{-c_1} x^2+x-e^{c_1} \\ y(x)\to -e^{c_1} x^2+x-\frac {e^{-c_1}}{2} \\ y(x)\to x-\sqrt {2} x \\ y(x)\to \left (1+\sqrt {2}\right ) x \\ \end{align*}
Sympy. Time used: 3.091 (sec). Leaf size: 17
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) + 2*y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = 2 x^{2} e^{- C_{1}} + x + \frac {e^{C_{1}}}{4} \]