40.6.4 problem 13

Internal problem ID [6684]
Book : Schaums Outline. Theory and problems of Differential Equations, 1st edition. Frank Ayres. McGraw Hill 1952
Section : Chapter 10. Singular solutions, Extraneous loci. Supplemetary problems. Page 74
Problem number : 13
Date solved : Wednesday, March 05, 2025 at 02:35:22 AM
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.032 (sec). Leaf size: 44
ode:=x*diff(y(x),x)^2-2*y(x)*diff(y(x),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.183 (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.648 (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} \]